一、更新系統(tǒng)
創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供石臺網(wǎng)站建設(shè)、石臺做網(wǎng)站、石臺網(wǎng)站設(shè)計(jì)、石臺網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、石臺企業(yè)網(wǎng)站模板建站服務(wù),十余年石臺做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
1.1 添加更新源地址
root@kali:~# vi /etc/apt/sources.list
在文件結(jié)尾添加更新源地址,并輸入:wq保存
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
1.2 更新系統(tǒng)
以下步驟重復(fù)執(zhí)行2遍
root@kali:~# apt-get update #只更新軟件包的索引源 root@kali:~# apt-get update --fix-missing #當(dāng)update時(shí)出現(xiàn)大量報(bào)錯,實(shí)在沒辦法,添加參數(shù)進(jìn)行更新 root@kali:~# apt-get upgrade #升級系統(tǒng)上安裝的所有軟件包 root@kali:~# apt-get dist-upgrade #進(jìn)行大的版本更新
二、安裝vmtools
2.1 安裝linux頭文件
root@kali:~# apt-get install linux-headers-$(uname -r)
2.2 安裝vmtools
1.單擊vmware菜單--虛擬機(jī)--安裝VMware Tools
2.雙擊打開光驅(qū),將VMwareTools-10.1.6-5214329.tar.gz拷貝到桌面
3.雙擊打開VMwareTools-10.1.6-5214329.tar.gz,并將里面的文件夾解壓到桌面
4.打開vmware-tools-distrib文件夾,在當(dāng)前目錄右鍵選擇--在終端打開
5.開始安裝vmtools
root@kali:~/桌面/vmware-tools-distrib# ls bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl root@kali:~/桌面/vmware-tools-distrib# chmod +x vmware-install.pl root@kali:~/桌面/vmware-tools-distrib# ls -l 總用量 392 drwxr-xr-x 2 root root 4096 3月 17 2017 bin drwxr-xr-x 5 root root 4096 3月 17 2017 caf drwxr-xr-x 2 root root 4096 3月 17 2017 doc drwxr-xr-x 5 root root 4096 3月 17 2017 etc -rw-r--r-- 1 root root 149442 3月 17 2017 FILES -rw-r--r-- 1 root root 2538 3月 17 2017 INSTALL drwxr-xr-x 2 root root 4096 3月 17 2017 installer drwxr-xr-x 15 root root 4096 3月 17 2017 lib drwxr-xr-x 3 root root 4096 3月 17 2017 vgauth -rwxr-xr-x 1 root root 216748 3月 17 2017 vmware-install.pl root@kali:~/桌面/vmware-tools-distrib# ./vmware-install.pl
6.接下來一路回車,然后重啟系統(tǒng)
重啟系統(tǒng)后發(fā)現(xiàn)vmware中的虛擬機(jī)不是全屏,單擊vmware菜單--查看--自動調(diào)整大小--自動適應(yīng)客戶機(jī);然后就能查看到虛擬機(jī)可以全屏了
7.之前安裝過vmtools,但未安裝成功,提示以下代碼:
A previous installation of VMware Tools has been detected. The previous installation was made by the tar installer (version 4). Keeping the tar4 installer database format. You have a version of VMware Tools installed. Continuing this install will first uninstall the currently installed version. Do you wish to continue? (yes/no) [yes] Error: Unable to find the binary installation directory (answer BINDIR) in the installer database file "/etc/vmware-tools/locations". Uninstall failed. Please correct the failure and re run the install. Execution aborted.
解決方法:
rm -rf /etc/vmware-tools rm -rf /tmp/vm*
刪除之后再重新安裝一次
參考文檔:
https://yq.aliyun.com/articles/40014