After Debian is installed on a virtual machine (VMware v6.0.4), I have used either of the following methods to install VMware Tools.
Method (1)
Use the install VMware Tools feature provided by Vmware
The system did not respond or generate a virtual CD for VMware Tools on the desktop.
Method (2)
Mount Linux. ISO in the VMware installation directory to Debian and install VMware Tools using the command line.
At the end of installation, the following message is displayed: What is the location of the directory of C header files that match your running kernel? Unable to continue installation.
The following method is used to solve the problem:
/* Solve the location of the directory of C header files problem */
1) uname-a view system version
My system information is: Linux Debian 2.6.18-6-686
2) CD/usr/src; Ln-s linux-headers-2.6.18-6-686 Linux (run the apt-Get install linux-headers-2.6.18-6-686 if the system is not installed)
3) Export cc =/usr/bin/gcc-4.1
/* Install vmware-tools */
4) Copy Linux. ISO to Debian
5) Mount-o loop Linux. ISO/mnt
6) tar zxvf VMware. tgz
7) Su./vmware-install.pl
If you do not need any special settings, press Enter.
After the installation is complete, move your mouse. If you do not need to press CTRL + ALT, you can move the mouse to a region other than the virtual machine, it means that VMware Tools has been installed successfully!
(In addition, I have also encountered the need to restart the Linux system so that VMware Tools can take effect .)