LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I start up the GUI again? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-start-up-the-gui-again-625690/)

adanedhel728 03-04-2008 03:12 PM

How do I start up the GUI again?
 
I was trying to follow these instructions to install a video driver in OpenSUSE (which was unsuccessful, but that's for another thread), and now when I start up Suse it brings me to a command line instead of the GUI. I'm guessing it's because of some command I typed in, but I don't know enough Linux commands to fix it.

I already tried "init 5," and I even tried typing in "init 3" then "init 5," (all of which was done in root). There wasn't an error message, it just says "runtime level 5 reached." What command would I type in to get back into the GUI?

BrianK 03-04-2008 03:25 PM

Quote:

Originally Posted by adanedhel728 (Post 3078086)
I was trying to follow these instructions to install a video driver in OpenSUSE (which was unsuccessful, but that's for another thread), and now when I start up Suse it brings me to a command line instead of the GUI. I'm guessing it's because of some command I typed in, but I don't know enough Linux commands to fix it.

I already tried "init 5," and I even tried typing in "init 3" then "init 5," (all of which was done in root). There wasn't an error message, it just says "runtime level 5 reached." What command would I type in to get back into the GUI?

the quick answer is simply type "startx" at a prompt.

The longer answer is that you should find at what run level your display manager starts & then init to that level. Even more proper would be to put that runlevel in your /etc/inittab file, in a line like:

id:2:initdefault:

... which should already be there. In this case, '2' is my runlevel that brings up gdm, which is the gnome display manager. I can confirm this by seeing S21gdm in /etc/rc2.d (it doesn't have to be S21gdm, it could be S10 or S78, the number doesn't much matter in this instance - assuming it already exists). IIRC, Suse still has S-links in /etc/rcX.d.

If all else fails, you can always reboot, though, that's not a very Linux way of doing things. ;)

rosspy 03-04-2008 03:30 PM

Type the command

Quote:

startx
and see what happens..

adanedhel728 03-04-2008 03:54 PM

Well, when I typed that in, I got this message--

Quote:

Fatal server error:
no screens found
giving up.
xinit: Connection reset by peer (errno 104): unable to connect to X server
xinit: No such process (errno 3): Server error.

reddazz 03-04-2008 06:55 PM

Run sax2 as root and it should reconfigure your card.

adanedhel728 03-04-2008 10:03 PM

When I tried that, I got this message--

Quote:

xc: sorry could not start configuration server
xc: for details refer to the log file:
/var/log/SaX.log
xc: abort. . .
I don't know how to read the log file without GUI, or else I'd post it here.

adanedhel728 03-04-2008 10:04 PM

Should I just reinstall? I had just installed it and I don't have any information stored there that I would lose. On the other hand, I have learned new commands just from trying to fix this :D That's always a good thing.

reddazz 03-04-2008 10:51 PM

You can read the log file by doing
Code:

less /var/log/SaX.log
You can also run xorgconfig instead of sax2.


All times are GMT -5. The time now is 05:23 PM.