User Tools

Site Tools


notes:remmina-vnc-raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:remmina-vnc-raspberry [2020/07/17 09:55] adminnotes:remmina-vnc-raspberry [2024/08/09 18:00] (current) – minor edit admin
Line 1: Line 1:
 ====== Connect to Raspberry Pi OS via VNC using Remmina ====== ====== Connect to Raspberry Pi OS via VNC using Remmina ======
  
--- //Tested with **Raspberry Pi OS** on **July 2020**// --+-- //Tested with **Raspberry Pi OS** (buster) on **July 2020**// -- 
 +-- //Updated for **Raspberry Pi OS** (>=bullseye) on **August 2024**// --
  
 When trying to connect from your Linux machine using Remmina to a Raspberry Pi running Raspberry PI OS with RealVNC enabled you get the error When trying to connect from your Linux machine using Remmina to a Raspberry Pi running Raspberry PI OS with RealVNC enabled you get the error
   Unknown authentication scheme from VNC server: 13, 5, 6, 130, 192   Unknown authentication scheme from VNC server: 13, 5, 6, 130, 192
  
-RealVNC only supports a few security schemes. ''Authentication=VncAuth'' seems to be the only scheme that allows direct connections from VNC-compatible Viewer projects from third parties. In order to change to VncAuth scheme in your Raspbian and set a password to accept connections from Remmina VNC plugin, open a SSH session (or a terminal window) on the Raspberry and generate your VNC password with:+RealVNC only supports a few security schemes. ''Authentication=VncAuth'' seems to be the only scheme that allows direct connections from VNC-compatible Viewer projects from third parties. In order to change to VncAuth scheme in your Raspbian and set a password to accept connections from Remmina VNC plugin, open a SSH session (or a terminal window) on the Raspberry and generate your VNC password
 +If you are using a recent version of Rasberry Pi OS, run the command: 
 + 
 +  sudo vncpasswd -service -legacy 
 + 
 +otherwise, just run:
  
   sudo vncpasswd -service   sudo vncpasswd -service
Line 12: Line 18:
 Now, edit the file /root/.vnc/config.d/vncserver-x11 Now, edit the file /root/.vnc/config.d/vncserver-x11
      
-  sudo geany /root/.vnc/config.d/vncserver-x11+  sudo nano /root/.vnc/config.d/vncserver-x11
  
 and add the following line at the end of the file: and add the following line at the end of the file:
Line 26: Line 32:
   Authentication=VncAuth   Authentication=VncAuth
  
-(''c3abbea3b003a0b231737c0541892d72'' is the encrypted version of ''raspberry'')+''c3abbea3b003a0b231737c0541892d72'' is the encrypted version of ''raspberry''; your line will be different. 
 + 
 +If you are using a recent version of Raspberry Pi OS, also add the following line at the end of the file: 
 + 
 +  Encryption=PreferOn
  
-Eventually, restart the VNC server service with+After these edits (not before!), restart the VNC server service with
  
   sudo systemctl restart vncserver-x11-serviced   sudo systemctl restart vncserver-x11-serviced
  
 and you are ready to connect to you Raspberry Pi using Remmina. and you are ready to connect to you Raspberry Pi using Remmina.
notes/remmina-vnc-raspberry.1594979712.txt.gz · Last modified: 2020/07/17 09:55 by admin