![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=1739282137-uPHW0dLDBxxtryN3tbIk2xn43wdTddLR-0-530ba4b93de9710f8cea9f71bc36f2b5)
- 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=1739282137-iOPTVWhBSc2vM6LH98VAhWn9guXE2ulx-0-a3b6d91e13e543cf5b7b0d2421e1027b)
- 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=1739282137-gpwDaE4tBVNjJZ4U3BUHNLLfqNnTM7ag-0-6af8b512da6a4b35d113dcaf7eff5bee)
Now let's have a look at the configuration of MATE environment.