remote_desktop_access_for_linux_using_xrdp
Remote Desktop Access for Linux Using xrdp
The notes below were adapted from How To Enable Remote Desktop Protocol Using xrdp on Ubuntu 22.04
- Ensure you have the Xfce Desktop Environment installed and working on the machine you want to access remotely.
- Consult Xfce install info as needed.
dnf install xrdp
- As root, make a backup copy of
/etc/xrdp/xrdp.ini
and then prepare to edit it.- You should be able to comment out the Xorg section and just keep the Xvnc active.
- Modify the
port=3389
line to a different number if you don't want to use the default. systemctl restart xrdp
systemctl enable xrdp
- Modify firewall to allow xrdp or custom port:
firewall-cmd --permanent --zone=public --add-port=NNNN/tcp
firewall-cmd --reload
- Note that if you want to remove a port, use
--remove-port
instead.
- Modify local router to forward to custom port if needed.
- Create a file $HOME/.xsession as 700 permissions and the following contents:
/usr/bin/dbus-launch --exit-with-session xfce4-session
- Use Microsoft Remote Desktop Connection to test access.
- Don't forget to append a ":NNNN" for the port number if you are not using the default 3389.
remote_desktop_access_for_linux_using_xrdp.txt · Last modified: 2025/05/03 17:31 by juckins