minicom (Pete's notes)

Web to the minicom home page for info about minicom.

Install minicom

Red Hat Fedora

rpm -e minicom
rpm -i minicom-2.00.0-2.i386.rpm
This installs /usr/bin/minicom and /usr/share/doc/minicom-2.00.0/.

Set serial device protections

To allow all users access to the COM1 port, the modem and the USB port.
chmod a+rw /dev/ttyS0
chmod a+rw /dev/ttyS1
chmod a+rw /dev/ttyUSB0

MAC OS X

Install fink, then
apt-get install minicom
See Using Minicom on your Mac for serial communications

Create default config file

Minicom needs a config file. To create an initial (empty) default config file named /etc/minirc.dfl...
/usr/bin/minicom -s
Save setup as dfl

Create personal config files

If I use minicom for console access, I want to use the laptop's COM1 port (/dev/ttyS0), at 9600 baud. If I use minicom to speak directly to the PCMCIA modem, I want to use /dev/modem at a much higher baud rate. If I want to use a USB port, I want /dev/ttyUSB0. Therefore, minicom needs multiple configuration files. These files should be stored in a common place, so I can use them whether logged in as root or as siemsen. Minicom likes to store config files in /etc, with names like minicom.dfl (the default), minicom.com1 and minicom.modem.

To create /etc/minirc.com1, log in as root and do

minicom -s
select Serial port setup
select A and change the Serial Device to /dev/ttyS0
select E and E to change the Speed to 9600
back at the main menu, select Save setup as..
use com1 as the file name
select Exit from Minicom

Do a similar thing for minicom.modem, with a Serial Device of /dev/ttyS01 for the modem built into the 3Com PCMCIA card when it's plugged into gazelle.

Do a similar thing for minicom.keyspan, with a Serial Device of /dev/ttyUSB0 and a Speed of 9600.

Once the setup files named minicom.com1, minicom.modem and minicom.keyspan exist, set up aliases to use them conveniently. Edit ~/.bashrc to set up the aliases. Here, the -o is used to skip modem initialization when using the COM1 port.

alias com1='minicom -o com1'
alias modem='minicom modem'
alias keyspan='minicom -o keyspan'

Using minicom's dialing directory

Use minicom's "dialing directory" to remember phone numbers. Use the "CTRL-A D" command to enter the dialing directory. This opens a window that edits the dialing directory database, which is a file named .dialdir in your home directory. See the minicom man page for more.

Using the laptop and console access cable kit


Pete Siemse
Last modified: Thu Sep 29 16:22:26 MDT 2005