shell代码
#!/bin/bash
echo "copy sources.list to /etc/apt/sources.list"
sudo cp -rf sources.list /etc/apt/ #更换阿里源
echo "apt-get update..."
sudo apt-get update && apt-get clea #同步源列表
#sudo apt-get update && apt-get upgrade && apt-get clea #更新全部软件
echo "install Chinese support"
sudo apt-get install xfonts-intl-chinese #安装中文支持
sudo apt-get install ttf-wqy-microhei
echo "locale language"
sudo dpkg-reconfigure locales
进入图形化界面之后,(空格是选择,Tab是切换,*是选中),选中en_US.UTF-8和zh_CN.UTF-8,确定后,将en_US.UTF-8选为默认。
sources.list文件内容,用于替换系统的sources.list
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
# aliyun
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