![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=1738928125-dNL3Ho7SdjeLDLnvON3Jhz9AipPMNNoD-0-f0b1a1a98d10b767419b8d333b842d3b)
- 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=1738928125-5AeVimi51pGBAxjpJCJreEQ9eDdYrnjd-0-0768619196d1bfa84958f973c88542fc)
- 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=1738928125-xkSU6P49mTWZfZ8JYxWSJ3m2T3ZVjjgW-0-ba53c995cb1c67dc405369ddb3b2a09b)