How to install Desktop Environment and XRDP service in Debian 9

This tutorial will show you the simplest way to install desktop environment on Debian 9.

Installation

1. Log in Debian server and switch to root
user@debian9:~$ sudo -i
2. Use tasksel tool to install desktop environment
root@debian9:~# tasksel
You will see a list for choosing various desktop environment. Simply pick one of the desktop environment such as XFCE and make sure to check 'Debian desktop environment' also. Start to install the software by clicking 'ok'.
 
3. Reboot the server and then you may log in XFCE.
root@debian9:~# reboot

Desktop Remote Login

1. Install XRDP and TigerVNC server
root@debian9:~# apt-get install xrdp tigervnc-standalone-server
2. Enable and start XRDP service
root@debian9:~# systemctl start xrdp
root@debian9:~# systemctl enable xrdp
3. Start a Remote Desktop Connection session from Windows to connect the server.

Add Feedback