0% found this document useful (0 votes)
20 views2 pages

Kali RDP Removal Guide

This guide provides a step-by-step process for completely removing RDP components from Kali Linux. It includes stopping services, purging XRDP and its dependencies, and optionally removing associated users and XFCE. Following these steps ensures a clean slate for future RDP setups.

Uploaded by

All rounder
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Kali RDP Removal Guide

This guide provides a step-by-step process for completely removing RDP components from Kali Linux. It includes stopping services, purging XRDP and its dependencies, and optionally removing associated users and XFCE. Following these steps ensures a clean slate for future RDP setups.

Uploaded by

All rounder
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Kali Linux Full RDP Removal & Cleanup Guide

This guide ensures all RDP components are completely removed from Kali Linux so you can start fresh for
practice.

1️⃣ Stop XRDP services

sudo systemctl stop xrdp


sudo systemctl stop xrdp-sesman

- Stops RDP immediately.

2️⃣ Remove XRDP

sudo apt purge xrdp -y


sudo apt autoremove -y

- purge removes XRDP and its configuration files. - autoremove cleans up leftover dependencies.

3️⃣ Remove RDP users (optional)


If you created a user like rdpuser :

sudo pkill -u rdpuser # kill all processes


sudo deluser --remove-home rdpuser

- Ensures no sessions or files are left.

4️⃣ Remove XFCE (optional)


If you installed XFCE only for RDP:

1
sudo apt purge kali-desktop-xfce xfce4* -y
sudo apt autoremove -y

- Cleans XFCE and all related packages. - Skip if you want to keep XFCE for normal desktop use.

5️⃣ Remove Tailscale (if used for RDP)

sudo tailscale down


sudo apt purge tailscale -y
sudo rm -rf /var/lib/tailscale /etc/tailscale

- Stops Tailscale and removes all configuration files.

6️⃣ Clean session and temporary files (optional)

sudo rm -rf /tmp/.X*-lock


sudo rm -rf /tmp/.xrdp*

- Clears leftover session locks and temporary XRDP files.

✅ After these steps, Kali Linux is completely free of RDP setup, users, sessions, and related tools, ready for
a fresh RDP practice setup.

You might also like