kali 2020 to change the source, Chinese support

shell code

#!/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

After entering the graphical interface (box selecting, Tab is a handover, * is selected), and select en_US.UTF-8 zh_CN.UTF-8, after determining the en_US.UTF-8 as the default.

sources.list sources.list file content, the system used to replace

# 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

 

Published 42 original articles · won praise 6 · views 10000 +

Guess you like

Origin blog.csdn.net/u014101410/article/details/104705356