laserman
Posts: 5
Joined: Thu Mar 19, 2015 2:05 pm

Starting a program and viewing in VNC

Sun Nov 13, 2016 12:25 pm

When my Raspberry Pi starts, I have a line in /home/pi/.config/lxsession/LXDE-pi to autostart a program. Opening a terminal, typing top, I see the program running but when I access the pi via VNC, I am not able to see the program GUI. I can connect a monitor and see it there but not virtually.

How can I get it to where I can see the program from VNC?

laserman

User avatar
pi-anazazi
Posts: 716
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Starting a program and viewing in VNC

Sun Nov 13, 2016 1:16 pm

VNC normally on Linux starts on a display other than the one you see on your monitor, e.g. you start your vncserver on :1 and you access it via 10.10.10.25:1.

If you want the same display as on the monitor, use display :0, but you need special setup for this (only on Windows :0 is default, no other displays possible, iirc).
Kind regards

anazazi

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: Starting a program and viewing in VNC

Sun Nov 13, 2016 1:19 pm

The answer to your question is:

x11vnc

That's the version of VNC that "mirrors" the "real" display, rather than creating a new, "virtual", display.

BTW, I think the new, "RealVNC", version of VNC might also figure into this, but I have not had a chance to test it yet.
If this post appears in the wrong forums category, my apologies.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Starting a program and viewing in VNC

Sun Nov 13, 2016 2:09 pm

Martin Frezman wrote:The answer to your question is:

x11vnc

That's the version of VNC that "mirrors" the "real" display, rather than creating a new, "virtual", display.

BTW, I think the new, "RealVNC", version of VNC might also figure into this, but I have not had a chance to test it yet.
An updated Raspbian Jessie includes RealVNC which may be suitable:

https://www.raspberrypi.org/blog/introducing-pixel
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

laserman
Posts: 5
Joined: Thu Mar 19, 2015 2:05 pm

Re: Starting a program and viewing in VNC

Wed Nov 16, 2016 1:02 pm

Appreciate the replies. I will check into the new RealVNC.

laserman

Return to “Advanced users”