How to set up VNC server on the Jetson Nano?

Hey guys,

I am looking to remotely access my jetson nano from a windows PC. Currently, I am trying to use realVNC server to configure the server and use realVNC viewer in my laptop to access the Nano.

However when I downloaded the VNC package, I had some errors :

sandbox@sandbox-desktop:~/Downloads$ sudo apt install ./VNC-Server-6.6.0-Linux-x86.deb
[sudo] password for sandbox: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'realvnc-vnc-server:i386' instead of './VNC-Server-6.6.0-Linux-x86.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 realvnc-vnc-server:i386 : Depends: libc6:i386 but it is not installable
                           Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installable
                           Depends: libx11-6:i386 but it is not installable
                           Depends: libxext6:i386 but it is not installable
                           Depends: libxtst6:i386 but it is not installable
                           Recommends: cups:i386
E: Unable to correct problems, you have held broken packages.

The thing is I just re flashed my sd card after formatting it and this was the first thing I did so, I don’t see how I have broken packages.

Hi UAVstreaming,

Please check this thread if can help: https://devtalk.nvidia.com/default/topic/1056629/jetson-nano/jetson-nano-vnc-headless-connections/

It worked when I did these commands from the link you provided :

gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false

But it messed up my nano, the whole interface looked different like it was another os. The command terminal was white.

1 Like

Note that anything i386 (or any *86) is incompatible. The Nano is arm64, and the other packages are for a desktop PC.

How do I undo these codes after I typed them?

gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false

I couldn’t tell you about undoing those, but gsettings is just a configuration, and is not dependent upon architecture. If you have somehow managed to force install of a non-arm64/aarch64 package, e.g., if this actually installed on the Nano:

VNC-Server-6.6.0-Linux-<b><i>x86</i></b>.deb

…then you would probably be able to:

sudo apt-get remove VNC-Server-6.6.0-Linux-x86

(or some minor variation of that)

If somehow you ended up with a number of packages of incorrect architecture installed, then you may want to first try to just remove those packages, and if that cannot succeed, then flashing again may be the only “easy” way to fix things.