remote desktop on linux

Posted on Apr 7, 2023
  • xrdp
  • this one seems only work for Xwindows, not wayland.
  • Wayland
  • Not all wayland application support RDP, some only support VNC.
  • sway doesn’t support rdp but only vnc, see link.
  • On the target linux device, install freerdp and weston
  • pacman -S freerdp
  • pacman -S weston
  • On the target linux device, generate RDP certificates
  • sudo mkdir -p /etc/freerdp/keys/
  • sudo winpr-makecert -rdp -path /etc/freerdp/keys/
  • On the target linux device, start weston
  • weston –backend=rdp-backend.so –rdp-tls-cert=/etc/freerdp/keys/server.crt –rdp-tls-key=/etc/freerdp/keys/server.key
  • On the windows side, start “Remote Desktop Connection” and fill in targe linux server ip.
  • waypipe, see link.
  • installed waypipe on both the local and remote computers
  • yay -Y waypipe
  • run waypipe on local linux/wsl
  • waypipe ssh user@theserver weston-terminal