Find the answer to your Linux question:
Results 1 to 5 of 5
I'm running Arch Linux at the moment, but I've seen this same thing in every other distro. If I list the device files in /dev, I see 63 ttys and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Location
    Wherever there's a computer.
    Posts
    20

    Question How can I reduce number of ttys in /dev -- or is it worth the trouble?


    I'm running Arch Linux at the moment, but I've seen this same thing in every other distro. If I list the device files in /dev, I see 63 ttys and vc's listed. I know that vc's are virtual consoles, I think they're the same as ttys, but I don't know.

    My questions are:

    1) Can I set a lower number of ttys to have available? Even if it involves recompiling the kernel itself, just tell me where the setting is.
    2) If so, how?
    3) Does having so many use more memory?

    EDIT: I'm not asking the same question as here. That tells the kernel to not start getty (or similar programs) to manage a tty; I'm looking to not have the tty exist at all.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I found this guide for crunchbang.

    I haven't had a chance to look into whether this works with Arch or not.

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Location
    Wherever there's a computer.
    Posts
    20
    Quote Originally Posted by reed9 View Post
    I found this guide for crunchbang.

    I haven't had a chance to look into whether this works with Arch or not.
    Unfortunately, there is no console-setup file or events.d in Arch, so far as I can determine, so no luck.

    Searching the Arch Wiki for console-setup didn't offer anything useful, either, at least in the department I'm looking for.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Ha, it seems like it's much easier than I would have supposed.

    You should just be able to comment out the virtual consoles you don't want in /etc/inittab

    Linux in Government: Optimizing Desktop Performance, Part I

  6. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,748
    Why bother? They don't take up any space to speak of. FWIW, a tty is needed for each xterm/console/virtual terminal you start up. Basically, in your case, these are just place holders.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •