How to Install Minicom on Linux?

Minicom is a variant of a program used in Linux operating systems to connect devices with a serial port (COM).

Below we will see how it is installed on different Linux operating systems.

  • Command used to Install Ubuntu / Debian:

  • Installing for Fedora, CentOS, RHEL

  • To Start

  • Or

After starting, you need to open the configuration by pressing CTRL-A O and specify the name of the COM port, usually ttyS0 – COM1, ttyS1 – COM2, USB-RS232 adapter – ttyUSB0.

The list of devices can be viewed with these commands:

Here is what some of the keys do:
Help: CTRL-A Z
Configuration: CTRL-A O
Initializing the modem: CTRL-A M
Output: CTRL-A Q

If the error “Device /dev/tty…access failed: Permission denied” is written during startup, it means that the user with whom minicom was started does not have access rights to the device.
With the command “ls -l / dev / tty ..” you can see who has access, usually, the root user and the dialout group have access. To avoid running minicom as root, you can add any user you need to the dial group with the command:

I hope it was a useful article.