March 8, 2010

How do you get a workstation to boot into one of the specific runlevels everytime?

Modify your /etc/inittab file. Change the line:...

Modify your /etc/inittab file. Change the line:

id:3:initdefault

Where 3 is the runlevel.

Like  (0 likes)

You can modify /etc/inittab so that the runlevel is 3. The line would then...

You can modify /etc/inittab so that the runlevel is 3. The line would then read:

id:3:initdefault

Like  (0 likes)

In the file /etc/inittab edit the following line. For example, the distro I'm...

In the file /etc/inittab edit the following line. For example, the distro I'm using now is set to runlevel 5 as shown here:

# Default runlevel. The runlevels used by PCLinuxOS 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:

Like  (0 likes)

Edit your boot loader's config (probably grub) to add the runlevel you want...

Edit your boot loader's config (probably grub) to add the runlevel you want as a parameter to the kernel. So for example, right after "linux" but before the other parameters, enter 1 - 5 or emergengy or single. You may want to make it a boot option in boot loader, too (e.g. a new entry in Grub's menu.lst).

Like  (0 likes)
Click Here!