Skip to content

Instantly share code, notes, and snippets.

@hehuan2112
Last active July 8, 2024 20:07
Show Gist options
  • Save hehuan2112/54cca01be23973a9f8b369e8d0df216e to your computer and use it in GitHub Desktop.
Save hehuan2112/54cca01be23973a9f8b369e8d0df216e to your computer and use it in GitHub Desktop.
Install Remote Desktop (xRDP) for Ubuntu Server 18.04

Install Remote Desktop (xRDP) for Ubuntu Server 18.04

Step 1 – Install xRDP:

sudo apt update
sudo apt install xrdp

Step 2 – Install XFCE4

sudo apt install xfce4
sudo apt-get install xfce4-terminal tango-icon-theme

Step 3 - Configure

echo xfce4-session > ~/.xsession

Step 4 - Restart xRDP

sudo service xrdp restart

Step 5 - Testing

On Windows PC, use mstsc to connect to the ubuntu server

@sutchan
Copy link

sutchan commented May 6, 2019

sudo service xrdp restart 命令无法执行,提示如下:
Failed to restart xrdp.service: Unit xrdp.service not found.

@zero-cao
Copy link

zero-cao commented Jul 25, 2019

Hello, hehuan2112:

I have setup XRDP enviroment on my Ubuntu 18.04 successfully, however the speed is very very slow.
When I open an application or open a file, I have to wait for many seconds to starty my job.
I can do my job fluently if using SSH terminal.
So how do you resolve this problem ?

@zero-cao
Copy link

sudo service xrdp restart 命令无法执行,提示如下:
Failed to restart xrdp.service: Unit xrdp.service not found.

'service' command is older, on Ubuntu 18.04 you can type command 'sudo systemctl start xrdp'

@JakFourie
Copy link

Worked for me. Thank you!

@ruaconx11
Copy link

How to know the user and password to connect ??

Step 5 - Testing
On Windows PC, use mstsc to connect to the ubuntu server

@hehuan2112
Copy link
Author

hehuan2112 commented Feb 12, 2020 via email

@hehuan2112
Copy link
Author

Worked for me. Thank you!

Sorry for the very very late reply. >.<
You are welcome!

@hehuan2112
Copy link
Author

Hello, hehuan2112:

I have setup XRDP enviroment on my Ubuntu 18.04 successfully, however the speed is very very slow.
When I open an application or open a file, I have to wait for many seconds to starty my job.
I can do my job fluently if using SSH terminal.
So how do you resolve this problem ?

I have the same issue when I try to access my server via the XRDP from a remote machine.
And... I gave up and force myself to use SSH. >_<|||
The SSH is always a fluent way for connecting remotely.
I'm sorry for this solution.

@hehuan2112
Copy link
Author

sudo service xrdp restart 命令无法执行,提示如下:
Failed to restart xrdp.service: Unit xrdp.service not found.

As zero-cao said, use 'sudo systemctl start xrdp' on Ubuntu 18.04 instead will work.

Thanks!

@ademkocamaz
Copy link

ademkocamaz commented Sep 24, 2022

apt-get install xrdp
apt-get install xorgxrdp
adduser xrdp ssl-cert
apt-get install xfce4 xfce4terminal

these for headless debian based linux. I used them on Openmediavault, It worked.

@Bafo2
Copy link

Bafo2 commented Mar 25, 2023

#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment