Mi­cro­con­trollers

10:10AMAugust 7 2020Daniel Tompkins

Archive KB

Rasp­berry Pi

VNC

Rem­mina

Taken from the "Linux Con­sulting and Training" docs:

Note

Tested with Rasp­berry Pi OS on July 2020

When trying to con­nect from your Linux ma­chine using Rem­mina to a Rasp­berry Pi run­ning Rasp­berry PI OS with Re­alVNC en­abled you get the error:

Un­known au­then­ti­ca­tion scheme from VNC server

Re­alVNC only sup­ports a few se­cu­rity schemes. Authentication=VncAuth seems to be the only scheme that al­lows di­rect con­nec­tions from VNC-com­pat­ible Viewer pro­jects from third par­ties. In order to change to VncAuth scheme in your Rasp­bian and set a pass­word to ac­cept con­nec­tions from Rem­mina VNC plugin, open a SSH ses­sion (or a ter­minal window) on the Rasp­berry and gen­erate your VNC pass­word with:

sudo vncpasswd -service
bash

Now, edit the file /root/.vnc/config.d/vncserver-x11

sudo nano /root/.vnc/config.d/vncserver-x11
bash

and add the fol­lowing line at the end of the file:

Authentication=VncAuth
plaintext

Now your config file should look more or less like mine:

_AnlLastConnTime=int64:0000000000000000 _LastUpdateCheckSuccessTime=int64:01d65c12272dff1a _LastUpdateCheckTime=int64:01d65c12272dff1a Password=c3abbea3b003a0b231737c0541892d72 Authentication=VncAuth
plaintext

c3abbea3b003a0b231737c0541892d72 is the en­crypted ver­sion of "rasp­berry"; your line will likely be dif­ferent.

Even­tu­ally, restart the VNC server ser­vice with:

sudo systemctl restart vncserver-x11-serviced
bash

...and you are ready to con­nect to your Rasp­berry Pi using Rem­mina.

Im­ager

How do I open "Ad­vanced Set­tings" in Rasp­berry Pi Im­ager ap­pli­ca­tion?

  • Hold Ctrl+Shift+x on the main Im­ager screen