Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can enable remote terminal login into Ubuntu 9.10 using a USB serial port?

I created device /dev/ttyUSB0 and i want to allow logins using Hyper-Terminal.

I found some resources but they are related to real hardware rs232 ports. I can't find any information about USB converter.

So far I have established connection between that USB-serial port and my laptop. I can send text to the port (cp sometext.txt /dev/ttyUSB0) and read it using hyperterminal.

What do I need to do to enable logins on this port?

share|improve this question

migrated from Mar 21 '10 at 14:23

This question came from our site for professional and enthusiast programmers.

See the Ubuntu Serial Console HowTo. You'll need to adapt it for your hardware -- instead of ttyS0, which is the first hardware serial port, you'll need to use ttyUSB0. An example of this is below.

At minimum, you need to configure upstart to start a getty on that port.

  1. Create /etc/init/ttyUSB0.conf and paste the following into it:

    # ttyUSB0 - getty on USB serial port
    # This service maintains a getty on ttyUSB0 from the point the system is
    # started until it is shut down again.
    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]
    exec /sbin/getty -L 115200 ttyUSB0 vt102
  2. Start the getty:

    sudo start ttyUSB0

Older Ubuntu versions and distributions that don't use upstart do this by adding a line in /etc/inittab.

This doesn't consider changes to the bootloader configuration to allow Grub to talk to the serial port; refer to the HowTo for details. I'm not sure if Grub can talk to a USB serial port or if that's limited to hardware ports.

share|improve this answer

Better approach in Ubuntu 12.04:

start on (tty-device-added ttyUSB0)
stop on (runlevel [!2345] or tty-device-removed ttyUSB0)

exec /sbin/getty -L 115200 ttyUSB0 vt102
  • starting getty when hot plugging in ttyUSB0
  • stop getty when hot plugging out ttyUSB0
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.