Skip to content

Instantly share code, notes, and snippets.

@skazemi
Created June 1, 2021 15:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save skazemi/67a28afb77e366d82a4eb9353373c5f2 to your computer and use it in GitHub Desktop.
Save skazemi/67a28afb77e366d82a4eb9353373c5f2 to your computer and use it in GitHub Desktop.
Install RealVNC server on arm64 linux (Ubuntu on RasPi)
mkdir realvncserversetup && cd realvncserversetup
echo Add armhf arch
sudo dpkg --add-architecture armhf && sudo apt update
echo Download and install RealVNC server
wget -nv https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.7.4-Linux-ARM.deb && sudo apt install ./VNC-Server-6.7.4-Linux-ARM.deb
echo Download and install dependencies
files=( libbcm_host.so libvcos.so libmmal.so libmmal_core.so libmmal_components.so \
libmmal_util.so libmmal_vc_client.so libvchiq_arm.so libvcsm.so libcontainers.so )
for i in "${files[@]}"
do
wget -nv https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/$i
done
sudo mv *.so /usr/lib/
cd ..
echo Enable VNC service on boot
sudo systemctl enable vncserver-x11-serviced.service
echo Start VNC service
sudo systemctl start vncserver-x11-serviced.service
@Marietto2008
Copy link

on jetson nano arm64 it does not work :

/usr/bin/vncserver-x11-core: error while loading shared libraries: libbcm_host.so: wrong ELF class: ELFCLASS64

@elschopi
Copy link

elschopi commented Aug 8, 2021

I'm getting an error message on line 9, it fails to download and install dependecies. At first it complained about an unexpected "(", I've removed both parenthesis and put all filenames in one line, but now it fails to find "libvcos.so".
I'm running Ubuntu 21.04 64bit on a Raspberry Pi 4. Updating from 20.10 broke my RealVNC server installation, as well as uninstalled any python modules I had installed via pip...But that's just a side note :P

@Marietto2008
Copy link

I didn't understand if at the end,you have been able to make it work or not. If yes,please write here the commands that you have issued. thanks.

@elschopi
Copy link

elschopi commented Aug 8, 2021

unfortunately, I have not been able to get RealVNC to work. I'm currently using x11vnc, which needed me to disable the "wayland" windowmanager, as well as needed a manual entry as service to enable starting the VNC server on startup. I've not yet been able to make it use encrypted connections, so I do get warnings from my VNC client software (on windows and android).

@Marietto2008
Copy link

Marietto2008 commented Aug 8, 2021

what do u think about using remmina as client and xrdp as server ? it supports the audio,VNC doesn't. I'm trying to accomplish this task.

@elschopi
Copy link

elschopi commented Aug 9, 2021

I don't have any experience with both remmina as well as xrdp. I've always used RealVNC as a VNC provider for my raspberry pi systems ( two Pi 3B+, one Pi 4, two RPi Zero W) or, where graphical interface was not needed, SSH.
For windows systems, I'm using Teamviewer.
As far as I understand it, you're trying to connect from a Unix / Ubuntu PC to a raspberry? If so, my guess is that using your described software should work.

@Marietto2008
Copy link

I've installed remmina --version 1.4.17 (git n/a) on FreeBSD 13 and xfreerdp = 2.3.0 server on Ubuntu 21.04 emulated with bhyve on FreeBSD 13. I've chosen remmina + xrdp because it supports the audio. VNC doesn't. If u use VNC and VNC does not support audio,how can you hear the music coming from the youtube videos,for example ?

@elschopi
Copy link

I'm sorry, but I don't use the remote connection for such things, I'm using the remote connection for programming and working on the remote system. I don't need sound, as I only do programming in Python, as well as maintaining installed software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment