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 Fri 24 Oct 2014, 09:39
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Bind mounts do the same job as links. Links are better.!
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
sunburnt


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

PostPosted: Thu 24 Jan 2013, 01:23    Post_subject:  

Ibidem; Correct. My post on the first page shows the 3 files that run it ( It`s old now ).

First is a unique script that exports the pkg. name+ver., runs script 2 passing app. exec. and args.
Second is a generic script, mounts Sq. files and unionfs-fuse, runs script 3 passing app. exec. and args.
Third is a generic tiny ( 31 b ) "hook" script that does chroot and runs the app`s. exec.

There`s a RW config. dir. layer, on a RO app. dir. layer, on a RO / layer, all on a union dir.
Chroot into the union dir. and all 3 layers should be accessible as / . Right?
I look at the union dir. and all of the layers ARE there. Chroot isn`t playing nice.
xMahjongg runs just fine in this setup, but so far nothing else works.

### I`m now thinking of different ways to use the union without chroot.
I thought of 5 unions, Save layers mounted on each: /etc, /var, /opt, /root, /usr/share
Each of them like this: unionfs-fuse /tmp/OS/etc=RW:/tmp/OS/sq.mnt/etc=RO /etc
Links in /etc point to the AppPkg /etc dir. So the config. files are in AppPkg.

Also 1 union like Puppy ( chroot ) with a Save layer of only configs. and links on / .
No App. installs in Save because there`s no need to with AppPkgs.

For Puppy I`ve said before that there should be 2 Save files, for configs. and apps.
.
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 03:25    Post_subject:  

sunburnt wrote:
I like the idea of many slide-out panels.
I posted a concept of labeled colored bars anywhere along the screen sides. hover to slide-out.
On a single left side panel: desktop buttons, drive/partition buttons, task-bar buttons, and tray.
Task-bar and drive/partition buttons are stacked vertically so lots of them fit in a small space.
Another left side panel bar labeled menu is a slide-out apps. menu that can also be DnD on.
Desktop icons get covered up, but the bars and panels are on-top, so drag-hover-select-drop.
Desktop icons are messy, slide-out panels organize items and the desktop`s clean and pristine.
Excellent idea, especially for netbooks.
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 03:29    Post_subject:  

sunburnt wrote:
For Puppy I`ve said before that there should be 2 Save files, for configs. and apps.
.
Another excellent idea - config files could contain all personal info (wireless key etc) and be completely separate from other app additions (and hopefully portable to all future puppies...)
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 03:46    Post_subject:  

Thanks greengeek; All "loose file" apps. in one layer, and everything else in the other.

Portable to the future... Never gonna happen, they keep changing everything.
JWM has changed, and the apps. change for no reason at all it seems.
GTK folks redo all kinds of stuff on a regular basis, and so do many others.
Only the base Linux O.S. stuff stays the same, neer as I can tell...

Standards. IF they don`t wanna, it`s okay, then they`re just not compatible.
What if Firefox`s user base fell because they didn`t follow "app. standards".

Edited_time_total
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 24 Jan 2013, 03:50    Post_subject:  

Exactly. It's a much better idea to keep backups and config notes somewhere that you can browse before screwing up the new distro. It's way too easy to forget what you've configured.
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 03:53    Post_subject:  

jpeps; And mixing the apps. and those config. files make for a real mess.
Make it easy to do separate backups of the configs. and also the apps.

Speaking of mixing, how about /root and /home for configs. and user files?
At least put the config. files in a hidden sub dir. so the noobs don`t bork it.

Edited_times_total
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 03:55    Post_subject:  

sunburnt wrote:
Portable to the future... Never gonna happen, they keep changing everything.
True enough. But if you set a well designed precedent others will quickly adopt/modify it. I think thats a great idea to have a separate savefile for personal settings/private data. I'm gonna give that idea 12.5 out of 10

- puppy distro layer
- app layer
- personal layer

Edited_time_total
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 04:00    Post_subject:  

You have the layers reversed. And config. not personal.

I`d like to think you`re right, but I don`t see any historical evidence for it.
Especially the big app. guys, they really don`t care.
It`s the "Uncle Bill" syndrome, "Do it my way or not at all...".
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 04:07    Post_subject:  

sunburnt wrote:
It`s the "Uncle Bill" syndrome, "Do it my way or not at all...".
Possibly so, but did Uncle Bill foresee Android? I doubt he did, yet Android gives many users a data experience they are happy with. Good ideas that give the end user the experience they want can sometimes win through in the modern market regardless of the origin.

I hope you get some breakthroughs with your preferred puppy architecture - I think you have some ideas here that users will appreciate.
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 04:11    Post_subject:  

sunburnt wrote:
You have the layers reversed. And config. not personal.
Not sure why you say that...
Choice 1 would be to select the puppy you prefer.
Choice 2 would be to select the range of apps someone else has added to the puppy. (eg: "multimedia pack", or " "science pack")
Choice 3 would be to graft your own personal (private) settings over the top of everything. (eg: "wireless key", and/or "local language") etc
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 04:50    Post_subject:  

Ahhh. You mean selections. Layers refers to the union FS.
Puppy has it`s main SFS file at the bottom, add-on SFS on top of that, and the Save at the very top.
This way the files in the Save overshadow all the other layers.
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 04:55    Post_subject:  

yeah, sorry, I'm not too clear on the distinctions between fs layers and sfs layers yet.

Can someone tidy up the linux filesystem please...
(and make it easy for dummies...)
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 05:34    Post_subject:  

SFS file has a FS that is mounted just like the Save file, or partitions, or CDs.
Any number of these items or ordinary dirs. can be unioned into one view.

It`s what allows a live CD to work, otherwise you couldn`t write to it.
And SFS files are read only too, so it makes SFS files writable also.
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Thu 24 Jan 2013, 14:19    Post_subject:  

I wonder if would it be possible to build a puppy that could use a "personal sfs" that became the container for all the "user specific" info like wireless key etc.

So that a remaster could easily exclude that personal info and just pickup the base puppy plus installed apps.
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Thu 24 Jan 2013, 18:37    Post_subject:  

The dual Save file idea is just that. Remove the config. layer before remastering.

As said, the mixing of the configs. and installed apps. make for a mess.
As said, one Save file layer for apps. only, the other for everything else.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 3 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
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.0753s ][ Queries: 13 (0.0049s) ][ GZIP on ]