LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I cannot see the GUI in a server using CentOS 5.6 (https://www.linuxquestions.org/questions/linux-newbie-8/i-cannot-see-the-gui-in-a-server-using-centos-5-6-a-909122/)

SarahGurung 10-20-2011 03:52 AM

I cannot see the GUI in a server using CentOS 5.6
 
hello all,

well when connect my server to the desktop where centos 5.6 has been installed,it asks for my username and password and after giving that it is supppose to go to the GUI mode but it gives the following error:

"Your session only lasted less than 10 seconds.If you have not logged out yourself,this could mean that there is some installation problem or that you may be out of diskspace.Try logging in with one of the fail safe sessions if you can fix this problem.

~/xsession -errors-file."

can anyone out here help me out?.


thanks...

adamk75 10-20-2011 04:11 AM

Did you try logging in with one of the fail safe sessions as it suggested? What's in your ~/.xsession-errors file?

Adam

SarahGurung 10-20-2011 04:23 AM

well i don't know how to fix this error by logging in through fail session,after this login it goes to cli mode but still the gui environment isnt working....so please help me out..

SarahGurung 10-20-2011 04:40 AM

can anyone help me fix this error?

adamk75 10-20-2011 05:22 AM

At the graphical login screen, where you put in your username and password, is there an option to log into a failsafe session? Or any other session, other than the default one selected?

SarahGurung 10-20-2011 05:26 AM

ya there is option for that as well and i tried logging in through the fail safe mode but it goes to the cli mode and i dont know how to fix the error through that..

adamk75 10-20-2011 06:14 AM

Log in at the CLI, and run this command:

Code:

cat ~/.xsession-errors | curl -F 'sprunge=<-' http://sprunge.us
Then give us the URL that you get back.

SarahGurung 10-20-2011 06:22 AM

well i got the following error on doing that:

cat: /root/.xsession-errors: No such file or directory
curl: (7) couldn't connect to host

can you tell me what does that command actually do?

adamk75 10-20-2011 06:56 AM

Are you logging in at the CLI as the same user logging into the GUI?

Adam

SarahGurung 10-20-2011 06:59 AM

yes Mr.Adam...but GUI is not workin..

adamk75 10-20-2011 07:00 AM

Well, the first bit of advice is not to ever log into the GUI as root. Create a normal user, and try logging into the GUI as that user.

SarahGurung 10-20-2011 07:01 AM

i told you GUI is not working and i didnt log in as root..

adamk75 10-20-2011 07:07 AM

First, you clearly did log in as root since the error you received was:

Code:

cat: /root/.xsession-errors: No such file or directory
Second, you're not making a whole lot of sense to me. In your first post, you said:

Quote:

well when connect my server to the desktop where centos 5.6 has been installed,it asks for my username and password and after giving that it is supppose to go to the GUI mode but it gives the following error:
When it asks for your username and password, are you at the command line or are you at a graphical screen?

Adam

SarahGurung 10-20-2011 10:13 PM

well when it asked for username and password,i was at the GUI mode..

adamk75 10-21-2011 04:11 AM

Quote:

Originally Posted by SarahGurung (Post 4503960)
well when it asked for username and password,i was at the GUI mode..

And you should not be putting in your root username and password at that point. You should be trying to login as a normal user.

Adam


All times are GMT -5. The time now is 08:54 AM.