航海日誌

宇宙暦: 00515.00 からときどき日記 zep

仮想コンソール getty 2っでじゅうぶんですよ、再び。

仮想コンソールの tty(getty) は一つで500〜600KB使うので6っもいらないから2っに減らしました
(いや必要かもしれませんが)
今回の ubuntu 9.10 からevent.dが無くなりinitに変わったので以下のようにしました。
dpkg-reconfigure console-setupしてもいいけれど、エディタで直接このファイルの

/etc/default/console-setup

の中のtty[1-6]の6を2に変更

# Setup these consoles.  Most people do not need to change this.
#ACTIVE_CONSOLES="/dev/tty[1-6]"
ACTIVE_CONSOLES="/dev/tty[1-2]"

そしてこのファイルも編集

/etc/init/tty3.conf

の中の行を全部#コメントアウトする。

# tty3 - getty
#
# This service maintains a getty on tty3 from the point the system is
# started until it is shut down again.

#start on runlevel [23]
#stop on runlevel [!23]

#respawn
#exec /sbin/getty -8 38400 tty3

tty4,5,6についても同様に行い、再起動する。

/etc/init/tty4.conf
/etc/init/tty5.conf
/etc/init/tty6.conf


ubuntu 9.04や8.10の時のは以前書いたこちらをどうぞ。
二つで十分ですよ http://d.hatena.ne.jp/zep/20080407#1207672065