English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

does anyone know how to go from the command line interface to the GUI in Cent OS linux. when my computer starts is starts in text mode. I can login as root but I dont knwo how to get to the desktop.

2006-08-15 14:32:14 · 2 answers · asked by Mieog 3 in Computers & Internet Other - Computers

2 answers

The line in /etc/inittab you are interested in looks like this:

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

Use 3 or 5 as appropriate on that line. Don't change anything else in that file unless you know what you're doing, as you will likely need to boot from the CentOS Rescue Disk to get your system to boot if you screw it up...

2006-08-15 15:14:34 · answer #1 · answered by Valdis K 6 · 0 0

Usually run state 5 is graphical and 3 is text. First try logging in and typing "startx" at the command prompt. If everything works, then you can find the line in the file /etc/inittab and change the 3 to a 5, then next time you reboot, it should come up with a graphical login.

2006-08-15 21:39:34 · answer #2 · answered by Ken H 4 · 1 1

fedest.com, questions and answers