Serial terminals on USB ports

Tags:

by deckardt (989092) writes on Slashdot:

Here is my recipe for [serial terminals on] Ubuntu, using USB serial adapters:

  1. hook up the stuff and config the terminals correctly (I used 9600 8n1 due to long cables, got weird chars at 19200+)

  2. put the following in /etc/init/ttyUSB0.conf

    # ttyUSB0 - getty
    #
    #  This service maintains a getty on tty1 from the point the system is
    #  started until it is shut down again.#start on stopped rc  RUNLEVEL=[2345]
    #stop on runlevel [!2345]
    respawn
    
    
    exec  /sbin/getty -8 9600 ttyUSB0 vt100  
    

    ---(repeat for as many terminals you have, incrementing the 0 of ttyUSB0 to 1 to 2 etc)--- 3. reboot or

    # sudo service ttyUSB0 start
    

    (repeat for as many terminals you have, incrementing 0 to 1 to 2 etc) ...

Here is my setup with a WYSE vt420 compatible and two vt320's http://www.flickr.com/photos/rickdeckardt/4748415699/ [flickr.com]

Alternately, just add to /etc/inittab --

s1:12345:respawn:/sbin/agetty  -L -w 9600 ttyS0 vt100

then

telinit q