![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=1739246717-AJ3fiZLslzlQcRkrW6bmbGRZ3EyQ5sNO-0-345269fbfcd7649c6891cc7655c5da2e)
- 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=1739246717-YxNZw6H05IFbDHa4uWme9vDjbBYnPyON-0-b495c1270b490490d44c5e4af51b3d07)
- 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=1739246717-bPBFFVwTKLwr71mC0PJozBC2DHbywdHA-0-19cdc17def3b94579299fd80bf66ad3b)
Now let's have a look at the configuration of MATE environment.