Posted: . At: 9:25 AM. This was 1 year ago. Post ID: 17329
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to set up a Remote Desktop server on Linux to allow connections from Windows.


Installing a Remote Desktop capability on Linux is quite easy, this allows administration of the Linux server easily from a Windows machine. This is very useful indeed. The xrdp system installed on Linux will provide this capability. Install it easily.

(base) jason@jason-Lenovo-H50-55:~$ sudo apt install xrdp

Once it is installed, the xrdp server should be running on the Linux server.

(base) jason@jason-Lenovo-H50-55:~$ ps -ef | grep rdp
root         885       1  0 08:37 ?        00:00:00 /usr/sbin/xrdp-sesman
xrdp         909       1  0 08:37 ?        00:00:00 /usr/sbin/xrdp
root        1071     885  0 08:40 ?        00:00:00 /usr/sbin/xrdp-sesman
jason       1098    1071  0 08:40 ?        00:00:01 /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
jason       1107    1071  0 08:40 ?        00:00:00 /usr/sbin/xrdp-chansrv
jason       3139    3020  0 08:54 pts/0    00:00:00 grep --color=auto rdp

The xrdp processes running.

Now you are ready to begin the connection from the Windows computer. I am using Windows 11.

Windows Remote Desktop utility. Connecting to a Linux machine.
Connecting to the server from Windows.
xrdp authentication screen asking for credentials.
The xrdp authentication screen on the Linux server.

Once the credentials are entered, then the Linux desktop session will open. This is shown below.

Connected to a Gnome Shell session on an Ubuntu Server instance.

This is an example of how useful Linux is and how flexible it is when using it in a mixed environment with Linux and Windows. In the Windows RDP utility, click the display tab and drag the slider to set the RDP resolution and the display colour depth. This is good if you do not want to use the full resolution in the Remote Desktop session.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.