How to install Xrdp – Ubuntu Remote Desktop Server 20.04

HomeOther ContentHow to install Xrdp – Ubuntu Remote Desktop Server 20.04
How to install Xrdp – Ubuntu Remote Desktop Server 20.04
How to install Xrdp – Ubuntu Remote Desktop Server 20.04
– How to install Xrdp on Ubuntu 20.04
Xrdp is an open source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote system. With RDP, you can connect to the remote machine and create a real desktop session as if you had connected to a local machine.
*** Installing Xrdp:
– Xrdp is included in the Ubuntu repositories by default. To install it, run:
sudo apt install xrdp
– By default, Xrdp uses the file /etc/ssl/private/ssl-cert-snakeoil.key which is only readable by members of the “ssl-cert” group. Run the following command to add the xrdp user to the group:
sudo adduser xrdp ssl-cert

– Restart the Xrdp service for the changes to take effect:
sudo systemctl restart xrdp

– Once the installation is complete, the Xrdp service will start automatically. You can check this by typing:
sudo systemctl xrdp status

*** Xrdp setup

– Xrdp configuration files are located in the /etc/xrdp directory. For basic Xrdp connections, you do not need to make any changes to the configuration files.
– Xrdp uses the default X Window desktop environment (Gnome or XFCE).
– The main configuration file is called xrdp.ini. This file is divided into sections and allows you to set global configuration settings such as security and listening addresses and create different xrdp login sessions.
– Every time you make changes to the configuration file, you must restart the Xrdp service.
– Xrdp uses the startwm.sh file to launch the X session. If you want to use another X Window desktop, modify this file.

***Firewall configuration

The Xrdp daemon listens on port 3389 on all interfaces. If you are running a firewall on your Ubuntu server, you will need to open the Xrdp port.

To allow access to the Xrdp server from a specific IP address or IP range, for example 192.168.255.0/24, you must run the following command:
sudo ufw allows from 192.168.33.0/24 to any port 3389

– If you want to allow access from anywhere (which is strongly discouraged for security reasons),

run:
sudo ufw authorize 3389

*** Connection to Xrdp server
– Now that you have configured your Xrdp server, it is time to open your Xrdp client and connect to the server.
– If you have a Windows PC, you can use the default RDP client. Type “remote” into the Windows search bar and click “Remote Desktop Connection.” This will open the RDP client. In the “Computer” field, enter the IP address of the remote server and click “Connect”.
– On the login screen, enter your username and password and click “OK”.
– Once logged in, you should see the default Gnome or Xfce desktop. It should look something like this:
– You can now start interacting with the remote desktop from your local computer using your keyboard and mouse.
– If you are using macOS, you can install the Microsoft Remote Desktop app from the Mac App Store. Linux users can use an RDP client such as Remmina or Vinagre.

Connect with us
————————————————
Email for any request: [email protected]
Join our FB group: https://www.facebook.com/groups/errorandfix
Like our FB page: https://www.facebook.com/errorandfix
Website: https://errorandfix.com

The subjects
Remote Desktop Connection: https://youtube.com/playlist?listPLZ9CDyoGbVhXLrCZDecCxnGmqXH_rADkR

Please take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *