LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How do you start X-window from command line? (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-you-start-x-window-from-command-line-384312/)

yekrahs 11-18-2005 07:02 AM

How do you start X-window from command line?
 
Baiscally, when I start up SUSE linux on my computer at the GRUB screen (as opposed to Windows: I dual boot), about 3 times out of 7 it won't boot up the graphical login screen. I've no idea why. The screen just stays black, even when I leave it for ages.

(Fedora used to do that to me a bit as well: perhaps it's because my hardware is quite old now. Pentium III 650Mhz and 388MB RAM. I don't know.)



But I can still log in in text mode, by pressing Ctrl-Alt-F6, etc. So what I'd like to know is how can I start X-window, and then start Gnome / KDE, etc from command line? What commands to use?

And secondly, if I do decide to work on command line, what is the command to log out?


Thanks.

abisko00 11-18-2005 07:07 AM

To start the X server from command-line, type 'startx'

To logout, type 'logout' or 'exit'

To shutdown or reboot, type 'shutdown -r/h now' (r=reboot, h=halt).

prabuayyappan 11-18-2005 09:12 AM

To start a xserver automatically at system startup and for graphical login prompt
change the following in /etc/inittab
id:3:initdefault:
Change it to
id:5:initdefault:


All times are GMT -5. The time now is 10:41 AM.