xFileMount.pup -mount, unmount many file types - GUI
I wrote a GUI utility for making new Squash files as I'm sure many have,
but then Puppy should have tools like this as they've very small & useful.
The remaster scripts (there's quite a few) make new Squash & Gzip images.
Alot of the time apps. added to the big Squash file need config files in /etc,
which is in the Gzip file (initrd.gz = Puppy2) or (image.gz = Puppy1).
Also the WindowManager menus are in /root in the Gzip image file.
These scripts make it easy, just setup Puppy how you want it & remaster.
Puppy runs so many different ways, the scripts remaster just a few of them.
but then Puppy should have tools like this as they've very small & useful.
The remaster scripts (there's quite a few) make new Squash & Gzip images.
Alot of the time apps. added to the big Squash file need config files in /etc,
which is in the Gzip file (initrd.gz = Puppy2) or (image.gz = Puppy1).
Also the WindowManager menus are in /root in the Gzip image file.
These scripts make it easy, just setup Puppy how you want it & remaster.
Puppy runs so many different ways, the scripts remaster just a few of them.
- lederlunge
- Posts: 17
- Joined: Sat 12 Nov 2005, 13:19
Hi lederlunge; Puppy has a Gzip app., but I find half the time that it doesn't work.
Yes GZip & Tar functions could be added to it, I thought about that,
but they don't really perform file mounting as such, so I didn't include it.
I'm in the process of adding some new capabilities to xfilemount, so I'll
keep compression formats in mind for upgrading it to a multi use app.
Yes GZip & Tar functions could be added to it, I thought about that,
but they don't really perform file mounting as such, so I didn't include it.
I'm in the process of adding some new capabilities to xfilemount, so I'll
keep compression formats in mind for upgrading it to a multi use app.
- lederlunge
- Posts: 17
- Joined: Sat 12 Nov 2005, 13:19
kleung21; Thanks... Nice to hear about one's efforts being useful to others!
lederlunge; Here's some code snips for Tar & Gzip from my collection:
### To extract files from a tar + gzip archives, ".tar.gz" & ".tgz".
gunzip < (file.tar.gz) | tar xvf -
gunzip < (file.tgz) | tar xvf -
### To compress files to a tar + gzip archive, do BOTH lines: tar then gzip.
tar -cvf (newFileName.tar) (Path&Files)
gzip -9 (newFileName.tar)
### To tar files & to untar files, cf = compress files & xf = extract files.
tar -cvf (newfile.tar) (path & files)
tar -xf (path & file.tar)
### To extract Gzip files, use gunzip
gunzip (file.gz)
All of these are typed into Xterm, while in the file's dir.
lederlunge; Here's some code snips for Tar & Gzip from my collection:
### To extract files from a tar + gzip archives, ".tar.gz" & ".tgz".
gunzip < (file.tar.gz) | tar xvf -
gunzip < (file.tgz) | tar xvf -
### To compress files to a tar + gzip archive, do BOTH lines: tar then gzip.
tar -cvf (newFileName.tar) (Path&Files)
gzip -9 (newFileName.tar)
### To tar files & to untar files, cf = compress files & xf = extract files.
tar -cvf (newfile.tar) (path & files)
tar -xf (path & file.tar)
### To extract Gzip files, use gunzip
gunzip (file.gz)
All of these are typed into Xterm, while in the file's dir.
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
You can add a -z tag to the tar command and it does the gunzip part automatically:
tar -zxf file.tar.gz
tar -zxf file.tar.gz
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
Use the built-in man help files
If not included, See the list , right side of Page
Code: Select all
(man) tar gzip bzip2
Be VERY careful with syntax - tar creates an archive and ADDS files or directories to that archive -
Use of compression utilities along with tar complicates further !
If just compression is wanted tar is not Req'd - any compressed files/folders may be archived as one - added/removed later.
It is strongly advised > create a temporary folder, copy non-essential files there & then play with variations of the CLI &
varied parameters to see results.
It will also be noted - the order of parameters is important !
Single files or directories may be added (concatenated) or pulled out of the archives.
READ the man files carefully
Use of compression utilities along with tar complicates further !
If just compression is wanted tar is not Req'd - any compressed files/folders may be archived as one - added/removed later.
It is strongly advised > create a temporary folder, copy non-essential files there & then play with variations of the CLI &
varied parameters to see results.
It will also be noted - the order of parameters is important !
Single files or directories may be added (concatenated) or pulled out of the archives.
READ the man files carefully
- lederlunge
- Posts: 17
- Joined: Sat 12 Nov 2005, 13:19
Small update, now has support for the new mime database(Puppy-2.13), and also the old mime structure for xFileMount. It works for Puppy-2.xx and Puppy 1.xx, older versions I don't know (icons not included )
Supported files: *.3fs; *.2fs; *.iso; *.sfs; *.squashfs; *.sqfs; *.fs;*.img
sunburnt, with the new mime database it is possible to add mime types for filenames such as: initrd, initrd.gz, image, image.gz. But, Is it safe to do it?
And about the icons I'll release a new Icon Theme for Puppy-2.13/ROX-Filer-2.5 tomorrow.
Supported files: *.3fs; *.2fs; *.iso; *.sfs; *.squashfs; *.sqfs; *.fs;*.img
sunburnt, with the new mime database it is possible to add mime types for filenames such as: initrd, initrd.gz, image, image.gz. But, Is it safe to do it?
And about the icons I'll release a new Icon Theme for Puppy-2.13/ROX-Filer-2.5 tomorrow.
- Attachments
-
- MIME-Types-xfilemount_rev2.pup
- updated for puppy 2.13
- (2.07 KiB) Downloaded 578 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
wow; I see no problem with adding specific files as mime types,
the image files aren't executable anyway, so it shouldn't matter.
As I see it, if clicking on a file in ROX doesn't have anyother purpose,
then setting a mime type for the file should be okay.
lederlunge; I missed your post (I don't know why I wasn't emailed).
I'm not sure just what your trying to do, or what your saying has happened.
the image files aren't executable anyway, so it shouldn't matter.
As I see it, if clicking on a file in ROX doesn't have anyother purpose,
then setting a mime type for the file should be okay.
lederlunge; I missed your post (I don't know why I wasn't emailed).
I'm not sure just what your trying to do, or what your saying has happened.
The original idea comes from mattahan and you can download the real Icon Set at his website. I only did some small modifications with Gimp and made the DotPup. Actually, I just made icons for types like .pet; .pup; .3fs; .2fs; .img; .fs and .sfs.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
MIME Types rev 2.1 for xFileMount
Updated again, now covering all the file types supported for xFileMount (types like image.gz, initrd only for Puppy-2.13 and up):
*.fs; *.sfs; *.squashfs; *.sqfs *.2fs; *.3fs; *.iso; *.img; image; image.gz; initrd; initrd.gz; initrd* and initrd*.gz
Requires: sunburnt's xFileMount.pup
Also, PupGant icon theme was updated to show icons for all those new types. [Read more]
*.fs; *.sfs; *.squashfs; *.sqfs *.2fs; *.3fs; *.iso; *.img; image; image.gz; initrd; initrd.gz; initrd* and initrd*.gz
Requires: sunburnt's xFileMount.pup
Also, PupGant icon theme was updated to show icons for all those new types. [Read more]
- Attachments
-
- MIME-Types-xfilemount_rev2.1.pup
- (2.4 KiB) Downloaded 638 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
Does this mean anything to anyone?:
It's working fine for ext2 files, but not sfs
Code: Select all
# xfilemount zdrv_216.sfs
##### FILE = /mnt/hdb5/zdrv_216.sfs
##### EXT.X = sfs
##### FileType = Squash
##### TYPE = squashfs
##### MntPt = /mnt/-mnt-hdb5-zdrv_216.sfs
mount: Mounting /mnt/hdb5/zdrv_216.sfs on /mnt/-mnt-hdb5-zdrv_216.sfs failed: Invalid argument
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h