Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

X11vnc server exits when I close tightVNC viewer

I followed this blog to set up a VNC connection from my Windows 8 laptop to my BeagleBone Black.

Digital Diner: Quick hint for Beaglebone Black user

It works well except for one problem: the X11VNC server on the Beagle Bone Black exits when I close the TightVNC Viewer on my laptop. I have to connect a remote terminal to the BBB using PuTTY and run the command given in the blog in order to reconnect.

Any suggestions on how to keep the server from exiting when I close the TightVNC viewer connection on my laptop? Is there a way to always have the X11vnc server running on the Beagle Bone Black so I can connect anytime?

like image 588
Charles Arthur Wuthrich III Avatar asked Dec 20 '22 05:12

Charles Arthur Wuthrich III


1 Answers

I found the answer here: BeagleBone Black Google Group.

The key is to add -forever to the end of the command to start the X11vnc server.

x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0 - forever - nopw

I also added this command to the start up applications. System --> Preferences --> Startup Applications

like image 146
Charles Arthur Wuthrich III Avatar answered Dec 28 '22 06:12

Charles Arthur Wuthrich III