xrdp
Connect to Ubuntu Desktop remotely with xrdp
Environment
- Win10 with hyper-v support
- Ubuntu Desktop 20.04
Install Ubuntu 20.04 on win10-hyperv
Download Ubuntu Desktop 20.04 from here
Search Hyper-V on win10 start menu and create a virtual machine with the ISO file you just downloaded
Follow the installation guide provided by ubuntu iso media, and setup the OS
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
- Fix authentication popup issues
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