I'm trying to set up a VNC connection from my iMac to my (soon to be headless) Mac Mini running Ubuntu 16.10.
I'm using this tutorial: How to Setup X11VNC Server on Ubuntu & LinuxMint
Everything is perfect up through the section "Start X11VNC Server". I run the command from a terminal prompt, the server starts on the Ubuntu box, and I can instantly connect with my VNC client on the iMac (running Chicken).
So, looks good, next section is how to make it so the VNC server starts at boot and I assume that I don't need to be logged in to be able to connect.
I copied the code exactly as shown in the final section, with the one change of my user folder (/home/bryan/.vnc/passwd
), saved and rebooted. Tried connecting and the client tells me Could not connect to server 192.168.1.2 port 5900 - The server refused the connection.
But then if I login on the Ubuntu box (currently have it connected up with a monitor, keyboard & mouse), and use the same command from before:
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/bryan/.vnc/passwd -rfbport 5900 -shared
The iMac can log me in perfectly, exactly the way I want it to.
Why doesn't it seem to load the server at startup, and how can I fix this?
Thanks for any replies!