- 在Ubuntu上說實在的已經沒有/etc/inittab這裡檔案了,你可以在查一下/usr/share/doc/upstart/README.Debian.gz 檔可以看見一個關鍵的檔檔在/etc/init/rc-sysinit.conf。你可以試在變換你的runlevel,但是注意在ubuntu下的runlevel級別有些不同
- Ubuntu的runlevel
- 0 - shutdown
- 1 - single user mode
- 2 - multiuser graphical mode
- 6 - reboot
- 本文原於http://askubuntu.com/questions/71621/where-is-the-etc-inittab-file-or-how-to-set-the-default-runlevel。
- 以下是原作者的文章
There is no
/etc/inittab
in Ubuntu, because Ubuntu uses upstart to define startup services and runlevel. And this has not started from the last release of Ubuntu, but a long time ago.
Anyway, you can still use
inittab
, simply create one. I report a passage from/usr/share/doc/upstart/README.Debian.gz
:How do I change the default runlevel? ------------------------------------- If you have an /etc/inittab file, edit it. Locate the following line: id:N:initdefault: Where N is the default runlevel, change this to match. Most people won't have that file, you can edit /etc/init/rc-sysinit.conf and change the following line: env DEFAULT_RUNLEVEL=2
but bear in mind that Ubuntu do not use standard runlevel meaning as other linux distros/unix os. Old standard was:
- 0 - shutdown
- 1 - single user mode
- 3 - multiuser text mode
- 5 - multiuser graphical mode
- 6 - reboot
but Ubuntu uses:
- 0 - shutdown
- 1 - single user mode
- 2 - multiuser graphical mode
- 6 - reboot
Finally, if you want to have a virtual terminal with automatic login, then modifying the
exec
line intty1.conf
seems the correct way, though I do not know mingetty, so cannot say if you used it correctly.
沒有留言:
張貼留言