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.
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 under the modules directory, such as 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: Run tar-XF vmhgfs.tar.pdf to decompress and generate vmhgfs.tar-only. Delete vmhgfs.tar (RM-F
Vmhgfs.tar) (because the name folder needs to be modified later 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 change the read-only attribute of the file to writable. Use VI or gedit to modify it (gedit
Compat_slab.h), find the row: # If linux_version_code <kernel_version (2.6.22
) | Defined, replace this row with: # If linux_version_code <= kernel_version (2.6.22) | defined (<Changed to <= ),
Save and quit so that our substantive work is done.
4.decompress and refresh and package vmhgfs.tar-onlyVmhgfs.tar
File (tar-CF vmhgfs.tar vmhgfs-only), and then 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.
Note: When setting vmnet (as if this is the case.