Friday, October 17, 2008

Ubuntu - How to disable extra TTYs in upstart

You have to edit /etc/default/console-setup file. This file defines how many ttys should you get. Change ACTIVE_CONSOLES="/dev/tty[1-6]" to the number of consoles you want. Lets say, 2 ttys, then change it to "/dev/tty[1-2]".

And then goto /etc/event.d/ and change the ttyx files that you DONOT want. Edit them and comment lines starting with "start on runlevel". So, in this case, you'll comment the start line in tty3..tty6 files.
NOTE: X will still on Alt-F7.


No comments: