Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayluxferro/5cb6ee45726bd30264918df2b0553b70 to your computer and use it in GitHub Desktop.
Save jayluxferro/5cb6ee45726bd30264918df2b0553b70 to your computer and use it in GitHub Desktop.
Kali Desktop Environments Installation and Removal

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

 apt-get remove xfce4 xfce4-places-plugin xfce4-goodies

KDE Desktop


How to install KDE Plasma Desktop Environment in Kali Linux:

Command:

 apt-get install kali-defaults kali-root-login desktop-base kde-plasma-desktop

How to install Standard Debian selected packages and frameworks in Kali Linux:

Command:

 apt-get install kali-defaults kali-root-login desktop-base kde-standard

How to install KDE Full Install in Kali Linux:

Command:

 apt-get install kali-defaults kali-root-login desktop-base kde-full

How to remove KDE on Kali Linux:

Command:

 apt-get remove kde-plasma-desktop kde-standard

LXDE Desktop


How to install LXDE Desktop Environment in Kali Linux:

Command:

 apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base

How to remove LXDE on Kali Linux:

Command:

 apt-get remove lxde-core lxde

GNOME Desktop


How to install GNOME on Kali Linux:

Command:

 apt-get install gnome-core kali-defaults kali-root-login desktop-base

How to remove GNOME on Kali Linux:

Command:

 apt-get remove gnome-core

Cinnamon Desktop


How to install Cinnamon Desktop Environment in Kali Linux:

Command:

 apt-get install kali-defaults kali-root-login desktop-base cinnamon

How to remove Cinnamon Desktop Environment in Kali Linux:

Command:

 apt-get remove cinnamon

MATE Desktop


How to install MATE Desktop Environment in Kali Linux:

This installs the base packages

Command:

 apt-get install kali-defaults kali-root-login desktop-base mate-core

Or this to install mate-core and more extras

Command:

 apt-get install kali-defaults kali-root-login desktop-base mate-desktop-environment

Or this to install mate-core + mate-desktop-environment and even more extras.

Command:

 apt-get install kali-defaults kali-root-login desktop-base mate-desktop-environment-extra

How to remove MATE Desktop Environment in Kali Linux:

Command:

 apt-get remove mate-core

Now the only problem is MATE doesn't show the nice Kali Linux Menu. Fix posted by Silver Moon

To fix this edit the following file. Command:

 leafpad /etc/xdg/menus/mate-applications.menu

In the file go down to the section named Internet and add the following line HTML Code:

<!-- Kali Linux Menu -->
<MergeFile type="path">applications-merged/kali-applications.menu</MergeFile>

So it should look something like this HTML Code:

 <!-- Internet -->
  <Menu>
    <Name>Internet</Name>
    <Directory>mate-network.directory</Directory>
    <Include>
      <And>
        <Category>Network</Category>
      </And>
    </Include>
  </Menu>   <!-- End Internet -->
<!-- Kali Linux  -->    
  <MergeFile type="path">applications-merged/kali-applications.menu</MergeFile>
@wickstargazer
Copy link

have anyone fixed the 404 not found on windows subsystem?

@Sami-000
Copy link

Thanks ❤️

@und3fined404
Copy link

Gnome still is visible from login panel

@SamZapata
Copy link

Thank you! it's very useful

@kaimate
Copy link

kaimate commented Jun 22, 2020

very helpful
thank u so much

@eliyatos
Copy link

E: Unable to locate package gnome-core
E: Package 'kali-root-login' has no installation candidate

how can i fix this

@jayluxferro
Copy link
Author

E: Unable to locate package gnome-core
E: Package 'kali-root-login' has no installation candidate

how can i fix this

Please make sure you have the following sources list

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

or

deb https://http.kali.org/kali kali-rolling main non-free contrib
deb-src https://http.kali.org/kali kali-rolling main non-free contrib

@balk634
Copy link

balk634 commented Aug 8, 2020

but how to switch from gnome to KDE. i tried using "sudo update-alternatives --config x-session-manager" and selecting KDE. it doesnt work.

@SurajShahJaru
Copy link

Do it also work in nethunter

@jayluxferro
Copy link
Author

but how to switch from gnome to KDE. i tried using "sudo update-alternatives --config x-session-manager" and selecting KDE. it doesnt work.

If you're using gdm, you can select which desktop environment is should use on the login view; i.e. if you have already installed the kde plasma desktop.

@jayluxferro
Copy link
Author

Do it also work in nethunter

I think it should. I haven't tried it on nethunter.

@midhunvnadh
Copy link

I have made a smaller single command for doing this.
It is demonstrated on this video: https://youtu.be/NYIQy4p1fNs

@jayluxferro
Copy link
Author

I have made a smaller single command for doing this.
It is demonstrated on this video: https://youtu.be/NYIQy4p1fNs

Your video doesn’t show the installation of different desktop environment on nethunter.

@midhunvnadh
Copy link

I will surely make a new video and let you know ;)

@mayur533
Copy link

Does it work on nethunter

@mayur533
Copy link

Does it work on nethunter

@mayur533
Copy link

Does it work on nethunter

@merlor42
Copy link

for me it doesnt work there is e: unable to fetch some archives

@mayur533
Copy link

mayur533 commented Feb 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment