Ubuntu account suddenly keeps quitting on 11.04

Is there a standard procedure I should follow to troubleshoot this?

  1. You start by looking at log files.

    • Hit super and start typing log file viewer. Logs ending on a dot and a digit are older logs. Most of these logs are specific to certain events (like boot.log only is useful when dealing with starting and stopping your system). syslog is a log file that shows system errors so is always a good start.

    • Then there is .xsession-errors in you home directory. Messages related to your GDM sessions are stored in this file. grep error ~/.xsession-errors will show lines that contain an error. There might be something useful in here. If you find anything useful/related to your problem search for it on askubuntu.com or google (most of the errors you find will have happend to others).

  2. If it is random it might be related to your graphics card crashing your X server. Check that you have installed the recommended driver version and not the newest or an experimental driver. If this is the case it is best to check launchpad for bugs and if it is a new problem file a bug against this.