top of page

Nvidia Jetson Nano - VNC Install

I have tried the same on Jetson TX2 with JetPack 4.2 and failed. There seems to be no key named ‘enabled’. You can create that key, but vino-server will still refuse to start. I gave up on that and after one day of head scratching I found an alternative solution:

1. Install TigerVNC server:

$ sudo apt install tigervnc-standalone-server tigervnc-xorg-extension -y

2. Set a password for the VNC server:

$ vncpasswd

3. Create the file “/home/nvidia/.vnc/xstartup” with the following content:

#!/bin/sh
export XDG_RUNTIME_DIR=/run/user/1000
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

xrdb /home/nvidia/.Xresources
xsetroot -solid grey

gnome-session &

4. Create the empty file “.Xresources” in your user’s home directory:

$ touch /home/nvidia/.Xresources

5. Create the file “/etc/systemd/system/vncserver@.service” with the following content:

[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=nvidia
Group=nvidia
WorkingDirectory=/home/nvidia
PIDFile=/home/nvidia/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -localhost no -depth 24 -geometry 1280x720 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

6. Make sure the VNC server starts after system boot:

$ sudo systemctl daemon-reload
$ sudo systemctl enable vncserver@1

7. Configure auto-login with GDM3. Open “/etc/gdm3/custom.conf” and uncomment or change the following lines:

AutomaticLoginEnable=true
AutomaticLogin=nvidia

Reboot the system and try to reach the VNC server at port 5901.


Warning: You have to open GNOME settings immediately and disable the screen saver and screen locking. If the session is locked you cannot enter your password (reasons unknown).

Please report back.









 
 
 

Bình luận


bottom of page