Switching from VNC to Remote Desktop

Screenshot by Dropbox Capture.png

RealVNC has been my go-to solution for logging into my computers with a gui for a while now, but they are removing their free home plan.

What are the alternatives?

There are other ways of getting VNC, and for some situations that is the onl thing that will work, but I actually prefer Remote Desktop anyway.

What is Remote Desktop?

Remote Desktop is a way to control another computer either on your local network, or from far away over the public internet, just as if you were sitting right in front of it with your keyboard, mouse and monitor plugged in.

It works well enough over a nippy connection that I do this instead of using a KVM solution, because it allows me to take screenshots and record screen recordings using my Mac while demoing on Windows or Linux.

RDP stands for Remote Desktop Protocol, which is a method used by some remote desktop software to make this possible.

How to Install xrdp on a Raspberry Pi or Other Similar

  1. Update your Raspberry Pi

    • Open the terminal and type:
      sudo apt-get update
      sudo apt-get upgrade
      
  2. Install xrdp

    • In the terminal, type:
      sudo apt-get install xrdp
      
  3. Install a desktop environment (if not already installed)

    • xrdp requires a Windows implementation to be installed to be able to display a desktop. Otherwise, you will only see a blank screen.
    • If your Raspberry Pi doesn’t have a desktop environment installed, you need to install one. For example, you can install the PIXEL desktop environment by typing:
      sudo apt-get install raspberrypi-ui-mods
      
  4. Start xrdp

    • The xrdp service should start automatically after installation. If it doesn't, start it manually by typing:
      sudo systemctl start xrdp
      
  5. Enable xrdp to start on boot

    • To make sure xrdp starts every time you turn on your Raspberry Pi, type:
      sudo systemctl enable xrdp
      
  6. Connect to your Raspberry Pi using RDP

    • On your Windows computer, open the Remote Desktop Connection app.
    • Mac and Linux you can also use Remote Desktop apps, but they will need to be added.
    • Enter the IP address or host name of your Raspberry Pi and click "Connect."
    • Log in with your Raspberry Pi's username and password.

Now you can control your Raspberry Pi from anywhere you can see the devices IP address!

If you have any problems or questions, feel free to ask here, I am sure I or someone else could help.



0
0
0.000
8 comments
avatar
(Edited)

I haven't really explored the other desktop environment options for a Raspberry Pi. I am piecing together a project for a Pi Zero, and it really doesn't run well on a full Raspberian OS. Would you suggest PIXEL as a lightweight option for these machines?

0
0
0.000
avatar

I usually go with headless on the zero, not really sure

0
0
0.000
avatar

Does xrdp work on Wayland desktop?

0
0
0.000
avatar

Yes Wayland and Wayyfire are default on Pi 4 and 5 now right?

0
0
0.000
avatar

I meant to ask have you gotten xrdp to work with Wayland? Do those steps above work?

0
0
0.000
avatar

Weird thing, I went into raspi-config and changed to wayland and nothing changed after reboot. This is on a pi4.

Screenshot by Dropbox Capture.png

Screenshot by Dropbox Capture.png

I daren't mess around more because this is my CNC controller

0
0
0.000
avatar

Thanks, I have a Pi4 with Wayland and I will try the steps you mentioned.

0
0
0.000
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000