Install Ubuntu10.10 on the VM by default. Select Chinese and click Continue. Update the file after installation. When installing VMtools, copy the VMtools to the tmp directory and decompress it. Enter the tmp directory as the root user on the terminal and execute./* pl. Press enter. Cheaderfiles cannot be found, and ccomplie is not found. First, execute the following command: Install Ubuntu 10.10 On the sudo-s Virtual Machine by default. Select Chinese and click Continue. Update the file after installation.
When installing VMtools, copy the VMtools to the tmp directory and decompress it. Enter the tmp directory as the root user on the terminal and execute./* pl. Press enter.
C header files cannot be found, and c complie is not found. First, execute the following command:
Sudo-s // enter the root permission
Cd/lib/modules/$ (uname-r)/build/include/linux // $ (uname-r) is the system version number, that is, a folder in the modules directory, for example: 2.6.35-23-generic.
Ln-s ../generated/utsrelease. h
Ln-s ../generated/autoconf. h
Then reinstall vmware tools. Press enter until the end.
If the installed VMtools still cannot share files in the PC. How to perform the following operations.
Uninstall it first, terminal command: sudo vmware-uninstall-tools.pl
2. click the VM option install VMware tools (if the previously generated file is still in progress, you do not need to generate it again), and open VMware-tools-distrib, copy the compressed file to the tmp folder and decompress it to generate the vmware-tools-distrib folder. (Go to the decompressed vmware-tools-distrib)
3. enter the vmware-tools-distrib/lib/modules/sourcefolder under tmp to decompress vmhgfs.tar (terminal command: tar-xf restart (rm-f vmhgfs.tar) (because the file name folder needs to be modified and then compressed again), and then enter/vmhgfs.tar-only to find compat_slab.h. First, run the command chmod + w compat_slab.h to modify the read-only attribute of the file to writable, use vi or gedit to enter its modification (gedit compat_slab.h), find the row: # if LINUX_VERSION_CODE <KERNEL_VERSION (2.6.22) | defined, replace the row: # if LINUX_VERSION_CODE <= KERNEL_VERSION (2.6.22) | defined (coming soon <改为<=),保存退出这样我们的实质工作就已经做好了。< p>
4.return and refresh. Pack vmhgfs.tar-onlyinto the vmhgfs.tar file (tar-cf vmhgfs.tar vmhgfs-only), and delete the vmhgfs-only folder (rm-rf vmhgfs-only ).
5. Go back to tmp/vmware-tools-distrib and reinstall VMware-tools (terminal command:./vmware-install.pl). Press enter.