安装vmware tools的方法

1. 运行cd /lib/modules/`uname -r`/build/include/linux
如果没有提示错误信息,ps: uname -r 查看内核版本号 


2. 做两个软连接就行了,具体方法是运行下面两条命令
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h
这两条命令给vmwaretools关联了正确的内核头文件的位置


3. 再次执行./vmware-install.pl
-----------------------以下是我新一终端后的运行


zhouubuntu@zhouubuntu-virtual-machine:~$ uname -r
2.6.38-10-generic
zhouubuntu@zhouubuntu-virtual-machine:~$ cd /lib/modules/`uname -r`/build/include/linux
zhouubuntu@zhouubuntu-virtual-machine:/lib/modules/2.6.38-10-generic/build/include/linux$ ln -s ../generated/autoconf.h
ln: 创建符号链接 "./autoconf.h": 权限不够
zhouubuntu@zhouubuntu-virtual-machine:/lib/modules/2.6.38-10-generic/build/include/linux$ su root
密码: 
root@zhouubuntu-virtual-machine:/lib/modules/2.6.38-10-generic/build/include/linux# ln -s ../generated/autoconf.h
root@zhouubuntu-virtual-machine:/lib/modules/2.6.38-10-generic/build/include/linux# ln -s ../generated/utsrelease.h


----------------之后,我回到运行刚才运行安装VM的终端,Enjoy.

你可能感兴趣的:(vmware,tools,终端)