Skip to content

Instantly share code, notes, and snippets.

@eborghi10
Last active June 14, 2021 23:37
Show Gist options
  • Save eborghi10/9fd4f78bed3667ae50cbe5351a7a8b8b to your computer and use it in GitHub Desktop.
Save eborghi10/9fd4f78bed3667ae50cbe5351a7a8b8b to your computer and use it in GitHub Desktop.
[Nvidia Jetson Nano] TurboVNC + VirtualGL
  • Download and install compiled binaries
wget http://demotomohiro.github.io/hardware/jetson_tk1/pkg/libjpeg-turbo_1.4.0_armhf.deb
wget http://demotomohiro.github.io/hardware/jetson_tk1/pkg/virtualgl_2.4_armhf.deb
wget http://demotomohiro.github.io/hardware/jetson_tk1/pkg/turbovnc_1.2.3_armhf.deb
sudo dpkg -i libjpeg-turbo_1.4.0_armhf.deb
sudo dpkg -i virtualgl_2.4_armhf.deb
sudo dpkg -i turbovnc_1.2.3_armhf.deb
sudo vi /etc/X11/xorg.conf
  • Add the following line to the “Screen” section in xorg.conf to run Xorg without the external display.
Section "Screen"
Identifier  "Screen0"
…
Option "AllowEmptyInitialConfiguration"
Option "UseEdid" "False"
...
EndSection
sudo nano /etc/ld.so.conf.d/libjpeg-turbo.conf
  • Add the following line
/opt/libjpeg-turbo/lib32
sudo ldconfig
  • Configure VirtualGL
sudo /opt/VirtualGL/bin/vglserver_config
sudo usermod -a -G vglusers $USER
sudo usermod -a -G vglusers root
  • Start TurboVNC
/opt/TurboVNC/bin/vncserver
  • Stop TurboVNC
/opt/TurboVNC/bin/vncserver -kill :1
  • Install xfce4 for windows management
nano .vnc/xstartup.turbovnc
  • Set following text
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
  • Run glxgears as demo in VNC client
/opt/VirtualGL/bin/vglrun glxgears
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment