Note: This was only done on RockyLinux 9.x and Fedora41. I suspect other distro's may be similar, but since I didn't test them, I won't mention them here.
What is xrdp? It's like rdp for Windows. It lets you view, login to and use a remote computers Graphical desktop. It's just like being logged into that computer locallly.
This step only applies if you don't already an Xwindows GUI installed. If you already have Gnome or KDE or a DE installed, skip down to the next section.
Once you have the desktop GUI installed do this.
Next we need to edit the /etc/xrdp/xrdp.ini file.
Find the section that looks like this. It's about 3/4ths of the way down.
You have two options here, you can replace this section with the code below, or you can just paste this a couple of lines
below that code. It should look like this.
The advantage to leaving both sections, is that you can use RDP and VNC. Save the file, and reboot.
You are done.
What is xrdp? It's like rdp for Windows. It lets you view, login to and use a remote computers Graphical desktop. It's just like being logged into that computer locallly.
This step only applies if you don't already an Xwindows GUI installed. If you already have Gnome or KDE or a DE installed, skip down to the next section.
Code:
# For Redhat9/Rocky9/Alma9
dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
# For Fedora
# dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# dnf config-manager setopt fedora-cisco-openh264.enabled=1
dnf update -y
dnf groupinstall "Server with GUI" -y
systemctl set-default graphical.target
Once you have the desktop GUI installed do this.
Code:
dnf install xrdp -y
systemctl enable xrdp --now
systemctl status xrdp
firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload
Next we need to edit the /etc/xrdp/xrdp.ini file.
Find the section that looks like this. It's about 3/4ths of the way down.
Code:
[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
#xserverbpp=24
#delay_ms=2000
You have two options here, you can replace this section with the code below, or you can just paste this a couple of lines
below that code. It should look like this.
Code:
[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
#xserverbpp=24
#delay_ms=2000
[xrdp1]
name=sesman-Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
The advantage to leaving both sections, is that you can use RDP and VNC. Save the file, and reboot.
You are done.
Last edited: