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:
sudo apt-get install minicom
- Installing for Fedora, CentOS, RHEL
$ sudo yum install minicom -y
- To Start
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:
dmesg | grep tty
ls -l /dev/tty*
Here is what some of the keys do:
Initializing the modem:
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:
sudo usermod -a -G dialout USERNAME
I hope it was a useful article.