Managing minicom settings

Minicom allows you to store and recall configuration files in a quite handy way.


When started without options then it looks for the default configuration files

/etc/minicom/minirc.dfl or ~/.minirc.dfl

These files can be easily created by starting minicom in setup mode

minicom -s or sudo minicom -s

and after having configured what you need, selecting the option “save setup as dfl”.

minicom: save setup as dfl

If you are root then the configuration will be saved into /etc/minicom/minirc.dfl,
otherwise into your home directory into .minirc.dfl .

Interesting is the possibility to save named custom configurations.
If you are root and you select the option “save setup as..” then you will be able to save a named custom configuration

minicom save as

The configuration file will be saved into the directory /etc/minicom as minirc.<name> (e.g.: minirc.alix) and can be easily recalled by invoking minicom followed by the name you gave the configuration

e.g:

minicom alix

will start minicom with the configuration stored into the file /etc/minicom/minirc.alix

BTW, here are the settings I’m using to connect to the alix board:

pu port             /dev/ttyS0
pu baudrate         38400
pu rtscts           No 
pu xonxoff          Yes
This entry was posted in tips and tagged , , , . Bookmark the permalink.

2 Responses to Managing minicom settings

  1. Chris says:

    Hi, I do not use sudo to start my minicom, but it tries to save on the etc/minicom everytime and I always get “cannot write to /etc/minicom/filename
    any suggestion

    • cris says:

      minicom has “a unique way” of saving the settings:
      if you specify the -s option, it supposes you are root and attempts to save the settings anyway into /etc/minicom.
      You can start it without the -s option and use the “Save setup as dfl” option to save the configuration into ~/.minirc.dfl
      You can also create a new “custom” user configuration by starting the program with a configuration name, e.g.
      minicom ... test
      You now should see an option like “Save setup as test”: the configuration will be saved into ~/.minirc.test

Leave a Reply

Your email address will not be published. Required fields are marked *