RealVNC install on RPi4 with UbuntuMate 20.04.1 LTS

Hello everybody,
I'm a linux newbie, so please forgive my errors / misunderstandings.

I'm trying to install RealVNC on Ubuntu Mate 20.04.1 LTS (ubuntu-mate-20.04.1-desktop-amd64.iso) running on RPi4 8GB: I would like to be able to control my RPi4 from everywhere.

What I did:

  1. Forced the architecture > sudo dpkg --add-architecture armhf && sudo apt update

  2. sudo apt install libx11-6

  3. download RealVNC Server for Raspberry (https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.7.2-Linux-ARM.deb) and Install with GDebi

  4. Start VNC service > sudo systemctl start vncserver-x11-serviced.service

  5. Enable Server Start on reboot > sudo systemctl enable vncserver-x11-serviced.service

  6. Enter credentials > sudo vnclicensewiz

And it's here that I'm getting an error message from RealVNC as “failed to read configuration”
From terminal i get:

vnclicensewiz_helper[2370]: ProcHelper: Unable to read configuration: read: Connection reset by peer (104)

Hope somebody could help me!
Thanks in advance

Finally I found the answer!

Here is the complete procedure:

1. Forced the architecture

sudo dpkg --add-architecture armhf && sudo apt update

2. Download RealVNC Server for Raspberry
([https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.7.2-Linux-ARM.deb](http://RealVNC Connect Server for Raspberry)) and Install with GDebi

3. Copy the following lib files from the Pi4 firmware repository in folder /usr/lib

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

4. Start VNC service

sudo systemctl start vncserver-x11-serviced.service

5. Enable Server Start on reboot

sudo systemctl enable vncserver-x11-serviced.service

6. Enter credentials

sudo vnclicensewiz

Many thanks to Angelo who published this Post in raspberrypi.org

Hope it helps

3 Likes

I can hardly express my appreciation... Was desperate looking the way to install RealVNC into my 64bit UbuntuMATE system.

There's only a tiny correction you should edit in your instructions:

Both your list and RaspberryPi.org mention the name of a Library file with a typo...
It should be: libvchiq_arm.so

Thanks again!

2 Likes

Apologies for being a complete beginner at all of this, but how would I be able to copy those specific files from the Github repository and transfer them to my /usr/lib folder? Thanks in advance!

I cannot get to make this work. When I try to start the service using sudo systemctl start vncserver-x11-serviced.service I get error that this service cannot be found.

just copy below lines and paste to your terminal

wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libbcm_host.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libvcos.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libmmal.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libmmal_core.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libmmal_components.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libmmal_util.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libmmal_vc_client.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libvchiq_arm.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libvcsm.so
wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/lib/libcontainers.so
1 Like

When I try to install the realVNC It give me the error libc6 dependency not satisfiable >= 2.4

This is a lot of help! I am having trouble at the very end. Once I get to the final step I encounter an error.

EDIT: I guess that this was the OP's error, but I have done all the steps in the solution and am still getting the error.

I login through the VNC server licensing window and apply changes to my computer to add it. and then when I hit apply, I get the following messages:

In the licensing window: "Failed to read configuration"

and in the terminal:

/usr/bin/vncserver-x11-core: error while loading shared libraries: /lib/libbcm_host.so: invalid ELF header
VNC Server Licensing 6.7.2 (r42622) ARMv6 (May 13 2020 19:30:16)
Copyright (C) 2002-2020 RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/6/foss.html
OS: Ubuntu 20.10, Linux 5.8.0, aarch64
<11> 2020-12-17T17:47:31.862Z julian-desktop vnclicensewiz_helper[34068]: ProcHelper: Unable to read server configuration: read: Connection reset by peer (104)

What steps are needed to fix this?

Thanks!

I also ran into issue with:
/usr/bin/vncserver-x11-core: error while loading shared libraries: /lib/libbcm_host.so: invalid ELF header
It turned out that the wget commands, provided above were the culprit: instead of libraries, they downloaded html pages, pointing to the libraries. Fix is easy - just download the libraries manually one by one. My Pi is running RealVNC right now and it is so much better than x11vnc I used in the past.

Command from " shambhala-lab" downloads html files, not original files. That causes /lib/libbcm_host.so: invalid ELF header. If you do that, then you need to delete this files manualy.

Single command to download all files from repository:

sudo wget -P /usr/lib \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libbcm_host.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libvcos.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libmmal.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libmmal_core.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libmmal_components.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libmmal_util.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libmmal_vc_client.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libvchiq_arm.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libvcsm.so \
https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/libcontainers.so

then you need to restart VNC Server:

sudo systemctl restart vncserver-x11-serviced.service

I'm also getting similar error as iWolly. I've tried to remove the files manually and to download it again with bager's single command but i'm getting this error: "Failed to read configuration" after signing up
output:
ubuntu@ubuntu:~$ sudo vnclicensewiz
/usr/bin/vncserver-x11-core: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
VNC Server Licensing 6.7.4 (r43891) ARMv6 (Jan 20 2021 14:21:50)
Copyright (C) 2002-2020 RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/6/foss.html
OS: Ubuntu 18.04, Linux 5.4.0, aarch64
<11> 2021-07-13T14:11:11.076Z ubuntu vnclicensewiz_helper[5145]: ProcHelper: Unable to read server configuration: read: Connection reset by peer (104)

I notice it says: "libbcm_host.so: cannot open shared object file: No such file or directory" but the file does exist.
I'm using Raspberry Pi 4 with Ubuntu MATE 18.04, I want make the raspberry pi headless.