![Kali Linux:An Ethical Hacker's Cookbook(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/772/36698772/b_36698772.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
- We start by using the following command to install Xfce, along with all its plugins and goodies. If for some reason it fails, we should run apt update first:
apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies
The following screenshot shows the preceding command:
![](https://epubservercos.yuewen.com/E581D7/19470380608818806/epubprivate/OEBPS/Images/ee627710-1c86-4505-bd21-b3140a175004.png?sign=1738839653-dsCOOKYp0X1Q1gV8hiP4tca3lNzp2ajc-0-44f35eb4d02342caabed8c7ed87e0273)
- Type Y when it asks for confirmation on additional space requirements.
- Select OK on the dialog box that appears.
- Select Lightdm as our default desktop manager and press Enter.
- When the installation is complete, open a Terminal window and type the following command:
update-alternatives --config x-session-manager
The following screenshot shows the output of the preceding command:
![](https://epubservercos.yuewen.com/E581D7/19470380608818806/epubprivate/OEBPS/Images/539faf61-ebbf-480d-9c57-5013ed366349.png?sign=1738839653-UWJJWH0oZgMfCM5vf2c3bpihhshirA2W-0-3b8af21141db572108784bc9f0ebd099)
- Choose the xfce-session option (in our case, 3) and press Enter.
- Log out and log in again, and we will see the Xfce environment:
![](https://epubservercos.yuewen.com/E581D7/19470380608818806/epubprivate/OEBPS/Images/a167ddd1-9624-4a48-9574-c003b9930d47.png?sign=1738839653-1P3X2yeIkCC05h7mAWmGaZihxfFpq3S5-0-95b6d74e6c439c7f9d43ed23d433c5e4)
Now let's have a look at the configuration of MATE environment.