soma72
Posts: 38
Joined: Mon Sep 07, 2020 12:19 am

RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Tue Oct 20, 2020 4:37 pm

Excellent video explanation by jorgemtds on how to set up RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB).

https://youtu.be/qxey8eKi9bE

Steps for video description copied below - Credits jorgemtds

RealVNC only provides a 32bit app for Raspberry Pi OS (32bit) and not a 64bit native application, at least for now.
I'm using Ubuntu 20.10 on my Raspberry and need to use RealVNC to remotely access the system, as I don't know how to use SSH and I'm not interested in learning.
This is how I got it working after losing hours searching the Internet for several consecutive problems I got.

$sudo dpkg --add-architecture armhf

$sudo dpkg --print-foreign-architectures

$sudo apt update

$sudo apt install libx11-6

Download the next 10 files from https://github.com/raspberrypi/firmware ... opt/vc/lib

libbcm_host.so
libvcos.so
libmmal.so
libmmal_core.so
libmmal_components.so
libmmal_util.so
libmmal_vc_client.so
libchiq_arm.so
libvcsm.so
libcontainers.so

These 10 files above need to be copied to /usr/lib.

$sudo apt install gdebi

$sudo gdebi VNC-Server-6.7.2-Linux-ARM.deb

$sudo systemctl enable vncserver-x11-serviced.service

$sudo systemctl enable vncserver-virtuald.service

$sudo systemctl start vncserver-x11-serviced.service

$sudo systemctl start vncserver-virtuald.service

$sudo vnclicensewiz

$sudo gedit /etc/gdm3/custom.conf

Uncomment “WaylandEnable=false”

Reboot the system and all is working.

I hope this was helpful to someone.
Last edited by soma72 on Tue Oct 20, 2020 11:47 pm, edited 1 time in total.

bls
Posts: 2311
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Tue Oct 20, 2020 4:43 pm

If you only want virtual VNC displays (e.g., NOT the console), this might be easier:

https://github.com/gitbls/RPiVNCHowTo
Pi tools:
Quickly and easily build customized-just-for-you SSDs/SD Cards: https://github.com/gitbls/sdm
Easily run and manage your network's DHCP/DNS servers on a Pi: https://github.com/gitbls/ndm
Easy and secure strongSwan VPN installer/manager: https://github.com/gitbls/pistrong
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo

soma72
Posts: 38
Joined: Mon Sep 07, 2020 12:19 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Tue Oct 20, 2020 5:01 pm

bls wrote:
Tue Oct 20, 2020 4:43 pm
If you only want virtual VNC displays (e.g., NOT the console), this might be easier:

https://github.com/gitbls/RPiVNCHowTo
I think what he overcame was the dependency on RasPiOS and 32 bit. He's got a working 32 app on 64 bit Ubuntu.

bls
Posts: 2311
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Tue Oct 20, 2020 5:46 pm

soma72 wrote:
Tue Oct 20, 2020 5:01 pm

I think what he overcame was the dependency on RasPiOS and 32 bit. He's got a working 32 app on 64 bit Ubuntu.
Agree. Was just pointing out that there are easier ways to get VNC running on Ubuntu as well. I expect that most RealVNC users will want to follow your excellent guide, but people who "just want VNC" to get on with things may opt for something simpler.
Pi tools:
Quickly and easily build customized-just-for-you SSDs/SD Cards: https://github.com/gitbls/sdm
Easily run and manage your network's DHCP/DNS servers on a Pi: https://github.com/gitbls/ndm
Easy and secure strongSwan VPN installer/manager: https://github.com/gitbls/pistrong
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo

a_human
Posts: 1
Joined: Sat Oct 24, 2020 10:05 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Sat Oct 24, 2020 10:22 pm

Hello

I followed the steps and when I try to register with the wizard it accepts the login cred and displays the account info, but after i click finish it results in an error:

Code: Select all

$sudo vnclicensewiz
/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-10-24T21:50:18.877Z clovk4u vnclicensewiz_helper[19317]: ProcHelper: Unable to read server configuration: read: Connection reset by peer (104)
realvnc.jpg
realvnc.jpg (77.41 KiB) Viewed 48002 times

And the new libbcm_host.so file is in /usr/lib.

Can anyone advise? Thank you.

ruddlesdin
Posts: 1
Joined: Mon Oct 26, 2020 11:51 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Oct 26, 2020 11:54 am

Following!
I am getting the same error as a_human. "Failed to read configuration" in vnclicensewiz

ketra12
Posts: 1
Joined: Thu Oct 29, 2020 8:11 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Oct 29, 2020 8:18 am

Why after disconnecting the HDMI cable from the raspberry pi I do not have an image on the remote desktop ??

soma72
Posts: 38
Joined: Mon Sep 07, 2020 12:19 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Oct 29, 2020 4:47 pm

ketra12 wrote:
Thu Oct 29, 2020 8:18 am
Why after disconnecting the HDMI cable from the raspberry pi I do not have an image on the remote desktop ??
Check the video comments for responses. https://youtu.be/qxey8eKi9bE

jorgemtds updated a typo for a library in video description and is responding to some questions.

User avatar
scruss
Posts: 4759
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Oct 29, 2020 7:09 pm

While some folks' licensing problems may come from a typo in the instructions, note that the licence for VNC Connect for Raspberry Pi seems to be restricted to Raspbian / Raspberry Pi OS users only. If your logins are reporting a different OS, RealVNC's cloud server may choose to reject them.

The licence document — https://static.realvnc.com/media/docume ... spi_en.pdf — is a bit old, referring to the August 2016 version Raspbian, but seems to be fairly clear on this (skip to the last line for the TLDR):
1 Definitions

In this Agreement:

“License Key” means a code obtained from RealVNC which enables the Software to be used.

“Raspberry Pi Host” means the Raspberry Pi computer on which the Software is run.

“Raspberry Pi License Key” means the License Key that is automatically provided to users of a Raspberry Pi Host running Raspbian August 2016, enabling enhanced functionality as described on the Website.


“Raspbian” means the Raspberry Pi Foundation’s official supported operating system.

“Raspbian August 2016” means the August 2016 version Raspbian.

“Website” means https://www.realvnc.com and associated web applications.



2 Raspberry Pi License

2.1 In consideration of you agreeing to comply with the terms of this Agreement, RealVNC grants you a perpetual, non-exclusive, worldwide, royalty-free, non-transferable (except as otherwise stated herein), non-sublicensable license (the “License”) to use the pre-installed Software and Raspberry Pi License Key on no more than 10 Desktops.



2.6 The Raspberry Pi License Key (as defined above) is available only on Raspbian August 2016 or later.
You can run VNC Server on different Linux OSs on the Raspberry Pi — here's the download link: https://www.realvnc.com/en/connect/down ... spberrypi/ — but the VNC Connect functionality might be limited to Raspbian/Raspberry Pi OS users only. RealVNC's VNC Connect and Raspberry Pi article isn't as clear as it could be.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

hoserr9
Posts: 13
Joined: Mon Aug 24, 2020 5:05 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Dec 24, 2020 6:04 pm

Did anyone get VNC Connect to work on Ubuntu 20.10?

The vino vnc server on 20.10 is unusable.

puccaso
Posts: 53
Joined: Mon Oct 29, 2018 9:56 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Jan 04, 2021 9:06 am

hello Rpi4 gang, so

the way i solve this, is to download the the REALVNC debs from the raspberry Debian pool
check the apt source files
make sure you download the arm64 debs
then install via dpkg -i,
do NOT do the systemctl enable and start vnc server bit yet

because - you are going to get 3 errors regarding

libvcos.so
libvchiq_arm.so and
libbcm_host.so

just create links for the files it needs using the ones that were installed via the debs

then open a new terminal, and run the systemctl enable and start then you should see the vnc logo pop up in the top right

puccaso
Posts: 53
Joined: Mon Oct 29, 2018 9:56 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Jan 04, 2021 9:09 am

puccaso wrote:
Mon Jan 04, 2021 9:06 am
hello Rpi4 gang, so

the way i solve this, is to download the the REALVNC debs from the raspberry Debian pool
check the apt source files
make sure you download the arm64 debs
then install via dpkg -i,
do NOT do the systemctl enable and start vnc server bit yet

because - you are going to get 3 errors regarding

libvcos.so
libvchiq_arm.so and
libbcm_host.so

just create links for the files it needs using the ones that were installed via the debs

then open a new terminal, and run the systemctl enable and start then you should see the vnc logo pop up in the top right
realvnc ubuntu arm64.jpg
realvnc ubuntu arm64.jpg (60.28 KiB) Viewed 43701 times
Happy 2021 Everyone!

puccaso

kazin08
Posts: 50
Joined: Thu Feb 14, 2019 10:08 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Jan 11, 2021 9:25 pm

puccaso wrote:
Mon Jan 04, 2021 9:06 am
hello Rpi4 gang, so

the way i solve this, is to download the the REALVNC debs from the raspberry Debian pool
check the apt source files
make sure you download the arm64 debs
then install via dpkg -i,
do NOT do the systemctl enable and start vnc server bit yet

because - you are going to get 3 errors regarding

libvcos.so
libvchiq_arm.so and
libbcm_host.so

just create links for the files it needs using the ones that were installed via the debs

then open a new terminal, and run the systemctl enable and start then you should see the vnc logo pop up in the top right
Just for clarify this.

Download REALVNC server 64bit deb from here https://archive.raspberrypi.org/debian/ ... _arm64.deb and install it using dpkg or using SSH:

Code: Select all

wget https://archive.raspberrypi.org/debian/pool/main/r/realvnc-vnc/realvnc-vnc-server_6.7.2.43081_arm64.deb
sudo dpkg -i realvnc-vnc-server_6.7.2.43081_arm64.deb
Then you have to create a link for the 3 files that are in the folder /usr/lib/aarch64-linux-gnu to the folder /usr/lib and the link has to end with .0:

Code: Select all

cd /usr/lib/aarch64-linux-gnu
sudo ln libvcos.so /usr/lib/libvcos.so.0
sudo ln libvchiq_arm.so /usr/lib/libvchiq_arm.so.0
sudo ln libbcm_host.so /usr/lib/libbcm_host.so.0
After that, you have to enable the 2 services and start it and reboot the pi:

Code: Select all

sudo systemctl enable vncserver-virtuald.service
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-virtuald.service
sudo systemctl start vncserver-x11-serviced.service
sudo reboot

Ghost_Rider51
Posts: 2
Joined: Thu Feb 04, 2021 7:57 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Feb 04, 2021 8:30 pm

I installed the server as given by kazin08 above. It still would not connect.
What I wound doing was creating links for ten library files located in /usr/lib/aarch64
libbcm_host.so
libvcos.so
libmmal.so
libmmal_core.so
libmmal_components.so
libmmal_util.so
libmmal_vc_client.so
libchiq_arm.so
libvcsm.so
libcontainers.so
The new file links were the same name appended with".0" and located in /usr/lib.
with a command such as
ls -s /usr/lib/aarch64/libbcm_host.so /usr/lib/libbcm_host.so.0

Once this was done vncviewer (x86_64) on my fedora workstation was able to connect to the vncserver (arm64) on the Pi.
To identify and confirm exactly which files were needed i tested on the Pi with "vncserver -clean" . Each time it replied with one of the above file names until I had linked all ten as noted.

Thanks to all in this thread who have worked to make this possible Your steps and fixes were the guide I needed..

User avatar
mtbiker06
Posts: 3
Joined: Sun Feb 21, 2021 6:25 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Sun Feb 21, 2021 8:29 am

Hi Folks!!
Thanks so much everyone for getting this to work! You are all amazing at figuring this stuff out.

Here is my contribution to this. I figured if I helped me out it will help others too.
I know I will use this on my other RPis.

Script to auto install the RealVNC Server
https://github.com/mtbiker-s/ubuntu20.1 ... nstall-vnc

I've only tested this on the RPi 4 8gb with Ubuntu 20.10 64bit (Groovy Gorilla)

Thank you again everyone for having figured how to get this to work!

User avatar
AlienDrew
Posts: 12
Joined: Sun Jan 26, 2020 4:20 am
Location: Portland, OR

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Wed Feb 24, 2021 5:55 am

You might want to add a disclaimer about compatible desktop environments... since not all desktop environments will be compatible with the virtual desktop mode that real VNC uses... I was running into issues of my own for a headless configuration, until I found out that some desktop environments just aren't compatible with that sort of thing (Xvnc).
░██░░█░░█░░░░░░░░░░░███░░░░░░░░░░░░░░░░░
█░░█░█░░░░░██░░█░█░░█░░█░█░█░░░██░░█░░░█
████░█░░█░█░░█░██░█░█░░█░██░█░█░░█░█░░░█
█░░█░█░░█░████░█░░█░█░░█░█░░░░████░█░█░█
█░░█░█░░█░█░░░░█░░█░█░░█░█░░░░█░░░░██░██
█░░█░░█░█░░███░█░░█░███░░█░░░░░███░█░░░█

User avatar
kerry_s
Posts: 3745
Joined: Thu Jan 30, 2020 7:14 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Wed Feb 24, 2021 9:42 am

i just uses remmina that already comes with ubuntu.

you just run a few commands on the rpi to prep it.

User avatar
AlienDrew
Posts: 12
Joined: Sun Jan 26, 2020 4:20 am
Location: Portland, OR

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu Feb 25, 2021 3:00 am

kerry_s wrote:
Wed Feb 24, 2021 9:42 am
i just uses remmina that already comes with ubuntu.

you just run a few commands on the rpi to prep it.
You understood me incorrectly... I'm using the Ubuntu 64-bit image on my raspberry pi. I'm not remoting into anything from my raspberry pi, I'm remoting to it, and headlessly.
░██░░█░░█░░░░░░░░░░░███░░░░░░░░░░░░░░░░░
█░░█░█░░░░░██░░█░█░░█░░█░█░█░░░██░░█░░░█
████░█░░█░█░░█░██░█░█░░█░██░█░█░░█░█░░░█
█░░█░█░░█░████░█░░█░█░░█░█░░░░████░█░█░█
█░░█░█░░█░█░░░░█░░█░█░░█░█░░░░█░░░░██░██
█░░█░░█░█░░███░█░░█░███░░█░░░░░███░█░░░█

Lonerider
Posts: 4
Joined: Fri Dec 28, 2012 10:26 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Mar 01, 2021 5:36 am

Not quite the subject, but just to mention: at https://archive.raspberrypi.org/debian/ ... alvnc-vnc/ there is also a RealVNC viewer for arm64-

User avatar
kerry_s
Posts: 3745
Joined: Thu Jan 30, 2020 7:14 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Mon Mar 01, 2021 12:07 pm

AlienDrew wrote:
Thu Feb 25, 2021 3:00 am
kerry_s wrote:
Wed Feb 24, 2021 9:42 am
i just uses remmina that already comes with ubuntu.

you just run a few commands on the rpi to prep it.
You understood me incorrectly... I'm using the Ubuntu 64-bit image on my raspberry pi. I'm not remoting into anything from my raspberry pi, I'm remoting to it, and headlessly.
in ubuntu need to turn on desktop sharing before you run it headless.

User avatar
AlienDrew
Posts: 12
Joined: Sun Jan 26, 2020 4:20 am
Location: Portland, OR

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Tue Mar 02, 2021 3:16 am

kerry_s wrote:
Mon Mar 01, 2021 12:07 pm
AlienDrew wrote:
Thu Feb 25, 2021 3:00 am
kerry_s wrote:
Wed Feb 24, 2021 9:42 am
i just uses remmina that already comes with ubuntu.

you just run a few commands on the rpi to prep it.
You understood me incorrectly... I'm using the Ubuntu 64-bit image on my raspberry pi. I'm not remoting into anything from my raspberry pi, I'm remoting to it, and headlessly.
in ubuntu need to turn on desktop sharing before you run it headless.
Yes I understand about this... But how does this change anything when using RealVNC because my main purpose was to have remote access to my device (without being on my home network).
░██░░█░░█░░░░░░░░░░░███░░░░░░░░░░░░░░░░░
█░░█░█░░░░░██░░█░█░░█░░█░█░█░░░██░░█░░░█
████░█░░█░█░░█░██░█░█░░█░██░█░█░░█░█░░░█
█░░█░█░░█░████░█░░█░█░░█░█░░░░████░█░█░█
█░░█░█░░█░█░░░░█░░█░█░░█░█░░░░█░░░░██░██
█░░█░░█░█░░███░█░░█░███░░█░░░░░███░█░░░█

timkphd
Posts: 1
Joined: Sat Apr 24, 2021 3:48 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Sat Apr 24, 2021 3:51 pm

Worked as written for me on 04/24/21 except the sub version of VNC has updated. Many thanks.

User avatar
Wazburi
Posts: 22
Joined: Wed Jan 06, 2016 4:22 am
Location: Appalachia

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Thu May 27, 2021 9:50 pm

mtbiker06 wrote:
Sun Feb 21, 2021 8:29 am
Hi Folks!!
Thanks so much everyone for getting this to work! You are all amazing at figuring this stuff out.

Here is my contribution to this. I figured if I helped me out it will help others too.
I know I will use this on my other RPis.

Script to auto install the RealVNC Server
https://github.com/mtbiker-s/ubuntu20.1 ... nstall-vnc

I've only tested this on the RPi 4 8gb with Ubuntu 20.10 64bit (Groovy Gorilla)

Thank you again everyone for having figured how to get this to work!
Thank YOU!
I would like to confirm that your shell script works quite well to implement links to existing "lib. . . so" files and to wget "realvnc-vnc-server_6.7.2.43081_arm64.deb" (or current Realvnc server installer) from archive.raspberrypi.org.

In my case, Rpi 400 4GB running Ubuntu 20.10 64-bit, I downloaded and reviewed the README.md and the commands within the text shell script and per your instruction, changed permission to executable to run it
and additionally
toggled Ubuntu settings for Sharing > Screen Viewing to "Active".
and additionally
Because my Ubuntu firewall is active, ran the command "sudo ufw allow 5900" to open that port for RealVNC connection request.

I connect to the Ubuntu Desktop only on a local network from a Mac mini (M1) using the RealVNC Viewer.

Thanks again for the excellent script and documentation.

==============================================
UPDATE:
After accepting Ubuntu offer to upgrade to Ubuntu version 21.04,
AND after monitoring the upgrade process for a very long time, I find that RealVNC server no longer works, so I reverted to a cloned card with the previous Ubuntu version, 20.10 (still working).

If there is a RealVNC server solution for Ubuntu 21.04 (or newer) I would try it with newly flashed card from the image file, not via upgrade process.

==============================================
Aug.1 2021 sub-UPDATE:
Ubuntu 20.10 for Raspberry Pi "Software Updater" states:
"Updates are no longer provided for Ubuntu 20.10 to stay secure, you should upgrade to Ubuntu 21.04"
        • :cry: Goodbye fun remote Ubuntu Desktop from RealVNC Viewer
My friends call me "Word Salad"
  • All Hail Raspberry Pi !

User avatar
mtbiker06
Posts: 3
Joined: Sun Feb 21, 2021 6:25 am

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Wed Aug 25, 2021 4:23 am

Hi Wazburi,
just FYI the script is working now with Ubuntu Hirsute Hippo 21.04 64bit for Raspberry Pi.
A contributor on GitHub https://github.com/maurop88 did some overall testing of the script and provided the fix.
I re-factored some of the logic and made it where it would only work with Groovy Gorilla 20.10 and Hirsute Hippo 21.04.
So far I have been the only one to test the script it but if others are willing to give it a go, I would appreciate it.
https://github.com/mtbiker-s/ubuntu20.1 ... nstall-vnc

If you find any issues please feel free to create them under the issues section of the repo.
https://github.com/mtbiker-s/ubuntu20.1 ... vnc/issues



Wazburi wrote:
Thu May 27, 2021 9:50 pm
mtbiker06 wrote:
Sun Feb 21, 2021 8:29 am
Hi Folks!!
Thanks so much everyone for getting this to work! You are all amazing at figuring this stuff out.

Here is my contribution to this. I figured if I helped me out it will help others too.
I know I will use this on my other RPis.

Script to auto install the RealVNC Server
https://github.com/mtbiker-s/ubuntu20.1 ... nstall-vnc

I've only tested this on the RPi 4 8gb with Ubuntu 20.10 64bit (Groovy Gorilla)

Thank you again everyone for having figured how to get this to work!
Thank YOU!
I would like to confirm that your shell script works quite well to implement links to existing "lib. . . so" files and to wget "realvnc-vnc-server_6.7.2.43081_arm64.deb" (or current Realvnc server installer) from archive.raspberrypi.org.

In my case, Rpi 400 4GB running Ubuntu 20.10 64-bit, I downloaded and reviewed the README.md and the commands within the text shell script and per your instruction, changed permission to executable to run it
and additionally
toggled Ubuntu settings for Sharing > Screen Viewing to "Active".
and additionally
Because my Ubuntu firewall is active, ran the command "sudo ufw allow 5900" to open that port for RealVNC connection request.

I connect to the Ubuntu Desktop only on a local network from a Mac mini (M1) using the RealVNC Viewer.

Thanks again for the excellent script and documentation.

==============================================
UPDATE:
After accepting Ubuntu offer to upgrade to Ubuntu version 21.04,
AND after monitoring the upgrade process for a very long time, I find that RealVNC server no longer works, so I reverted to a cloned card with the previous Ubuntu version, 20.10 (still working).

If there is a RealVNC server solution for Ubuntu 21.04 (or newer) I would try it with newly flashed card from the image file, not via upgrade process.

==============================================
Aug.1 2021 sub-UPDATE:
Ubuntu 20.10 for Raspberry Pi "Software Updater" states:
"Updates are no longer provided for Ubuntu 20.10 to stay secure, you should upgrade to Ubuntu 21.04"
        • :cry: Goodbye fun remote Ubuntu Desktop from RealVNC Viewer

User avatar
codefun
Posts: 1
Joined: Wed Aug 25, 2021 2:24 pm

Re: RealVNC Server on UBUNTU 20.10 (ARM64) on Raspberry Pi 4 (8GB) by jorgemtds

Wed Aug 25, 2021 2:46 pm

Hi mtbiker06

Thanks for creating this script - i was also going nuts trying to get RealVNC ported :D
I've tested it in a clean ubuntu server install (Ubuntu Server 21.04 64-bit from https://ubuntu.com/download/raspberry-pi ) and noticed there is a missing dependency (added an issue in GitHub).
I'm now able to connect using RealVNC client but got stuck at a black screen. If i find a solution will let you know.

Return to “Ubuntu”