networking - VNC server doesn't start until login - Ask Ubuntu
i'm trying set vnc connection imac (soon headless) mac mini running ubuntu 16.10.
i'm using tutorial: how setup x11vnc server on ubuntu & linuxmint
everything perfect through section "start x11vnc server". run command terminal prompt, server starts on ubuntu box, , can instantly connect vnc client on imac (running chicken).
so, looks good, next section how make vnc server starts @ boot , assume don't need logged in able connect.
i copied code shown in final section, 1 change of user folder (/home/bryan/.vnc/passwd
), saved , rebooted. tried connecting , client tells me could not connect server 192.168.1.2 port 5900 - server refused connection.
but if login on ubuntu box (currently have connected monitor, keyboard & mouse), , use same command before:
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/bryan/.vnc/passwd -rfbport 5900 -shared
the imac can log me in perfectly, way want to.
why doesn't seem load server @ startup, , how can fix this?
thanks replies!
the tutorial referenced outdated, assumes you're on older version of ubuntu upstart init system (init systems control startup applications). newer versions of ubuntu use systemd init system.
you need create new file @ /lib/systemd/system/x11vnc.service
, put inside file:
[unit] description=start x11vnc @ startup. after=multi-user.target [service] type=simple execstart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/bryan/.vnc/passwd -rfbport 5900 -shared [install] wantedby=multi-user.target
after have created file need enable , reload service using systemctl issuing these commands:
sudo systemctl enable x11vnc.service sudo systemctl daemon-reload
i recommend restarting system after running commands.
reference: http://c-nergy.be/blog/?p=8984
note: else having same issue , creating file. sure change execstart line point password, i.e. change /home/bryan/.vnc/passwd
/home/yourusername/.vnc/passwd
Comments
Post a Comment