Ubuntu_12.04安装VMware-Tools个人总结

关于VMware-Tools的安装,可算费了我一天多的时间。其实,就是卡在一个问题上:In the virtual machine, log in to the guest operating system as root.

 

一、贴上Help page文档:

 

l  Install VMwareTools 

file:///E:/VMware/Workstation/help/workstation_win/wwhelp/wwhimpl/js/html/wwhelp.htm#href=GUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html

 

l  Uninstall VMwareTools & Reinstall VMwareTools

file:///E:/VMware/Workstation/help/workstation_win/wwhelp/wwhimpl/js/html/wwhelp.htm#href=GUID-6F7BE33A-3B8A-4C57-9C35-656CE05BE22D.html

 

Ø  Install introduction——安装说明

ManuallyInstall or Upgrade VMware Tools in a Linux Virtual Machine

For Linux virtualmachines, you manually install or upgradeVMware Toolsby using the command line.

Install the latest version ofVMware Tools toenhance the performance of the virtual machine'sguest operating system and improve virtual machinemanagement. When you power on a virtual machine, if a new version ofVMware Tools is available, you see a notification in the status bar of theguest operating system.

 

Ø  Prerequisite——前提条件

Prerequisites

1.      Power on the virtual machine.

2.      Verify that the guest operating system is running.

3.      Because the VMware Tools installer is written in Perl,verify that Perl is installed in the guest operating system.

 

Ø  Procedure——安装过程

Procedure

1.       On the host, from theWorkstation menu bar, select VM > Manage > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu itemisUpdateVMware Tools.

2.       In the virtual machine, log in to the guest operating system as rootandopen a terminal window.

3.       Run the mount command with noarguments to ……

4.       If the CD-ROM device ismounted, the CD-ROM device and its mount point are listed as something likethis ……

5.       ……

6.       ……

 

 

二、遇到的问题&相关调查

问题:关于In the virtualmachine, log in to the guest operating system as root.如何log as root?

调查结果:1、Ubuntu12.04root用户登录设置

ubuntu12.04默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录。以普通身份登陆Ubuntu后我们需要做一些修改,

普通用户登录后,修改系统配置文件需要切换到root用户模式,

InTerminal: 输入sudo passwd root.

输入普通用户密码

输入new unix passwd

再次输入new unix passwd

OK,启用root账户并设置passwd

 

输入su root

输入root’s passwd

OK,切换到root根用户


然后执行: vi /etc/lightdm/lightdm.conf.

增加 greeter-show-manual-login=true  allow-guest=false  . 修改完的整个配置文件是

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

greeter-show-manual-login=true #手工输入登陆系统的用户名和密码

allow-guest=false   #不允许guest登录

然后我们启动root帐号:

sudo passwd root

根据提示输入roott帐号密码。

重启ubuntu,登录窗口会有"登录"选项,这时候我们就可以通过root登录了。】

 

总结:其实,这个root登录,是让用户在登录界面,就有root账户。如果以root身份登录,则打开终端,是这样显示的root@user-virtual-machine:~$,实际上这样是很不安全的。很多系统文件,在用户误操作情况下,将造成不可避免,难以恢复的损毁!!

 

2、文章一:vm-install vmwaretools安装

【安装完VMware虚拟机后启动Ubuntu,窗口很小,需要安装vm-install vmware tools才能自动适配合适的窗口大小,为了安装这个东东浪费了我好几个小时时间,现在把我的步骤记录下来,以便后续同仁遇到相同问题避免麻烦:】

这篇文章,其实就是完整的安装过程。但是没有提出任何遇到的问题。人家说OK,肯定还是我哪里出了问题。对我来说,只有挂载的方式,可以作为参考

文章二:Ubuntu12.04下安装VMware Tools :linux公社

这篇文章,是个有图有真相的完整安装过程。他没有提到什么” log in to the guest operatingsystem as root”,而是直接在普通用户模式下,实现了安装。对我来说,这或许是一个值得参考尝试的方案。然后,我直接切换到普通用户[myle]模式下,按照正常的流程,将挂载CD-ROM(此处是media/VMware Tools/)下的*.tar.gz文件解压至桌面vmware-tools-distribs下,然后运行命令sudo ./vmware-install.pl, 接下来就是一系列的enter 哈哈,执行完毕,OK。

此处再附一篇有图文章,与我实际运行非常类似:Ubuntu 12.04下安装VMware Tools:sina blog.

 

安装过程分析:

附张条件图


u 前几次的安装

前几次的安装,都是按照第一页的Help文档,以为必须在guest operating system即guest模式下运行所有过程到结束。实际效果:驱动镜像media/VMware Tools/成功挂载,并可以打开执行解压至tmp/wmware-tools-distribs,但在执行命令sudo ./vmware-install.pl时,却提示sudo命令不可用,Please re-run this program as thesuper user. 然后就去su root,,但是在输入passwd之后,又提示setgid:不允许操作。

怀疑中间哪个步骤出了问题,或者哪个文件的权限不正确,于是按照上面同样的方法步骤,结果尝试几次,花费一两个小时,仍是同样的结果。

 

u 最后一次的成功安装

最后一次的安装,是在看了【文章二】,尝试直接在普通用户下,结果成功了。但是又有个问题:Help文档以及VMware安装提示,明明指出要在Guest operating systemrunning条件下,才能去挂载linux.iso镜像文件[即media/VMware Tools/].

现在一切OK,经思考分析,发现,linux 本身就是允许多用户同时登录的。通过使用“linux查看登录用户状态”命令[w/who/whoami],可以看到现在有两个user登录 [myle] & [guest],所以,说明Guest operating system is Running. 嘿嘿,到此,一场疑问战争,终于被消灭。

下面附上一些linux用户管理及文件系统 命令操作的相关文章。

1)        linux查看用户登录状态 From csdn.blog.

2)        linux用户管理命令(添加,删除,修改From cnblogs.com

3)        03--用户管理与文件系统.ppt From我自己的资料

 

三、最后,附上一篇网友的总结:Ubuntu_11.04安装VMWare_Tools小结

 

你可能感兴趣的:(ubuntu)