The following lines were added (+) and removed (-):
Creating an init script called xllvnc.conf in the /etc/init directory. Now add the following code to the script:AUTOSTART: For Ubuntu In Ubuntu (but not Kubuntu or Xubuntu) x11vnc needs superuser access, and needs the -auth /var/lib/gdm/:0.Xauth -display :0 options to be specified on the command-line. The argument value for the -auth option may be found previously with x11vnc -findauth. You can run x11vnc before you've logged in by typing something like this: sudo x11vnc -safer -localhost -once -nopw -auth /var/lib/gdm/:0.Xauth -display :0If you find a blank screen, check the x11vnc FAQ entry on headless servers. Alternatively, you can add the following lines to the bottom of your /etc/gdm/Init/Default to have x11vnc start after your gnome login does (note that /etc/gdm/Init/Default does not exist on some Ubuntu devices): # Start the x11vnc Server /usr/bin/x11vnc <options> AUTOSTART: For other Linux Distributions: Creating an init script called x11vnc.conf in the /etc/init directory. Now add the following code to the script:If you're using Ubuntu the xllvnc binary should be in the path /usr/bin/xllvnc. You can test to make sure it is installed and present in that path location by typingIf you're using Ubuntu the x11vnc binary should be in the path /usr/bin/x11vnc. You can test to make sure it is installed and present in that path location by typing file /usr/bin/xllvnc file /usr/bin/x11vnc