Linux / UNIX minicom Serial Communication Program
Linux comes with many serial text and gui based serial communication programs. My favorite is minicom - friendly menu driven serial communication program.
If you are addicted to DOS / Windows TELIX (a telecommunications program originally written for DOS and was released in 1986), minicom is for you under Linux / UNIX.
minicom Common features / usage
=> Setting up a remote serial console
=> Access a computer / server if the LAN is down
=> Connect to embedded Linux / BSD device via null modem cable
=> Connect to Cisco routers for configuration
=> Connect to dump device i.e. device w/o keyboard and mouse
=> Dialing directory with auto-redial
=> Support for UUCP-style lock files on serial devices
=> Separate script language interpreter
=> Capture to file
=> Multiple users with individual configurations
Let us see how to configure minicom for my Soekris net4801 Single Board Computer / embedded Linux device.
Install minicom
Use apt-get under Debian / Ubuntu Linux, enter:
$ sudo apt-get install minicom
If you are using Red hat Linux (RHEL) / CentOS / Fedora Linux, enter:
# yum install minicom
How do I use minicom?
First, make sure Linux has detected serial ports. Use setserial command to set and/or report the configuration information associated with a serial port.
Setup minicom
The -s option use to setup minicom. Type the following command at shell prompt:
$ minicom -s

(Fig. 01: minicom in configuration mode)
Some terminals such as the Linux console support color with the standard ANSI escape sequences. Type the following command start minicom with colours:
$ minicom -s -c on

(Fig: 02: minicom in configuration mode with color console)
When minicom starts, it first searches the MINICOM environment variable for command-line arguments, which can be over-ridden on the command line. Thus, if you have done:
$ export MINICOM="-m -c on"
Start minicom
$ minicom
minicom will assume that your terminal has a Meta or
minicom keyboard short cut keys
Use the following keys:
- UP arrow-up or k
- DOWN arrow-down or j
- LEFT arrow-left or h
- RIGHT arrow-right or l
- CHOOSE (select menu) Enter
- CANCEL ESCape
Configure serial port
You need to configure serial port. Use up and down arrows to select menus. Press down and select Serial port setup:

(Fig. 03: Configure serial port with minicom)
- Press A to setup serial device name such as /dev/ttyS1
- Press E to setup Bps/Par/Bits
- Press [ESC] to exit
- Save setup as DFL
- Exit
More on shortcut keys
To activate help menu press [CTRL+A] followed by [Z] for help on special keys:

(Fig: 04: minicom command help summary)
minicom in action
You need to connect your serial device such as router or modem using modem cable. Once connected power on device and type minicom command without -s option:
$ minicom -c on

(Fig: 05: minicom connected to one of my embedded Linux device via null modem cable [ click to enlarge image])
The soekris embedded Linux / BSD board with AMD 266 Mhz CPU + 256M RAM. This device connected to my computer using DB9 null modem cable. During the development you need to use minicom to install Linux kernel, format filesystem and configure device.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- How to configure cisco router using linux for (COM port) configuration
- Linux remote access with minicom and conserver how-to
- Announcement: nixCraft Job Board
- Asus E-DT / E-Monitor / E-TV - Linux Based Low Cost Devices
- Hack Linux based Nokia 770 Internet Tablet
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: configure minicom Soekris net4521, configure minicom Soekris net4801, minicom command, minicom configuration, minicom console, minicom hyperterminal, minicom linux, minicom null modem, null modem cable, serial communication program, serial devices, serial port, serial ports, single board computer, soekris, soekris linux, soekris minicom, telecommunications program ~ Last updated on: February 5, 2008



Hi,
I use minicom to connect to Solaris host, recently I got some problems because minicom send somenthing on the wire that the host fell like a break signal going down to the obp(fortunatly didn’t happen on a production system). I already removed all the intitializtion strings…Any ideas?
Thanks
Cheers
M
Marco,
If you do “man minicom”, you’ll find lots of options. I would suggest starting minicom with -o.
As a side note, I recommend kermit over minicom, it’s way better, as long as you create your own .kermrc containing the options you usually use.
Marco needs to edit /etc/default/kbd on his Solaris system to prevent such accidental breaks. Uncomment the line:
KEYBOARD_ABORT=alternate
I am using a health checkup machine, connected to my redhat linux 4 system with minicom 2.0.0,which sends data to serial port in a hexadecimal format only when it receives a command of 0×68 from the PC. i had tried using stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb but while using cat not getting anything from the port. tried using echo “0×68″ > /dev/ttyS0 but in vain. I had tried minicom by configuring it to /dev/ttyS1 and also to /dev/ttyS0 but minicom is showing offline. i am unable to decide the serial port because i have only one serial port which is being used for mouse. to the same port i had connected the machine by unplugging the mouse. Please help me out.
Thanks in advance
hi,
i want to use minicom for connection to my GSM modem so that it can send message to particular mobile..
can u tell me how shud i proceed for this…i only have idea for this.. i dnt know the details for that..