Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have done extensive search for the answer to this problem:

On the login in page, after tying password, my screen turns dark for a second and becomes the login page again. the guest account doesn't work either.

what I have done: in tty1:

sudo rm /home/wks-403/.Xauthority
sudo reboot

or

in tty1:

sudo chown -R $USER:$USER $HOME
Then press CTRL+ALT+F7 and try to log in

or change from lightdm to gdm, in tty1:

sudo dpkg-reconfigure gdm

but none works on my laptop.

the parameters of my laptop: thinkpad x-61 32bit graphic card: Intel Corp. Mobile GM965/GL960 integrated Graphics Controller

Thanks for your suggestions!!

update by suggestions from 'Still a kid',

input "sudo startx"

Fatal server error
Sever is already active for display 0
If this server is no longer running , remove /tem/.X0-lock

please consult the THe X.Org Foundation support for help

ddxSigGiveUp: Closing Log
Invalid MIT-MAGIC-COOKIE-1 KEYInvalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error

I delete /tmp/.X0-lock and startx

cannot establish any listening sockets -Make sure an X server sin't already running

I am lost on what to do...please help.

The following is the info in /var/log/lightdm/lightdm.log http://paste.ubuntu.com/5697791/ I notice there is messages saying 'Greeter quit', so I look at /var/log/x-0-greeter.log: http://paste.ubuntu.com/5697781/ there are warnings and CRITICAL info.

I suspect this is due to graphic cards, but It doesn't help after I updating my graphic card drivers.

share|improve this question
    
did you try startx command? –  Upasana Mar 31 '13 at 21:58
    
It sounds as if your X server is running, but there are errors in attempting to log you into an X session. Please review /var/log/Xorg.0.log and include any errors relevant to the problem. In order to get a good look at what exactly is happening you may want to use tty1-6 to monitor Xorg.0.log, or the log of your desktop manager whether it be lightdm or gdm ... when you see the login prompt use ctrl+alt+F1 to move to tty1, then follow the log with tail -f /var/log/Xorg.0.log or the appropriate lightdm or gdm log –  OYRM Apr 1 '13 at 13:43
    
@OYRM thanks. /var/log/Xorg.0.log is very long and i can't find any error logs(i searched for EE keyword). i am using lightgm by setting "sudo dpkg-reconfigure lightdm"(by the way, using gdm doesn't help). –  ulyssis2 Apr 1 '13 at 14:27
    
Sure thing @ulyssis2 please similarly check all logs in /var/log/lightdm/ and let me know what you see there –  OYRM Apr 1 '13 at 17:11
    
@OYRM I scan through lightdm.log, it is pretty long, and i paste it in another answer. –  ulyssis2 Apr 1 '13 at 22:37

1 Answer 1

try something like this, check this link

    rm -rf /tmp/.X0-lock
share|improve this answer

protected by Community Oct 21 '13 at 19:24

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.