[mythtv-users] How to get X11VNC to run at reboot??
A JM
vbtalent at gmail.com
Sun Apr 2 19:42:06 UTC 2006
*Q-43:* How can I run *x11vnc* as a "service" that is always available?
Is anyone using X11VNC to run a headless Mythbox? how do I get it to startup
after reboot and without having to login as a user??
This is from the website but I'm not fluid enough to understand how to
implement it? any would be appreciated.
Thanks,
There are a number of ways to do this. The primary thing you need to decide
is whether you want *x11vnc* to connect to the X session on the machine 1)
regardless of who (or if anyone) has the X session, or 2) only if a certain
user has the X session. Because X sessions are protected by X permissions
(MIT-MAGIC-COOKIE files XAUTHORITY and $HOME/.Xauthority) the automatically
started *x11vnc* will of course need to have sufficient permissions to
connect to the X display.
Here are some ideas:
- Use the description under "Continuously" in the FAQ on *x11vnc* and
Display Managers<http://karlrunge.com/x11vnc/#display-manager-continuously>
- Use the description in the FAQ on *x11vnc* and
inetd(1)<http://karlrunge.com/x11vnc/#faq-inetd>
- Start *x11vnc* from your $HOME/.xsession (or $HOME/.xinitrc)
- Although less reliable, see the
x11vnc_loop<http://karlrunge.com/x11vnc/#x11vnc_loop>
rc.local hack below.
The display manager scheme will not be specific to which user has the X
session unless a test is specifically put into the display startup script
(often named Xsetup). The inetd(1) scheme may or may not be specific to
which user has the X session (and it may not be able to do all users via the
XAUTHORITY permission issues).
The $HOME/.xsession scheme is obviously is specific to a particular user. If
you do not know what a $HOME/.xsession script is or how to use one, perhaps
your desktop has a "session startup commands" configuration option. The
command to be run in the .xsession or .xinitrc file may look like this:
x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/.vnc/passwd -forever -bg
plus any other options you desire.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060402/be76e6be/attachment.htm
More information about the mythtv-users
mailing list