The time now is Fri 20 Apr 2018, 01:10
All times are UTC - 4 |
Page 1 of 3 [35 Posts] |
Goto page: 1, 2, 3 Next |
Author |
Message |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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) #####
Description |
Extract the file: FileMnt.tar.gz in "/", or copy it's files to the correct dirs.
|

Download |
Filename |
FileMnt.tar.gz |
Filesize |
1.27 KB |
Downloaded |
803 Time(s) |
Last edited by sunburnt on Mon 18 Jun 2007, 00:11; edited 4 times in total
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
John Doe
Joined: 01 Aug 2005 Posts: 1689 Location: Michigan, US
|
Posted: 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6747 Location: hobart
|
Posted: 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
willhunt

Joined: 05 Oct 2005 Posts: 495
|
Posted: 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
vlc-0.8.6c-i586.pet
vlc-0.8.6c-i586.pet
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
HairyWill

Joined: 26 May 2006 Posts: 2946 Location: Southampton, UK
|
Posted: 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 5087 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11775 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: 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
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
willhunt

Joined: 05 Oct 2005 Posts: 495
|
Posted: 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
_________________ 176 Icewm Themes
vlc-0.8.6c-i586.pet
vlc-0.8.6c-i586.pet
|
Back to top
|
|
 |
|
Page 1 of 3 [35 Posts] |
Goto page: 1, 2, 3 Next |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|