xFileMount.pup -mount, unmount many file types - GUI

Stuff that has yet to be sorted into a category.
Message
Author
wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#21 Post by wow »

Sure :) you only will need the first one containing mime types and info(icons are optional)
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#22 Post by sunburnt »

wow; I've rewritten xFileMount, it wasn't gzipping files in some cases.

I Googled about mime & read your dotpup.sh file & can't make sense of it.
Reading the dotpup.sh files made by MU's DotPup maker is always a chore.

Anyway... I thought to just merge your files & dotpup.sh with mine, which should work.
But I decided to ask if you have any advice for doing this.

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#23 Post by wow »

sunburnt wrote:wow; I've rewritten xFileMount, it wasn't gzipping files in some cases.

I Googled about mime & read your dotpup.sh file & can't make sense of it.
Reading the dotpup.sh files made by MU's DotPup maker is always a chore.

Anyway... I thought to just merge your files & dotpup.sh with mine, which should work.
But I decided to ask if you have any advice for doing this.
Yes, it was made with MU's DotPupWizard, but you dont need the dotpup.sh from it, unzip my dotpup and extract "FILESYSTEM.tbz" and leave the rest, just add the files on FILESYSTEM.tbz to your dotpup. Alternatively you can download any dotpup packed by GuestToo and examine his dotpup.sh
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#24 Post by sunburnt »

Thanks wow, I made a new DotPup & updated the download post.

I still don't quite grasp all the workings of the whole MIME thing.
I'll have to search for a tutorial as my Linux book is worthless.

### P.S.
The LongHorn icons are great!
How to set the icons system wide for file extention types?
I ask because Puppy 110 is being talked about in another post & this'd really jazz it up!

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

adding more extensions

#25 Post by wow »

If you want to add more extensions(e.g. .img) open the file "/root/Choices/MIME-info/xfilemount" with leafpad/geany:

Code: Select all

xfilemount/ext3
	ext: 3fs

xfilemount/ext2
	ext: 2fs

xfilemount/iso
	ext: iso

xfilemount/sfs
	ext: sfs

xfilemount/fs
	ext: fs
Then add these lines:

Code: Select all

xfilemount/img
	ext: img
And save the file. Now go to "/root/Choices/MIME-types/" and create a new file "xfilemount_img"(or copy xfilemount_<something> to xfilemount_img) open that with a text editor and specify an action if you want.

To use the new types restart X or Re-read mime-types from Rox options.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#26 Post by sunburnt »

Thanks wow, I'd looked at that & figured thats how to add new types to apps.

My Q really was how to set the icons in the ROX file browser for file extention types.
Like you did with your addon to xfilemount, so file types in ROX have different icons.
I know I can set the icon for each individual file with the ROX utility,
but I wanted to set an icon for each file type: .iso, .sfs, & etc. like you did.

Thus making ROX more like the Win. file browser for the new Puppy 110.

Thanks for your help with this... Terry

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#27 Post by wow »

Oh :oops: , that's easy. Example for .img: once you have the new mime type right click on its icon, choose "Set icon", select "Only for the type" and drag an icon. The new icon will be placed at "/root/Choices/MIME-icons/"

Image
Image

You can see all the mime types for rox 1.x in this file: "/usr/local/share/Choices/MIME-info/Standard" but don't worry about that because is an old version and will be replaced in Puppy-2.13 with a new version of ROX-Filer.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#28 Post by mikeb »

Dumb question time...
Files are mounted as 'read only' is this correct or do I need to do anything?

regression 2.2 puppy

Working fine...nice addon

mike

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#29 Post by sunburnt »

Hi mikeb; It depends on what file type your mounting.

Squash files: ".fs" & ".sfs" ALWAYS mount as read-only.
To change a Squash file, a new one must be made.

All the other image file types mount as read-write (or they should).
This means you can write to them, but image files are made a given size,
so you can't add to them past the amount of free space in the image file.


xFileMount is a file mounter only, PizzasGood's file mounters may make
a new image file that's larger as is needed because you've added to the
image file, thus forcing a new larger one in size to be made.
I've made utilities that make new larger or smaller image files, but
I haven't posted them except in a few cases where folks asked for them.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#30 Post by mikeb »

Ok thanks for the explanation...all has become clear :D

I had been using the Edit-sfs.pup and was looking to tinker with a .fs file...
Mount...extract...alter...rebuild externally is the way in this case

many thanks

mike

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#31 Post by sunburnt »

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.

User avatar
lederlunge
Posts: 17
Joined: Sat 12 Nov 2005, 13:19

#32 Post by lederlunge »

is there any chance to teach this application to work with tar.gz files ?

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#33 Post by sunburnt »

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.

kleung21
Posts: 28
Joined: Sat 18 Nov 2006, 07:11
Location: Toronto, Ontario

#34 Post by kleung21 »

Sunburnt...

Thanks for this utility - I find it very useful.

User avatar
lederlunge
Posts: 17
Joined: Sat 12 Nov 2005, 13:19

#35 Post by lederlunge »

i have not understood how to make a *.tar.gz file with Gzip.

thanx anyway

###################
# :shock: let there be SMOKE :lol: #
###################

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#36 Post by sunburnt »

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.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#37 Post by Pizzasgood »

You can add a -z tag to the tar command and it does the gunzip part automatically:
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]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#38 Post by sunburnt »

PizzasGood; I assume that this compression command wouldn't work?

tar -zcf file.tar

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#39 Post by Gn2 »

Use the built-in man help files

Code: Select all

(man) tar  gzip bzip2
If not included, See the list , right side of Page

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#40 Post by sunburnt »

It does work... except the correct command line would be:

tar -zcf FileName.tar.gz *

Post Reply