You could install, then start x11vnc on the remote machine, then use a VNC client to connect. If you require RDP specifically, then this answer (which also uses x11vnc, but with the xrdp connector) is your best bet.
However, if VNC is adequate, then it's pretty simple. Note that the three steps I list here do not provide any security! If the remote machine can be accessed by anyone other than yourself, make sure to man x11vnc
and put a password on the remote x11vnc session.
- On the remote machine, install x11vnc
sudo apt install x11vnc
- On the remote machine, start x11vnc
x11vnc -forever
- On your machine, connect to the remote machine using your VNC client (e.g. Remmina)
Once you're finished, hit CTRL-C on your remote machine to exit x11vnc.
If you intend to use x11vnc more commonly, as I stated above, I recommend setting a password with x11vnc -usepw
, and then examining some of the more advanced options it offers with man x11vnc
. It's a powerful tool.