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 Sat 25 Oct 2014, 03:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
ROX 1 click file mounter, types: .2fs, .3fs, .iso, .sfs.
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
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 17 Jun 2007, 00:23    Post_subject:  ROX 1 click file mounter, types: .2fs, .3fs, .iso, .sfs.  

willhunt is working on something like this.

Click the file to mount it, & click it again to unmount it.

The package has MIME files for the file types: .2fs, .3fs, .iso, .sfs.
ROX Filer pops up the mounted file, an Info popup notifies of unmount.

Extract the file: FileMnt.tar.gz in "/", or copy it's files to the correct dirs.
I couldn't get Tar to make the archive file's paths to start with "/".

There's no GUI, the app. just works in ROX by clicking on "image files".

##### New version... I fixed the MIME files. (sorry) #####
FileMnt.tar.gz
Description  Extract the file: FileMnt.tar.gz in "/", or copy it's files to the correct dirs.
gz

 Download 
Filename  FileMnt.tar.gz 
Filesize  1.27 KB 
Downloaded  706 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sun 17 Jun 2007, 00:55    Post_subject:  

Quote:
I couldn't get Tar to make the archive file's paths start with "/".

i think it will work with the -P option, when both tar'ring and untar'ring (i usually do that in my dotpup packages to unzip the files to the correct locations)

tar --help
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 17 Jun 2007, 01:29    Post_subject:  

Thanks GuestToo, I checked help when it wouldn't do it, but I missed that.
Sadly it still won't work, maybe it's for FileNames, not dirs. as help says.

Did: "tar -Pcf FileMnt.tar *", "tar -cfP FileMnt.tar *", "tar -cP FileMnt.tar *", etc.
It never put the leading "/" on the "root" dir., or it failed with errors.

I used Puppy-1, so maybe an older Tar but help listed -P, I'll try Puppy216.
Back to top
View user's profile Send_private_message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Sun 17 Jun 2007, 01:33    Post_subject:  

sunburnt, do like this:

cd /
mkdir /yourapp-1.0.0
mkdir /yourapp-1.0.0/usr
mkdir /yourapp-1.0.0/root

(must be root0 for pup 1.x)

add you stuff, then

tar -zcf yourapp-1.0.0.tar.gz yourappp-1.0.0

now you have an alien package

in pup2 you can do:

tgz2pet yourapp-1.0.0.tar.gz
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 17 Jun 2007, 01:53    Post_subject:  

Thanks John Doe; I'll try it out...

NOTE: I tried putting the apps. main dir. in "/" & then did:
tar -zcf FileMnt.tar.gz filemnt
It put the main dir. on the file paths & it still didn't put the "/" at the path start.
It just removed the / when I did: tar -zcf FileMnt.tar.gz /filemnt
And using the P argument caused it to make a P file (weard).

I'm hoping this'll be included in Puppy218 & up, so an installer won't matter.
New Puppies keep coming so fast that utility development is a little scary.
You never know just what will be included in the not so near future.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Mon 18 Jun 2007, 00:13    Post_subject:  

New version above, I fixed the MIME files... Sorry.

Can someone verify if it's working for them?
I'm still having troubles with it, & I need to know if it's just me.
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6688
Location: lisbon

PostPosted: Mon 18 Jun 2007, 01:38    Post_subject:  

sunburnt,

i just dloaded it & extracted to / ,( with pup2.16 booted of cdrom), but it's doing nothing if i click on .2fs, sfs or .iso files. do i need to reboot?
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Mon 18 Jun 2007, 01:58    Post_subject:  

You shouldn't have to, I can't get it to work unless the image file's
permissions are not set to EXE, $ the "Run Action" is set for the file.
I don't know how to set the run action for all 4 file types in code.

Green file name text in ROX is EXE type file, black text is non EXE type.

I'm puzzled by this, but I don't understand all about MIME.
Sad because it works great in Puppy-1 without all the fuss.
Back to top
View user's profile Send_private_message 
willhunt


Joined: 05 Oct 2005
Posts: 495

PostPosted: Tue 19 Jun 2007, 23:43    Post_subject: rox?  

Maybe it's got to do with the version of rox
you are using? it is not working on my 215
erzat 216 either or my plain jane 216 I have
not tried it on my type2 109ce install yet

_________________
176 Icewm Themes Exclamation
vlc-0.8.6c-i586.pet
vlc-0.8.6c-i586.pet
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Wed 20 Jun 2007, 02:40    Post_subject:  

willhunt; I'm guessing that it'll work with any 1.xx & any 2.xx won't work.
Does your file mounter app. run with clicking a file in ROX? If so... Does it work?

I'm at an impass as I haven't a clue of what to do... Suggestions anyone?

This worked before as GuestToo said, & now to have the option denied is scary.
Kinda like having no control over all of ROX Filer's right click menu items.
Same as the file browsers I've tested... No way to modify the right click menus.
These MIME & menu problems puzzle me, it's odd to be cut off from the critical.
But the WinBlows right click menu was a pain in the arse to try to modify also.
Back to top
View user's profile Send_private_message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 20 Jun 2007, 04:51    Post_subject:  

Sunburnt
Its not quite one-click but how about doing it as a drag and drop so you don't have to worry about mime types and rox actions.

One click opens drop area
drag image onto drop area
I'm not sure if you can get the drop area to react to the drop or if you need to push a button to activate

Its not one click but it does avoid having to find the file in a file chooser which is what I see as the major usability hurdle.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Wed 20 Jun 2007, 15:20    Post_subject:  

HairyWill; I just tried dragging "filemnt" to the desktop for a drop icon.
First I dragged pup_save.2fs to the desktop icon & it mounted it.
Then I dragged pup_save.2fs onto it again & it was unmounted.

I figured this would work...
But you still have to find the image file in ROX Filer no matter how you do it.
Back to top
View user's profile Send_private_message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Wed 20 Jun 2007, 18:28    Post_subject:  

A bit scary.
I dropped a sfs file on the desktop icon for filemnt, but I find I have a kinda merging result.
Dangerous?
Code:
sh-3.00# mount
/dev/root on /initrd type ext2 (rw)
/dev/hda2 on /initrd/mnt/dev_save type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
/dev/loop1 on /initrd/pup_rw type ext2 (rw,noatime)
/dev/loop3 on /initrd/pup_ro3 type squashfs (ro,noatime)
unionfs on / type unionfs (rw,dirs=/initrd/pup_rw=rw:/initrd/pup_ro2=ro:/initrd/pup_ro3=ro,debug=4294967295,delete=whiteout)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/loop2 on /mnt/+root+dev_save+sfs_blabla.sfs type squashfs (ro)
sh-3.00#
I agree with sunburnt Rox should still be used.
Why not have the ability to set a run action on this type of files to filemnt is called directly from Rox?
This more intuitive.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send_private_message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 20 Jun 2007, 22:26    Post_subject:  

Quote:
I don't know how to set the run action for all 4 file types in code.

if you mean, how to setup Rox run actions from a script ...
Code:
#!/bin/sh
if ! grep -q 'application/x-cd-image\:\*.2fs' /usr/share/mime/globs ;then
cat >> /usr/share/mime/globs << EOF
application/x-cd-image:*.2fs
application/x-cd-image:*.3fs
application/x-cd-image:*.sfs
EOF
fi

cat > /root/.config/rox.sourceforge.net/MIME-types/application_x-cd-image << EOF
#! /bin/sh
exec isorunaction "$@"
EOF
chmod a+x /root/.config/rox.sourceforge.net/MIME-types/application_x-cd-image


Rox already has a Run Action for .iso files ... this script just adds .2fs, .3fs and .sfs to the same Run Action ... so if you click an iso, a 2fs a 3fs or an sfs, it will run the script /root/.config/rox.sourceforge.net/MIME-types/application_x-cd-image

or you can set it up differently ... you could set up a different file association, for example:

application/x-sfs-file:*.2fs
application/x-sfs-file:*.3fs
application/x-sfs-file:*.sfs

and maybe setup application_x-cd-image to run the application_x-sfs-file ... or it could be a symlink

or you could setup 4 separate associations:

application/x-2fs-file:*.2fs
application/x-3fs-file:*.3fs
application/x-sfs-file:*.sfs
Back to top
View user's profile Send_private_message 
willhunt


Joined: 05 Oct 2005
Posts: 495

PostPosted: Thu 21 Jun 2007, 02:07    Post_subject:  

no mine is not a one click solution but the filechooser method the
gmount and other script seem to be working fine here is the thread
mine is a much more basic than the one you are working on.as to
hairy's problem maybe you could grep all mount pnts for just the
files you intend to handle but it would seem like that would really
slow you down Crying or Very sad

_________________
176 Icewm Themes Exclamation
vlc-0.8.6c-i586.pet
vlc-0.8.6c-i586.pet
Back to top
View user's profile Send_private_message 
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.0977s ][ Queries: 13 (0.0189s) ][ GZIP on ]