Headless Remote Desktop setup process

This is how it works on Fedora 40:

# Server
RDP_USER="${USER}"
RDP_PASS="12345678"
sudo dnf -y install gnome-remote-desktop freerdp
sudo -u gnome-remote-desktop winpr-makecert \
    -silent -rdp -path ~gnome-remote-desktop rdp-tls
sudo grdctl --system rdp enable
sudo grdctl --system rdp set-credentials "${RDP_USER}" "${RDP_PASS}"
sudo grdctl --system rdp set-tls-key ~gnome-remote-desktop/rdp-tls.key
sudo grdctl --system rdp set-tls-cert ~gnome-remote-desktop/rdp-tls.crt
sudo systemctl --now enable gnome-remote-desktop.service
sudo firewall-cmd --permanent --add-service=rdp
sudo firewall-cmd --reload

# Client
sudo dnf -y install gnome-connections
gnome-connections rdp://host

Permissive SELinux policy:
Gnome Remote Desktop with SELinux enforced - #9 by vgaetera - Fedora Discussion

Another related thread:
How to configure + connect to the new headless gnome-remote-desktop service?

2 Likes