30
October

Ubuntu VNC the Quick and Dirty Way

Why they don’t have better VNC support built into Ubuntu yet I don’t know, still it way better then it used to be. In the mean time here is a quick and dirty way to get VNC working from before you login screen.

  1. First off you need to make sure that you have x11vnc installed:
    sudo apt-get install x11vnc
  2. Now all you need to do is slap in the command to run the VNC server into the file “/etc/init.d/gdm”. Locate the start section of the script and just before the “;;” add the line:
    /usr/bin/x11vnc -safer -forever -nopw -loopbg -auth /var/lib/gdm/:0.Xauth -display :0
  3. and your done you should now be able to access your Ubuntu with VNC with a login screen.

Before any body comments I know you should do it though inetd, but I’ve often had problems with that in the past so this is just something to allow you access from login with out the hassle of installing and configuring inetd.