XRDP Server (Remote Desktop) Installation and how to connect

XRDP Server (Remote Desktop) Installation and how to connect

1. Update Environment

  1. sudo apt-get update
  2. sudo apt-get upgrade

2. Install XRDP

  1. sudo apt install xrdp

3. Check status of XRDP: ( XRDP runs automatically after installation)

  1. sudo systemctl status xrdp

4. add the xrdp user to the ssl-cert group

  1. sudo adduser xrdp ssl-cert  

5. Restart xrdp service:

  1. sudo systemctl restart xrdp

6. Configuring Firewall


Xrdp daemon listens on port 3389. You must open the Xrdp port if your Ubuntu server is protected by a firewall.
  1. $ sudo ufw allow from 192.168.33.0/24 to any port 3389
here, replace given with with your computer ip. (check by ip a )
  1. $ sudo ufw allow 3389

Connecting to the XRDP Server

  1. The default RDP client is accessible if you have a Windows PC.
  2. Enter "remote" in the Windows search box and click on "Remote Desktop Connection". 
  3. The RDP client will open as a result. 
  4. Enter the IP address of the remote server in the "Computer" field and click "Connect".
  5. On the login screen, enter your username and password before clicking on “OK.”
IMPORTANT: Multi User Setup Configuration

1. Install D-BUS

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install dbus-x11

2. modify your /etc/xrdp/startwm.sh file

  1. sudo nano /etc/xrdp/startwm.sh
At the below line before this line test -x /etc/X11/Xsession && exec /etc/X11/Xsession.

ADD THESE LINES

  1. export $(dbus-launch)
Then save the file.

3. Restart the System: 

  1. sudo reboot

    • Related Articles

    • How to Install Microsoft Office Apps

      Summary This article will guide you through installing Microsoft Office apps on your computer. Follow these step-by-step instructions to install applications like Word, Excel, PowerPoint, and Outlook. Step 1: Sign in to Office 365 Open your web ...
    • How do I change my primary monitor?

      1. Change Display settings Right-click on an empty space on the Desktop and choose the Display Settings from the menu. Choose which you want to be your primary monitor, scroll down and choose to Make this my main display. After doing that, the ...
    • How to backup files using OneDrive

      Video Tutorial The steps outlined in the video for turning on OneDrive backup Open the OneDrive app on your PC by clicking on the blue cloud icon. Click on the Settings icon (Gear). Click on Settings in the drop-down window. In the Settings, click on ...
    • How to Fix Microsoft OneDrive when it won't Install or Start on Windows 10

      OneDrive is Microsoft’s cloud storage solution which comes preinstalled on all versions of Windows 10. It’s easy to use and setup and allows you to store up to 5gb of data free of charge. Even though OneDrive is free and preinstalled, a lot of users ...
    • Set up Office 365 email using the iOS Mail app

      Step 1 Go to your iPhone or iPad's Settings > scroll down and tap Accounts & Passwords > Add Account. Note: If you're on iOS 10, go to Mail > Accounts >Add Account. Step 2 Select Exchange. Step 3 Enter your Office 365 or Exchange email address and a ...