Recently, due to inexplicable reasons, my original 2019.2 kali system failed to enter. At that time, the snapshot was deleted, so I reinstalled a kali and recorded it here.
- Initial configuration
- Configuration source
vi /etc/apt/sources.list
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
#中科大
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
apt update & apt upgrade -y
- Install Google Input
apt-get install fcitx
apt-get install fcitx-googlepinyin
Activate after restart
- Choose terminal
apt install xfce4-terminal
Settings--Preferred Application--Utilities--Select the default terminal in the terminal emulator
- Terminal + folder quick start
Keyboard--settings--application shortcuts
exo-open --launch FileManager 文件
xfce4-terminal 终端
- Install veil
apt install veil
- Install tomcat9
apt install tomcat9
- pip change source + configure python
#pip换源
cd /root
mkdir .pip&cd .pip
mousepad pip.conf
#加入下列2行并保存
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
#初始kali没有安装pip2
python2 -m pip install -U pip
#安装python3
apt install python3
#配置python,便于随时选择
update-alternatives --install /usr/bin/python python /usr/bin/python2 100
update-alternatives --install /usr/bin/python python /usr/bin/python3 150
#选择默认python版本
update-alternatives --config python
- Firefox login
Log in to Firefox, sync add-ons and bookmarks
- Set alias
Since kali is the mousepad editor by default, it is convenient to set an alias for it
moousepad /root/.bashrc
#添加下面几行,并保存
alias ms='mousepad'
alias pversion="python -V&python2 -V&python3 -V&pip -V&pip2 -V&pip3 -V"
#激活
source /root/.bashrc
- Modify terminal color
Because the terminal colors of root users and individual users are different, the root user terminal color is only white, but individual users are the same as the 2019 version of kali. The username @kali is red, so I want to change it to the same as before
#root用户
#备份原来的终端配置
cp /root/.bashrc .bashrc.bak
#复制用户名的终端配置
cp /home/用户名/.bashrc /root/.bashrc
ms /root/.bashrc
#修改
if [ "$color_prompt" = yes ]; then
prompt_color='\[\033[1;34m\]'
path_color='\[\033[1;32m\]'
if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user
prompt_color='\[\033[1;31m\]'
path_color='\[\033[1;34m\]'
fi
里面的第二三行改为
if [ "$color_prompt" = yes ]; then
prompt_color='\[\033[1;31m\]' #这里
path_color='\[\033[1;34m\]' #这里
if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user
prompt_color='\[\033[1;31m\]'
path_color='\[\033[1;34m\]'
fi
source /root/.bashrc