View previous topic :: View next topic |
Author |
Message |
teladi n00b
Joined: 26 Apr 2004 Posts: 2
|
Posted: Mon Apr 26, 2004 6:44 pm Post subject: VMware tools |
|
|
I have vmware 4.5. I have installed gentoo, network works. but how to make the Xwindow system work normaly. in the vmware manual it said to install vmware-tools.
First question:
What to write on thet question, which asks where are the init scriprs (rc0.d to rc6.d)
Second question (dont know if will need ):
Where to find lspci |
|
Back to top |
|
|
echo6 Guru
Joined: 04 Jan 2003 Posts: 587
|
Posted: Mon Apr 26, 2004 7:16 pm Post subject: |
|
|
Create each the following directories in /etc
Code: | rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d | Then run the vmware install script, it will create the vmware init script in /etc/init.d then create symlinks to the directories rc3.d and rd6.d.
Gentoo doesn't use run level scripts in the same sense that other distros do, scripts are executed according to the run level set when using rc-update, do and you will see what scripts are run, either as default or boot. To add the vmware script to the boot process use Code: | rc-update add vmware default |
lspci is part of pciutils, |
|
Back to top |
|
|
dalekief n00b
Joined: 09 Jun 2003 Posts: 11
|
Posted: Thu May 20, 2004 12:43 am Post subject: slight correction |
|
|
great post!
slight correction to rc-update line:
Code: | rc-update add vmware-tools default |
|
|
Back to top |
|
|
supplanter n00b
Joined: 06 Oct 2004 Posts: 1
|
Posted: Wed Oct 06, 2004 10:41 pm Post subject: |
|
|
This helps before running vmware-tools-install.pl:
I borrowed this from a post on KernelTrap.org. A user with the handle keithmo posted this patch for the perl script that makes it work with X.org instead of XFree...
Installation:
- Somehow get this script on your Gentoo filesystem (I created a cd-rom iso using CDBurnerXP and put the script file named "vmware.patch" in the iso... then mounted it as a cd-rom in Vmware)
* Extract the VMware tools tar archive, cd to the vmware-tools-distrib
directory, then execute "patch -Np1 -i vmware.patch" to tweak the install script.
* Install VMware tools. Use the defaults for all questions, except say NO when asked if you want to compile a vmhgfs module. It doesn't seem compile with the 2.6 kernel headers. (It compiled, but didn't work for me)
* Reboot, and enjoy.
Code: |
diff -ur vmware-tools-distrib-orig/bin/vmware-config-tools.pl vmware-tools-distrib/bin/vmware-config-tools.pl
--- vmware-tools-distrib-orig/bin/vmware-config-tools.pl 2004-06-11 02:52:10.000000000 +0200
+++ vmware-tools-distrib/bin/vmware-config-tools.pl 2004-07-05 20:35:27.084636944 +0200
@@ -2849,7 +2849,7 @@
}
sub xserver4 {
- return xserver_bin() . '/XFree86';
+ return xserver_bin() . '/Xorg';
}
sub xserver3 {
@@ -3052,7 +3052,7 @@
# string. Maybe it will once it settles down.
if ($xversionAll eq "0.0.0") {
$xversionAll = direct_command(shell_string(xserver4()) . ' -version 2>&1') =~
- /X.org Foundation/ ? '4.4.0' : '0.0.0';
+ /X.org Foundation/ ? '4.3.0' : '4.3.0';
}
# This search order is issued from the XF86Config man page.
@@ -3063,6 +3063,8 @@
file_name_exist('/usr/X11R6/etc/X11/' . $ENV{'XF86CONFIG'})) {
$xconfig_path = '/usr/X11R6/etc/X11';
$xconfig_file_name = $ENV{'XF86CONFIG'};
+ } elsif (file_name_exist($xconfig_path . '/xorg.conf')) {
+ $xconfig_file_name = 'xorg.conf';
} elsif (file_name_exist($xconfig_path . '/XF86Config-4')) {
$xconfig_file_name = 'XF86Config-4';
} elsif (file_name_exist($xconfig_path . '/XF86Config')) {
@@ -3568,6 +3570,7 @@
if ($major == 4 && $minor >= 2 &&
file_name_exist($cX4MouseDriverFile)) {
$line =~ s/%MOUSE_DRIVER%/vmmouse/g;
+ $line =~ s-/dev/mouse-/dev/input/mice-;
} else {
$line =~ s/%MOUSE_DRIVER%/mouse/g;
}
|
[/code] _________________ "Glittering prizes and endless comprimises..." |
|
Back to top |
|
|
mastabog n00b
Joined: 13 Mar 2004 Posts: 59
|
Posted: Fri Oct 29, 2004 4:18 pm Post subject: |
|
|
Quote: | I borrowed this from a post on KernelTrap.org. A user with the handle keithmo posted this patch for the perl script that makes it work with X.org instead of XFree... |
Thanks for the answer . Could you give us the link to the kerneltrap.org keithmo's blog entry for that patch? Thanks again. |
|
Back to top |
|
|
mastabog n00b
Joined: 13 Mar 2004 Posts: 59
|
Posted: Wed Nov 03, 2004 11:25 pm Post subject: |
|
|
Here is everything I experienced these past few days trying to get VMware tools in Gentoo and Xorg (kde 3.3) working correctly in vmware.
Edit: I posted a new thread about this as it doesn;t concern only the vmware tools installation but everything I did when getting Gentoo in vmware to work ok: https://forums.gentoo.org/viewtopic.php?t=246788 |
|
Back to top |
|
|
dundas Guru
Joined: 16 Dec 2004 Posts: 317 Location: China, Earth
|
Posted: Sun Jul 24, 2005 11:03 am Post subject: |
|
|
supplanter wrote: | This helps before running vmware-tools-install.pl:
I borrowed this from a post on KernelTrap.org. A user with the handle keithmo posted this patch for the perl script that makes it work with X.org instead of XFree...
Installation:
- Somehow get this script on your Gentoo filesystem (I created a cd-rom iso using CDBurnerXP and put the script file named "vmware.patch" in the iso... then mounted it as a cd-rom in Vmware)
* Extract the VMware tools tar archive, cd to the vmware-tools-distrib
directory, then execute "patch -Np1 -i vmware.patch" to tweak the install script.
* Install VMware tools. Use the defaults for all questions, except say NO when asked if you want to compile a vmhgfs module. It doesn't seem compile with the 2.6 kernel headers. (It compiled, but didn't work for me)
* Reboot, and enjoy.
Code: |
diff -ur vmware-tools-distrib-orig/bin/vmware-config-tools.pl vmware-tools-distrib/bin/vmware-config-tools.pl
--- vmware-tools-distrib-orig/bin/vmware-config-tools.pl 2004-06-11 02:52:10.000000000 +0200
+++ vmware-tools-distrib/bin/vmware-config-tools.pl 2004-07-05 20:35:27.084636944 +0200
@@ -2849,7 +2849,7 @@
}
sub xserver4 {
- return xserver_bin() . '/XFree86';
+ return xserver_bin() . '/Xorg';
}
sub xserver3 {
@@ -3052,7 +3052,7 @@
# string. Maybe it will once it settles down.
if ($xversionAll eq "0.0.0") {
$xversionAll = direct_command(shell_string(xserver4()) . ' -version 2>&1') =~
- /X.org Foundation/ ? '4.4.0' : '0.0.0';
+ /X.org Foundation/ ? '4.3.0' : '4.3.0';
}
# This search order is issued from the XF86Config man page.
@@ -3063,6 +3063,8 @@
file_name_exist('/usr/X11R6/etc/X11/' . $ENV{'XF86CONFIG'})) {
$xconfig_path = '/usr/X11R6/etc/X11';
$xconfig_file_name = $ENV{'XF86CONFIG'};
+ } elsif (file_name_exist($xconfig_path . '/xorg.conf')) {
+ $xconfig_file_name = 'xorg.conf';
} elsif (file_name_exist($xconfig_path . '/XF86Config-4')) {
$xconfig_file_name = 'XF86Config-4';
} elsif (file_name_exist($xconfig_path . '/XF86Config')) {
@@ -3568,6 +3570,7 @@
if ($major == 4 && $minor >= 2 &&
file_name_exist($cX4MouseDriverFile)) {
$line =~ s/%MOUSE_DRIVER%/vmmouse/g;
+ $line =~ s-/dev/mouse-/dev/input/mice-;
} else {
$line =~ s/%MOUSE_DRIVER%/mouse/g;
}
|
[/code] |
Dear Sir:
I just tried ur sript in vmware 5 - 13124 however it gave me this:
Quote: | patching file bin/vmware-config-tools.pl
Hunk #1 FAILED at 2849
Hunk #2 FAILED at 3052
Hunk #3 FAILED at 3063
Hunk #4 FAILED at 3570
4 out of 4 hunks FAILED -- saving rejects to file bin/vmware-config-tools.pl.rej |
any clue to work around this?
thx a lot! _________________ Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6640 Location: The soundosphere
|
Posted: Sun Aug 14, 2005 3:46 pm Post subject: |
|
|
I had trouble installing vmware tools for a long time before I decided to sit down and look closely at what was happening. This may or may not help for anyone in this thread, but on my system, I noticed that the script was not finding a couple of things, namely /dev/mouse and /etc/init.d/vmware-tools. My system had instead /dev/input/mouse0 and /etc/init.d/vmware-linux-tools. Creating symlinks to these items solved my problems and allowed me to install vmware tools as per instructions at http://gentoo-wiki.com/HOWTO_Install_Gentoo_on_VMware_in_Windows_NT/2K/XP without using any patches.
ln -s /dev/input/mouse0 /dev/mouse
ln -s /etc/init.d/vmware-linux-tools /etc/init.d/vmware-tools
If you watch errors from the script's output, you may be able to solve similar problems in this way. I've often noticed that files or devices I need exist somewhere on my system - just not where script-x.pl expects it to be. Just got to look around a bit, is all you need. |
|
Back to top |
|
|
|