Saving "Temporary" profile?

Home Page Forums Network Management ZeroShell Saving "Temporary" profile?

This topic contains 3 replies, has 0 voices, and was last updated by  drsox 4 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44098

    drsox
    Member

    Hi,

    I stupidly setup a complicated VPN setup under the TEMPORARY boot profile!
    Is there any way I can save this temporary profile into a profile?

    It seems you have to create and activate a profile before changes get saved to it.. I’ve only got remote access so shutting down the zeroshell machine to activate and reconfigure the profile isn’t an option.

    Saving the temporary config right into a profile would be ideal, anyone got any handy methods to do this?

    Tom – http://www.mouselike.org

    #53546

    gordonf
    Member

    /Database is the mount point where the current Zeroshell profile is stored. /DB would normally mount to the first hard drive and then individual profiles would appear as directories in there.

    Make a new profile normally, but don’t activate it. Note the directory’s name, like “_DB.001”. Then try going to a Bash prompt on the router’s console (or SSH?) and try this:

    mount /dev/sda1 /DB (or whatever partition device it is)
    /bin/cp -brf /Database/* /DB/_DB.001/

    This should (I think) copy your current (temporary) profile to the new profile, including any VPN configuration. You should then be able to activate that profile and it should retain the contents of your temporary profile.

    I DO NOT KNOW if this will work; it’s just something I tried to do without actually reproducing a complicated profile.

    #53547

    drsox
    Member

    Thanks for that! I will give it a go when I have a free moment and report back.

    Tom – http://www.mouselike.org

    #53548

    gordonf
    Member

    If you’re able to build another box (or maybe virtual machine) to run Zeroshell on, you could try following the steps I provided, then backing that profile up. Restore the backed-up profile to the second ZS system and see what happens when you try activating it.

    #53549

    drsox
    Member

    It doesn’t show up in the profiles list until you also do this:

    cd  /DB/_DB.001/ (or whatever number you made it)
    mkdir .settings
    echo 'RecoveredProfile' > .settings/Description

    Job done! Thank you.

    Tom – http://www.mouselike.org

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.