xrdp

Connect to Ubuntu Desktop remotely with xrdp

Environment

Install Ubuntu 20.04 on win10-hyperv

It’s recommended to use internal NAT network, so create a virtual network switch if necessary.

Setup

Open a terminal to install some softwares and do the setup stuffs.

# install xrdp and vnc server
sudo apt update && sudo apt install -y tigervnc-standalone-server xrdp

# open firewall
sudo ufw allow 3389/tcp

# add to startup
sudo systemctl enable xrdp

Then open /etc/xrdp/xrdp.ini, find autrun field and set its value to Xvnc

sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF

Now reboot and try to connect to it.

To use this remote desktop connnection, you should close locally logined session before connect it remotely.

Use it

On windows host machine, search rdp, and create an RDP connection

With following necessary fields (Example)

Computer Name: 192.168.0.100
Username: yyy

Reference