Change Desktop Environment in Kali Linux (Switch or Remove)

Logeshwaran

To change the desktop environment in Kali Linux, you never reinstall anything. If the desktop is already on your machine: log out, click the session icon on the login screen (a small gear or badge near the corner), pick Xfce, GNOME, or KDE, and sign in. If it is not installed yet: open a terminal, run sudo apt update && sudo apt install kali-desktop-kde (or kali-desktop-gnome), choose a display manager when the blue screen asks, and reboot. Your tools, files, and settings stay exactly where they were.

⚡ Quick Answer

Switch to a desktop you already have → log out → click the session icon on the login screen → pick the desktop → enter your password.

Add a desktop you don't havesudo apt install kali-desktop-kde (or kali-desktop-gnome, kali-desktop-xfce), then reboot.

Make one the defaultsudo update-alternatives --config x-session-manager

Only reading this box? Use the login-screen picker — full steps for each login screen are here.

Before the details, one fact that rewrites how most people think about Kali: the Xfce, GNOME, and KDE "versions" of Kali Linux are the same operating system. Kali ships one installer, and the desktop is a checkbox on one menu screen during setup — which means any Kali install can be converted into any other "version" with a single command and a logout. The people re-downloading a 4 GB ISO to "get the KDE version" are re-downloading an operating system they already have.

And a second surprise hiding inside the first: the dark desktop in every recent Kali screenshot and tutorial is not GNOME. From Kali 1.0 in 2013 up to version 2019.4, GNOME was the face of Kali — then in November 2019 the project switched its default to Xfce, mainly because Xfce runs comfortably on the low-powered laptops and virtual machines where Kali actually gets used. If your install looks "different from the tutorial," nothing is broken. You are just looking at a different desktop environment — the wrapper of panels, menus, and windows around the same system underneath.

Jake learned the expensive version of this lesson. He runs a small phone repair shop, and a customer trade-in ThinkPad became his diagnostics machine: Kali on it, checking shop Wi-Fi, scanning "my phone is hacked" handsets before quoting a fix. Last year a YouTube tutorial showed Kali with a desktop that looked nothing like his, so he assumed his install was outdated, wiped the laptop on a Saturday, and re-downloaded what he thought was "the new version." The reinstall plus re-setting up his tools ate the whole day, and on Monday — laptop still half-configured — he had to turn away a customer who wanted a phone checked for spyware. An $85 diagnostics job walked out the door, on top of the lost Saturday.

Ethan: "You demolished the building because you wanted new shelving. The desktop environment is the shop fit-out — counters, signage, lighting. The building is Kali. You can rip out the fit-out and put in a new one over a lunch break. Nobody moves the building."

What doing this the wrong way actually costs

The wrong way is the popular way: decide you want a different look, download a fresh ISO, reinstall Kali, then spend hours putting your setup back together. Here is the honest bill for each route:

Route Download Your time What you risk
Reinstall from a new ISO 3–4 GB Half a day to a full day (install + re-configuring tools, wordlists, VPNs, saved scans) Every file and setting on the machine
Install a second desktop with apt Roughly 1.5–2.5 GB of packages 10–20 minutes, mostly unattended Nothing, if you pick the display manager sensibly (covered below)
Switch between desktops already installed Zero Under two minutes Nothing

There is also a running cost people forget: memory. The desktop environment is software that stays loaded the entire time you work. On the 4 GB test VM, a fresh boot into Xfce sat at roughly 0.7 GB of RAM used, KDE Plasma at roughly 1 GB, and GNOME at roughly 1.4 GB. On a modern 16 GB laptop that difference is irrelevant. On a 4 GB trade-in ThinkPad running a scan, a browser, and a note-taking app at once, it is the difference between working and watching a spinner. Not sure what your machine has? Kali will tell you — here is how to check your RAM, processor, and hardware details in Kali from the terminal.

Jake: "So when my laptop crawled after I finally got the fancy desktop working, that wasn't Kali being heavy. That was me putting a chandelier in a shop with a weak ceiling."

Ethan: "That's exactly it. Kali is not heavy. Some fit-outs are."

One warning worth carrying into the next sections: the only genuinely dangerous move in all of this is removing a login screen (SDDM, GDM3, LightDM) while it is still the active one — the next boot stops at a black screen with a blinking cursor. It looks fatal and is not; the removal section below walks through the recovery from that exact state.

The desktops Kali actually offers in 2026

As of Kali 2026.2, the three desktops Kali builds, themes, and supports directly are Xfce (the default), GNOME 50, and KDE Plasma 6.6. Each has a metapackage — a package that installs nothing itself but pulls in everything a desktop needs: the environment, Kali's theming, menus, and wallpapers. This is the machinery behind the fact from the top of the page: the "GNOME version" of Kali is a normal Kali where the installer checked kali-desktop-gnome instead of kali-desktop-xfce. Same repositories, same tools, same kernel. One checkbox.

Desktop Metapackage Idle RAM (4 GB test VM) Pick it if
Xfce (default) kali-desktop-xfce ~0.7 GB You work in VMs or on older hardware, or you want undercover mode
KDE Plasma 6.6 kali-desktop-kde ~1.0 GB You want the most polished, most customizable look and have the RAM
GNOME 50 kali-desktop-gnome ~1.4 GB You already know and like GNOME's full-screen, keyboard-driven workflow

Lighter options exist too — i3, MATE, LXDE, and Enlightenment each have their own kali-desktop-* metapackage. Run apt search kali-desktop to see the current list on your release. And if you are not sure which release you are on, check first — here is how to check your Kali version from the terminal — because a system that has not been upgraded in years can pull in a desktop that fights with old libraries. If you are far behind, upgrade Kali to a current release before adding desktops.

✅ Why Xfce is the one to keep as your base

Kali's own team moved the default to Xfce because it is fast, stable, and stays out of the way on weak hardware — and they were right. Install KDE or GNOME on top if you want them, but keep Xfce installed as your fallback. It costs almost nothing on disk, it will boot on anything, and when a heavier desktop misbehaves after an update, a working Xfce session is the difference between a two-minute fix and an evening of recovery.

Switch between desktops you already have (two minutes)

The switch happens at the login screen, and the login screen is drawn by a program called a display manager — the thing that asks for your password and then launches whichever desktop you chose. Kali's default display manager is LightDM; installing GNOME usually brings GDM3 and KDE brings SDDM, and whichever one you accepted as default during installation is the screen you will see. The picker looks slightly different on each, so here are all three.

Our original 2019 article on this page told you to restart the computer to reach the picker. That was overkill then and it is overkill now: logging out is enough. The desktop environment lives only inside your login session — end the session and you are back at the display manager, free to start a different one. The 2019 version also quietly assumed you already had a second desktop installed and never said what to do if you didn't; the next section fixes that properly.

On Kali's default login screen (LightDM)

Log out (top-right corner → your user name or the power icon → Log Out). On the login screen, look for a small session badge — a gear or an icon button near the top-right corner, next to the accessibility and power icons. Click it, and a menu lists every installed desktop: Xfce Session, Plasma (X11), GNOME, and so on. Pick one, type your password, press Enter. The desktop you selected loads, and LightDM remembers the choice — next login uses the same session until you change it again.

If GNOME's login screen (GDM3) took over

GDM3 hides the picker until it knows who is logging in. Click your user name first, and a gear icon appears in the bottom-right corner of the screen. Click the gear, pick the session, then enter your password. If you type the password without touching the gear, GDM3 launches your previous session — which is why people swear the picker "isn't there" on GNOME. It is; it is just shy.

If KDE's login screen (SDDM) took over

SDDM puts a Session drop-down in a corner of the login screen — bottom-left in the default theme. Open it, choose the desktop, enter your password, done. Same rule as the others: the last-used session sticks until you actively change it.

🙋‍♂️ Jake's Reality Check

"There's no gear, no badge, no drop-down on my login screen. Am I blind or is it broken?"

Neither. You only have one desktop installed. Display managers hide the picker when there is nothing to pick between. Install a second desktop (next section) and the icon appears on its own.

Install a second desktop without breaking the first

Everything installs through apt, Kali's package manager — if that word is new, here is what apt is and what it actually does. The steps, using KDE as the example:

Step 1. Refresh the package lists so you get current versions:

sudo apt update

Step 2. Install the metapackage for the desktop you want:

sudo apt install kali-desktop-kde

Swap in kali-desktop-gnome or kali-desktop-xfce as needed. Expect a download in the 1.5–2.5 GB range and 10–20 minutes, most of it unattended.

Step 3. Partway through, the screen turns blue and asks you to choose a default display manager — LightDM, GDM3, or SDDM. This is the only question in the whole process that can bite you, and the safe answer is boring: keep LightDM. Use the arrow keys to highlight it, press Enter, and the install continues. Any display manager can launch any desktop, so keeping the one that already works costs you nothing.

Step 4. Reboot (or just log out). The session picker now shows the new desktop — select it and log in as described in the switching section above.

One lane marker so you are on the right page: if your actual goal is GNOME specifically — installing it fresh and making it the permanent default in one pass — we have a dedicated walkthrough for installing GNOME on Kali and setting it as default. This page covers the general machinery: switching between any desktops, choosing display managers, defaults, and clean removal.

Jake: "Hold on. The install asked me a question in a blue box with no mouse and I just pressed Enter to make it go away. Was that the display manager thing?"

Ethan: "Almost certainly, and pressing Enter on the highlighted default is usually fine. Think of the display manager as the front door of the shop. Xfce, KDE, GNOME are different interiors, but there's one front door, and any door can open into any interior. The blue screen was asking which door to use. People get into trouble when they later demolish a door without checking it was the one in use — that's the black-screen story coming up."

Make one desktop the default

Two separate mechanisms decide what loads when you log in, and knowing which is which saves real confusion:

1. The display manager's memory. LightDM, GDM3, and SDDM all remember the last session each user picked. For most people this is the default: pick KDE once, and every login is KDE until you pick something else. No command needed.

2. The system-wide default session. This is what loads when there is no remembered choice — a brand-new user, or a session started outside the display manager. Set it with:

sudo update-alternatives --config x-session-manager

update-alternatives is Debian's referee for situations where several programs can do the same job — it keeps a numbered list and lets you crown one. You will see entries like startxfce4, startplasma-x11, and gnome-session. Type the number of the one you want, press Enter.

And if you ever want a different login screen rather than a different desktop, re-run the blue-screen chooser any time with:

sudo dpkg-reconfigure lightdm

The package name just needs to be any installed display manager — the same selection screen appears regardless, with all of them listed.

Remove a desktop cleanly (and the trap that blanks your screen)

Tried KDE for a month, going back to Xfce, want the 2 GB back? Removal is safe if you do three things in order. Done out of order, this is the one operation on this page that can genuinely leave you staring at a black screen.

First: log in to the desktop you are keeping. Never remove the environment you are currently sitting inside — you would be sawing off the branch you are on. Switch to the keeper via the login screen, then open its terminal.

Second: make sure the keeper's display manager is the active one. Run sudo dpkg-reconfigure lightdm and confirm LightDM (or whichever you are keeping) is selected. This is the step that prevents the black screen: if SDDM is drawing your login screen and you delete SDDM, the next boot has no login screen to draw.

Third: purge the metapackage, then sweep up. For KDE:

sudo apt purge kali-desktop-kde sudo apt autoremove --purge

For GNOME, purge kali-desktop-gnome instead. The metapackage is only a shopping list, so the first command removes little by itself; autoremove --purge is what clears out the hundreds of packages that were only there for that desktop. Read the removal list before pressing Y. If it names things you recognize as vital — xorg, network-manager, your keeper's display manager, or any tool you use — answer N and remove more selectively. A minute of reading beats an evening of repair.

⚠️ What this actually breaks if you skip step two

Removing the display manager that is currently active leaves the next boot with no login screen at all: a black screen and a blinking text cursor. The machine is fine underneath — it booted, it just has nothing graphical to show you. On the test VM this exact state took four commands to fix, listed below. It is recoverable, but it feels like a dead system, and that panic is avoidable.

Black screen after removing a desktop — the fix

Press Ctrl + Alt + F3. This drops you to a text console — the graphical layer is gone, but the system underneath is listening. Log in with your normal username and password (typing the password shows nothing on screen; that is normal), then run:

sudo apt update sudo apt install lightdm sudo systemctl enable lightdm sudo reboot

If apt complains that it was interrupted or the package database is locked from the earlier removal, sort that first and re-run the install. After the reboot you are back at a login screen, and everything you did not remove is exactly as you left it.

What actually changes when you switch — and what breaks

The important reassurance first: your tools do not care which desktop is running. nmap, Metasploit, Wireshark, Burp, your scripts, your wordlists, your saved captures — all of it lives below the desktop layer and runs identically on all three. The Kali tool menu, organized into the same numbered categories, appears in Xfce, GNOME, and KDE alike. What does change:

Per-desktop settings do not follow you. Wallpaper, panel layout, fonts, keyboard shortcuts — each desktop keeps its own. Configure Xfce beautifully, switch to KDE, and you start from KDE's defaults. Nothing is lost; Xfce's setup is waiting untouched when you switch back. (Fonts you install system-wide are the exception — they appear everywhere. Installing fonts on Kali works the same on every desktop.)

Your application menu grows duplicates. Each desktop brings its own accessories: after adding KDE next to Xfce you will have two file managers (Thunar and Dolphin), two image viewers, two text editors, and both terminals — xfce4-terminal and Konsole, with GNOME adding its own console on top. Harmless, slightly messy, and it all disappears again if you remove the second desktop.

Undercover mode is Xfce-only. The kali-undercover script that disguises Kali as Windows 10 for working in public still ships in 2026 — and it only works on Xfce. Switch to GNOME or KDE and it is unavailable, which has surprised readers of our undercover mode guide ever since that feature launched. In fact that guide is the reason this page exists: a reader on GNOME asked how to get to Xfce so undercover mode would work.

Mixed-toolkit looks. Xfce apps are built on a toolkit called GTK, KDE apps on Qt. Run a GTK app inside KDE (or the reverse) and it may look slightly off-theme — different buttons, different file dialog. Cosmetic only.

🙋‍♂️ Jake's Reality Check

"I switched to KDE and my terminal looks completely different. Did I lose my command history? My aliases?"

No. You are looking at a different terminal app, not a different shell. Konsole and xfce4-terminal are different windows onto the same Zsh underneath — same history file, same aliases, same everything. Press the up arrow and yesterday's commands are right there.

The special cases: WSL, virtual machines, and old hardware

Kali on Windows (WSL) — there is no login screen to click

If your Kali runs inside Windows Subsystem for Linux, none of the login-screen advice applies, because WSL boots straight to a terminal with no display manager at all. The graphical desktop there comes from Win-KeX: install it with sudo apt install kali-win-kex, then start it with kex --win (desktop in a window), kex --sl (Kali apps floating seamlessly among your Windows ones), or kex --esm (a Remote-Desktop-style session — and the only supported mode on Arm devices). Win-KeX is built around Xfce, and the practical advice is to leave it that way: swapping desktops inside WSL buys you nothing and breaks the tested path. WSL is also where a lightweight desktop pays off most, since Kali is sharing the machine with a running copy of Windows.

Virtual machines and elderly laptops

In VirtualBox or VMware, every megabyte of RAM you give the desktop is taken from the tools — and from the host machine. A VM with 4 GB allotted runs comfortably on Xfce and noticeably heavier on GNOME; if your VM feels slow, switching the desktop is free and often fixes it outright, no reinstall and no extra RAM stick. The same logic applies to Jake's trade-in ThinkPad and every aging laptop like it: the cheapest hardware upgrade is a lighter desktop. Heavier local workloads — say running Google's Gemma 4 AI model offline on Kali — make that arithmetic matter even more, because every gigabyte the desktop hoards is a gigabyte the model cannot use.

One week after Ethan's shelving lecture, Jake's ThinkPad runs Xfce as its daily driver with KDE installed for the days he misses pretty. Total cost of the conversion: one command, one blue-screen question answered with Enter, about fifteen minutes — against the Saturday and the $85 customer the reinstall route cost him last year. The building never moved. He just changed the fit-out.

FAQ — switching desktop environments in Kali

How do I switch desktop environments in Kali Linux without reinstalling?

Log out, click the session icon on the login screen (gear or badge, position depends on your login screen), pick the desktop, and enter your password. If the desktop you want is not installed yet, install its metapackage first — for example sudo apt install kali-desktop-kde — then log out and pick it.

What is the default desktop environment in Kali Linux?

Xfce, and it has been since version 2019.4 in November 2019. Before that, GNOME was the default for six years, which is why older tutorials and screenshots look so different from a current install.

How do I check which desktop environment I am using right now?

Open a terminal and run echo $XDG_CURRENT_DESKTOP. It prints XFCE, GNOME, or KDE. This tells you your current session, which is separate from your Kali release number.

Can I have Xfce, GNOME, and KDE installed at the same time?

Yes. They coexist without conflict, each shows up in the login-screen picker, and only the one you are logged into uses RAM. The costs of keeping all three are disk space (a few GB each) and a cluttered application menu full of duplicate accessories.

How much disk space does a second desktop environment need?

Roughly 1.5 to 2.5 GB installed, depending on the desktop and what your system already has. Apt shows the exact figure — "After this operation, X GB of additional disk space will be used" — before you confirm, so you can back out for free.

Will switching desktop environments delete my tools or files?

No. Tools, files, command history, shell aliases, and saved work all live below the desktop layer and are identical in every session. Only per-desktop cosmetics — wallpaper, panels, shortcuts — differ between environments, and each desktop keeps its own set safely.

Why is there no session icon on my Kali login screen?

Because only one desktop is installed — the picker hides when there is nothing to choose between. Install a second desktop metapackage and the icon appears. On GDM3 (GNOME's login screen) there is a second cause: the gear only appears after you click your user name.

Which display manager should I pick: LightDM, GDM3, or SDDM?

Keep LightDM, Kali's default, unless you have a reason not to. Any display manager can launch any desktop, so the choice is mostly cosmetic — but keeping the one that already works means one less thing changed, and one less suspect if a login problem ever appears.

How do I set the default desktop environment in Kali Linux?

For everyday use, just pick the desktop once at login — the display manager remembers it per user. To set the system-wide fallback too, run sudo update-alternatives --config x-session-manager and choose by number.

How do I completely remove GNOME or KDE from Kali Linux?

Log in to the desktop you are keeping, confirm its display manager is active with sudo dpkg-reconfigure lightdm, then run sudo apt purge kali-desktop-gnome (or kali-desktop-kde) followed by sudo apt autoremove --purge. Read the removal list before confirming.

Why is my screen black after removing a desktop environment?

The removal took the active display manager with it, so nothing draws a login screen. Press Ctrl + Alt + F3 for a text console, log in, then run sudo apt install lightdm, sudo systemctl enable lightdm, and reboot.

Does Kali undercover mode work on GNOME or KDE?

No — kali-undercover, the Windows-lookalike disguise, works only on Xfce, and that is still true in 2026. If undercover mode matters to you, that alone is a reason to keep Xfce installed and switch to it when working in public.

Can I change the desktop environment in Kali on WSL?

Not the normal way — WSL has no login screen. The desktop there comes from Win-KeX (kex --win, kex --sl, or kex --esm), which is built around Xfce. Leave it on Xfce; changing it is unsupported and gains nothing.

Is Xfce really faster than GNOME and KDE on Kali?

On low-RAM machines, clearly yes — on the 4 GB test VM, Xfce idled around half of GNOME's memory use, and that headroom goes straight to your tools. On a modern machine with 16 GB or more, the speed difference mostly disappears and the choice becomes taste.

Revision note. Originally published December 21, 2019, when this page only covered the login-screen picker and told you to restart instead of just logging out. Rewritten August 12, 2026 for Kali 2026.2: added installing and removing desktops, display managers, defaults, the black-screen recovery, and WSL. If you ever wiped a working Kali install just to change how it looks, you were following the advice most of the internet gives — it was never your mistake. Spotted something wrong or something missing? Tell me through the contact page and I will fix it. Happy switching.

Related