You may want to add '-shared' to the line in the original posting. This allows you to connect more than one viewer to the server. This is especially important if your connection dies for some reason and you need to reconnect. Otherwise you'll get kicked out until something in the original VNC connection times out.
Code:
x11vnc -nap -bg -many -shared -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"
Don't confuse this with '-many', which tells VNC to allow more connections, not exit after the first connection exits.
Bookmarks