

But feel free to use your own there are many. Remmina is a nice VNC viewer that lets you save configurations easily and access different servers with a double click. $ sudo systemctl daemon-reload $ sudo systemctl start $ sudo systemctl enable Setup VNC Viewer Start and enable the secure-tunnel service, where server_hostname is the IP address or hostname of the Xavier NX. Create a file and fill in the contents: USER= LOCAL_PORT=5901 REMOTE_PORT=5901įinally, we’re ready to start and enable our SSH tunnel. Next, we’ll create a configuration for the server_hostname target. RestartSec=5 is set that way to allow a clean teardown before restarting the service.This will give us useful information in the syslog, if there is any trouble. ServerAliveInterval causes the ssh session to exit (with an error) if the port forwarding fails.ServerAliveInterval is the number of seconds to wait before sending a null packet to the server (to keep the session alive).-T disables psuedo-tty allocation, since stdin isn’t a terminal application.-N causes the session to not execute a remote command, such as when you just want to forward ports and don’t want an interactive session.List them out by the following command: $ (cd /tmp/.X11-unix & for x in X* do echo ":$ # Restart every >2 seconds to avoid StartLimitInterval failure RestartSec=5 Restart=always WantedBy=multi-user.target You might have to select a different one. You may be wondering why 1 is selected here. We’ll create a default server profile in /etc/default/vncserver: VNCSERVERS="1: " Log the sessions in a pid file, where %H is the host name, and %i is the display number.Assume a 1920x1080, 24-bit RGB color display.Kill any server currently running on display %i before launching a new server.This is an Ubuntu specific script, since vncserver is a distribution-specific script in itself for the underlying Xvnc server.There are a few things to note about our configuration: So instead, we will create a SystemD service template to accomplish this task.įirst, create a file and add these contents, where your_username is the username of the server’s VNC user that will own the session: Description=Systemd VNC server startup script After=syslog.target network.target Type=forking User=simeon ExecStartPre=-/usr/bin/vncserver -kill :%i &> /dev/null ExecStart=/usr/bin/vncserver -depth 24 -geometry 1920x1080 :%i PIDFile=/home/ /.vnc/%H:%i.pid ExecStop=/usr/bin/vncserver -kill :%i WantedBy=multi-user.target Now, all we need to do is to startup TigerVNC (1920x1080, 24-bit color, display 1): $ vncserver -depth 24 -geometry 1920x1080 :1 Setting up a VNC Service in SystemDīut, we don’t want to have to run this command at startup if this is going to be the main way to interact with the Xavier NX. startxfce4 starts the desktop environment.autocutsel -fork attempts to share the clipboard between the two sessions.

XKL_XMODMAP_DISABLE prevents differing keyboard layouts from becoming overriden by the server’s default keyboard layout.DBUS_SESSION_BUS_ADDRESS must be unset to segregate the remote session from existing session, essentially sandboxing the remote desktop session.SESSION_MANAGER suppresses complaints from the desktop environment.
#Start tigervnc server install
Open a terminal on the Jetson Xavier NX and install the dependencies: # Ubuntu/Debian $ sudo apt install tigervnc-standalone-server tigervnc-xorg-extension xfce4 xfce4-goodies # Manjaro/Arch $ sudo pacman -S xfce4-gtk3 xfce4-goodies xfce4-terminal network-manager-applet xfce4-notifyd-gtk3 xfce4-whiskermenu-plugin-gtk3 tumbler engrampaĬreate a ~/.vnc/xstartup file and place the following contents: #!/bin/sh # Start XFCE4 Desktop unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS export XKL_XMODMAP_DISABLE=1 autocutsel -fork startxfce4 & It makes a perfect, low-cost, low-energy development server for a variety of tasks, but especially computer vision and deep learning tasks. It’s quite a capable SOM that can be used for a variety of tasks, such as developing deployable vision solutions at the edge.
