Click to See Complete Forum and Search --> : shutdown x


@apje
07-14-2002, 07:04 AM
I know it's a stupid question, but i just don't know how too... how do i shutdown X? so i only have the console running?
I'm using KDE on Mandrake... but it starts X on boot..

fancypiper
07-14-2002, 11:42 AM
As root, use you favorite editor and open the file [b]/etc/inittab and look for something that 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:


Change the initdefault line so that you replace the 5 with a 3 ending up 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:3:initdefault:

On your next boot, it will boot to command line.

There is a command that will stop the gui login thingy so you wouldn't have to reboot, but I don't use it, so I don't remember the command. Anyone else remember?

hop-frog
07-14-2002, 01:35 PM
run the Mandrake Control Center. `mcc' is the command to get into it. Login as root, then choose Hardware ==> display. After choosing which res to run the computer at and after testing your selection there will be a dialog that will ask you if you want to start X on boot.

if this is different on your computer, then maybe they changed it on your version. I have mandrake 8.0.

Timothy L. Miller
07-15-2002, 04:21 AM
It's still the same in drake 8.2

@apje
07-16-2002, 06:06 PM
I did it as fancypiper said, took me a while to find out how to edit files in shell so i could turn it back, still don't know...
but i made a backup, so i just deleted the changed one, and renamed the backup, so it starts normally again ;)
thx!

fancypiper
07-16-2002, 07:17 PM
You may have midnite commander installed. Try typing mc at the command line and see if anything comes up. It is another full shell like bash that you can do almost anything you want in cl.

If pine is installed, you have a small editor called pico.pico -w <filename> turns off word wrap so config files aren't messed up.

If you don't have mc, get it. If you don't have pico, search for nano on the web. It is the GNU clone of pico.