NI Linux Real-Time Discussions

Showing results for 
Search instead for 
Did you mean: 

Installing and using x11vnc on a 2016 x64 target (remote UI access to a cRIO)


One of the packages that made its way into the 2016 opkg feeds is x11vnc. This is a package that allows you to serve the current UI over a VNC connection to the target (meaning that you can remotely check the status of an embedded UI of a running LabVIEW app from the comfort of your desk).


  1. Make sure that your x64-based controller is connected to the internet (this is not strictly required, but prevents you from needing to download all of the separate .ipk files that are needed to a USB drive to install from)
  2. Log into the controller (serial or ssh)
  3. Run the following commands
    1. opkg update
    2. opkg install x11vnc
  4. Enable the UI if it has not already been enabled
  5. Test it out first
    1. From a terminal on the embedded UI, run x11vnc
    2. From a serial or ssh console, run DISPLAY=:0 x11vnc
    3. Download a vnc client for your OS of choice (I've used realvnc, tightvnc, and ultr@vnc from Windows before).
      1. Here, I'm using ultr@vnc, the non-installer version
    4. Connect to your target


  1. To set the x11vnc server to run on startup, goto Settings Manager[1], Session and Startup[2], and under the Application Autostart tab, add an entry for x11vnc






Right now, the connection is passwordless and gives complete control to the UI as if you were standing at the controller. You should read up on all of the options to see what makes sense for you, but I would recommend looking at -storepasswd and -usepw for some basic access control, you may wish to look into tunneling over ssh etc. etc.


Right now, as configured, the x11vnc server will exit after the first connection is closed, you would want to use -forever or -loop to keep the interface up. Additionally, it currently only accepts a single connection at a time, to share between users, look into the aptly-named -shared option. These would be added to the Command field when adding the startup application.

Message 1 of 2


Can someone kindly advise on how to keep the x11vnc running with -forever or -loop. I have just started to know about Linux. Thank you. 

0 Kudos
Message 2 of 2