Jump to content
Sign in to follow this  
abs0lut.zer0

Midnight Commander persistant settings

6 posts in this topic Last Reply

Recommended Posts

Hey all

 

Hope everyone is well in the unraid 'verse..

 

I would just like to know is there a config file somewere in the unraid file system on the usb stick that will save my defaults and survive reboots?

 

thank you

Edited by abs0lut.zer0

Share this post


Link to post

Whatever changes you are making you would recreate via the /boot/config/go so that the same mods are redone at boot up time.

Share this post


Link to post

Hey Squid

 

Thanks for the quick answer but what i actually am hoping for is to use MC as much as I use Total Commander on windows.

Reason being I have only one r/w share on my whole unRAID setup and I would like to manage my media library through MC as root user, this allows only me to make mistakes [accidental delete's, ransomware etc...].

MC has a config file that can be edited to have various different options [different startup directories,different default editors and compression utilities etc..].

 

So I would like to find a way to have a persistent config file for MC and am wondering where I would keep this so it could survive reboots.

 

So I am looking for some help on this if it is possible at all?

 

It currently lives in /root/.config/mc/ini and would like to know how I can get this to survive reboots and get applied to MC every time I start MC up.

 

I do realise that this is not what the unRAID filesystem is meant for but I would like to do this if it is possible.

 

Any advise anybody??

 

Thanks in advance for taking the time to read and any advise would be appreciated even if the answer is that it is not possible then I can just move on.

 

 

 

Share this post


Link to post

The previous answer is the way you do this:

  • Put a copy of the edited file somewhere on the USB stick (location is up to you).
  • Add an line to the config/go file on the USB stick to copy it during the boot process to where it needs to be while Unraid is running.

Share this post


Link to post
19 minutes ago, abs0lut.zer0 said:

MC has a config file that can be edited

 

19 minutes ago, abs0lut.zer0 said:

It currently lives in /root/.config/mc/ini and would like to know how I can get this to survive reboots and get applied to MC every time I start MC up.

 

Make your changes to that file.  Test it, make sure that it's what you want

 

Then copy that file to the flash drive.  Then edit /boot/config/go (or via user scripts -> schedule: at first boot only) to copy that file back from the flash drive.

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this