12 May, 2009

HyperTerminal in Ubuntu - Minicom Serial Port


HyperTerminal replacement in Ubuntu - Minicom

I was kinda surprise that HyperTerminal is not available anymore in Windows Vista. No problem, I rebooted my notebook to Ubuntu and fire-up minicom.

1. By default, minicom is not installed in Ubuntu, so you need to install it first.
$ sudo apt-get install minicom

2. Find the name of your Serial Port
$ dmesg | grep tty

In the output look for something like "tty". The output in my case is like this:
$ dmesg | grep tty

[ 0.004000] console [tty0] enabled
[ 1.284802] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.285068] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

This means the device correspond to my serial port is ttyS0.

3. Configure minicom
sudo minicom -s
* Use the keyboard keys to select the menu item Serial port setup.
* Enter A to change the Serial Device to /dev/ttyS0,
and then enter E to change the line speed to 9600 8N1
* Using arrow keys, select Save setup as dfl

4. Select Exit from Minicom.

5. Next time, from the terminal you only need to run sudo minicom in order to access your Cisco box.

No comments: