- Install Xfce package:
sudo apt update
sudo apt install -y xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
- Installing Xrdp:
sudo apt install -y xrdp
sudo systemctl status xrdp
sudo adduser xrdp ssl-cert
- Configuring Xrdp
sudo nano /etc/xrdp/xrdp.ini
and add line at end:
exec startxfce4
- restart the Xrdp service
sudo systemctl restart xrdp
- Configuring Firewall
sudo apt install ufw
sudo ufw allow from 192.168.1.0/24 to any
sudo ufw allow 3389
sudo iptables -A INPUT -p tcp --dport 3389 -j ACCEPT
- Modify the Xwrapper.config file when you get a blank screen when removing in.
sudo nano /etc/X11/Xwrapper.config
Change:
allowed_users=console
to
allowed_users=anybody
- Restart xrdp service:
sudo systemctl restart xrdp
- Create a Sudo User
sudo adduser [username]
sudo usermod -aG sudo [username]
- Install Remmina RDC
sudo snap install -y remmina
- Start Remmina from application menu and enter ip address and credientials to establish rdp connection.
References:
-
https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-18-04/
-
https://www.interserver.net/tips/kb/install-xrdp-ubuntu-server-xfce-template/
-
http://ubuntuhandbook.org/index.php/2018/07/install-latest-remmina-rdc-ubuntu-18-0416-04/
-
https://linuxize.com/post/how-to-create-a-sudo-user-on-ubuntu/
-
https://ekozel.com/2019/10/05/setup-remote-desktop-xrdp-on-debian-9/