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

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

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

#1 Post by sunburnt »

As per Pizzasgood's suggestion... I rewrote my file mounting utility to work with ROX.
The DotPup adds the menu item: "Un_Mount" to ROX's: "Open With..." menu.

It mounts & unmounts: initrd.gz, initrd, image.gz, image, ISO, Squash (.fs, .sfs),
SAVE files (.2fs, .3fs), ext2 & ext3 image files, & prompts if it can't identify the file type.
For unmounting, the file or the mount dir. can be used.
xfilemount also is a GUI & will also accept command line input.
Example: xfilemount (FileName)
This will mount the file if it's unmounted, or will unmount it if it's mounted.

To Use:
Right click the file, hover on: File '(FileName)', click on: Open With..., then click: Un_Mount.


NEW version ...
============
Thanks to "wow" it now will mount / unmount file types: .fs, .sfs, .2fs, .3fs, .iso
by just clicking on them in ROX, a popup tells when UnMounting a file.
Attachments
xFileMount.pup
Tested but... nothing's perfect in this world, please report problems.
(2.91 KiB) Downloaded 1377 times
Last edited by sunburnt on Fri 15 Dec 2006, 06:48, edited 1 time in total.

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

#2 Post by Pizzasgood »

In the newer rox, there is a menu item that says something like "add custom entry". It lets you add custom entries, but only for the type of file you rightclicked to bring up the menu. Or at least that's how it worked when I toyed with it. I don't have it installed right now, and it's a version or two newer now also.
[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.

#3 Post by sunburnt »

NOTE: I've noticed that using xfilemount in GUI mode that it doesn't popup the "unmount" dialog.
This means that for initrd.gz & image.gz files that they won't be re-gzipped!

The weard thing is I can't see why I'm getting the error:
./xfilemount: line 202: syntax error: unexpected end of file

Here's the last part of the script, it pops up ROX & instead of Popping up the xmessage it errors.

rox $MntPt
if [ -n "$1" ];then ##### end of command argument section
exit 0
if
# success mounting, & info. dialog
xmessage -center "
Success mounting the file:

$FILE

The file is mounted on: $MntPt


When ready, click [okay] to unmount the file.
=============================================

"
unmnt_file

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

#4 Post by sunburnt »

FOUND IT... The "if" statement ends with "if" & not "fi".

BUT... My forum access is screwed up!

I don't have the edit button or the others, & there's no file download showing.

User avatar
darkerror05
Posts: 276
Joined: Sat 17 Jun 2006, 22:10
Location: Rochester NY, USA

#5 Post by darkerror05 »

I installed the dotpup in a fresh 2.10 live cd boot and it doesnt work in rox. I see the entery in the open with dialog but next to it instead of the normal picture it gives one that reads "error". And when clicked it does nothing. It seems that the dotpup isnt actaully installing an exacutable anywhere or atleast I cant find one. Any idea why this is?
-darkerror

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

#6 Post by Pizzasgood »

The forum has been updated and John probably forgot to re-enable editing or something. He didn't notice because he can edit anything anyway. I'll go PM him...
[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
darkerror05
Posts: 276
Joined: Sat 17 Jun 2006, 22:10
Location: Rochester NY, USA

#7 Post by darkerror05 »

edit works fine here. All I can guess is cache. Try clearing it.(hmm mabey that idea came frome the suggestion MU gave me about the sub-forums earlier.... hmmmm...)
-darkerror

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

#8 Post by sunburnt »

Pizzasgood;

Also the forums email notifications don't work, the link URL is different than my Bookmarks link.
So I have to check my email, then use the Bookmark link & search for post.


darkerror05; Is there a file: /usr/bin/xfilemount

Here's the dotpup.sh commands to install it:

cp -f ./xfilemount /usr/bin
ln -s /usr/bin/xfilemount /root/Choices/SendTo/Un-Mount
mv -f /root/Choices/SendTo/Un-Mount /root/Choices/SendTo/(Un)Mount

The copy command should work, the DotPup installer does "cd" to that dir.


ALSO... DOES ANYONE SEE the FILE DOWNLOAD ABOVE? I don't see it.

User avatar
darkerror05
Posts: 276
Joined: Sat 17 Jun 2006, 22:10
Location: Rochester NY, USA

#9 Post by darkerror05 »

1) nope there is NO /usr/binxfilemount
2)no I do not see the file download
-darkerror

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

#10 Post by sunburnt »

darkerror05; I just did a test (again) to see if the DotPup installer was in: /root/DotPupTmpDir

Here's the test dotpup.sh file I made into "test.pup":

#!/bin/sh
xmessage " `pwd` "

It popped up a dialog saying: /root/DotPupTmpDir
So the command: "cp -f ./xfilemount /usr/bin" should work just fine.
The DotPup installer is so simple, it's hard to imagine it won't work.


HAS ANYONE ELSE TRIED this DotPup ? PLEASE POST IF IT WORKS !!!

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

#11 Post by wow »

sunburnt wrote:HAS ANYONE ELSE TRIED this DotPup ? PLEASE POST IF IT WORKS !!!
Yes, I've tried your DotPup, it works and I like it :) also, I'm about to upload an extra dotpup with MIME info for rox, so you can mount/unmount supported files with a simple(maybe double) click in the icon.

Note: I'm having problems mounting if the path has spaces, e.g. /mnt/hda9/Puppy Iso/212.iso
Maybe you can edit your script to solve this.

Thanks
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

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

#12 Post by Pizzasgood »

I see an attachment at the top of the page, but it doesn't let me use it. It says I'm not authorized. I PM'd John again and pointed him to this thread...
[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]

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

#13 Post by wow »

MIME-types for xFilemount rev2
http://www.murga-linux.com/puppy/viewto ... 7765#87765

MIME-info; MIME-types for xFilemount, enables click mount/unmount for .2fs; .3fs; .fs; .iso; .sfs files. (old version)
[download]

[MOVED]MIME-icons for xFileMount (added all in the Longhorn Rox theme)
Image
Last edited by wow on Fri 05 Jan 2007, 01:25, edited 6 times in total.
[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.

#14 Post by sunburnt »

Pizzasgood; Thanks guy...

wow; I'll look at it, should be fixable, & I've found another small bug-a-boo.

Perhaps add ".img" to the mime list?
Another way would be to use MU's Drag-n-Drop desktop icons,
but most of the time I can't see my desktop & the icons anyway.

If I can figure out how to do it, I'll make mods to ROX's right click menu.
There's alot of instantainous power in the right click menu, it's by far
the quickest way to get things done easily, but why can't we mod them?
I've yet to find a OS or WM that lets the user mod the right click menu (easily).

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

#15 Post by wow »

sunburnt wrote:Perhaps add ".img" to the mime list?
I can't because "image" does not have an extension and if I change the default action for that file type(and for .gz too) all the "something"/"something.gz" files will be forced to be opened with xFileMount :oops:
[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.

#16 Post by sunburnt »

wow; A number of the floppy images & some HD imaging apps. use the ".img" extention.
These would be auto. recognized & extentionless files would popup the types dialog.
Another common image file extention type: ".nbi" = (Network Boot Image)
I'll look into other types of images & compression formats for mime additions.

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

More suggestions

#17 Post by wow »

Work with the messages: if there are no more loop devices your app shows an error message, but it isn't specific and users maybe get confused. (e.g. mount pup_saveX.3fs then popup a message "Dont forget to unmount pup_saveX.3fs")

How about showing a list with the files already mounted and buttons for unmount them?

sunbunt wrote:ALSO... DOES ANYONE SEE the FILE DOWNLOAD ABOVE? I don't see it.
No, I can see anything, or even attach something. And if anyone can't see it, how to download? :? So, I've mirrored your script here(But doesn't seem to work if you click it, I'd to unzip and install manually running "dotpup.sh")

Hope this helps.
[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.

#18 Post by sunburnt »

wow; I ment: (FileName).img

And there's other "image file" extentions that aren't Puppy specific that could be added.

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

#19 Post by wow »

Ok, I'll add these extensions(info, types and icons) soon.
[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.

#20 Post by sunburnt »

wow; Something I ment to ask but forgot to... Can I merge your DotPup with mine?

Rather than 2 packages for the same purpose, an integrated one seems best.
If it's okay, then I'll add what extentions seem appropriate in the merging.

Post Reply