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 Mon 24 Nov 2014, 11:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Author Message
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Sun 16 Aug 2009, 13:03    Post subject:  SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa
Subject description: For those using 4.3 that can't use sfs v 3
 

Hi,

If you drag and drop v 3, it will autodetect and convert to v 4, vice versa

Thanks

Actually, it seems that you can install and use the new squashfs tools in an older puppy (4.2 and under). Get them from here: ftp://ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-4/squashfs-tools4-4.0-pup4.pet

Updated - v 1.4-1: Version Info now also tells you compatibility of your sfs with your kernel
Updated - v 1.4:
- Fixes reading .SFS extension (thanks disciple)
- Fixes reading spaces in paths (thanks disciple)
- Now can run from terminal, example:
Code:
sfsconvert /mnt/home/openoffice.sfs

- Now can right click on an sfs file and click --> open with -->sfsconvert

Updated - v 1.3 :
- Simplified GUI (the notes now in tooltips)
- Option to choose working directory - default /mnt/home
- md5.txt will be created afterwards
Updated - v 1.2 - Help button & tooltips
Updated - v 1.1 - SFS version check button
versioninfo.jpg
 Description   
 Filesize   16.61 KB
 Viewed   3711 Time(s)

versioninfo.jpg

sfs_version_converter-1.4-1.pet
Description 
pet

 Download 
Filename  sfs_version_converter-1.4-1.pet 
Filesize  3.02 KB 
Downloaded  1706 Time(s) 
sfsconverter.jpg
 Description   
 Filesize   23.73 KB
 Viewed   5193 Time(s)

sfsconverter.jpg


_________________
My apps

Last edited by trio on Fri 15 Jan 2010, 10:20; edited 19 times in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8659

PostPosted: Sun 16 Aug 2009, 14:48    Post subject:  

Could you also make a squash 4 to squash 3 convertor so when an existing sfs has been converted and worked on it can then be converted back to squash 3 so that it is useable in all the previous and some current puppies? Or simply to convert a squash 4 so that it can be used in puppy 1, 2, 3 and 4
I foresee confusion....
mike
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2457
Location: Texas, USA

PostPosted: Sun 16 Aug 2009, 15:04    Post subject:  

trio,

Thanks for this great little converter. I'm posting using an opera10.sfs on Pup 4.3.0 after using your converter. Also operating are OO3, FF3, and KDE358 whose sfs were converted with your program. Naturally, FF3 crashed after an update to 3.0.13 but that's a characteristic of 430 with firefox.

Thanks again for this and your many other useful contributions. I hope that a .pet converter will be next. EDIT: Just showing my ignorance concerning .pets.
Jim Smile

Last edited by Jim1911 on Sun 16 Aug 2009, 21:01; edited 1 time in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 16 Aug 2009, 16:07    Post subject:  

Good job trio Cool

Works
How long did the coding take you?
I now have Openoffice and XaraLX
in Puppy 4.3 Beta 1

Cyber Life is sweet Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Sun 16 Aug 2009, 20:13    Post subject:  

Hi all, cool reports Cool

@Mike
It already does that, v 3 to 4, and v 4 to 3 (you didn't read carefully). Sfs v 4 works for 430 and sfs v 3 works for 421-under (4 series). I don't know 3 and 2 series.

@jim1911
Aaah Good that it;s useful. Pet converter? Why do we need that? 430 and 421-under (also I think 3 and 2) dot pets are compatible (the pet itself). BUT the applications inside the pet is a whole different story. It just depends how you compile/make the apps. There can't be a converter for that, you just need to compile again from source

@Lobster
It took me about 2,5 hours, and yeah, I decided to make this, one of the reason is you when posting in bugs thread about incompatible sfs files you have

Thanks all

_________________
My apps

Last edited by trio on Sun 16 Aug 2009, 20:53; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8659

PostPosted: Sun 16 Aug 2009, 20:33    Post subject:  

Quote:
vice versa
bummer..so you did. Embarassed

Well this lack of backward compatability is affecting my eyesight Very Happy

regards

mike
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Sun 16 Aug 2009, 22:11    Post subject:  

updated to v 1.1 - added sfs version check button
updated to v 1.2 - added help button & tooltips


see main post

_________________
My apps
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Mon 17 Aug 2009, 05:27    Post subject:  

Bonjour,
I like very much this little app.
When you want to mount a SFS file (bad version) in ROX, may be is it possible to modify /usr/sbin/filemnt to launch SFSconvert and convert the SFS file and then mount it.
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Mon 17 Aug 2009, 05:35    Post subject:  

esmourguit wrote:
Bonjour,
I like very much this little app.
When you want to mount a SFS file (bad version) in ROX, may be is it possible to modify /usr/sbin/filemnt to launch SFSconvert and convert the SFS file and then mount it.
Cordialement Wink


Sure it's possible, but I do not want to interfere with Barry's current work with filemnt. You need to alter individually. You look for the warning line:

NOTICE: this is an older version of etc etc

When you found it, just put this under it:
exec /usr/local/sfsconvert/sfsconvert &

Yeah, it's a dirty hack... Wink

Cordialement

Edit: you mean auto convert then mount it? Yes, possible, but I don't think I want to make it that way, if it is not a native app. The reason is like I said above, it will be useless if the filemnt is not altered.

_________________
My apps
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Tue 18 Aug 2009, 00:43    Post subject:  

Updated - v 1.3 :
- Simplified GUI (the notes now in tooltips)
- Option to choose working directory - default /mnt/home
- md5.txt will be created afterwards

See main post

_________________
My apps
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 18 Aug 2009, 02:36    Post subject:  

Bonjour à tous,
Thank you very much for your answer. This has been very useful
Then, could you possibly provide the part of script to add up for automounting the SFS file after processing?
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Tue 18 Aug 2009, 03:52    Post subject:  

Esmourguit,

I made this one especially for you, commandline converter called sfs3to4:

same function auto detect v 3 to 4 and 4 to 3, usage: sfs3to4 xxx.sfs, after that directly auto mount the new sfs

To have filemnt auto mount the v3 sfs file, you have to edit /usr/bin/filemnt:

line 78 to 84:
xmessage -center -bg '#FFC0C0' "NOTICE: This is an older version 3.x squashfs file, not usable.
All Linux kernels 2.6.29 or later require version 4.x squashfs files."
sfs3to4 $imgFile &
else
xmessage -center -bg '#FFC0C0' "NOTICE: This is a newer version 4.x squashfs file, not usable.
All Linux kernels 2.6.28 or earlier require version 3.x squashfs files."
sfs3to4 $imgFile &

Please test.

Cheers

Edit: this is only to mount, not LOAD on the fly
sfs3to4.pet
Description 
pet

 Download 
Filename  sfs3to4.pet 
Filesize  667 Bytes 
Downloaded  933 Time(s) 

_________________
My apps

Last edited by trio on Tue 18 Aug 2009, 22:34; edited 1 time in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Tue 18 Aug 2009, 05:50    Post subject:  

Quote:
one of the reason is you when posting in bugs thread about incompatible sfs files you have


Good job. For various reasons I stay at the puppy cutting edge whenever possible. I studied your code and was very impressed that you did it in 2.5 hours.
It is interesting that your respond to needs that people express.
Really appreciate this and other work you are doing.

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Tue 18 Aug 2009, 06:11    Post subject:  

Laughing No problem Mr. Crustacean

I only want to help out.

Note to all:
if you are using USB/Hard Drive with FAT partition, sfs containing symlinks (like devx) will not be converted. It will fail.

_________________
My apps
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1737
Location: Baltimore, Maryland USA

PostPosted: Tue 18 Aug 2009, 06:33    Post subject:  

Lobster wrote:

It is interesting that your respond to needs that people express.
Really appreciate this and other work you are doing.


If developers adopted his attitude, more folks would be using Puppy as their OS of choice, without having to put on geek hats to do it.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

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


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