Remote Desktop Connection (RDP, not VNC) From Ubuntu Laptop to Ubuntu Cloud Server

sudo apt install ubuntu-desktopsudo apt install xrdp
sudo service xrdp status
Dec 28 14:31:50 ishar xrdp[3397067]: (3397067)(140393615636288)[DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3389)
Dec 28 14:31:50 ishar systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permitted
...
Dec 28 14:31:51 ishar systemd[1]: Started xrdp daemon.
Dec 28 14:31:52 ishar xrdp[3397068]: (3397068)(140393615636288)[INFO ] starting xrdp with pid 3397068
Dec 28 14:31:52 ishar xrdp[3397068]: (3397068)(140393615636288)[INFO ] address [127.0.0.1] port [3389] mode 4
Dec 28 14:31:52 ishar xrdp[3397068]: (3397068)(140393615636288)[INFO ] listening to port 3389 on 127.0.0.1
Dec 28 14:31:52 ishar xrdp[3397068]: (3397068)(140393615636288)[INFO ] xrdp_listen_pp done
$ telnet localhost 3389Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
port=tcp://127.0.0.1:3389
$ ssh user@<remoteserver> -L 127.0.0.1:33000:127.0.0.1:3389
haries@thinkpad-x1:~/.ssh$ telnet localhost 33000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
  • Put any Name
  • set the protocol to RDP
  • For server address we will connect to our localhost port 33000
  • Resolution custom, click the […] to add desired resolution. I would suggest 720p for the balance between details and speed. If you don’t do this step, the default resolution will be 640x480.
  • Color depth 16bpp is enough and chosen for speed reason
  • Click save

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Identifier In Python

Longest Duplicate Substring

Third Project: Rails

Debugging GKE unprivileged containers with gdb and nsenter

What is Udemy and how to make money from it ?

Jenkins setup in Ubuntu + Integrating selenium project

{UPDATE} Угадай знаменитость. Викторина Hack Free Resources Generator

Why Excel Is A Terrible Database For Your Business

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
haRies Efrika

haRies Efrika

More from Medium

Modern Warfare

Ready Launch Set

Enter the Bao vol.1

Russia-Ukraine war: Qatar supports Ukraine’s territorial integrity