[mythtv-users] How to get X11VNC to run at reboot??
Phill Edwards
philledwards at gmail.com
Mon Apr 3 07:40:45 UTC 2006
> Q-43: How can I run x11vnc as a "service" that is always available?
My MythTV combined backend/frontend boots into runlevel 5. All I have
to do is make sure I have loaded the VNC module in xorg.conf:
Section "Module"
Load "v4l"
Load "extmod"
Load "glx"
Load "dbe"
Load "record"
Load "freetype"
Load "type1"
Load "fbdevhw"
Load "vnc"
EndSection
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
Both of these methods work for me but I don't use the 2nd method since
I discovered the X module method.
Regards,
Phill
More information about the mythtv-users
mailing list