Install vmware tools on Ubuntu 13.04 (Raring Ringtail)

I am doing this on server edition.
First do an apt-get update, then apt-get upgrade to bring the entire system current. Then install build tools and kernel headers with the following command:

sudo apt-get install build-essential linux-headers`uname -r`

Now click on the Install VMWare Tools option on your Guest. On your VM, run the following command:

sudo mount /dev/sr0 /mnt

Then copy the tools image to the Guest:

cp /mnt/VMwareTools-8.6.10-913593.tar.gz /tmp

You may have a different version of VMwareTools. Now ruun the following commands:

cd /tmp
tar -xzvf VMwareTools-8.6.10-913593.tar.gz
cd vmware-tools-distrib

Now start the install:

sudo ./vmware-install.pl

I chose all the default values. I did not install any options marked [EXPERIMENTAL]. When the installer is searching for valid headers, I received an error that they could not be found in “”. So, a little searching and I found that some of the headers moved so:

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

Installing packages in Ubuntu from cdrom (no Internet)

In many cases, the dev class vm’s do not have Internet access (annoying) so you cannot install software vi the Internet.

Mount the ISO in the VM.

On the server run the following command:

sudo mount /dev/sr0 /cdrom

ensure that only the following line is uncommented in /etc/ap[t/sources.list

deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ – Release amd64 (20100427)]/ lucid main restricted

Run sudo apt-get update to update the repository. Then install what you need.