kali linux 2020版
将kali的更新源切换成国内的源
sudo su - //root权限
kali //密码
sudo apt-get install leafpad //安装文本编辑器
vim /etc/apt/sources.list //打开文件
将默认的源文件替换
(下面介绍替换的具体操作,熟悉Linux操作指令)
输入 i 进入编辑模式(编辑的就是刚打开的sources.list文件)
将旧的源文件删掉或者注释掉(里面除了原来的更新源都是注释,不用怕删掉不该删的)
将新的更新源复制粘贴到该文件中,注意Linux终端下粘贴快捷键是:Ctrl + Shift + V
按 ESC 退出编辑模式,按 : 再按 wq 保存,回车就完成了
apt-get update & apt-get upgrade //更新
apt-get dist-upgrade
apt-get clean
查看系统版本 命令:lsb_release -a
查看内核版本 命令:uname -r
更新源:
#中科大
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
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src 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
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
中文设置问题解决方案
1.在root用户下直接输入“dpkg-reconfigure locales”命令,如果是kali普通用户则输入“sudo dpkg-reconfigure locales” 然后输入密码kali
2.先找到en_US.UTF-8,空格键取消它,然后再找到zh_CN.UTF-8,空格键选中
3.单击确定后,下一界面,选择zh_CN.UTF-8,确定
4.然后reboot重启生效
5.重启后会出现乱码,再次打开终端,输入“apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy”下载中文字体
#安装中文字体:(1)
sudo apt-get install xfonts-intl-chinese
#输入当前用户密码
#安装中文字体:(2)
sudo apt-get install ttf-wqy-microhei
#输入当前用户密码
6.之后reboot重启,重启后就完成了kali的中文配置