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
[step num=”1″]Connect to the virtual server via SSH protocol and update the system:
sudo apt-get update[/step]
[step num="2"]Install and enable the xRDP utility:
sudo apt-get install xrdp
sudo systemctl enable xrdp[/step]
[step num="3"]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[/step]
[step num="4"]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[/step]
[step num="5"]Open the RDP port for remote connectivity:
sudo ufw allow 3389/tcp[/step]
[step num="6"]Restart the xRDP server for the changes to take effect:
sudo /etc/init.d/xrdp restart[/step]
Desktop connection
To connect, open the Windows Remote Desktop Connection application. Enter the server IP address and username and click Connect:

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:

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

This will connect to the desktop.
Xfce desktop environment:

Desktop with MATE environment:


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

Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!