How to Install Debian 11 Desktop and Enable XRDP

This article explains how to install a Debian 11 desktop environment and enable XRDP for remote desktop access. First, log in via SSH and switch to root with sudo -i, then use tasksel to install a desktop environment such as XFCE. After rebooting the server, install XRDP with a VNC backend, then start and enable the XRDP service. Finally, from your Windows PC, use Remote Desktop Connection with the server's IP address and your Debian credentials to access the desktop.

Step 1: Log in and Switch to Root User

Log in to your Debian server via SSH, then switch to the root account:

sudo -i

Step 2: Install the Desktop Environment

Debian includes tasksel, a tool that lets you install complete software packages like desktop environments.

Run:

tasksel

In the list that appears:

  1. Select the Debian desktop environment.
  2. Choose your preferred interface, for example, XFCE (lightweight and fast).
  3. Then press OK to start the installation.
    install the desktop environment

Step 3: Reboot the Server

Once the installation is complete, reboot:

reboot

Now your Debian system has a graphical desktop environment.

Step 4: Install XRDP and TigerVNC

To access Debian remotely with RDP from Windows or other devices, install XRDP and a VNC backend:

apt-get install xrdp tigervnc-standalone-server

Step 5: Enable and Start the XRDP Service

Run the following commands:

systemctl start xrdp
systemctl enable xrdp

This will start the XRDP service and enable it to run at boot.

Step 6: Connect to Debian Server

From your Windows PC:

  1. Open Remote Desktop Connection.
  2. Enter your server’s IP address.
  3. Log in with your Debian username and password.
  4. You should now see your Debian XFCE desktop.
    connect to server
Keywords:

debian desktop, remote desktop debian, debian xrdp, rdp for debian, debian 11 xfce, debian 11 desktop, debian enable rdp, debian enable remote desktop

Last Updated:   11/13/2026
Outline