In this article I will show you how to install desktop to your Debian10/11


1. First log in to your server and update packages.

sudo apt update


2. We will use software called "xrdp". With that we can connect to the server with remote desktop. Let's start by installing the xrdp:

sudo apt -y install xrdp


3. Next you want to check that xrdp is running. If its running this will show:

sudo systemctl status xrdp


4.  xRDP uses the /etc/ssl/private/ssl-cert-snakeoil.key file which belongs to the ssl-cert group. As such we need to add the xRDP user to that group:

sudo adduser xrdp ssl-cert


5. Remote desktop connection uses 3389 port so you need to allow traffic through that port:

sudo ufw allow 3389


6. If you want to allow some specify IP-address to the port use this command but change the example IP-address.

sudo ufw allow from to any port 3389


7. Next restart the xrdp so the changes will get applied.

sudo systemctl restart xrdp


Now we have installed the xrdp which lets us to use remote desktop but we still need to install desktop environment.


8. There is many options for the desktop but we will use "GNOME". GNOME is popular desktop environment you can install it with this command:

sudo apt-get install task-gnome-desktop


9. After the installation you can connect to your server with Windows Remote Desktop Connection. Just type your IP in text field and press "Connect"


10. Then this screen should popup. For the session choose "Xorg" and type your username and password to the fields and press "OK"


11. Now you should have the GNOME desktop ready to use.


I hope that this guide was helpful and if there is any problems please contact us.

Was this answer helpful? 0 Users Found This Useful (0 Votes)