First, import the keys to RPM:
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
Add the repository to yum by creating file /etc/yum.repos.d/vmware-tools.repo:
cat <<EOT > /etc/yum.repos.d/vmware-tools.repo [vmware-tools] name=VMware Tools baseurl=http://packages.vmware.com/tools/esx/5.0/rhel6/\$basearch enabled=1 gpgcheck=1 EOT
Then, install using:
# for non-PAE kernel: yum -y install vmware-tools-esx-kmods vmware-tools-esx # for PAE kernel: #yum -y install vmware-tools-esx-kmods-pae vmware-tools-esx
For no X windows:
yum -y install vmware-open-vm-tools-nox
Create the apt source file:
cat > /etc/apt/sources.list.d/contrib.list << EOT deb http://ftp.tw.debian.org/debian/ squeeze contrib deb-src http://ftp.tw.debian.org/debian/ squeeze contrib EOT
Then install the open-vm-tools by:
apt-get update apt-get install open-vm-tools open-vm-source open-vm-modules # install these if gui needed: apt-get install open-vm-toolbox
Reboot to take effect.
If you see:
Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found. vmmemctlFATAL: Module vmmemctl not found. vmsyncFATAL: Module vmsync not found.
You can install the missing modules by:
module-assistant auto-install open-vm -i