Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your default runlevel can be found/set in /etc/inittab, and looks something like this:
# default runlevel
id:3:initdefault:
In the above example, the machine will boot into RL3. Changing this to 1 (id:1:initdefault: ) will boot your machine to RL1 (which is single user mode).
The drawback is that your machine will always boot to the given RL.
You can do the following to (temporary) change runlevels.
As root:
$ init 1
This will not reboot your machine, but will change from your current runlevel to runlevel 1 (single user mode).
To go back to your default setting:
$ init 3 3 could be 5 for you, check your /etc/inittab.
init recognizes the following parameters: 0 is System halt (Do never use this for initdefault) 1 is Single user mode 2 is Local multiuser without remote network (e.g. NFS) 3 is Full multiuser with network 4 is Not used (although some distro's do use 4 instead of 5 for xdm) 5 is Full multiuser with network and xdm 6 is System reboot (Do never use this for initdefault)
Not all parameters are listed here, take a look at man init for more detailed info and all options.
You are right... some distros do use run level 4 for xdm/gdm/kdm (IOW full graphical interface) such a distro is SLACKWARE. This is a Slackware based thread...
Taken right from the inittab file on a slackware box...
# 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
This is strange, I did the same thing. The copy/paste in my previuous thread is from a box running slack (9.1).
Must have edited it, although I cannot remember I did (and lokking at the timestamp, I didn't 1400 Apr 12 2003 /etc/inittab).
But this is what the slack-boys (and girls) have to say about it:
rc.0 Halt the system (runlevel 0). By default, this is symlinked to rc.6.
rc.4 Multiuser startup (runlevel 4), but in X11 with KDM, GDM, or XDM as the login manager.
rc.6 Reboot the system (runlevel 6).
rc.K Startup in single user mode (runlevel 1).
rc.M Multiuser mode (runlevel 2 and 3), but with the standard text-based login. This is the default runlevel in Slackware.
So you are correct. Slack uses rl4 for graphical logins.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.