Sunday, May 31, 2009

Slackware Runlevels

Slackware Linux uses runlevel 1 for maintenance, as on other Linux distributions; runlevels 2, 3 and 5 identically configured for a console (with all services active); and runlevel 4 adds the X Window System.


Source: http://en.wikipedia.org/wiki/Runlevel#Slackware_Linux

To change runlevel, we need to edit inittab file as root.

# nano /etc/inittab
...
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

...

For graphical login, replace "id:3:initdefault:" with "id:4:initdefault:".

No comments:

Post a Comment