- This topic is empty.
November 5, 2014 at 1:44 pm #44098
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.orgNovember 5, 2014 at 7:32 pm #53546gordonfMember
/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.
—November 5, 2014 at 8:13 pm #53547
Thanks for that! I will give it a go when I have a free moment and report back.
Tom – http://www.mouselike.orgNovember 6, 2014 at 2:04 pm #53548gordonfMember
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.November 7, 2014 at 3:31 pm #53549
- You must be logged in to reply to this topic.