Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


remote_desktop_access_for_linux_using_xrdp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
remote_desktop_access_for_linux_using_xrdp [2025/05/02 22:19] – created juckinsremote_desktop_access_for_linux_using_xrdp [2025/05/03 17:31] (current) juckins
Line 1: Line 1:
 ==== Remote Desktop Access for Linux Using xrdp ==== ==== Remote Desktop Access for Linux Using xrdp ====
 +
 +The notes below were adapted from [[https://www.digitalocean.com/community/tutorials/how-to-enable-remote-desktop-protocol-using-xrdp-on-ubuntu-22-04|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 [[https://docs.rockylinux.org/guides/desktop/xfce_installation/|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.1746238776.txt.gz · Last modified: 2025/05/02 22:19 by juckins