Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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>
@diveyez
Copy link

diveyez commented Feb 10, 2018

Thanks!

@sckull
Copy link

sckull commented Feb 24, 2018

This works on Kali 2018? :d

@SaltFatman
Copy link

SaltFatman commented Mar 12, 2018

Yep

@jeiydee
Copy link

jeiydee commented May 22, 2018

doesn't seem to work for Kali 2018 (rolling) and getting this error:

Err:1 http://http.kali.org/kali kali-rolling/main amd64 xfce4-terminal amd64 0.8.7.4-1
404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/x/xfce4-terminal/xfce4-terminal_0.8.7.4-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Did apt-get update and apt-get update --fix-missing but still can't seem to install xfce on Kali properly. Kali 2018 rolling is installed in Virtualbox.

@mouadessalim
Copy link

mouadessalim commented Jun 14, 2018

c'est ecrit en francais ''installer'' a la place de install

@kuamit5516
Copy link

kuamit5516 commented Jun 29, 2018

Ign:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 libexo-common all 0.12.1-1
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libexo-common all 0.12.1-1
Connection failed [IP: 140.138.144.170 80]

@blakkabwoy
Copy link

blakkabwoy commented Jul 5, 2018

@jeiydee have you fix 404 not found ..??

@taylanbildik
Copy link

taylanbildik commented Nov 3, 2018

@jeiydee have you fix 404 not found ..??

Try with https
Change sources.list with that;
deb https://http.kali.org/kali kali-rolling main non-free contrib
Source

@wickstargazer
Copy link

wickstargazer commented Feb 7, 2019

have anyone fixed the 404 not found on windows subsystem?

@se2030
Copy link

se2030 commented Oct 10, 2019

Thanks ❤️

@und3fined404
Copy link

und3fined404 commented Jan 13, 2020

Gnome still is visible from login panel

@SamZapata
Copy link

SamZapata commented Mar 3, 2020

Thank you! it's very useful

@kaimate
Copy link

kaimate commented Jun 22, 2020

very helpful
thank u so much

@eliyatos
Copy link

eliyatos commented Jul 16, 2020

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

jayluxferro commented Jul 17, 2020

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

SurajShahJaru commented Aug 24, 2020

Do it also work in nethunter

@jayluxferro
Copy link
Author

jayluxferro commented Sep 25, 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.

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

jayluxferro commented Sep 25, 2020

Do it also work in nethunter

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

@midhunvnadh
Copy link

midhunvnadh commented Oct 24, 2021

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

@jayluxferro
Copy link
Author

jayluxferro commented Oct 24, 2021

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

midhunvnadh commented Oct 24, 2021

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

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