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 Wed 20 Aug 2014, 06:48
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 Posts_count   Goto page: 1, 2, 3 Next
Author Message
trio


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

PostPosted: Sun 16 Aug 2009, 13:03    Post_subject:  SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa
Sub_title: 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   3573 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  1624 Time(s) 
sfsconverter.jpg
 Description   
 Filesize   23.73 KB
 Viewed   4911 Time(s)

sfsconverter.jpg


_________________
PET Maker|WbarCC|My Website

Edited_times_total
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8150

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: 2455
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

Edited_time_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_website 
trio


Joined: 21 Dec 2008
Posts: 1788
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

_________________
PET Maker|WbarCC|My Website

Edited_time_total
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8150

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: 1788
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

_________________
PET Maker|WbarCC|My Website
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: 1788
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.

_________________
PET Maker|WbarCC|My Website
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1788
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

_________________
PET Maker|WbarCC|My Website
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: 1788
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  875 Time(s) 

_________________
PET Maker|WbarCC|My Website

Edited_time_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_website 
trio


Joined: 21 Dec 2008
Posts: 1788
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.

_________________
PET Maker|WbarCC|My Website
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1674
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_website 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   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:  

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.0854s ][ Queries: 13 (0.0087s) ][ GZIP on ]