Remove ttys in Ubuntu’s Upstart

I’m trying to optimize my system by disabling extra TTYs in Ubuntu.  I could easily do this by editing /etc/inittab and then commenting the extra TTYs there. With the new upstart mechanism in place, things are a little different.

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.

Rebooting shud minimize the number of consoles for you. Worked for me!!

Good luck,

NOTE: Even though you’ve reduced the tty number, X is still on Alt-F7.

Related Posts

Tags: , ,

One Response to “Remove ttys in Ubuntu’s Upstart”

  1. Wouter Says:

    How much time does this save?

Leave a Reply

You must be logged in to post a comment.