Just doing this a few times today:
From the VMware menu in VCentre, choose VM->Install VMware Tools.
This makes the tools installed appear as a CDROM drive, but this now needs to be mounted, and the installer run.
On Ubuntu it's also necessary to compile the tools from source - and so we need to first install compilers etc that are not normally needed.
The script below does all of this.
Open an editor (nano or vim), to create a file called vm-tools, paste the contents in, save and then run the chmod command to make the script executable:
cd (changes to your home directory)
nano vm-tools (paste and save)
chmod +x vm-tools and now run the script:
./vm-tools
You'll be asked for your password initially - and can safely use the defaults for all prompts.
This is the script:
#
## vmti - VMware Tools Installer
#
echo -e "\n## Installing build-essential etc...\n"
sudo apt-get install build-essential linux-headers-`uname -r` psmisc
echo -e "\n## Mounting the VMware tools CD...\n"
sudo mkdir /media/cdrom
sudo mount /dev/cdrom /media/cdrom
if [ -r /media/cdrom/VMwareTools* ] ; then
echo -e "\n## Tools CD loaded...\n"
else
echo -e "\n## ERROR!! - Tools CD not loaded properly\n"
exit
fi
echo -e "\n## Copy tools to home...\n"
cp /media/cdrom/VMwareTools* ~
cd ~
tar zxf VMwareTools*
if [ ! -d vmware-tools-distrib ] ; then
echo -e "\n## ERROR!! - Not extracted!\n"
exit
fi
echo -e "\n## Now we do the install...\n"
cd ~/vmware-tools-distrib
sudo ./vmware-install.pl
VMware Tools into Ubuntu
This makes the tools installed appear as a CDROM drive, but this now needs to be mounted, and the installer run.
On Ubuntu it's also necessary to compile the tools from source - and so we need to first install compilers etc that are not normally needed.
The script below does all of this.
Open an editor (nano or vim), to create a file called vm-tools, paste the contents in, save and then run the chmod command to make the script executable:
cd (changes to your home directory)
nano vm-tools (paste and save)
chmod +x vm-tools and now run the script:
./vm-tools
You'll be asked for your password initially - and can safely use the defaults for all prompts.
This is the script:
#
## vmti - VMware Tools Installer
#
echo -e "\n## Installing build-essential etc...\n"
sudo apt-get install build-essential linux-headers-`uname -r` psmisc
echo -e "\n## Mounting the VMware tools CD...\n"
sudo mkdir /media/cdrom
sudo mount /dev/cdrom /media/cdrom
if [ -r /media/cdrom/VMwareTools* ] ; then
echo -e "\n## Tools CD loaded...\n"
else
echo -e "\n## ERROR!! - Tools CD not loaded properly\n"
exit
fi
echo -e "\n## Copy tools to home...\n"
cp /media/cdrom/VMwareTools* ~
cd ~
tar zxf VMwareTools*
if [ ! -d vmware-tools-distrib ] ; then
echo -e "\n## ERROR!! - Not extracted!\n"
exit
fi
echo -e "\n## Now we do the install...\n"
cd ~/vmware-tools-distrib
sudo ./vmware-install.pl
Comments