首页 > 代码库 > 安装VMtools

安装VMtools

虚拟机版本  VMware Workstation Pro 12.1.1
kali版本 debian 
 
apt-get install linux-headers-$(uname -r)查看是否有内核头文件
更新linux的源,使用中科大的源
 
  vi   /etc/apt/sources.list
 
 
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security/sana/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security/sana/updates main contrib non-free
 

#中科大kali源

deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib

deb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free

deb-src http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free

 

#阿里云kali源

deb http://mirrors.aliyun.com/kali sana main non-free contrib

deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free

deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
 
#debain源
deb http://mirrors.163.com/debian/ wheezy main contrib
deb http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib
deb-src http://mirrors.163.com/debian/ wheezy main contrib
deb-src http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib
 
#debian安全更新源
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
 
#阿里云kali源
deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free
 
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
 
#新加坡kali源
#deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
#deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
#deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
#deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
 
#Kali-Security
#deb http://security.kali.org/ kali/updates main contrib non-free
#deb-src http://security.kali.org/ kali/updates main contrib non-free
 
apt-get update 源索引更新
apt- get upgrade 软件包更新
 
 
 
 
最终可用的源
  1. #中科大  
  2. deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib  
  3. deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib  
  4. deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free  
 
 

apt-get dist-upgrade

apt-get update & apt-get upgrade
apt-get clean
 
1. 先把虚拟机加载的镜像弹出。关闭虚拟机,编辑虚拟机配置,将光盘修改为使用物理CD光驱。重新启动虚拟机。
2. 安装Vmware Tools前需要安装内核
apt-get install linux-headers-$(uname -r)
3. 打开光盘所在目录,将Vmware-tools的安装文件(Vmware-tools.***.tar.gz这个文件)拷贝到HOME目录。
4. 解压缩(tar)该安装文件,并安装vmware-tools.

tar zxvf VMwareTools-9.9.0-2304977.tar.gz

 
cd vmware-tools-distrib/
./vmware-install.pl
 重启
reboot

安装VMtools