Now you can drag a PET on that Icon, to create a SFS from it using SFS-Combiner.

Code:

#!/bin/bash

v=`cat /etc/puppyversion`

rm -rf /tmp/pet2sfs
mkdir /tmp/pet2sfs
mkdir /tmp/pet2sfs/pet

cd /tmp/pet2sfs

mksquashfs /tmp/pet2sfs/pet Empty.sfs

cd /tmp/pet2sfs/pet
tar -xzvf "$1"

rox -d /tmp/pet2sfs &

sleep 2 && xmessage -center -buttons 'close this window whenever you like' "
Drag Empty.sfs on the list in SFS-Combiner.
Click 'create new_$v.sfs'
Click on the folder 'pet' and the folder in it.
Drag the now visible folders (/usr , /root and so on) from the extracted .pet
to a second filemanager-window with the temporary SFS-files.

Almost there. Works fine, though the second file manager window, SFS-TEMP/tempfiles is only visible AFTER clicking ok, which means I need to manually navigate to that folder, then copy the files into it. Is this what you intended?

Fantastic MU, really great piece of work, now works perfectly. I'm looking forward to Sunburnt's code, it would also be great to be able to do this without a linux partition. THis is a major, major advancement of puppy, and I think will have very far reaching effects. Long love puppy!

A small ROX window opens showing a pet folder and Empty.sfs, as well as another window with a text explanation of the procedure to follow.

However, before I can do anything, another message pops up saying the file has been deleted or moved. Closing that message also closes the ROX window with the Empty.sfs and I'm left with just the procedure message.

I also looked at the sunburnt thread, but did not see that a pet-to-sfs function had been written yet.

Is there some other way of creating an sfs from a pet that I've missed?

Apologies if I'm going over old ground. I see the last update here was in 2007. Seems likely there is some other method already. I just haven't found it in forum searches.

vtpup, here's one way,
Place the foo.pet on a ext2 or ext3 partition. Rename to foo.tgz. Click on it and extract. This will create folder /foo/. Now run dir2sfs foo and you will have your foo.sfs.

You should however check for a pinstall.sh in the /foo/ folder. Usually they build symlinks. You will have to duplicate these symlinks in the proper folder in /foo/. Say you need a symlink from /usr/bin/foo to /usr/local/bin/, open the /foo/ folder twice in ROX. In one window go to /usr/bin in the other go to /usr/local/bin (you may have to create it). Drag /usr/bin/foo to /usr/local/bin and "Link (relative)".

The other thing to check is icons. /foo/foo.xpm should be placed in /foo/usr/local/lib/X11/mini-icons before you build your .sfs

I think there is a utility program to convert from package.pet to package.tar.gz. that is called pet2tgz

in the # (command prompt) type the following

1. pet2tgz package.pet

then it will give you a filename called package.tar.gz
click on that file called package.tar.gz and select all then extract all of them. Then it will show a directory called package
then type the next command which is dir2sfs

Thanks jrb and reckrhodes. I remember reading about the manual methods once before. Thanks for the clear specifics.

I'm still interested in the simplicity of action in mu's app, seems like a cool way to do it, I was wondering if there was something wrong with my system, or method of using it. Maybe to clear that up I'll try it on a new pfix=ram session.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum