MarkDH102
Posts: 340
Joined: Fri Feb 13, 2015 3:18 pm

Stretch and X11VNC

Mon Aug 21, 2017 2:14 pm

I am using a fresh install of Stretch on a Pi 2B.
I installed X11VNC server (as I've always used it successfully and is part of my standard setup for a new Pi).
I am seeing odd behaviour. It is random. Clicking on the menu bar or in the file manager the connection (via tightvnc) on my PC loses connection. I can still browse the Pi from Windows (using Samba) but cannot get the VNC connection back. So I have to pull the plug (headless).
Any ideas?

I modify the following to get X11VNC running:

nano ~/.xsessionrc

Code: Select all

# Start X11VNC
x11vnc -bg -nevershared -forever -tightfilexfer -usepw -display :0
And save

Make the file executable:

Code: Select all

chmod 775 ~/.xsessionrc

In /boot/config.txt I set up for 1920 * 1080, group 2 mode 82.

davethomaspilot
Posts: 104
Joined: Tue Apr 29, 2014 6:18 pm

Re: Stretch and X11VNC

Mon Feb 18, 2019 3:51 pm

Sounds like the "stack smashing" x11vnc but that was introduced in several releases of x11vnc.

I feel the version you get with apt-get install on stretch is pretty much useless. The bug is known, but apparently the policy is not to point to a newer release unless it's a security issue.

Here's a thread:

https://bugs.debian.org/cgi-bin/bugrepo ... bug=859213

Getting the referenced x11vnc source, building, and installing fixed the issue for me.

Hope this helps.

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

Re: Stretch and X11VNC

Mon Feb 18, 2019 4:06 pm

MarkDH102 wrote:
Mon Aug 21, 2017 2:14 pm
I am using a fresh install of Stretch on a Pi 2B.
I installed X11VNC server (as I've always used it successfully and is part of my standard setup for a new Pi).
I am seeing odd behaviour. It is random. Clicking on the menu bar or in the file manager the connection (via tightvnc) on my PC loses connection. I can still browse the Pi from Windows (using Samba) but cannot get the VNC connection back. So I have to pull the plug (headless).
Any ideas?

I modify the following to get X11VNC running:

nano ~/.xsessionrc

Code: Select all

# Start X11VNC
x11vnc -bg -nevershared -forever -tightfilexfer -usepw -display :0
And save

Make the file executable:

Code: Select all

chmod 775 ~/.xsessionrc

In /boot/config.txt I set up for 1920 * 1080, group 2 mode 82.

The RealVNC developers compiled their product to be usable on the Raspberry Pi, hence why it is included in Raspbian Stretch with Desktop:

https://www.raspberrypi.org/documentati ... /README.md
Retired disgracefully.....

Return to “General discussion”