The minicom utility is a classic text-based serial communications terminal emulator used by network engineers and systems administrators to manage Cisco switches, router serial consoles, and embedded development boards. Because minimal Linux installations, cloud instances, and headless distributions omit legacy communication tools, attempting to run the binary returns bash: minicom: command not found.
Install minicom via Native Package Repositories
The minicom package is maintained in the standard software archives of all primary Linux distributions:
- Ubuntu and Debian:
sudo apt update && sudo apt install -y minicom - Arch Linux:
sudo pacman -S minicom - Fedora and CentOS Stream / RHEL:
sudo dnf install -y minicom - Alpine Linux:
sudo apk add minicom
Grant User Permissions for Serial Ports
Accessing USB serial adapters (e.g. /dev/ttyUSB0) requires membership in the hardware serial device group:
- On Debian and Ubuntu systems, add your user account to the
dialoutgroup:sudo usermod -aG dialout $USER - On Arch, Fedora, and RHEL systems, add your user to the
uucpgroup:sudo usermod -aG uucp $USER - Log out and log back in, or run
newgrp dialoutto immediately activate the group permissions in your current terminal session.
Initialise Serial Configuration
Launch the minicom configuration wizard to set baud rate, flow control, and serial device paths:
- Open the configuration menu in setup mode:
sudo minicom -s - Select Serial port setup.
- Press A to define the Serial Device (e.g.
/dev/ttyUSB0). - Press E to set Bps/Par/Bits (e.g. 115200 8N1).
- Press F to disable Hardware Flow Control if connecting to a standard router console.
- Select Save setup as dfl to make this configuration default for future sessions.