zoukankan      html  css  js  c++  java
  • Linux系统安装VM-Tools

    安装
    vmware-tools的安装包有两个,一个是rpm包,一个是tar包,下面分别是用了这两种方法安装:
    
    一、rpm包安装
    1.在启动LINUX 虚拟机之后,在WMWare 的菜单栏中点击"VM",然后点击下拉菜单中的"Install VMware TOOLS"选项。
    
    2.挂载光驱:
    [root@localhost ~]# mount /mnt/cdrom /mnt/
    [root@localhost ~]# rpm -ivh /mnt/VMwareTools-6.0.0-45731.i386.rpm 
    
    然后会出现安装过程,安装完之后
    
    [root@localhost ~]# cd /usr/bin 
    
    [root@localhost ~]# ls *.pl
    
    [root@localhost ~]# ./vmware-config-tools.pl 
    
    然后,按提示安装就可以了,安装过程中会闪几下,这是正常的。
    
    最后,按Ctrl+Alt,在左下角不出现"没有安装VMware-tools" 的提示,就说明安装成功了。
    
    二、tar包安装
    1.在启动LINUX 虚拟机之后,在WMWare 的菜单栏中点击"VM",然后点击下拉菜单中的"Install VMware TOOLS"选项。
    
    2.挂载光驱:
    [root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
    
    3.拷贝文件,将该软件包拷贝到LINUX的TMP目录(这个自选)下:
    [root@localhost ~]# cp /mnt/vmware-linux-tools.tar.gz /tmp
    进入TMP目录:
    [root@localhost ~]# cd /tmp
    解压缩该软件包:
    [root@localhost ~]# tar zxvf VMwareTools-6.0.0-45731.tar.gz
    进入解压后的目录: 
    [root@localhost ~]# cd vmware-tools-distrib/
    运行安装命令:
    [root@localhost ~]# ./vmware-install.pl
    以后一路回车即可,这时install提示你是否需要备份以前的配置文件,建议选择"yes"。
    同样,安装完成后在左下角你看不到"没有安装VMware-tools"的提示,就说明安装成功了。
    
    使用
    安装完后,在vm的菜单中vm-setting-option-shared folders ,选择"Enable" ,并指定共享目录就可以了。此外如果已经开启了Selinux,也可能导致共享不能正常使用,可以选择禁用来解决此问题。
    最终可以在虚拟机的file:/mnt/hgfs目录下(Xwindow中)看到共享的windows文件夹了,也可以直接到/mnt/hgfs目录下看到操作共享文件,这样就可以通过这个文件夹实现主机和vm之间的文件传递了。
    ----------------------------------------------------------------------------------------------
    安装VMwareTools的软件包。
    #>rpm –ivh /mnt/VMwareTools-6.0.2-59824.i386.rpm
    (不同版本的vmware这个rpm文件名不同,根据实际情况自定)
     
    进行分辨率的设置
    #>cd /usr/bin
    #>./vmware-config-tools.pl(有些版本的vmware这里是vmware-configure-tool.pl,如果找不到这个文件,就进去/usr/bin里面查找类似的文件)这一步不能少,不然vmware不能在虚机与真机间流畅切换
    输入上述命令后,显示结果如下:
    
    在分辨率设置的地方输入:2(设置显示分辨率为800X600),回车后,见到如下结果:
    
    表示分辨率配置正确。
     
    输入命令:
    #>service vmware-tools start
    启动vmware tools工具


  • 相关阅读:
    Compression algorithm (deflate)
    tcpip数据包编码解析(chunk and gzip)_space of Jialy_百度空间
    What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
    gzip压缩算法: gzip 所使用压缩算法的基本原理
    Decompressing a GZip Stream with Zlib
    Frequently Asked Questions about zlib
    how to decompress gzip stream with zlib
    自己动手写web服务器四(web服务器是如何通过压缩数据,web服务器的gzip模块的实现)
    What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
    C语言抓http gzip包并解压 失败 C/C++ ChinaUnix.net
  • 原文地址:https://www.cnblogs.com/pangblog/p/3331149.html
Copyright © 2011-2022 走看看