I don't need 7 TTYs (or do I?). So how do I reduce this number to 3?
3 Answers
The way I recommend would be:
Run:
sudoedit /etc/default/console-setupFind the line that says: ACTIVE_CONSOLES="/dev/tty[1-6]"Change it to the amount of tty you want. For 3 you do: ACTIVE_CONSOLES="/dev/tty[1-3]"
Save the file and go to /etc/init/:
cd /etc/init/then typelsto see the tty files.
They should look like tty1.conf, tty2.conf, tty3.conf....Rename all the tty that you do not want. In your case you would rename the last 3 tty:
sudo mv tty4.conf tty4.conf.bck
sudo mv tty5.conf tty5.conf.bck
sudo mv tty6.conf tty6.conf.bckReboot and test
- A couple of tips. Even if you eliminate the tty4-6 X will still be in CTRL+ALT+F7
- tty4 to tty6 will appear blank (black, no blink login waiting)
- 60,750
- 216,643
You can delete/move the tty#.conf files in /etc/init that you don't want. I don't know why you'd want to do this, though.
This is on 10.04.
- 336
All I did was delete tty4 through tty6 from /etc/event.d, and tty4.conf through tty6.conf from /etc/init, and reboot. You may want to be more cautious, see below.
I don't know what the consequences are of having non-sequential tty's. Hopefully you just get a blank screen where X could hang itself. Ie, tty1, tty2, Xorg, tty4, tty5..
You can run the following commands to make the needed changes. Note nothing is deleted. If you need to revert, just move or copy the files back.
cd /etc/init
sudo mkdir tty.bkp
sudo mv tty4 tty5 tty6 tty.bkp
cd /etc/event.d
sudo mkdir tty.conf.bkp
sudo mv tty4.conf tty5.conf tty6.conf tty.conf.bkp
Reboot to test:
sudo reboot
- 32,005