How to setup Minicom on a Kali (Debian) Linux computer
I needed to use the console port to configure some Cisco gears. Unfortunately, I only had my Kali Linux laptop with me. After a quick Google search, I found a package called “Minicom”, which could be used to connect to the serial ports on the laptop.
First, I went straight to “apt-get” to install the package, by using
1 |
apt-get install minicom |
But Kali Linux kicked back with error
Turned out that the package ‘minicom’ placed in ‘universe’ repository. Check if that repository is enabled. The /etc/apt/sources.list must contain something like this:
1 2 |
deb http://archive.ubuntu.com/ubuntu/ precise universe deb http://archive.ubuntu.com/ubuntu/ precise-updates universe |
Remember to run sudo apt-get update after changing the sources.list
Now I could install it
I also needed to get the serial port info with the following command:
1 |
dmesg | grep tty |
Then I could start Minicom and set it up with the information I have
1 |
sudo minicom -s |
Don’t forget to save the settings as default.
From now on, when I need to use the console port to config my Cisco gears, I just run Minicom and ready to go.
The last step would be, to Exit from minicom, Click Ctrl, A, Z then X.