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).



IMPORTANT! READ THIS!
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.
Hi,
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.
add the -forever to the command in add application window.
name: x11vnc
Description: X11 VNC server
Command x11vnc -forever
Tested on crio 9030 with LV2020
I'm trying to use x11vnc on a cRio 9041. It's close to working but...
1. I found that I first have to set the display size in the cRio or else the vncviewer will only see a very small portion of the screen. I do this by sshing into the device and running:
> export DISPLAY=:0
>xrandr -fb 1920x1080
then I can start the server with:
> x11vnc -display :0 -forever -geometry 1920x1080
Now opening it with a view shows the whole screen.
Is there a way to do this automatically at startup so I don't have ssh in first to set the display properties?
Also, the fonts are wrong in the application when it's running, but maybe that's worth another post.
I arrived at the same stage. Did you manage to find a solution for automatically setting the screen resolution? Would be great to update this thread so everybody can benefit
Yes, I did find a workable solution. I had to start another thread to get it though. Try chipmonk77's solution at...
https://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/howto-make-x11vnc-start-on-boot/m-p/4152766
Can the same be used to replicate virtual console display on a Windows host PC? What additional steps do we need to view the VCS data continuously on the host PC?
Propably just installing a VNC server is the easiest way.
This guide is for the linux based RT system.
For windows you can use realvnc