Linux tools - Minicom (How to install and use?).
| F.A.Q.Linux tools - Minicom (How to install and use?)
Minicom is a small console command used for serial connections.
In a more pragmatic definition, minicom can be used to connect modems, routers and switch console ports via a serial port. Minicom has very similar features and user interface to TELIX.
Installing Debian, Ubuntu, Kali, Mint
$ sudo apt-get install minicom
Installing Fedora, CentOS, RHEL
$ sudo yum install minicom
Display of tty devices
Typically, minicom is used to connect to a physical port where it connects to a serial device such as a switch, router, PBX, etc. If the server/computer is not equipped with a serial connector, a USB converter can be used. To view existing serial connectors or USB converters, use the following device:
$ dmesg | grep tty
You can also see that the base baud rate of tty devices is 115200. An alternative device may be called ttyUSB when a USB converter is used..
Startup and configuration of Minicom
$ sudo minicom -s
(launch minicom black & white)
$ sudo minicom -s -c on
(launching a minicom with colors)
Serial port setup:
Serial Device: /dev/ttyS0
Bps/Par/Bits: 115200 8N1
Set this parameter according to the information in the manual of the connected device, such as for Extreme Network SLX 9740::
Parameter | Value |
Bits per second | 115200 |
Data bits | 8 |
Parity | None |
Stop bits | 1 |
Flow Control | None |
Save setup as dfl
– saving values as defaults
CTRL + a, q
– output without reset
CTRL + a, x
– exit and reset
CTRL + a, z
– menu help
COM w BIOS
Including COM1 in BIOS
Advanced → Super IO Configuration → Serial Port 1 Configuration:
Serial Port - Enabled
Device Settings IO=3f8h; IRQ=4
This information coincides with the information obtained from the system (dmesg)
1.106547] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
Notes:
In the BIOS of the motherboard, the COM port (usually COM1) must be attached.
The cable must be plugged into the CONSOLE connector on the device.
Related pages: