![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=1738838250-Y7rbqkNINOsfIFlyvUy7TMKC0EcTJw6l-0-2849d7ddac02a64040cf96c54caece94)
- 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=1738838250-4Qwald0iDOOMd1X4gAEdqjPlPqYEkRJc-0-5723d496bfaf24c67824fb06aa2c1d90)
- 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=1738838250-Frv0iaIUJ9Mon0xdnpoGzOGixiFsz3IW-0-30cc091b5d67fae7c97b5abdc0ad3a92)
Now let's have a look at the configuration of MATE environment.