Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 01:46
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Upgrade / Migration tool
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
p310don

Joined: 19 May 2009
Posts: 720
Location: Brisbane, Australia

PostPosted: Wed 29 Feb 2012, 10:01    Post_subject:  Upgrade / Migration tool
Sub_title: Want a tool for changing puppies
 

Hi,

I've seen this asked on the forum, and its something that I think would be very handy if it could be made to work.

With the high level of friskyness in the kennels, with lots of puppies coming out all the time, it might be handy to have a tool that looks in an old save file, and sets the new system up with the old stuff.

EG

If I'm running lupu 5.28 but want to upgrade to slacko 5.31, I have to basically start again with all my personalisations, including browser bookmarks, email settings, passwords etc. It could go further to copy the resolution, desktop background, file associations etc.

For me personally, I like the idea of upgrading my puppy, but the sheer number of additions / alterations I have made, and the fact that it works fine anyway, makes me less inclined to bother. If a tool existed that analysed my save file, extracts data about what programs I have installed, which browser I use, that browser's bookmarks, my email etc, and then updates that information into the new save file being created in the new puppy, that'd be really cool, and handy.

Any takers??
Back to top
View user's profile Send_private_message 
amigo

Joined: 02 Apr 2007
Posts: 2261

PostPosted: Wed 29 Feb 2012, 12:06    Post_subject:  

I'm not aware of anyone being able to upgrade from any given version of Puppy to another -programmatically for sure. The idea that some program could be written which would do this for a variety of versions is pretty far-fetched.
Back to top
View user's profile Send_private_message 
darkcity


Joined: 23 May 2010
Posts: 2462
Location: near here

PostPosted: Wed 29 Feb 2012, 13:13    Post_subject:  

the idea of a program to do this is not unrealistic, but it would require a lot of effort, maybe not the most interesting project for someone-

I starting point could be people listing what they do when they set up from fresh install.

For example determining what browser are installed and loading the pets into fresh install would be fairly simple.
Arrow

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send_private_message Visit_website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 29 Feb 2012, 13:30    Post_subject:  

I have a poor memory but at least two guys have mention to me
in threads that they have tried something similar.

They use frugal install and they place as much as possible on /mnt/home
instead in the save file.

That way they can reuse what is installed without having to start anew.

They do sym linking from /mnt/home to root on the new version.

I tested to do this with only two programs. Firefox and the email client
Sylpheed or what the name is. It worked well for many but if the kernel
where different then it could need libs that one had to load down and add manually???

Beem maybe where one of these that set it up like that.

As others have already told you. To upgrade from one to another only
work within same version. Lupu 511 to lupu 513 or 525 to 528 and
even this can fail.

So that is why Beem and many others has come up with that work around
to place almost all programs on /mnt/home and then symlink to the new version.

So their save file is very small only having such things as local time and keyboard for the country one live in and maybe wall paper and such.

One need to do some compromises but when it work it is a bless.

Try to use the search link in my sig and test with different key words
that may find these descriptions.

Another way is to make as much use of .SFS as possible that way
many of these but not all can be reused almost instantly Load SFS on the Fly as they name it.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send_private_message 
p310don

Joined: 19 May 2009
Posts: 720
Location: Brisbane, Australia

PostPosted: Wed 29 Feb 2012, 20:48    Post_subject:  

Amigo said

Quote:
I'm not aware of anyone being able to upgrade from any given version of Puppy to another -programmatically for sure. The idea that some program could be written which would do this for a variety of versions is pretty far-fetched.


You're right, you can't update Lucid Puppy to Slacko Puppy, the programs aren't compiled the same, but are compatible. That's why this tool would be great. And it is possible.

Following from what Nooby has mentioned. And using firefox as an example and starting point. My idea of a tool would see that you are using firefox, so would download that for you, in the new version of puppy you are using, then copy the settings found at /root/.mozilla from the old to the new. That will work easily enough.

The same could be done with the other useful programs you might use regularly, eg email, pnethood perhaps, your local network settings etc
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4257
Location: Gatineau (Qc), Canada

PostPosted: Thu 01 Mar 2012, 01:33    Post_subject:  

As a development on nooby's thoughts:

you can also move your "my-documents" and "my-applications" folders to /mnt/home and symlink them back at the proper place in the new puppy.

You can also do this for the entire /usr/share directory: move it to /mnt/home and symlink it back to the proper place.

From the above, at least move /usr/share/backgrounds and /usr/share/fonts to /mnt/home and symlink them back in place.

I don't think it is possible for the bin and lib directories: you probably would end with a great big mix-up and it would make your new puppy unusable.

This works fine, however, I've tried it: you can selectively make a tar file of the /root/.config and the /root/Choices folders and any other configuration files in /root for programs you like, such as .bashrc, .Xdefaults, all the gtk*, etc. On your new puppy, you can then unpack these configurations into place. This will save you a lot of time instead of reconfiguring every program in your new puppy.

Good luck!

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
p310don

Joined: 19 May 2009
Posts: 720
Location: Brisbane, Australia

PostPosted: Thu 01 Mar 2012, 02:24    Post_subject:  

Quote:
you can also move your "my-documents" and "my-applications" folders to /mnt/home and symlink them back at the proper place in the new puppy.

You can also do this for the entire /usr/share directory: move it to /mnt/home and symlink it back to the proper place.

From the above, at least move /usr/share/backgrounds and /usr/share/fonts to /mnt/home and symlink them back in place.



I know how to do this, I've also done it. But, my point, and the tool that I'm suggesting, would do this automatically.

You can find the question across this forum, and non puppy forums, about how to setup things like they were in the past.

Skipping the /mnt/home and symlink step, if you had the old save file.sfs you could click on it, mounting it, finding the settings you want, and then copy them to the new save file. For most programs, this will work fine as they are only config files, not program files. This is basically what musher0 is describing, in a roundabout way.

Now, for a total noob, this process is probably a little daunting, which is where my thought process is. A tool to help the total noobs.
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4257
Location: Gatineau (Qc), Canada

PostPosted: Fri 02 Mar 2012, 17:26    Post_subject:  

Hello, p310don.

Sorry for my "roundabout" way, English is not my first language.

Would a command line script gathering all the configs of a previous puppy into a tar file be the answer ? Then of course you'd have a counterpart in the new puppy to unpack the same configs.

That shouldn't be too difficult to do.

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Fri 02 Mar 2012, 18:39    Post_subject:  

Not read the thread, just the first post...

As far as I see it, the only way to retain settings and data across different puppies is to have the same applications installed on those different puppies, and to migrate the noarch stuff, like config files, bookmarks, etc...

Many puppy users already know the simple trick of moving and replacing ~/.mozilla/ with a symlink to /mnt/whatever/.mozilla/, thus retaining firefox/seamonkey settings through different puppies...

Barry is looking into something similar for email clients at the moment.

I think, if anyone wants to take it up, a program that automatically searches for installed programs (firefox, seamonkey, claws-mail, sylpheed, opera, etc, etc, etc) and then moves all possible settings, data, etc to a mounted drive, and then sets up the required symlinks and so on...

You would not be 'migrating' anything other than the (mostly) XML, JS, etc files that these applications use to get setup/retain settings... The start point would be merely gathering a list of supported programs, and the location(s) of its 'keepable' files...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Fri 02 Mar 2012, 18:50    Post_subject:  

Maybe the attached script can be a first step?

Unzip the .tar.gz. Copy run-backup-settings and run-bs-list to /root.

run-bs-list contains list of directories to backup (.tar.gz will be created in /root).
Type into this list all directories you wish to backup and save the list.

Execute run-backup-settings.

All directories should appear as OrigDirName .tar.gz in /root

EDIT: Script removed! There is now Version 0.6 a few posts below!

_________________
LazY Puppy
RSH's DNA
SARA B.

Edited_time_total
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Fri 02 Mar 2012, 21:05    Post_subject:  

Added a simple GUI to enter a new path to save the Backups (.tar.gz) on another place instead of /root.

Menu Entry in Utility.

EDIT: Removed! There is now Version 0.6 a few posts below!

_________________
LazY Puppy
RSH's DNA
SARA B.

Edited_times_total
Back to top
View user's profile Send_private_message 
p310don

Joined: 19 May 2009
Posts: 720
Location: Brisbane, Australia

PostPosted: Fri 02 Mar 2012, 21:38    Post_subject:  

Hi everyone again,

Thanks for the replies. I'm glad some of you are getting my meaning, and offering suggestions. Awesome.

musher0 - roundabout isn't something to be sorry about, just saying that we are basically saying the same thing. Good to know we somewhat think alike!

Yes, a script is a good starting point, and it looks like RSH is onto that already.

sc0ttman - you're spot on, only the xml etc files need to be copied for the settings.

RSH - You're a champ. Already putting something together. The script makes a tar.gz of what it's meant to, which is good. Your gui however, didn't work for me. I changed it to /mnt/home but it didn't create anything there for me.
Can you make your script look into an unused save file, rather than the currently used /root directory? My idea being, start a brand new puppy with a bare save file, then maybe drag your old save file into the gui, or type in the location, which then runs the script, almost as it is, but copies the settings from the old save file. Then, unpack the .tar.gz into the new save file, thus copying the settings.

That would be a great start. Further into development, perhaps it could look at what you have installed, via PPM, then offer to download the same programs, and then copy the config files from the old to the new save file.

Again using browser as an example....

Start a new "virgin" puppy. Run the update/backup/migrate tool. Tell it where your old save file is. It will say
Quote:

I see you have Firefox as your web browser before. Do you want me to install the latest Firefox for you in Puppy 6 and set it up with your bookmarks and settings? yes / no?


The you type yes, and it downloads and installs FF, and copies the /root/.mozilla from the old to the new.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Fri 02 Mar 2012, 22:06    Post_subject:  

Quote:
The script makes a tar.gz of what it's meant to, which is good. Your gui however, didn't work for me. I changed it to /mnt/home but it didn't create anything there for me.

The app must run from directory /root. Only this works actually. Exclamation

Edit: previous version did had a bug - sorry for that. Embarassed

I added a simple text editor to edit the backup list easily. Smile

Quote:
Can you make your script look into an unused save file, rather than the currently used /root directory?

You can do this actually by yourself - should work: Smile

Mount the wanted savefile and then edit the file "run-bs-list" with path's to the mounted savefile - example: /mnt/+mnt+sda1+mounted-savefile.2fs/usr/local/lib/X11/pixmaps to get the pixmaps from there. Smile

Should also work with mounted sfs files. Smile
Try this and do report please.

NOTE: before installing backup-settings-0.1 remove previous installed files from /root.

Next Version does support different xxx-bs-list files. Smile

At anything else...

...we wil see. Please make suggestions and if possible test, code and report on this.

Edit: if you want to grab out especially applications you should try the gnewpet by jpeps.

EDIT: Application removed! There is now Version 0.6 in the next post!

_________________
LazY Puppy
RSH's DNA
SARA B.

Edited_times_total
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 03 Mar 2012, 00:40    Post_subject:  

Edited on 2012-03-24:

Moved to here: http://murga-linux.com/puppy/viewtopic.php?p=614348#614348

_________________
LazY Puppy
RSH's DNA
SARA B.

Edited_times_total
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 03 Mar 2012, 02:39    Post_subject:  

Update Version 0.3 available at previous post!
_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0990s ][ Queries: 13 (0.0059s) ][ GZIP on ]