Ubuntu_12.04 personal summary of installing vmware-Tools

Source: Internet
Author: User

I spent more than a day installing vmware-tools. In fact, it is stuck in a problem:In the virtual machine, log in to the guest operating system as root.

 

I. paste the Help page document:

 

L install vmwaretools

File: // E:/vmware/workstation/help/workstation_win/wwhelp/wwhimpl/JS/html/templates

 

L uninstall vmwaretools & reinstall vmwaretools

File: // E:/vmware/workstation/help/workstation_win/wwhelp/wwhimpl/JS/html/templates

 

Install introduction -- installation instructions

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 toolsEnhance the performanceOf the virtual machine'sGuest Operating SystemAndImprove 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

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-Installation Process

Procedure

1. on the host, from theworkstation menu bar, selectVM> 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 ......

4.If the CD-ROM device ismounted, The CD-ROM Device and Its mount point are listed as something likethis ......

5.......

6 .......

 

 

Ii. Problems and related investigations

Question: AboutIn the virtualmachine, log in to the guest operating system as root.,How to log as root?

Survey results: 1. ubuntu12.04root User Logon Settings

Ubuntu12.04Not allowed by defaultRootLogin, only common users and visitors can be seen in the login window.After logging on to Ubuntu as a normal user, we need to make some modifications,

After logging on to a common user, you must switch to the root user mode to modify the system configuration file,

Interminal: Enter sudo passwd root.

Enter the normal user password

Enter new Unix passwd

Enter new Unix passwd again

OK. Enable the root account and set passwd.

 

Enter su Root

Enter Root's passwd

OK, switch to the root user

Run VI/etc/lightdm. conf.

Add greeter-show-manual-login = true allow-Guest = false. The modified configuration file is

[Seatdefaults]

Greeter-session = unity-greeter

User-session = Ubuntu

Greeter-show-manual-login = true # manually enter the user name and password for logging on to the system

Allow-Guest = false # logon from guest is not allowed

Then we start the root account:

Sudo passwd Root

Enter the password of the roott account as prompted.

Restart ubuntu. The "login" option will be available in the logon window. At this time, we can log on through the root account .]

 

Summary:In fact, this root login allows the user to have a root account on the login interface. If you log on as the root user, open the terminal. The displayed root @ user-Virtual-machine :~ $. In fact, this is very insecure. Many system files may cause unavoidable and hard-to-recover damages due to misoperations !!

 

2,ArticleI. VM-install vmwaretools Installation

[After the vmwarevm is installed, start ubuntu. The window is very small. You need to install VM-install VMware Tools to automatically adapt to the appropriate window size. It took me several hours to install this stuff, now, I have recorded my steps so that my colleagues can avoid the following problems :]

This article is actually a complete installation process. However, no problems were raised. People say OK. I must have encountered a problem. For me,Only the mounting method can be used as a reference..

Article 2: Install VMware Tools in ubuntu12.04: Linux community

This article is a complete installation process with a picture and truth. He didn't mention anything"Log in to the guest operatingsystem as root", But directly in normal user mode, the installation is implemented. For me, this may be a reference solution. Then I switch directly to normal user [myle] mode and mount the CD-ROM (Media/VMware Tools/here) as per the normal procedure /) decompress the * .tar.gz file to vmware-tools-distribs on the desktop, and run the sudo command. /vmware-install.pl, followed by a series of enter Haha, completed, OK.

Here is an illustrated Article, which is very similar to my actual operation: Install VMware Tools: Sina Blog In ubuntu 12.04.

 

Installation Process Analysis:

Attached condition chart

Several times before u Installation

The previous installation was based on the help document on the first page, and thought that all the processes must be run in guest operating system, that is, in guest mode until the end. Actual effect: the drive image media/VMware Tools/is mounted successfully. You can run the command to decompress the file to tmp/wmware-tools-distribs, but run the command sudo. /vmware-install.pl, but prompt sudo command is not available, please re-run this program as thesuper user. then go to Su root, but after entering passwd, the system prompts setgid: operation not allowed.

If you suspect that a problem occurs in the intermediate step or the permission of the file is incorrect, the same result is still returned after several attempts in the same steps as above.

 

U last successful installation

The last installation was completed after reading [Article 2] And trying to directly connect to a common user. However, there is another problem: the help document and the VMware installation prompt clearly states that the Linux. ISO image file [media/VMware Tools/] can be mounted only under the guest operating systemrunning condition.

Now everything is okay. After thinking and analysis, we find that Linux itself allows multiple users to log on at the same time. By running the [w/WHO/whoami] command "Linux view logon user status", we can see that two users are currently logged on to [myle] & [Guest]. Therefore, indicates that the guest operating system is running. hey, at this point, a questioning war was finally eliminated.

The following are some articles about Linux User Management and file system command operations.

1) Check the user logon status in Linux from csdn. Blog.

2) linux user management commands (add, delete, and modify from cnblogs.com

3) 03--user management and file system .ppt from my own documents

 

Iii. Summary of last article: ubuntu_11.04 vmware_tools Installation Summary

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.