Linux (CentOS 7) command line mode installation VMware Tools detailed

Source: Internet
Author: User
Tags install perl

This article mainly describes how to install VMware Tools in the Linux (CentOS 7) command-line mode, which has a certain reference value, and can be consulted by interested partners.

In this example, VMware Tools is installed in Linux (for example, CentOS 7).

1. Start CentOS 7 First, click "VMs" in VMware and click "Install VMware Tools ..." (if installed, show "Reinstall vmware Tools ...").

2. In the command line, enter "Ls/dev" to view.

3. Enter "Mkdir/mnt/cdrom" to create a new folder named CDROM in the/mnt directory.

4. Type "Mount-t Iso9660/dev/cdrom/mnt/cdrom" to mount the disc to the/mnt/cdrom directory.

5. Enter "ls/mnt/cdrom/" to view the content, enter "cp/mnt/cdrom/vmwaretools-9.2.0-799703.tar.gz/root/vm.tar.gz" and name " vmwaretools-9.2.0-799703.tar.gz "Copy to the/root directory and rename it to vm.tar.gz.

6. Enter "LS" in the root directory to view the file, enter "Tar-xzf vm.tar.gz" unzip the file, enter "LS" to view the file, you can find the new directory "Vmware-tools-distrib".

7. Enter "CD vmware-tools-distrib/" into the directory named "Vmware-tools-distrib", enter "./vmware-install.pl" to try to install, error "-bash:./ vmware-install.pl:/usr/bin/per:bad interpreter:no such file or directory ", indicating that the compilation environment is not installed.

8. Enter "Yum-y install perl gcc make kernel-headers kernel-devel" to start the installation.

9. The prompt has been installed.

10. Re-enter "./vmware-install.pl" in the "Vmware-tools-distrib" directory to start the installation, basically press ENTER.

11.VMware Tools has been installed, prompting you to run the "/usr/bin/vmware-uninstall-tools.pl" command to uninstall VMware tools. Run the "/usr/bin/vmware-config-tools.pl" command on the first run to configure VMware Tools and press ENTER to run directly.

12. The prompt is installed and ready to use.

13. Enter "/usr/bin/vmware-user" to start the VMware user process and enter "StartX" to start the graphical interface.

14. Select the file (in this case, "test document. docx") and hold down the left mouse button to try dragging the file to the virtual machine.

15. Release the left mouse button and discover that the file has been copied to the virtual machine.

16. If you need to uninstall VMware Tools, enter "/usr/bin/vmware-uninstall-tools.pl".

17. If you need to install in the Gnome GUI graphical interface, simply unzip the file, then right-click in the folder, select "Open in Terminal" and enter "./vmware-install.pl" in Terminal.

Installation failure

18. If a similar error occurred during installation, prompting that Open-vm-tools could not be removed, it may be due to the last installation failure.

19. If the attempt to enter "/usr/bin/vmware-uninstall-tools.pl" still cannot be uninstalled, enter "Rpm-e open-vm-tools-desktop" to uninstall and reinstall.

The above is the whole content of this article, I hope that everyone's study has helped.

Reprint : http://www.linuxidc.com/Linux/2017-05/143323.htm

Linux (CentOS 7) command line mode installation VMware Tools detailed

Related Article

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.