Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Minicom won't start with incorrect def file

  1. #1
    Join Date
    Aug 2006
    Location
    Whittier, CA, USA
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Minicom won't start with incorrect def file

    I fumblefingered the serial port setup for Minicom, and now it ALWAYS finds the incorrect settings.

    I can start as "sudo minicom -s" and enter the correct info, save it, it says it saved it, then retry and still get the wrong setup

    I can remove the program, delete the configuration files (which don't disappear when the program is removed), reinstall the program, and it STILL finds the wrong serial port info!!!!!!!

    How do I fix this?

  2. #2
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Minicom won't start with incorrect def file

    Quote Originally Posted by RogerDavis View Post
    I fumblefingered the serial port setup for Minicom, and now it ALWAYS finds the incorrect settings.

    I can start as "sudo minicom -s" and enter the correct info, save it, it says it saved it, then retry and still get the wrong setup

    I can remove the program, delete the configuration files (which don't disappear when the program is removed), reinstall the program, and it STILL finds the wrong serial port info!!!!!!!

    How do I fix this?
    1. Use Synaptic to remove the whole package, not just the program files.
    2. Check your home folder for any relevant hidden files.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  3. #3
    Join Date
    Aug 2006
    Location
    Whittier, CA, USA
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Minicom won't start with incorrect def file

    No luck, same result.

    Complete removal with Synaptic, then removed the log file from my home folder.

    Still says "minicom: cannot open /dev/ttACM0: No such file or directory"

    I need to change this to "ttyACM0".

  4. #4
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Minicom won't start with incorrect def file

    $ man minicom

    -s Setup. Root edits the system-wide defaults in /etc/minirc.dfl

    $ sudo rm /etc/minirc.dfl
    $ sudo minicom -s

  5. #5
    Join Date
    Aug 2006
    Location
    Whittier, CA, USA
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Minicom won't start with incorrect def file

    Nope - before "saving" correction...
    minicom: cannot open /dev/ttyACM0: Input/output error
    roger@roger-desktop:~$ minicom
    after "saving" correction...
    minicom: cannot open /dev/ttACM0: No such file or directory
    roger@roger-desktop:~$

  6. #6
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Minicom won't start with incorrect def file

    Quote Originally Posted by HermanAB View Post
    $ man minicom

    -s Setup. Root edits the system-wide defaults in /etc/minirc.dfl

    $ sudo rm /etc/minirc.dfl
    $ sudo minicom -s
    Running 12.04 minicom and saving new default settings creates a hidden .minirc.dfl file in the user's Home folder.

    Unless this is manually deleted then the settings will not change:

    Code:
    rm ~/.minirc.dfl
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  7. #7
    Join Date
    Aug 2006
    Location
    Whittier, CA, USA
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Minicom won't start with incorrect def file

    Results :
    roger@roger-desktop:~$ rm ~/.minirc.dfl
    rm: cannot remove `/home/roger/.minirc.dfl': No such file or directory
    roger@roger-desktop:~$
    roger@roger-desktop:~$ minicom
    minicom: cannot open /dev/tty8: Permission denied
    roger@roger-desktop:~$

    And how did tty8 get into the picture? That's not what I had there.

  8. #8
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Minicom won't start with incorrect def file

    Quote Originally Posted by RogerDavis View Post
    Results :
    roger@roger-desktop:~$ rm ~/.minirc.dfl
    rm: cannot remove `/home/roger/.minirc.dfl': No such file or directory
    roger@roger-desktop:~$
    roger@roger-desktop:~$ minicom
    minicom: cannot open /dev/tty8: Permission denied
    roger@roger-desktop:~$

    And how did tty8 get into the picture? That's not what I had there.
    tty8 is the default on a new connection. This will allow you to change it:

    Code:
    sudo minicom
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  9. #9
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Minicom won't start with incorrect def file

    Anyhoo, the default settings file is called minirc.dfl, so you can hunt it down with find, and then blow it away with rm.

    $ find / -name minirc.dfl

    When minicom is restarted it will make a new one.

  10. #10
    Join Date
    Aug 2008
    Beans
    29

    Re: Minicom won't start with incorrect def file

    if this isn't solved yet:

    http://ubuntuforums.org/showthread.php?p=12386577
    http://ubuntuforums.org/showthread.php?t=2089911

    other people are experiencing problems with terminals on serial ports...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •