[mythtv-users] How to get X11VNC to run at reboot??

A JM vbtalent at gmail.com
Mon Apr 3 11:24:30 UTC 2006


Would I just run my X11VNC startup line here?

*/5 * * * * (x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/.vnc/passwd
-forever -bg) > /dev/null 2>&1


Interesting? Will this work with KDE also? Where would put the script?

Another option you have if you're using gdm is to put this in
/etc/X11/gdm/PreSession/Default:

### Only start x11vnc listeners if there isn't one already running.
X11VNCSTATUS=`ps -e | grep x11vnc | grep -v grep | wc -l | awk '{print $1}'`
if [ $X11VNCSTATUS -eq 0 ]
then
   /usr/bin/x11vnc -nap -wait 50 -passwd xxxxxxx -display :0 -forever
-o /var/log/x11vnc.log -bg -allow 192.168.0. -norepeat
fi


Correct me if I'm wrong VNC will not allow you to log into an existing
session, correct? I know X11VNC does.

Thanks for your suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060403/b2f26f0c/attachment.htm 


More information about the mythtv-users mailing list