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 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 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 ...
    • How to Enable Large Gallery View in Microsoft Teams

      Engage with everyone in the meeting by viewing up to 49 participants’ video Microsoft Teams might be one of the leading contenders in the video conferencing ecosystem, but there are a few features it has been lacking in that its primary contender ...
    • How to Send as Alias in Outlook

      BMIT or your Microsoft Office 365 administrator will need to add an alias to your account first before you can use this feature. Users can’t create aliases themself. Outlook on the web and Outlook for iOS and Android now support sending from aliases. ...
    • 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 ...