Open serial (COM1) line on Linux to manage a switch through the console
772
I have connected a switch to a PC with a serial cable, and I want to manage it. What utility can I use to open a serial line and manage the switch through the console?
GNU Screen will do this as well. You just provide the argument of whatever device you are using, for example:
screen /dev/ttyUSB0
screen /dev/ttyS0
Like any other file, you will need read write privileges for the /dev/tty* devices. See the 'Window Types' section of man screen to see how to specify the baud rate etc, but screen can usually figure this out.
Minicom. Look here for some tutorial.
GNU Screen will do this as well. You just provide the argument of whatever device you are using, for example:
Like any other file, you will need read write privileges for the /dev/tty* devices. See the 'Window Types' section of
man screen
to see how to specify the baud rate etc, but screen can usually figure this out.I prefer picocom personally.
Minicom has too much ncurses bloat for my liking. It always takes me ages to get where I want.
Whereas with picocom you specify all of your options (baud/parity/stop) on the command line, no fuss.
We use Kermit with a simple configuration/script file that sets the options.
I use minicom. Relatively straightforward, and works like a charm.
I use CuteCom with a USB-to-serial device. You may have to start it with 'sudo ./cutecom' in order to have it access the ttyUSB of your computer.