The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How to save personal configuration to USB Stick
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Lets imagine you just went through the configuration of your Sylpheed eMail Client, Airmail, XGate, SatPhone, OpenCPN, AIS, Instrument Panel and comports on your USB stick. Its a little bit time consuming so you dont want to do it again after a harddisk installation or after deleting the persitency files of the USB stick. So why not save the configuration and make it permanent?

Just go to the terminal and enter savecfg. This will save the configuration files to the preseed folder of your USB Memory. Those files will be the new defaults after resetting the persitency of a live system and also will be used when you do a hard drive installation.

This will save you some time ;)


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick

Joined: 27 Jul 2013, 08:46
Posts: 37
Thank you! Thank you! Thank you!!! Been trying to figure that one out for a while now. Is there a way to keep your settings when a new distribution comes out?

Thanks,

Tim


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
Just make a new stick and transfer the contents of the preseed folder into it. This will save the configuration for:
airmail,opencpn,zygrib,sylpheed,xgate,gnuais,wvdial,comports,gpsd,hamfax,polarcom,jtides and wxtide.
Works also on a non persistent usb stick.


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick

Joined: 27 Jul 2013, 08:46
Posts: 37
How about things like keyboard layout and and Internet access point configuration. Is there a way to save that information also?

Thanks again,

Tim


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick

Joined: 04 Nov 2010, 20:51
Posts: 1062
Sorry, Tim, this thread slipped through the cracks.

If you look at savecfg
Code:
sudo medit /usr/local/bin/savecfg
you will see the script just copies some of your configuration files to a preseed directory so when there is a hard disk install or a persistence file re-build those configuration files 'pre-seed' the new setup.

Your network configuration files are located at /etc/NetworkManager/system-connections
Code:
wadda@mini:/etc/NetworkManager/system-connections$ ls -lisa
total 16
50331922 4 drwxr-xr-x 2 root root 4096 Feb  5 17:18 .
50331654 4 drwxr-xr-x 6 root root 4096 Oct 17 06:52 ..
50334899 4 -rw------- 1 root root  242 Feb  5 17:18 BigPond8S58
50334696 4 -rw------- 1 root root  283 Jan 31 23:21 New 802-11-wireless connection
Your keyboard configuration is located at /home/$USER/.config/lxkeymap.cfg

The trick is to include that information in the savecfg file that mimics.
Code:
# comports
cp -v "/etc/comports*.conf" "$preseed/"
# gpsd
cp -v "/etc/default/gpsd" "$preseed/gpsd"
Insert after line 22, but before line 60, something like
Code:
# NetworkManager connections
cp -v "/etc/NetworkManager/system-connections/*" "$preseed/NetworkManager/"
# keyboard layout
cp -v "/home/nx/.config/lxkeymap.cfg" "$preseed/"
I'm still not sure about the path following the $preseeding argument, or if an addition needs to be made to the /preseed/config.txt file. I'm just not familiar enough with the process. Maybe someone else knows, but I'll look into it.


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick
Site Admin

Joined: 05 Nov 2010, 01:00
Posts: 185
To add additional configurations one has to add them to the /usr/local/savecfg script to save them and to /usr/local/bin/nxlive to restore the configuiration on a live stick and to /usr/lib/ubiquity/target-config/60navigatrix to restore the configuration on a harddisk install. However, it would also be required to add this into the iso. A better way may be to have a text file whith the locactions of the configuration files and the information of how to change the config files if the username on a new installation changes. If there is interest for something like this i may add this feature later down the road.


Top
   
 
 Post subject: Re: How to save personal configuration to USB Stick

Joined: 04 Nov 2010, 20:51
Posts: 1062
So it's clearly more complicated than I thought.

...but since the keyboard config and wireless passwords are easy enough, for the frequency I'm not sure it would be worth the time.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Search for:
cron

Credits © 2010 - 2024