Kali?Linux?2022.1安裝和相關(guān)配置教程(圖文詳解)
一、安裝系統(tǒng)和設(shè)置中文
(一)下載安裝KaliLInux2022.1
以直接下載虛擬機映像文件為例,下載地址:https://www.kali.org/get-kali/#kali-virtual-machines,下載完成后直接解壓,再用VMware打開后開機,系統(tǒng)啟動后如下圖,初始用戶名和密碼為kali/kali
(二)啟用root用戶
右擊桌面,打開終端界面,也可在頂部快捷菜單中單擊打開終端
sudo passwd root
(三)設(shè)置中文和時區(qū)
dpkg-reconfigure locales
重啟后繼續(xù)以kali用戶登錄,界面已變成中文
設(shè)置時區(qū)
sudo timedatectl set-timezone "Asia/Shanghai"
(四)更改更新源
$ vi /etc/apt/sources.list # 添加以下內(nèi)容: # 中科大kali源 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib # 阿里云kali源 deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib # 清華大學更新源 deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
(五)刷新軟件包緩存
以root用戶執(zhí)行:
apt-get update && apt-get upgrade && apt-get clean reboot
(六)安裝中文輸入法
下載搜狗輸入法:https://pinyin.sogou.com/linux?r=pinyin
#(apt-cache search xxx可以搜索可用軟件包) apt install fcitx sudo dpkg -i sogoupinyin_4.0.0.1605_amd64.deb #也可以安裝:apt install fcitx-table-wbpy #最后卸載ibus apt remove ibus apt autoremove
安裝完成后重新啟動輸入法即可
二、永久調(diào)節(jié)分辨率(可選)
(一)使用CVT獲取想要分辨率的詳細數(shù)值
cvt 1600 900 # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
(二)修改/.profile(或/.bash_profile)
$ vi /etc/profile # 在末尾加入以下內(nèi)容 xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync xrandr --addmode Virtual1 "1600x900_60.00" xrandr --output Virtual1 --mode "1600x900_60.00"
(三)立即生效
source /etc/profile #也可以重啟:reboot
三、設(shè)置python2、python3、pip2、pip3 共存
1.刪除python3.9
系統(tǒng)中已有3.10.4
apt remove python3.9 apt autoremove
2.修改指向python指向python2
su cd /usr/bin rm python ln -s python2 python
3.安裝pip2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py
以上提示pip不在PATH變量中,因此修改~/.zshrc(經(jīng)測試修改.profile沒用)
vi ~/.zshrc #最后一行加入: export PATH=$PATH:/home/xxx/.local/bin #以上xxx為您的用戶名
4.安裝pip3
sudo apt install python3-pip
5.更新pip3
python3 -m pip install --upgrade pip
一切安裝完成
設(shè)置hgfs與宿主機共享文件
比較大的文件通過桌面拖拽不能成功,可以按以下方法設(shè)置共享。
(一)宿主機(Windows)設(shè)置共享文件夾
(二)客戶機(KaliLinux)配置
#以root用戶執(zhí)行以下命令 vmware-hgfsclient mkdir -p /mnt/hgfs/kaliShare vmhgfs-fuse .host:/kaliShare /mnt/hgfs/kaliShare -o subtype=vmhgfs-fuse,allow_other
(三)將hgfs加入fstab自動mount
以root用戶修改/etc/fstab文件
vi /etc/fstab #加入以下內(nèi)容:.host:/kaliShare /mnt/hgfs/kaliShare fuse.vmhgfs-fuse auto,allow_other 0 0 reboot
到此這篇關(guān)于KaliLinux 2022.1安裝和相關(guān)配置的文章就介紹到這了,更多相關(guān)KaliLinux 2022.1安裝內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Archlinux?Timeshift系統(tǒng)備份與還原的操作方法
這篇文章主要介紹了Archlinux?Timeshift系統(tǒng)備份與還原的操作方法,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2023-01-01vscode輸入npm?install報錯:node-sass@8.0.0?install:'node?
這篇文章主要給大家介紹了關(guān)于vscode輸入npm?install報錯:node-sass@8.0.0?install:'node?scripts/install.js'的解決方法,文中通過圖文介紹的非常詳細,需要的朋友可以參考下2023-02-02Python實現(xiàn)用戶登錄并且輸入錯誤三次后鎖定該用戶
這篇文章主要介紹了Python實現(xiàn)用戶登錄并且輸入錯誤三次后鎖定該用戶,文中通過c#代碼給大家補充介紹了密碼輸入三次錯誤后鎖定用戶功能,需要的朋友可以參考下2020-01-01vscode中使用Autoprefixer3.0無效的解決方法
這篇文章主要介紹了vscode中使用Autoprefixer3.0無效的解決方法,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-06-06