Skip to content

Instantly share code, notes, and snippets.

@fengye
Last active June 24, 2021 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengye/c5b04382682aaea1f133cfbb50d38e97 to your computer and use it in GitHub Desktop.
Save fengye/c5b04382682aaea1f133cfbb50d38e97 to your computer and use it in GitHub Desktop.
Setting up Jetson Nano's VNC and Resolution

Setup VNC server on the Jetson developer kit

With the help from: https://developer.nvidia.com/embedded/learn/tutorials/vnc-setup and: https://forums.developer.nvidia.com/t/vnc-wont-work-without-jetson-connected-to-monitor/172932/3

Enable the VNC server to start each time you log in

If you have a Jetson Nano 2GB Developer Kit (running LXDE)t

mkdir -p ~/.config/autostart
cp /usr/share/applications/vino-server.desktop ~/.config/autostart/.

For all other Jetson developer kits (running GNOME)

cd /usr/lib/systemd/user/graphical-session.target.wants
sudo ln -s ../vino-server.service ./.

Configure the VNC server

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

Set a password to access the VNC server

# Replace thepassword with your desired password
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n 'thepassword'|base64)

Reboot the system so that the settings take effect

sudo reboot

The VNC server is only available after you have logged in to Jetson locally. If you wish VNC to be available automatically, use the system settings application on your developer kit to enable automatic login.

Setting the Desktop Resolution

The desktop resolution is typically determined by the capabilities of the display that is attached to Jetson. If no display is attached, a default resolution of 640x480 is selected. To use a different resolution, edit /etc/X11/xorg.conf and append the following lines:

Section "Screen"
   Identifier    "Default Screen"
   Monitor       "Configured Monitor"
   Device        "Tegra0"
   SubSection "Display"
       Depth    24
       Virtual 1280 800 # Modify the resolution by editing these values
   EndSubSection
EndSection

Restart the CSI Camera daemon if some process using the camera stuck/hung

sudo systemctl restart nvargus-daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment