zoukankan      html  css  js  c++  java
  • 安装Vmware增强工具

    主机: Win7

    虚拟机: VMware8.0+Debian6

    目标: 离线安装软件包和VMware Tools

    在虚拟机上安装完debian6后

    1.在vmware的菜单中选择Vm->install vmware-tools,这个时候vmware就会把安装文件挂载到到你的cdrom。

    2.进入你的cdrom,将VMwareTools-8.8.1-528969.tar.gz到/tmp目录下

    3、进行安装,由于debian6刚刚安装完成,还没有安装gcc等编译工具,所以这次安装时但询问关于gcc的问题时可以先选no,因为我怕下面挂载虚拟光驱或者U盘无法挂载到虚拟机下

    4、重启虚拟机。

    5、安装一个虚拟光驱软件或者将debian6的dvd光盘镜像(如debian-6.0.9-i386-DVD-1)拷贝到U盘中,如果使用的是虚拟光驱,用该软件打开debian6的dvd光盘镜像(如debian-6.0.9-i386-DVD-1),打开后,在我的电脑下多了如下图标:(推荐一款虚拟光驱软件:DAEMON Tools Lite)

    image

    其实Debian6的DVD1就够用了。

    6、通过点击如下设置可以将虚拟光驱加载到虚拟机中,或者将U盘挂载到虚拟机中。

    image

    7、在debian6的终端下输入mount

    image这就是挂载的光盘镜像,看一下其中的内容:

    image这是我们想要的。

    8、修改/etc/apt/sources.list文件,将内容改成如下样子:

       1:  #
       2:   
       3:  # deb cdrom:[Debian GNU/Linux 6.0.9 _Squeeze_ - Official i386 DVD Binary-1 20140215-12:23]/ squeeze contrib main
       4:   
       5:  #deb cdrom:[Debian GNU/Linux 6.0.9 _Squeeze_ - Official i386 DVD Binary-1 20140215-12:23]/ squeeze contrib main
       6:   
       7:  # Line commented out by installer because it failed to verify:
       8:  #deb http://security.debian.org/ squeeze/updates main contrib
       9:  # Line commented out by installer because it failed to verify:
      10:  #deb-src http://security.debian.org/ squeeze/updates main contrib
      11:   
      12:  # squeeze-updates, previously known as 'volatile'
      13:  # A network mirror was not selected during install.  The following entries
      14:  # are provided as examples, but you should amend them as appropriate
      15:  # for your mirror of choice.
      16:  #
      17:  # deb http://ftp.debian.org/debian/ squeeze-updates main contrib
      18:  # deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib
      19:  deb file:///media/cdrom0  squeeze main contrib
     
    关键是最后一行

    9、执行sudo apt-get update

    10、安装如下软件:

      apt-get install build-essential

      apt-get install dkms

      apt-get install open-vm-dkms

      apt-get install linux-headers-`uname -r`

    11、重新安装VMware Tools,这下关于gcc的部分就可以自动识别正确了,一路回车就可以了。因为第一次安装VMware Tools安装的不完全,比如共享文件夹就无法自动挂载,之所以要执行第一次安装VMware Tools,是因为我怕无法挂载虚拟光驱或者U盘到虚拟机。

    如果虚拟机可以方便联网,就不用这么做了,这时,先更新一下sources.list,推荐163的源,然后update,然后直接执行第10步和第11步即可。debian6的DVD1中含有了我们常用的软件,如果有镜像,就可以不用每次都联网了,毕竟有时联网不方便。离线安装软件,速度很快!!

    163的源:

       1:  deb http://mirrors.163.com/debian/ squeeze main non-free contrib
       2:  deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
       3:  deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib
       4:  deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib

    完!!

  • 相关阅读:
    c#自动更新+安装程序的制作
    VS2013项目受源代码管理向源代码管理注册此项目时出错
    WinDbg配置和使用基础
    InstallShield Limited Edition for Visual Studio 2013 图文教程(教你如何打包.NET程序)
    PowerDesigner 如何生成数据库更新脚本
    用户故事(User Story)
    Troubleshooting Record and Playback issues in Coded UI Test
    Coded UI
    compare two oracle database schemas
    How to: Use Schema Compare to Compare Different Database Definitions
  • 原文地址:https://www.cnblogs.com/pengdonglin137/p/3799689.html
Copyright © 2011-2022 走看看