主机: 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)

其实Debian6的DVD1就够用了。

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

7、在debian6的终端下输入mount

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

这是我们想要的。

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

完!!

安装Vmware增强工具的更多相关文章

  1. VMare中安装“功能增强工具”,实现CentOS5.5与win7host共享文件夹的创建

    读者如要转载,请标明出处和作者名,谢谢. 地址01:http://space.itpub.net/25851087 地址02:http://www.cnblogs.com/zjrodger/ 地址03 ...

  2. CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED]

    在VirtualBox里安装CentOS系统,会遇到“增强工具”无法正常安装,主要的原因是出在Kernel 库找不到. 错误提示如下:  通过查看日志文件: cat /var/log/vboxadd- ...

  3. 宿主系统为Ubuntu 14,CentOS 6.5 安装VirtualBox增强工具失败:Building the OpenGL support module[FAILED]

    安装先前的笔记:CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED],执行了以下命令 #安装 ...

  4. 【申嵌视频】5-1 ubuntu下安装VMWare Tools工具

    [申嵌视频]5-1 ubuntu下安装VMWare Tools工具 适合搭建mini2440, Tiny6410, smart210,Tiny4412, NanoPC-T2, NanoPC-T3, N ...

  5. Linux下 安装VMware Tools工具

    Linux下需要安装VMware Tools工具 Linux下需要安装VMware Tools工具来实现主机和虚拟机直接文件复制粘贴功能,安装方法如下: ①点击虚拟机VM菜单栏--虚拟机--安装VMw ...

  6. 虚拟机Linux_Mint中安装vmtools增强工具

    一开始用VmwarePro安装Linux系统时,系统的整体界面会缩在屏幕中间的一小块区域内.如图: ​ 看的会非常吃力.为了更好的解决这个问题,就需要安装Vmtools增强工具.安装步骤如下: 1. ...

  7. VirtualBox 5.0.10 中 Fedora 23 在安装了增强工具后无法自动调节虚拟机分辨率的问题(改)

    VirtualBox 5.0.10 中安装 Fedora 23,即使在安装了增强工具后,仍然会发现虚拟机无法根据 VirtualBox 的运行窗口大小自动进行分辨率调节.究其原因,主要是因为 Fedo ...

  8. 【Linux】VMware安装VMware Tools工具

    VMware Tools是VMware虚拟机中自带的一种增强工具,相当于VirtualBox中的增强功能(Sun VirtualBox Guest Additions),是VMware提供的增强虚拟显 ...

  9. Debian安装VirtualBox增强工具

    切换到root用户: apt-get install build-essential 或者 apt-get install gcc make apt-get install dkms apt-get ...

随机推荐

  1. Jquery+Ajax+asp.net+sqlserver-编写的通用邮件管理(源码)

    开始 邮件管理通常用在各个内部系统中,为了方便快捷的使用现有的代码开发一个邮件管理系统而诞生的. 准备条件 这是我的设计表结构,大家一看就懂了   --邮件接收表CREATE TABLE [dbo]. ...

  2. zuul sample

    https://github.com/kakawait/uaa-behind-zuul-sample/ 1.参考资料 项目:https://github.com/kakawait/uaa-behind ...

  3. Selenium WebDriver-操作复选框

    #encoding=utf-8 import unittest import time import chardet from selenium import webdriver class Visi ...

  4. 大数据学习——scala的wordCount小例子

    val lines=List("hello tom hello jerry","hello tom hello kitty hello china") //方法 ...

  5. day01_14.遍历数组

    <?php $a = array('a','b','c'); print_r($a); ?> 输出结果:Array ( [0] => a [1] => b [2] => ...

  6. Python生成器、三元表达式、列表生成式、字典生成式、生成器表达式

    什么是生成器:只要函数内部包含有yield关键字,那么函数名()的到的结果(生成器地址)就是生成器,再调用函数不会执行函数内部代码这个生成器本身有  _iter_  he  _next_功能(即生成器 ...

  7. GUI——AWT框架和容器,创建简单窗体

    GUI概述:GUI(Graphical User Interface)—图形化用户界面.用户和程序之间可以通过GUI能方便友好地进行交互,在Java语言中,JFC(Java Foundation Cl ...

  8. poj 1523 SPF 求割点以及删除该割点后联通块的数量

    SPF Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 7136   Accepted: 3255 Description C ...

  9. C++大数相加

    c++ string sum(string s1,string s2) { if(s1.length()<s2.length()) { string temp=s1; s1=s2; s2=tem ...

  10. 【bzoj2346】[Baltic 2011]Lamp 堆优化Dijkstra

    题目描述 2255是一个傻X,他连自己家灯不亮了都不知道.某天TZ大神路过他家,发现了这一情况,于是TZ开始行侠仗义了.TZ发现是电路板的问题,他打开了电路板,发现线路根本没有连上!!于是他强大的脑力 ...