LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No graphical interface after reboot (https://www.linuxquestions.org/questions/linux-newbie-8/no-graphical-interface-after-reboot-767901/)

kldegraaf 11-09-2009 07:55 AM

No graphical interface after reboot
 
Hi,

I just installed the 11g Oracle database succesfully, I could connect to the database and it all worked.

Now I restarted the server
After restart I have the normal graphical login screen of CentOS

But when I login I get a green terminal screen and not the normal desktop. (see: URLhttp://i38.tinypic.com/25jcneu.png[/URL])

I think it has something to do with startx that I had to do before I started the installation.

How can I get to the graphical user interface again?


Thanks in advance.

repo 11-09-2009 07:58 AM

This is a desktop.
What was the normal desktop?
You can rightclick on an emty space on the desktop to get a menu

At the loginscreen yuo can chose the desktop you want to start.

JamesChamberlain 11-09-2009 08:02 AM

Indeed you can.

Basically prefdm needs to be ran so you can pick your desktop environment.

Can also use the switchdesk command to specifically set the environment, be it GNOME, KDE..

Try

# init 3
then
# switchdesk gnome
then
# startx

kldegraaf 11-09-2009 08:09 AM

Quote:

Originally Posted by repo (Post 3750258)
This is a desktop.
What was the normal desktop?
You can rightclick on an emty space on the desktop to get a menu

At the loginscreen yo can chose the desktop you want to start.

This was the normal desktop: http://upload.wikimedia.org/wikipedi...b/CentOS_5.gif

Now I only have a terminal screen and a clock.

This is my login screen:
http://i34.tinypic.com/j5hv1x.png

JamesChamberlain 11-09-2009 08:12 AM

Quote:

Originally Posted by kldegraaf (Post 3750270)
This was the normal desktop: http://upload.wikimedia.org/wikipedi...b/CentOS_5.gif

Now I only have a terminal screen and a clock.

That's gnome. Your clock and terminal isn't running a desktop environment. You need to set this as mentioned in my above post.

kldegraaf 11-09-2009 08:37 AM

Quote:

Originally Posted by JamesChamberlain (Post 3750274)
That's gnome. Your clock and terminal isn't running a desktop environment. You need to set this as mentioned in my above post.

Hi James,

I tried switchdesk then I got the message that it was not installed so I installed it.
Then I tried it again then I got the message that Gnome was not isntalled :S.

I installed it and tried again and got my "normal" desktop again back.
Even after a reboot :)

But how could this have happened?

JamesChamberlain 11-09-2009 08:48 AM

Quote:

Originally Posted by kldegraaf (Post 3750307)
Hi James,

I tried switchdesk then I got the message that it was not installed so I installed it.
Then I tried it again then I got the message that Gnome was not isntalled :S.

I installed it and tried again and got my "normal" desktop again back.
Even after a reboot :)

But how could this have happened?

Not sure, seems that your desktop environment wasn't set so instead of loading your desktop environment it loaded X server, and two X clients (xclock and xterm).

It's not a problem as such, just a setting that might have changed somewhere down the line. The main thing is you have your desktop back.

You may have been able to force gnome loading, you know the screen you showed earlier asking you to login? If you click the sessions button at the bottom you should be able to set your desktop environment there.

Glad all is fixed for you, though.

lugoteehalt 11-09-2009 08:50 AM

Quote:

Originally Posted by kldegraaf (Post 3750270)
This was the normal desktop: http://upload.wikimedia.org/wikipedi...b/CentOS_5.gif

Now I only have a terminal screen and a clock.

This is my login screen:
http://i34.tinypic.com/j5hv1x.png

X is definitely running.

I do not know what your previous desktop graphical environment thing was.

KDE is easiest started with kdm, gnome with gdm, I think. Is it one of these you're after?

The link http://i38.tinypic.com/25jcneu.png shows X with a simple window manager. Look in /home/yourusername/.xinitrc or ditto .xsession and see if it's something like:
Code:

xclock
simpleWindowManager

You may get a more upmarket window manager by putting it at the *end* of this file. startx calls one of these files and X does what the file says - but shuts down if there is no running program inside it.

If, say, it's KDE you are after, then you can start it with
Code:

# /etc/init.d/kdm restart
If it's installed. It's a bit unclear what you are wanting.:)

Hang on, just looked at the last link in your post and it's the sort of thing that the session managers above would produce so suggest you just click on of the things at the bottom, "session" would be favorite and pick something that looks sexy.

kldegraaf 11-09-2009 08:54 AM

Quote:

Originally Posted by JamesChamberlain (Post 3750319)

Glad all is fixed for you, though.

Thanks for your quick help!
I can continue working now.

Regards,
Klaas


All times are GMT -5. The time now is 10:06 PM.