fehlix that worked like a charm, but i'm going to try and set up a init file so if it stops i wont have to reboot i can restart it from cli .
thank you fehlix & Richard
permission systemd x11vnc.service solved [Solved]
Re: permission systemd x11vnc.service
Well, you have not to reboot in case it stops or you like to restart it.klein wrote: Thu Sep 27, 2018 9:30 pm ... but i'm going to try and set up a init file so if it stops i wont have to reboot i can restart it from cli .
Just run from the terminal command line or put those into a little (re)-start script
for manually starting / restarting and place it in to /usr/local/bin
like this example:
Code: Select all
#!/bin/bash
# name :x11vnc_start.sh
# dir: /usr/local/bin
# restart / start x11vnc daemon
#
/usr/bin/killall x11vnc >/dev/null 2>&1
sleep 2
/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -auth guess -rfbauth /etc/x11vnc.pass
echo "Status : " $?
Make it executable:
Code: Select all
sudo chmod +x /usr/local/bin/x11vnc_start.sh
Code: Select all
sudo x11vnc_start.sh
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# x11vnc
/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -auth guess -rfbauth /etc/x11vnc.pass || exit 0
exit 0
Re: permission systemd x11vnc.service solved [Solved]
Thank you very much @fehlix your answer solved my issue as well wanted to find a working way to run x11vnc on boot. Tried everything google showed me but none worked, thank you very much again.