Terminal TTY – Connecting Modern Linux Distributions to Physical Terminals

serial portterminaltty

I have an old IBM 3151 Terminal that I'd like to play around with a bit. The terminal was designed for use with Enterprise AIX systems and the documentation for that still exists, but I don't have any AIX servers.

I do have spare machines that I can load something like Ubuntu Server on and I'm wondering if I could get that working. While there are many tutorials on connecting to serial devices such as networking equipment and microcontrollers, the documentation for connecting modern operating systems to output to physical ascii terminals seems scarce.

I'd like to get started by I'm confused on a couple of things.

  1. The terminal connects via DB25 serial ports. Of course, I don't have any computers that have a DB25 serial port, but I do have an adapter that goes from USB -> DB9 -> DB25. Is this enough. Is there going to be any data loss / corruption going from modern USB to the terminal?

  2. What tools / commands should I use to go about redirecting standard input / standard output to the terminal as opposed the the computer's screen / keyboard?

Best Answer

  1. Most USB-to-serial adapters work fine, including when chained to multiple adapters; you might want to check you’re using a real FTDI chip.

  2. Most current distributions use systemd. There you can enable logins on serial terminals by enabling the serial-getty service on the appropriate port; for example

    systemctl enable serial-getty@ttyUSB0.service --now
    

    will start a login session on ttyUSB0.

Related Question