Install VM tools on the Linux Command Line

Source: Internet
Author: User
Log on to Linux as the root account, and choose VM> install VMware Tools. Open the terminal:
Note: You must be case sensitive when entering "command" or "software name" under various Linux Command lines !!!

[Root @ rd01 ~] # Cd/mnt/CDROM
[Root @ rd01 ~] # Cd/CDROM
[Root @ rd01 ~] # Ls

Vmwaretools- 5.5.1 -19175.rpm VMwareTools-5.5.1-19175.tar.gz.
[Root @ rd01 ~] # Rpm-IVH VMwareTools-5.5.1-19175.i386.rpm
[Root @ rd01 ~] # Cp VMwareTools-5.5.1-19175.tar.gz/tmp.
[Root @ rd01 ~] # Cd/tmp
[Root @ rd01 ~] # Tar zxpf VMwareTools-5.5.1-19175.tar.gz
[Root @ rd01 ~] # Cd vmware-tools-distrib
[Root @ rd01 vmware-tools-distrib] #./vmware-install.pl
Creating a New installer database using the tar3 format.

Installing the content of the package.

# Use the default values for the installation process. Press enter all the time.

In which directory do you want to install the binary files?
[/Usr/bin]

What is the directory that contains the init directories (rc0.d/to rc6.d /)?
[/Etc/rc. d]

What is the directory that contains the init scripts?
[/Etc/rc. d/init. d]

In which directory do you want to install the daemon files?
[/Usr/sbin]

In which directory do you want to install the library files?
[/Usr/lib/vmware-tools]

Thepath "/usr/lib/vmware-Tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[Yes]

In which directory do you want to install the documentation files?
[/Usr/share/doc/vmware-tools]

Thepath "/usr/share/doc/vmware-Tools" does not exist currently. thisprogram isgoing to create it, including needed parent directories. isthis what you want?
[Yes]

The installation of VMware Tools 5.5.1 build-19175 for Linux completed
Successfully. You can decide to remove this software from your system at any
Time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl ".

Before Running VMware Tools for the first time, you need to configure it
Invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
This program to invoke the Command for you now? [Yes]

Stopping VMware Tools Services in the virtual machine:

Guest Operating System daemon: [OK]
Trying to find a suitable vmhgfs module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Pcnet32 30153 0
Unloading pcnet32 Module

Trying to find a suitable vmxnet module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Detected x.org version 6.8.

Disable the console mouse service: [OK]
Start the console mouse service: [OK]

Enjoy,

-- The VMware team

[Root @ rd01 vmware-tools-distrib] # shutdown-R now

# After modification, restart the computer to make VMware Tools take effect.

 

 

Next, set sharing in the VM. VM → setting → options → sharedfolders → add → select the folder to be shared and name it → OK, VMware will automatically mount this folder to the/mnt/HGFS directory. OK to finish!

 

 

This problem is occasionally discovered as follows:

1. This sharing has nothing to do with whether the Windows Server service is enabled, that is, it is different from the common windows and Windows sharing.

2. Sharing is related to the fact that the built-in firewall allows sharing. I have enabled the built-in firewall, that is, to enable sharing in the local connection. Otherwise, what will happen, just now, I didn't have any content in HGFS. I restarted Linux once after the built-in firewall allowed this sharing. Now, Hoho!

3. Now, when two folders are dragging files, you can drag the files from windows to Linux, but when you drag the files from Linux to Windows, an error message is displayed: the target location does not have enough space. Nnd! I have set writable permissions in the VM, set writable permissions for the Windows directory, assign all permissions to everyone, and grant all permissions to the VMware user. This problem still persists and is very depressing. Finally, I tried to create a new folder in the folder shared by/mnt/HGFS, which indicates that the folder can be written. Then I copied the Linux stuff to the Windows directory using the CP command, yeah! This may be a bug. CP is acceptable. If you drag the copy, an error is returned!

4. The support for Chinese characters on the terminal is not very good. Windows files with Chinese characters are displayed in Linux ......... So if you want to write Linux Dongdong CP to Windows, you 'd better name it without Chinese characters. In addition, for example, if a notepad with Chinese characters (with Chinese characters in content) in Linux is opened in Windows using notepad, the format is no longer available. In windows, a black box is used to replace the line feed in Linux, in this way, you can use the WordPad to view the original format, but the Chinese characters are terrible! You can recover both of them ......... :)

5. This sharing is currently in use and will be used for samba or FTP later :)

 

 

Reprinted: http://hi.baidu.com/w_dalu/blog/item/09c374c397aa3653b219a8fd.html

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.