Sunday, October 9, 2016

Set a default runlevel

When Linux is started, "init" is started at first. And then the system is started at a runlevel stated at /etc/inittab. If you want to change the default runlevel, open "/etc/inittab".

And look for a sentence saying "Default runlevel. The runlevels used by RHS are." then change the following sentence:

id:3:initdefault:

to the following:

id:5:initdefault:
Then the default runlevel is changed to 5 from 3.