B
balubeto
Guest
Hi
I found this link https://wiki.edubuntu.org/InstallX11VncOnLtspClients that contains a script for x11vnc to be put in the /etc/init.d directory. Being an old script, I have transformed the structure into:
So I wrote the sudo chmod 755 /etc/init.d/x11vnc and sudo ln -s /etc/init.d/x11vnc /etc/rc2.d/S99x11vnc commands. indeed:
The commands to create the password, I do not have them done because I had them already made. So, I rebooted the machine, but the x11vnc server is not started and, moreover, it has not created any log file.
So, I tried to run the command sudo /etc/init.d/x11vnc start and its ouput is:
How come?
Thanks
Bye
I found this link https://wiki.edubuntu.org/InstallX11VncOnLtspClients that contains a script for x11vnc to be put in the /etc/init.d directory. Being an old script, I have transformed the structure into:
Code:
#!/bin/sh
case "$1" in
start)
start-stop-daemon --start --oknodo \
--pidfile /var/run/x11vnc.pid --background \
--nicelevel 15 --make-pidfile --exec \
/usr/bin/x11vnc -rfbport 5900 -auth /var/run/lightdm/root/:0 -rfbauth /etc/x11vnc.pass -nomodtweak -noxrecord -shared -forever -loop -o /var/log/x11vnc.log
;;
stop)
start-stop-daemon --stop --oknodo --pidfile /var/run/x11vnc.pid
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart"
;;
esac
exit 0
So I wrote the sudo chmod 755 /etc/init.d/x11vnc and sudo ln -s /etc/init.d/x11vnc /etc/rc2.d/S99x11vnc commands. indeed:
Code:
lrwxrwxrwx 1 root root 18 apr 4 19:21 /etc/rc2.d/S99x11vnc -> /etc/init.d/x11vnc
The commands to create the password, I do not have them done because I had them already made. So, I rebooted the machine, but the x11vnc server is not started and, moreover, it has not created any log file.
So, I tried to run the command sudo /etc/init.d/x11vnc start and its ouput is:
Code:
start-stop-daemon: invalid option -- 'f'
How come?
Thanks
Bye