LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2014, 06:43 PM   #1
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
No ~/.mc/ini


I just installed Midnight Commander and have run into something unusual. The ~/.mc/ini file has not been created. I thought "no problem," because I can create one by copying the appropriate configuration file from the root directory and put it in ~/.config/mc. I looked at every mc file in /etc/mc, /usr/share/mc and ~/.local/share/mc, but did not see it. I know what the file looks like from previous installations. Either I have become partially blind or mc is misbehaving badly. I could try removing it and re-installing, but I want to try solving this first. (A learning experience.) Is there an mc file or directory in an obscure place? This is very unusual, since mc has had zero problems on previous installations. (Debian Wheezy)
 
Old 07-31-2014, 06:49 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
~/.config/mc/ini

(found after: find ~ -name mc)
 
Old 07-31-2014, 07:05 PM   #3
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
That is the problem. ~/.config/mc is empty, but I cannot find the correct configuration file to copy and place there. I is unlikely that the file does not exist somewhere, because without it mc should not run. I just cannot find the damn thing.
 
Old 07-31-2014, 07:15 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
remove it and start mc

recreated it for me
 
Old 07-31-2014, 07:24 PM   #5
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Nice idea, but it creates another empty directory.
The annoying thing is I really only need the file to set the skin. (I am not fond of the default colours.) I have yet to figure out how to configure mc with the command line. It is much more difficult than with Ranger.
 
Old 07-31-2014, 10:36 PM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Code:
@biker:/usr/share/mc/skins
$ ls
darkfar.ini                    modarcon16root-thin.ini
dark.ini                       modarcon16-thin.ini
default.ini                    modarin256-defbg.ini
double-lines.ini               modarin256-defbg-thin.ini
featured.ini                   modarin256.ini
gotar.ini                      modarin256root-defbg.ini
mc46.ini                       modarin256root-defbg-thin.ini
modarcon16-defbg.ini           modarin256root.ini
modarcon16-defbg-thin.ini      modarin256root-thin.ini
modarcon16.ini                 modarin256-thin.ini
modarcon16root-defbg.ini       nicedark.ini
modarcon16root-defbg-thin.ini  sand256.ini
modarcon16root.ini             xoria256.ini
Which one or all do you want? I can tar up and PM you a file. Or open text editor and copy and paste here in this thread.
Up to you.
 
Old 08-01-2014, 02:16 AM   #7
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
I have the skins, along with everything else. What I cannot find is the configuration file that I can copy to my ~/home directory. I have searched several times, but have not found it. Really confusing. If the configuration file is not created after the next re-boot, I might be force to experiment by removing mc and re-installing it to see what happens. Thanks anyway.
 
Old 08-01-2014, 09:01 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Here's the ini file that was created after I removed it and started mc (also Debian Wheezy):

http://pastebin.ca/2827873
 
Old 08-01-2014, 10:00 AM   #9
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
mc.ini is created after choosing "Options" / "Save settings" from menu or after exiting mc when you have selected "Auto save" feature.
 
1 members found this post helpful.
Old 08-01-2014, 05:13 PM   #10
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Yes, that did it. I looked at the options, but did not make any changes, so had nothing to save. Now I know just opening the options menu and choosing save will create the conf. file. Thanks a bunch. That is worth two or three karma points, but I can only give you one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] php.ini.rpmsave instead of php.ini ilvista Linux - Server 3 02-01-2011 04:39 PM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
no php.ini anywhere curos Slackware 3 02-06-2006 09:20 PM
XP -- boot.ini Kriptis Linux - Newbie 6 09-28-2004 10:23 PM
php.ini NW Otter Linux - Software 11 09-24-2003 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration