My sets:
- VMware Workstation v4.5.2.8848 running on an XP SP2 host
- Gentoo v2004.2 built from Stage 1; kernel gentoo-sources-2.4.26-r9; running as vmware guest
- X system in gentoo: Xorg and KDE 3.3 (I excluded all gnome/gtk support by the use of USE flags)
First thing's first. If you don't need the shared folders and the time sync feature from vmware then you can do without the vmware tools. You can get your KDE 3.3 running in any resolution and all other features (sound, USB hotplugging, etc) running beautifully without vmware tools.
Here is my /etc/X11/xorg.conf that is working with or without any vmware tools installed:
Code: Select all
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "freetype"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/local/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "50"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "vmMonitor"
HorizSync 31.5 - 64.3
VertRefresh 50-120
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection
Section "Device"
Identifier "vmVideoCard"
Driver "vmware"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "vmVideoCard"
Monitor "vmMonitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "800x600" "1024x768" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "800x600" "1024x768" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "800x600" "1024x768" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
In case you don't have the same gentoo configuration that matches my xorg.conf above, here's how I obtained it:
Start the xorg configuration by typing "xorgconfig".
- mouse: auto, "yes" to emulate3buttons, /dev/mouse (or default) for the device
- keyb: generic 101-key, US, (default), "no" to additional XKB options
- monitor: horiz 31-65 KHz (or 1280x1024@60Hz), vert 40-150 Hz .. choose these values wisely, though i didn't have any problems coz i never went over the resolution i had in windows
- vga card: "yes" to look at the card database and choose the vmware driver (29 was the option number for me), 32Mb ram, then edit your modes and bit depth properly from the next screens
- "Yes" to write to /etc/X11/xorg.conf
Note: In order to enable the mouse wheel inside KDE, just add the following line to xorg.conf inside the mouse section somewhere:
Code: Select all
Option "ZAxisMapping" "4 5"Code: Select all
$ echo "exec startkde" > ~/.xinitrcCode: Select all
DISPLAYMANAGER="kdm"
XSESSION="kde-3.3.0"Code: Select all
# rc-update add xdm defaultImportant: If you have framebuffer support enabled for your kernel and a vga=<some graphic mode here> option in your kernel line in lilo.conf or grub.conf file then you will experince a bug that is present in vmware (happens on all linux distros) when you exit from Xorg into the console (like ctrl-alt-backspace or nice logout): there would be 4 little screens with messed up colors. A quick way to fix this is to change the vga=<graphic mode> option from lilo.conf/grub.conf into:
Code: Select all
vga=normalNote: Even if you choose to install vmware tools (see below), all that was said above still stands.
Vmware tools installation:
If you wish to install the vmware-tools in gentoo, then do so from the vmware host OS menus, mount the cdrom in Gentoo, take the tarball and unpack it and optionally take the patch from http://forums.gentoo.org/viewtopic.php? ... 46#1620146 that supplanter posted (thanks
Create the fake rcN.d directories:
Code: Select all
# mkdir /etc/rc0.d
# mkdir /etc/rc1.d
# mkdir /etc/rc2.d
# mkdir /etc/rc3.d
# mkdir /etc/rc4.d
# mkdir /etc/rc5.d
# mkdir /etc/rc6.dNow, if you want to add the vmware-tools at startup, do not directly use "rc-update add vmware-tools default". If run, rc-update won't give any errors and it will add it to startup, but the script won't run at all when the machine is booted because it is not a gentoo init.d script (runscript) (someone correct me if i'm wrong). To fix this and still have the vmware tools start automatically at boot time, I created another script called simply "vmware" in /etc/init.d:
Code: Select all
# nano /etc/init.d/vmwareCode: Select all
#!/sbin/runscript
depend() {
after logger
}
start() {
ebegin "Starting VMware tools (hack)"
/etc/init.d/vmware-tools start
eend $?
}
stop() {
ebegin "Stopping VMware tools (hack)"
/etc/init.d/vmware-tools stop
eend $?
}
Code: Select all
chmod +x /etc/init.d/vmware
chown root:root /etc/init.d/vmwareThen add it to rc-update and it will start when booting just fine:
Code: Select all
# rc-update add vmware default
# rc-update del vmware-toolsWell, hope this helps someone esle
Cheers
p.s. The Xorg patch for the vmware tools config script can be found at kerneltrap.org in a blog of keithmo (he has helped (and still does) a lot in getting fedora to work ok with vmware). It was written originally for fedora: http://kerneltrap.org/node/view/3408




