How to Disable TTY

Save

TTY, or TeleTYpewriter, is the command line interface in the Unix/Linux operating system. By default, the operating system launches several sessions of TTY so the user can launch software from different TTYs or get several users to use their own TTY. Having several TTYs running can represent a security risk or even slow down the system on low-end machines. You can disable TTYs by editing files and rebooting the system.

  • Launch a terminal in Linux.

  • Type "su," press "Enter," type your administrator password and press "Enter" again.

  • Type "gedit" if you are using the Gnome desktop or "Kedit" if you are using the KDE desktop. Press "Enter" to launch your text editor.

  • Click the "Open file" icon on your text editor. Navigate to "/etc" then "/default" and select the "console-setup" file.

  • Locate the "ACTIVE_CONSOLES" lines and change [1-6] to [1] to have only one terminal or [1-2] to have two terminals. Click "CTRL"+"S" to save the file.

  • Click the "Open file" icon and navigate to "/etc", then "/event.d".

  • Edit each of the "ttyX," where X represent the terminal number files for each of the TTYs you do not want launched. If you replace [1-6] with [1-2], edit the tty3 tty4 tty5 tty6 files.

  • Add the "#" character at the start of the first line. Save the file.

  • Close all the open software and save your work. Reboot the computer.

Tips & Warnings

  • You can use the "Vi" editor to edit your files from the command line directly.
  • You need to have administrator privileges to change the system files "console-setup" and"ttyX."

References

  • Photo Credit rackmount server farm datacenter image by Adryn from Fotolia.com
Promoted By Zergnet

Comments

You May Also Like

  • How to Turn Off TTY on the iPhone

    The TTY feature on the Apple iPhone allows the device to connect to a teletype machine with an optional cable. Teletype allows...

  • How to Edit File in CentOS

    CentOS is a free, open source, Enterprise class Linux distribution which was created using the RedHat Enterprise Linux source code. The majority...

  • What Does TTY Stand for in Linux?

    TTY is a Linux command, used at a command or shell prompt, that gives information about the terminal that a user is...

  • How to Call OnStar

    OnStar is a vehicle monitoring and driver assistance service built into most General Motor vehicles. The service includes many features, including the...

  • How to Turn Off TTY on a Sony Ericsson Phone

    Some Sony Ericsson phones come with telephone typewriter (TTY) functionality. This allows deaf or hearing impaired individuals to use cell phones to...

  • What Is a TTY Port?

    Over the years, the meaning of the term "TTY port" has evolved from describing a physical connection on a computer to describing...

  • How to Get a TTY Machine

    A teletypewriter (TTY) is a communications device used by the deaf, hard-of-hearing and speech-impaired to make telephone calls. Sometimes referred to as...

Related Searches

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!