I've got a FreeBSD (9.2) box that I'm trying to strip down as lightweight as possible. It's running on a VM server, so other than ttyv0, we don't ever use the console. I'd like (if possible and reasonable) to not start the extra getty processes that run ttyv1 through ttyv7. How do I accomplish that in a FreeBSD supported manner?
1 Answer
You can edit the /etc/inittab
file and comment out the unneeded ttys.
Take a look at the inittab manpage here.
If inittab
doesn't exist, take a look at the /etc/ttys
file. It also has a manpage here.
-
2FreeBSD 9.2 does not have appear to have an inittab file anywhere on the filesystem. Commented Jun 18, 2014 at 17:12
-
-
1ttys it is! Was able to turn "off" in there, but I imagine commenting them out probably would have worked too. Commented Jun 18, 2014 at 19:24
-
On Ubuntu (server edition) their is multiple ttys files e.g
/etc/init/tty6.conf
I guess I should comment outstart on runlevel [23] and not-container
or change it to stop.– Salem FCommented Oct 9, 2022 at 1:09