ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello. I've recently decided to try out midnight commander. I've never used it before but I like the idea of command line file management(aside from cp, mv, ls, rm, and whathaveyou). I'm having a rather frustrating problem though. I can't edit the colors. There seems to be pathetically little in the way of documentation on the internet regarding mc. I have no ~/.mc folder, but I do have a ~/.config/mc folder. Located in there is a default ini as well as a panels.ini. I created a .mc folder in my home directory and I've tried copying various themes from /usr/share/mc/skins to both ~/.config/mc as well as ~/.mc. I am not sure if it has anything to do with the fact that I'm running as root.
Yes yes I know running as root is highly unrecommended and I could break my system and blah blah blah. I've been running as root for quite awhile now and I'm not scared of breaking my system.
Anyway, I hope someone here has had the same problem as I, because I've searched google as well as Arch Linux forums, and there is no wiki on midnight commander in the ArchWiki. Thanks for reading.
Yes yes I know running as root is highly unrecommended and I could break my system and blah blah blah. I've been running as root for quite awhile now and I'm not scared of breaking my system.
No one of us cares if you break your system because you think running as root is a good idea. But we care about being attacked from your system that is wide open to any script kiddie out there.
So there isn't a way to just modify the default.ini after copying it to ~/.mc/ini? Also sorry, didn't mean to come off as rude, I'm just used to people ignoring the point of the post and shouting reasons why running as root is a bad idea at me as if I didn't know. Thanks for replying.
So there isn't a way to just modify the default.ini after copying it to ~/.mc/ini?
Yes, there is. I don't run mc (I prefer Ranger, another CLI file-manager), so I had to try what happens when you run the linked script. It does nothing more than replacing the (by default empty) line base-color= with the entries it finds in the theme file.
So a theme file that looks like this:
It seems that the script also inserts some default values if they are not present in the theme-file.
If you download the archive with script and theme-files and look at them they are pretty self explanatory.
There's obviously a deeper problem here. I must have done something wrong when copying files, because I tried the script and no changes take effect. I've made sure mc isn't running either. I also tried a couple different themes. Not really getting why it's not working, and it's not like I'm getting an helpful errors to post here either. I'm willing to bet it's a simple and embarrasing mistake.
Open the script and make sure that the variable MCINI points to the correct location (for example ~/.config/mc/ini), but you should get an error message if it does not.
Also, check that you run the script as the same user as you are running mc with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.