So rather than try to troubleshoot via the command line I wanted to fire up the GUI and troubleshoot that way. The problem was my server is running headless, meaning without a mouse, monitor or keyboard. Normally to administrate it I would simply log in with SSH but this problem required the GUI (but that is another article all together).
VNC to the Rescue!
Now according to the Steve Harman's blog Ubuntu supports VNC by default but you have to have an active-x windows session already started. So short of setting up a monitor and keyboard on my server, I had no way to start this... except with the power of TightVNC Server. Note that this guide assumes that you have already installed the gnome desktop.
1. So I started off by initiating an SSH session into my server and downloading tight VNC server.
sudo apt-get install tightvncserver
2. Next I set up gnome to start when vnc server starts up.
sudo nano ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
/etc/X11/Xsession
export XKL_XMODMAP_DISABLE=1
gnome-session &
**Note that the line "export XKL_XMODMAP...." must be added or the VNC client's keyboard map will be messed up**
3. Start the Tight VNC server.
vncserver –geometry widthxheight –depth 24
Now I have read that it may ask for a password here but I didn't have to enter one when I set mine up.
4. Download and install the TightVNC Client
Tight VNC can be downloaded from here for all platforms. It is pretty simple to install so I wont go into too much detail here.
5. Launch the VNC client and log into your server.
One thing to note that I ran into was that when I put the servers ip address in I also had to specify a port (port 1). If I did not specify this port then I could not connect. So for example in the "server" field I had to put in:
192.168.1.3:1
Then it will ask you for your password. The one that I entered here was the password for the account I used to install the VNC server.
You should now be able to see your servers desktop :p