Kali Linux 官网近日更新了2019年最后一个版本--kali linux 2019.4。具体更新细节参考官网:https://www.kali.org/news/kali-linux-2019-4-release/
首先进行版本升级,或者下载全新版本os:
下载地址:https://www.kali.org/downloads/
apt update &&apt upgrade && apt dist-upgrade
apt -y full-upgrade
查看升级后的版本
kali:~# uname -r
5.3.0-kali2-amd64
kali:~# uname -v
#1 SMP Debian 5.3.9-3kali1 (2019-11-20)
kali:~# cat /etc/os-release |grep VERSION
VERSION="2019.4"
VERSION_ID="2019.4"
VERSION_CODENAME="kali-rolling"
查看当前桌面环境:
kali:~# echo $DESKTOP_SESSION
gnome
安装xfce桌面环境:
xfce相对gnome来说占用资源会大幅降低,使用起来会更加流畅。
kali:~# apt -y install kali-desktop-xfce
安装完成后进行桌面切换
kali:~# update-alternatives --config x-session-manager
kali:~# update-alternatives --config x-session-manager
There are 3 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).
Selection Path Priority Status------------------------------------------------------------
* 0 /usr/bin/gnome-session 50 auto mode
1 /usr/bin/gnome-session 50 manual mode
2 /usr/bin/startxfce4 50 manual mode
3 /usr/bin/xfce4-session 40 manual mode
Press <enter> to keep the current choice[*], or type selection number:
输入3启动xfce4后重启系统
kali:~# reboot
重启后重新登录系统,已经成功将桌面环境更换为Xfce,如图所示:
可选:
卸载Gnome环境
kali:~# apt remove gnome-core
kali:~#apt remove gnome-shell
kali:~# apt autoremove