![Kali Linux:An Ethical Hacker's Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/618/36700618/b_36700618.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
To configure the Xfce environment follow the given steps:
- We start by using the following command to install Xfce along with all plugins and goodies:
apt-get install kali-defaults kali-root desktop-base xfce4
xfce4-places-plugin xfce4-goodies
The following screenshot shows the preceding command:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/05b0e78d-ada6-4888-84c3-2a14a50b42d0.png?sign=1738955864-IFLc33n6JuuhSoJAihKsJD3vTTylm4pl-0-b238e4fc4cec2048f5c16ee06d75f2a0)
- Type Y when it asks for confirmation on additional space requirements.
- Select Ok on the dialogue box that appears.
- We select lightdm as our default desktop manager and press the Enter key.
- When the installation is complete we 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/364BC0/19470402501612306/epubprivate/OEBPS/Images/d8587cd6-080c-486b-98c1-5138a62f359b.png?sign=1738955864-iRMUg1nnrlDwEs79pbIICYZQrc5ypCxf-0-f744677f66dca4b6258932197e9a310b)
- Choose the option xfce4-session (in our case 3) and press the Enter key.
- Log out and log in again or you can restart the machine and we will see the Xfce environment:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/57d85b07-5447-4d19-8cc4-38865bd9d93c.png?sign=1738955864-LpYiNKkEeJDhJEc5MA5TYUimo2QkDJy1-0-df102d89215b4db4478cb553499ff039)