RemoteDesktop on Linux
The following has been tested on Fedora 39 and Rocky 9
First – install the software
sudo dnf -y install xrdp xorgxrdp-glamor
edit /etc/xrdp/xrdp.ini
Find the line [Xvnc]. Comment out that section by putting a # in front of it – and every line down to the line that starts with [vnc-any] (or #[vnc-any])
Find the line #[Xorg] – remove the # from each line down to where you have #[Xvnc] (leave the # in front of [Xvnc])
Now execute
sudo systemctl enable --now xrdp
Now enable access through your firewall
sudo firewall-cmd --permanent --add-service=rdp sudo firewall-cmd --reload