Ubuntu 9.10: gnome-session not starting automatically

0

I've been running Ubuntu 9.10 for a few weeks now without a problem. I installed gloobus-preview which worked wonderfully. Today I updated my computer which also updated gloobus (which patches nautilus to provide some shortcuts). Gloobus stopped working, so I uninstalled it and tried reinstalling it. This included me uninstalling nautilus, removing the gloobus source from the sources, apt-get update, then i reinstalled nautilus. Everything seemed fine, so I reinstalled gloobus. Still had the same problems, so I re-uninstalled it and rebooted my computer. It booted up to the ubuntu login screen as normal, i signed in, then it only brought up a small white terminal screen in the top left corner. Nothing else is started (no window frames, no gnome panels... nothing but the terminal window, and the screen resolution is normal, not super small or anything). i started gnome-session manually and everything came up. Everything seems to work just fine. But I have the same problem every time I restart the computer, i have to manually start gnome-session. I've been googling to try and find a solution but I just can't find anything that helps me. Is there a way to fix this? or a way to figure out what's going on?

Thanks!

Joel

Posted 2009-12-31T21:45:10.017

Reputation: 235

Answers

1

Finally found a solution - I just typed the following into the terminal and rebooted:

sudo apt-get install gnome-session ubuntu-desktop

All is well now.

Joel

Posted 2009-12-31T21:45:10.017

Reputation: 235

1

In /etc/gdm/custom.conf add the following line (or edit it if it already exists):

DefaultSession=gnome-session

If already in the file it probably reads:

DefaultSession=xterm

I suppose you could establish emacs instead but I think you want some sort of session manager first.

David Lambert

Posted 2009-12-31T21:45:10.017

Reputation: 11

1

Go into your Gnome session and in the terminal, open ~/.xinitrc (or create it if it isn't there already) using your editor of choice:

$gedit ~/.xinitrc

add this to it:

#!/usr/bin/env bash
exec gnome-session

make the file executable:

$chmod +x ~/.xinitrc

Let's link it to ~/.xsession so it's read by GDM on startup:

ln -s ~/.xinitrc ~/.xsession

Reboot.

John T

Posted 2009-12-31T21:45:10.017

Reputation: 149 037

This didn't work :(. But while doing this, i found two files, .xsession-errors and .xsession-errors.old. the contents of both are this: "/etc/gdm/Xsession: Beginning session setup... Setting IM through im-switch for locale=en_US. Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default." I don't know if that means anything – Joel – 2010-01-01T00:17:38.153

What does /var/log/messages say? – John T – 2010-01-01T00:22:01.143

http://pastebin.com/f57b74415 I rebooted my computer and pasted everything that was added to the log starting at the reboot time. – Joel – 2010-01-01T06:26:34.683