[CentOS] Turning off X-Windows

Timo Schoeler timo.schoeler at riscworks.net
Sat Oct 24 14:10:45 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thus ML spake:
> Hi All,
> 
> How does one best turn of X-Windows? I dont need it, ssh works just  
> fine for me.
> 
> I seem to recall it was complicated and since I know enough to do my  
> stuf and not well versed yet in fixing things I break, I dont want to  
> blow this up.

Just edit /etc/inittab and choose the appropriate runlevel:

(...)

# 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 this vaulue to '2' or '3' (see decriptions above).

(...)

> Best,
> -ML

HTH,

Timo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org/

iD8DBQFK4vzVO/2mgkVVV7kRArL/AKDDixr+pULH2+P3gi7bpDh0Igg6JQCgmmLX
tuDB0Z/CDLjg1eSAbKTPusw=
=fYi3
-----END PGP SIGNATURE-----


More information about the CentOS mailing list