how to convert pet2sfs?

Booting, installing, newbie
Post Reply
Message
Author
Darkgame
Posts: 203
Joined: Sat 19 Mar 2011, 00:55

how to convert pet2sfs?

#1 Post by Darkgame »

like the title says. How? The pets are eating my pupsave

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post by jamesbond »

http://www.murga-linux.com/puppy/viewto ... 3084595eab
This is just one of them, there are plenty of others.

In short, if you're terminal-happy:

Code: Select all

tar -xvf xxx-yyy.pet
mksquashfs xxx-yyy xxx-yyy.sfs
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#3 Post by puppyluvr »

:D Hello,
Put the pet in a new directory...
Rename it from *.pet to *.tar.gz
(Where * is the name, just change the extension)
Open a terminal in the directory ( the ` key)
Type in:
tar -xvf *.tar.gz
A directory will appear named *
In the Terminal type:
mksquashfs *.sfs
Where * is the directory name..
Rename the resulting *.sfs to match your Puppy, so the bootmanager sees it...
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#4 Post by puppyluvr »

:D LOL :D
@Thanks JamesBond..
Never realized you could use tar on a pet directly...
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#5 Post by DaveS »

install 'rox right clicks'
right click on your pet and select 'extract here'
right click on the resulting directory and select 'create sfs'
done...............

http://murga-linux.com/puppy/viewtopic. ... 545#548545
Spup Frugal HD and USB
Root forever!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#6 Post by Béèm »

It is always needed to report the puppy used.
Reason?
Not all puppy's have the functionality DaveS is speaking about.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#7 Post by rhadon »

I always use dir2sfs instead of mksquashfs because I'm lazy.

For me, dir2sfs is easier to remember and to write and:

Code: Select all

mksquashfs xxx-yyy xxx-yyy.sfs

Code: Select all

dir2sfs xxx-yyy.sfs
Rolf
Last edited by rhadon on Sat 13 Aug 2011, 09:46, edited 1 time in total.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#8 Post by nooby »

Wow thanks guys very important info there. I turn into an SFS fan soon I guess. So handy to use them.
I use Google Search on Puppy Forum
not an ideal solution though

Darkgame
Posts: 203
Joined: Sat 19 Mar 2011, 00:55

#9 Post by Darkgame »

thanks! Thats alot of help! Btw, im using 5.2.5 lite.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

easypackage

#10 Post by sc0ttman »

easypackage
(requires Xdialog, dir2pet, dir2sfs)

This script combines your .PETs into a single .PET or .SFS file.
You will be asked to create a .PET file first, then a .SFS file if no .PET was created.

This script takes one argument - the directory containing the .PETs that you want to combine into a single package.

HOWTO:

Save the code below into a file called 'easypackage', then make it executable (right click on it and go to properties, or 'chmod +x easypackage') .. Then copy it to /usr/sbin.

TO USE:

I usually browse to a folder full of pets, and then open a terminal in the current ROX folder with the ` key, then I simply type

Code: Select all

easypackage .
notice the . (dot) at the end, means current directory

Anyway... Here the CODE for 'easypackage'
(may work or not on your system)

Code: Select all

#!/bin/sh

if [ ! $1 ];then
	echo "No dir given. Usage: `basename $0` [directory]
	
Example: `basename $0` $HOME/myfiles

Info:

This script combines your .PETs into a single .PET or .SFS file. 
You will be asked to create a .PET file first, then a .SFS file 
if no .PET was created. This script takes one argument - the 
directory containing the .PETs that you want to combine into 
a single package.

"
	exit
fi

mkdir $1/pets
mkdir $1/files
for i in "$1/"* ; do # for each file in the given package dir
	# get filenames, and extensions, without paths
	export fullname=`basename "$i"` 	# filename and extension
	export filename=${fullname%.*} 	# filename, no extension
	export extension=${fullname##*.} # extension only
	tar -xzvf "$i" -C "$1/pets"
	# copy extracted contents (only the stuff inside the extracted folders) from $workdir into $basedir
	cp --preserve=all -f -v -r "$1/pets/$filename/"* "$1/files"
	# remove pet.spec files in $basedir
	rm -v "$1/files/"*"pet.specs"
done
rm -r -v $1/pets
rmdir $1/pets

REPLY="none"
# ask to create pet
[ -e `which dir2pet` ] && Xdialog --title "Pet Create" --yesno "Do you want to create new pet file of the pets you have extracted?" 0 0 && REPLY=$?
if [ "$REPLY" = 0 ];then
	petname=$(Xdialog --title "Name your pet" --stdout --inputbox "Choose a filename for your pet file" 0 0 "name-version.pet")
	mv $1/files $1/${petname%.*} # rename dir to $petname, without extension
	rxvt -e dir2pet $1/${petname%.*}
else
	# ask to make sfs file 
	[ -e `which dir2sfs` ] && Xdialog --title "SFS Create" --yesno "Do you want to create an sfs file of the pets you have extracted?" 0 0 && REPLY=$?
	[ "$REPLY" = 0 ] && rxvt -e dir2sfs $1/files
fi
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Darkgame
Posts: 203
Joined: Sat 19 Mar 2011, 00:55

#11 Post by Darkgame »

thanks scottman. I will try in my free time
http://www.murga-linux.com/puppy/viewto ... &start=210
i thought this is the same thing as scottman's script, lol.
Thanks for the help!

Post Reply