How to set up an xRDP server on Ubuntu 18.04? | Netooze

N
Netooze
September 26, 2019

This tutorial describes how to set up an xRDP server to connect to Ubuntu 18.04 with a lightweight Xfce or MATE environment via RDP. This can be very convenient when connecting from operating systems of the Windows family without the use of special tools.

What is xRDP?

xRDP is a free and open source implementation of Microsoft's RDP (Remote Desktop Protocol) that allows operating systems other than Microsoft Windows (such as Linux and BSD) to provide a fully functional RDP-compatible remote desktop.

Installation and setup

Connect to the virtual server via SSH protocol and update the system:

sudo apt-get update

Install and enable the xRDP utility:

sudo apt-get install xrdp
sudo systemctl enable xrdp

Set up an environment of your choice, xfce or mate, and allow xRDP to use it:

sudo apt-get install xfce4 xfce4-terminal
sudo sed -i.bak '/fi/a #xrdp multiple users configuration n xfce-session n' /etc/xrdp/startwm.sh

mate:

sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon
sudo sed -i.bak '/fi/a #xrdp multiple users configuration n mate-session n' /etc/xrdp/startwm.sh

Open the RDP port for remote connectivity:

sudo ufw allow 3389/tcp

Restart the xRDP server for the changes to take effect:

sudo /etc/init.d/xrdp restart

Desktop connection

To connect, open the Windows Remote Desktop Connection application. Enter the server IP address and username and click Connect:

Desktop connection

When connecting, a security warning will appear, this is due to the fact that a connection is being made to the OS of the Linux family. Click Yes:

Security Warning

In the window that opens, select Xorg as the session, enter the password for the user, click OK:

Xorg session

This will connect to the desktop.

Xfce desktop environment:

Xfce environment desktop

Desktop with MATE environment:

Desktop with MATE environment

Рабочий стол окружения Xfce

Десктоп с окружением MATE:

Десктоп с окружением MATE

Netooze® is a cloud platform, offering services from data centers globally. When developers can use the straightforward, economical cloud that they love, businesses expand more quickly. With predictable pricing, thorough documentation, and scalability to support business growth at any stage, Netooze® has the cloud computing services you need. Startups, enterprises, and government agencies can use Netooze® to lower costs, become more agile, and innovate faster.

Start your cloud journey? Take the first step right now.
%d bloggers like this: