You are not logged in.
Pages: 1
Hey there,
first of all i'd like to thank this forum (and their users) and the wiki for being really really awesome \o/
Now to my problem:
So i have x11vnc setup on a headless Arch machine. Everything worked fine with the monitor attached, but when i pulled the monitor cable out the starting behaviour changed. Basically, when it boots up for the first time, it seems to not find an Xauthority (see logs below). So the inital startup for the daemon fails. So once the login screen appears i can start the daemon manually per ssh and everything works again. So can anybody tell me how i could fix this so it starts without errors in the daemon??
Thanks for your help
Additional Info:
/etc/rc.d/x11vnc
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/x11vnc
PID=$(pidof -o %PPID /usr/bin/x11vnc)
case "$1" in
start)
stat_busy "Starting x11vnc"
[[ -z "$PID" ]] && /usr/bin/x11vnc $X11VNC_ARGS &> /dev/null &
if [[ $? -gt 0 ]]; then
stat_fail
else
add_daemon x11vnc
stat_done
fi
;;
stop)
stat_busy "Stopping x11vnc"
#[[ ! -z "$PID" ]] && kill $PID &> /dev/null
[[ ! -z "$PID" ]] && sudo kill $PID
if [[ $? -gt 0 ]]; then
stat_fail
else
rm_daemon x11vnc
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
/etc/conf.d/x11vnc
X11VNC_ARGS="-env FD_XDM=1 -auth guess -display :0 -rfbauth /root/passwd -rfbport 5555 -forever"
and the log output:
16/10/2011 21:08:37 passing arg to libvncserver: -rfbauth
16/10/2011 21:08:37 passing arg to libvncserver: /root/passwd
16/10/2011 21:08:37 passing arg to libvncserver: -rfbport
16/10/2011 21:08:37 passing arg to libvncserver: 5000
16/10/2011 21:08:37 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 775
16/10/2011 21:08:37 -auth guess: failed for display=':0'
Last edited by flash84 (2011-10-16 18:21:42)
Offline
Pages: 1