[Request]Automagically mount USB drives + add rox bookmarks

What features/apps/bugfixes needed in a future Puppy
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#31 Post by sunburnt »

ecomoney; Here`s what I found...

1) While links can have spaces, GTK expects a path, NO SPACES allowed.
....... If there`s even one space in a line the "Save As" menu won`t show it.
2) So I used underlines instead of spaces, that works of course.
....... The menu item looks like this: USB_drive_(_at_sda1_) Kinda messy!
....... I think this looks better: USB_drive_(_sda1_) or: USB_drive_(sda1)
3) The GTK menu cuts off the whole line to the last "/" inclusive.
....... So this: file:///tmp/USB_drive_(_/mnt/sda1_) becomes this: sda1_)
....... This: file:///tmp/USB_drive_(sda1) becomes this: USB_drive_(sda1)
4) /root is a bad place for links, /tmp is better, reboot and they`re gone.

So... Play with what I have given you and decide how you want it to look.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#32 Post by ecomoney »

Hi Sunburnt

I tested the USB auto code on the "Linux Newbies" at the cybercafe today, a very mixed bag of people from all over the world :-) I used version 5 which is the most current version at this time.

As I suspected, the "ginea pigs" had trouble knowing that the "sda1" rox bookmark was the usb drive when downloading. I like the idea of formatting the bookmarks you gave above. I asked the test pilots what comes to mind and held up my pendrive, and they all said "USB", so your idea of naming it "USB_drive_(sda1)" would be perfect I believe for them. Having the default download/upload location from the browser become the pendrive when it is plugged in would definetely help also ("just works") to perfection.

Unfortunately, a couple of things I did (I am Human too!) last time I was there caused about 25 hours of downtime at the cafe, so I would like not to introduce any new code for a week or two apart from testing on individual machines for the next week or two, to give the poor desk volunteers time to regain their confidence in the system :oops:

Cheers for doing the research on the ROX bookmarks, I look forward to the next release with Bookmark naming built in? :)
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

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

#33 Post by sunburnt »

ecomoney; I hope your slip up was not too severe... :-(
I have tested Beta 6 and all seems to work well.
Note: I made links for GTK like: /tmp/usb-auto/USB_drive_(sda1)
Putting them in /tmp is safer than /root, and at reboot everything is gone!
Experience over the years has taught me to put temp. files & etc. in /tmp
I`m trying to decide how to do Firefox paths. I`ll let you know.

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

#34 Post by sunburnt »

Update: I have it writing the Firefox file: pref.js
It looks for /root but will take any path with /root in it.
My file had: /root/my-documents, and it changes it to: /mnt/sda1
On unmount it replaces: /mnt/sda1 with: /root/my-documents

This is much better, putting things in: /root is just a bad idea, use the Docs. dir..
If you want the client PCs at boot to set the Firefox path, I can do that in usb-auto.
Then if they don`t have a USB plugged in, their Page and Picture Saves,
and Downloads will go to: /root/my-documents
I don`t know if the client PCs have a Docs icon on the Desktop, maybe a good idea.

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

#35 Post by sunburnt »

Hey ecomoney; Beta 6 is ready for testing... Read the changes carefully...
No rush to test it as I`m taking a little vacation next week.
But I`ll still check in from time to time to see how everything is going...

I think default setting the Firefox Downloads to: /root/my-documents is a good idea...
Success... T.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#36 Post by ecomoney »

Thank you Sunburnt, your holiday is well earnt have a good time. I will test and demonstrate.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

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

#37 Post by sunburnt »

ecomoney; The new version Beta 8 is ready for download... (No Beta 7)
It`s a complete rewrite and I really think it`s a great utility now!
The device test method is different and it handles all removable media!
So I will probably need to rename it to something else.
There`s only one more change I see for it after this.
Puppy 421 and newer has new kernel drivers I want to use in USB-Auto.
But this version is the best yet by far I think... Terry

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#38 Post by ecomoney »

Thanks Sunburnt, I will give it another test at the Mission cybercafe next week. It would be great if all future puppies had this feature, it fits with Puppies mission too. How should we go about requesting it gets added to the official Puppy build?

p.s. Good news about it detecting all attached storage, I guess that means a whole bunch of mobile phones/digital camera's also "just work" now too.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

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

#39 Post by sunburnt »

ecomoney; As I posted on the usb-auto forum, I found a flaw in the code.
It will only handle 1 insert or removable at a time without possible failure.
And the 7 seconds it takes to detect the device is a rather long time.
I have fixed it but I`m still testing it, maybe Sunday. Wait for Beta 9...

As to inclusion into standard Puppy, it use to have HotPup, like HotPlug.
I think Dougal wrote it, but nothing seems to stay in Puppy very long.
Barry`s standard releases don`t seem to retain the added functionality.
So maybe we could ask about it, but it`s irritating to see your work lost.

NOTE: Cameras will work except for Kodak ( never buy a Kodak! ).
Phones I had not thought of... I`m interested to see how they`ll work.

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

#40 Post by sunburnt »

### Beta 9 is ready for testing...

Q: What should we call the app. now that it does all removable media?

Post Reply