如何在Linux命令行模式安装VMware Tools

如题所述

第1个回答  2016-04-12
第1步:确保光盘已插入

第2步:安装VMwareTools功能增加包(请用root用户登陆系统):
创建/media/cdrom目录:
[root@linuxprobe ~]# mkdir -p /media/cdrom

将光驱设备挂载到该目录上:
[root@linuxprobe ~]# mount /dev/cdrom /media/cdrom

进入到该挂载目录:
[root@linuxprobe ~]# cd /media/cdrom

将功能增强包复制到/home目录中:
[root@linuxprobe cdrom]# cp VMwareTools-9.9.0-2304977.tar.gz /home

进入到/home目录中:
[root@linuxprobe cdrom]# cd /home

解压功能增强包:
root@linuxprobe home]# tar xzvf VMwareTools-9.9.0-2304977.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/FILES
vmware-tools-distrib/doc/
vmware-tools-distrib/doc/open_source_licenses.txt
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/doc/README
vmware-tools-distrib/installer/
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/installer/guestproxy-ssl.conf
vmware-tools-distrib/installer/thinprint.sh
vmware-tools-distrib/installer/upstart-job.conf
………………此处省略解压过程细节………………

进入解压文件夹中:
[root@linuxprobe home]# cd vmware-tools-distrib/

运行安装脚本并加上参数-d,代表默认安装:
[root@linuxprobe vmware-tools-distrib]# ./vmware-install.pl -d
The installer has detected an existing installation of open-vm-tools on this
system and will not attempt to remove and replace these user-space
applications. It is recommended to use the open-vm-tools packages provided by
the operating system. If you do not want to use the existing installation of
open-vm-tools and attempt to install VMware Tools, you must uninstall the
open-vm-tools packages and re-run this installer.
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes]
………………省略部分安装过程………………
当您看到这个字样后,重启后即可正常使用VmwareTools啦。
Creating a new initrd boot image for the kernel.
Starting Virtual Printing daemon: done
Starting vmware-tools (via systemctl): [ OK ]
The configuration of VMware Tools 9.9.0 build-2304977 for Linux for this
running kernel completed successfully.
Enjoy,
--the VMware team

第3步:重新启动系统后生效:
[root@linuxprobe ~]# reboot

这个在《linux就该这么学》的第一章里有详细介绍,你可以去看一下。希望对你有所帮助^-^
第2个回答  2016-04-11

命令行下安装vmtools

    首先先把光盘放到iso里面(可以手动找到iso加入还可以用安装vmtool选项自己加入。)

    df查看iso是否加入,如果没有就手动添加ISO文件)

    挂载:mount /dev/sr0 /mnt

    cd mnt .    .cp * /root/        //拷贝到 /root  下

    tar -zxvf /root/vm**

    cd vm **

    ls   找到安装可执行文件

    ./ 可执行文件    //安装

    init 6  ok

    安装linux 的vmtools详情请参考《linux就该这样学》。linux学习的前期为了培养兴趣,大家可以安装图形化,在学习的后期,希望大家还是能够使用命令行。ls查看文件,pwd查看当前位置就是这个样子,希望能够帮助到你

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网