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 Wed 22 Nov 2017, 10:49
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Keep your savefile slim and healthy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 10 of 11 [159 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11 Next
Author Message
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Tue 10 Feb 2015, 15:06    Post subject:  

Wife to husband: "And what are you going to do today?"

Husband: "Nothing."

Wife: "But that's what you did yesterday."

Husband: "I know, but I didn't finish it."

Alternatively:
some so-called professionals are frequently regarded a waste of space and good for nothing.

Finally, G H Hardy, a truly great English mathematician, observed in his famous essay "most people can do nothing well" and that statement was not qualified by "we expect, but cannot prove".
--------------------
My save file is 73B and Hardy may have written "men" not "people".
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2012
Location: 500 seconds from Sol

PostPosted: Tue 10 Feb 2015, 16:16    Post subject: Thanks rufwoof & Jasper  

Thanks, Jasper, for joining in the spirit of my "aside". During my youth, as my mind was developing, my slight astigmatism went unnoticed. It was only later that I put two and two* together and reached the conclusion that my view of the world, seen from the prospective of others, was somewhat askew.
Perhaps I am not alone.

Thanks, rufwoof, for the detailed explanations, and especially those regarding your method of utilizing Mikeb's techniques. Near the top of my "To Do" list is to carefully re-read ALL of your posts regarding how you've structured your Pups, and attempt to duplicate them: internalize the process rather than just store it away as interesting.

mikesLr

* There was a time when I had absolute faith in those parts of conclusions based on mathematical analysis. Math had been my strongest subject. When I was the eleventh grade a classmate, using algebra, demonstrate that Two plus Two equaled Two. It was only when I went thru each step he had taken, substituting real numbers for the algebraic symbols, that I realized concealed within his procedure was division by 0. After that I operated on the principle that if I could be fooled by a simple "slight of mind" trick, it could happen to the best of us.
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 1264
Location: N.E. USA

PostPosted: Tue 10 Feb 2015, 18:03    Post subject:  

Pupmode 13 is OK for most general purposes. The ability to configure the Puppy Event manager and inactivity shutdown make it near ideal. A journaled filesystem like ext3 for both format and SFS can occasionally shrink by itself. I've seen Slackos do this on a smallish scale (my savefile was 96MB free, increasing to 99MB free out of 124MB availible). I believe this is due variable compression techniques (squashFS?).

The situation presented here CAN get to the point of snow removal in Boston. At some point one has to ship it out, much akin to garbage.

_________________
Linux user #498913
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2163

PostPosted: Tue 10 Feb 2015, 19:50    Post subject: Re: Thanks rufwoof & Jasper  

mikeslr wrote:
Thanks, rufwoof ...

Your welcome.

I have a Google drive that gives you 15GB of free space that can be used as a web server (see http://murga-linux.com/puppy/viewtopic.php?p=794170#794170). Mine is very spartan at present, just with my vmlinuz and initrd stored/presented there http://tinyurl.com/qhfdjfd

If you have grub4dos or similar installed then you can drop those in as another entry in menu.lst

i.e. I store my vmlinuz and initrd files for various pup's in different sub directories on /mnt/sda3 which is the first drive (sda) and third partition - which when counted from zero as the first, one as the second ... etc makes my root being hd0,2 and accordingly my menu.lst looks something like

title Rufwoofs
root (hd0,2)
kernel /RW/vmlinuz
initrd /RW/initrd.gz

i.e vmlinuz and initrd stored in /mnt/sda3/RW sub-directory.

Provided you have something like

timeout 5

near the top of menu.lst then you'll have 5 seconds when booting the PC to arrow up or down to whichever pup you want to boot

The initrd is quite large at around 430MB as it includes the full Libre Office (writer, calc, presenter, draw, database etc) with UK and US dictionaries, Openshot video editor with the associated Blender (3D animation) and full inkscape (titles editing), xvidcap for screen capture and Audacity for sound editing. Skype is also in there. All remastered to my PC but I find that equally boots on two other household PC's as-is (just select Vesa and 1024x768 resolution options during booting).

The normal puppy menu is accessed via right clicking the desktop - I have a smaller/simple menu as the normal bottom left menu click.

Based on Slacko 5.3.3, but with a later PAE kernel (3.10) - so supports larger ram systems and later PC's

No save option, just ram boots the same each and every time. If I want to make a change I usually boot a fresh/clean version, immediately make the desired changes and then use the menu, config, remaster option - which after running creates a new initrd in /root (which I then move to /mnt/sda/RW so its used at the next reboot). A copy of vmlinuz is also produced in /root as part of the remaster process, but that's the same as the original one and can just be deleted. Both vmlinuz and initrd are created under /root after a remaster so that PXE server can be fired up (menu, PXE Server) and other PC's on the LAN PXE boot using those.
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2163

PostPosted: Tue 10 Feb 2015, 20:01    Post subject:  

8Geee wrote:
Pupmode 13 is OK for most general purposes. The ability to configure the Puppy Event manager and inactivity shutdown make it near ideal.

I originally found the pupmodes to be somewhat confusing/opaque and ended up using and sticking with ram boot (pupmode 5) and do a automated rotation into pupmode 12 as part of shutdown (and have no prompts for creating a savefile). I've also added some code to /etc/rc.d/rc.shutdown to spin down the drives as part of shutdown (based around hdparm -Y). Mine being rather old are a little noisy and you can quite clearly hear them spin down before a few seconds later the PC powering off. Parking the heads helps reduce the risk of corruption. Often I don't have drives mounted anyway - or manually umount them before I shutdown when they are mounted, so it wouldn't really matter if the power was just cut sharply.
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 1264
Location: N.E. USA

PostPosted: Fri 15 May 2015, 22:11    Post subject:  

Well pupmode 13 allows Puppy Event Manager to be zeroed in the first tab and set to say 30 (minutes) of inactivity in the last tab. You will get a SAVE Button on the desktop for manual saves. Personally its OK for me, YRMV.

Onto Slim savefiles... Make sure your internet is disconnected and eth0/wlan is off at shutdown. I notice a savefile creep if puppy shuts down with a browser open and internet connection available. This using FF browsers (27 here) and varies greatly by its configuration. Putting the browser in root and configuring all storages/caches is the acid test. Also FF browsers have a startup cache in root/.cache that does grow over time. Just delete, and it will come back at default size. HTH

_________________
Linux user #498913
Back to top
View user's profile Send private message 
gychang


Joined: 29 Nov 2008
Posts: 195
Location: Davis, CA

PostPosted: Sun 07 Jun 2015, 13:47    Post subject:  

DaveS wrote:
When you move /create a file or folder at /mnt/home (or anywhere else for that matter), you can drag it back to /root and from the pop-up menu select to make a symlink. This way, Puppy will THINK the file/directory is in /root when it is actually at /mnt/home.


I am not clear on this.

1. I have a large file (AFile.doc) in /root/my-documents folder
2. I drag it to /mnt/home and make an absolute link
3. AFile.doc will exist in /root/my-documents folder but can access thru /mnt/home/my-documents link folder, right?
4. save file will save the original large AFile, right?

it seems more economical to make the directory in /mnt/home/my-documents and link (absolute) to /root/my-documents, that way the save file will only save the link, again right?

thanks,
Back to top
View user's profile Send private message 
ebisu

Joined: 25 Sep 2013
Posts: 173

PostPosted: Sun 07 Jun 2015, 22:02    Post subject:  

Right, but that is what DaveS proposed. You should read his statement again.
Back to top
View user's profile Send private message 
gychang


Joined: 29 Nov 2008
Posts: 195
Location: Davis, CA

PostPosted: Mon 08 Jun 2015, 07:40    Post subject:  

gychang wrote:
DaveS wrote:
When you move /create a file or folder at /mnt/home (or anywhere else for that matter), you can drag it back to /root and from the pop-up menu select to make a symlink. This way, Puppy will THINK the file/directory is in /root when it is actually at /mnt/home.


I am not clear on this.

1. I have a large file (AFile.doc) in /root/my-documents folder
2. I drag it to /mnt/home and make an absolute link
3. AFile.doc will exist in /root/my-documents folder but can access thru /mnt/home/my-documents link folder, right?
4. save file will save the original large AFile, right?

it seems more economical to make the directory in /mnt/home/my-documents and link (absolute) to /root/my-documents, that way the save file will only save the link, again right?

thanks,


should be a relative link....
Back to top
View user's profile Send private message 
TTW

Joined: 28 Mar 2012
Posts: 51

PostPosted: Wed 15 Jul 2015, 08:33    Post subject:  

greengeek wrote:
mikeb wrote:
( a save sfs for persistent changes loaded to ram)
Do you mean that you have an sfs which contains specific personal and/or configuration information, and that you just overlay that over the main sfs? Could that contain things like wifi password and connection scripts?


I am very interested in this and can't find a definitive how to.

If I understand correctly then I can do away with my constantly growing savefile and instead create an sfs file to contain my persistent personalised settings, E.g. how my desktop looks, wifi connection, email login, browser bookmarks.

Is that right? If so then how do I do that?

Do I just copy all those configuration files into one directory and make a squash file? If I do then how will puppy know to use those files on boot up?

Where do I then store the subsequent SQS file?

Sorry if this has been covered before.

TTW
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Wed 15 Jul 2015, 10:36    Post subject:  

No definitive how tos around though I and others have made posts with some details.

In my case the save is an sfs which gets loaded and copied to pup_rw... so saves all changes like a pup_save does.

You might prefer making an sfs of default settings only...... using current puppies one of them might work using the adrv.sfs ....iirc thats th eonly one that layers on top of other sfs which is essential to be used for saved settings.

If you save file keeps growing its still worth taking steps to limit that regardless of the save method in use.....there are plenty of tips here and in the rest of the forum.

Alternative B is if you cannot keep yer save small then go for a save folder instead...then you get the whole partition to play with.....

mike
Back to top
View user's profile Send private message 
TTW

Joined: 28 Mar 2012
Posts: 51

PostPosted: Wed 15 Jul 2015, 10:56    Post subject:  

mikeb wrote:
No definitive how tos around though I and others have made posts with some details.

In my case the save is an sfs which gets loaded and copied to pup_rw... so saves all changes like a pup_save does.

You might prefer making an sfs of default settings only...... using current puppies one of them might work using the adrv.sfs ....iirc thats th eonly one that layers on top of other sfs which is essential to be used for saved settings.

If you save file keeps growing its still worth taking steps to limit that regardless of the save method in use.....there are plenty of tips here and in the rest of the forum.

Alternative B is if you cannot keep yer save small then go for a save folder instead...then you get the whole partition to play with.....

mike


Thanks Mike
It's an interesting concept. My Saluki instal has an adrive so that may be worth investigating.
I think the savefile bloat is mainly due to Firefox and email. I know I should really have these as SFS files that just load on boot without any saving of previous sessions I just haven't got round to deinstalling FF and setting it up in that way.

I am also lazy and leave files on the desktop which then goes into the savefile instead of filing them nicely away to a hard drive somewhere.

Time for a clean up methinks.

TTW
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Wed 15 Jul 2015, 11:28    Post subject:  

Well taming firefox is possible...zero cache, no urlclassifiers, no history etc etc.... or delete the profile each boot or stick it elsewhere but to me thats messy and I like bookmarks.

adrv...well doable though a bit fixed...I prefer a transparent save system as a no brainer....plus ram is there so why not use it Smile You also get the choice not to save so can be used in a config only way.

sfs instead of pets does save space..the latest browsers are ridiculously big and of course that applies with every update.

The save sfs to ram i have been using since around 2008 so a bit past a concept Very Happy

mike
Back to top
View user's profile Send private message 
TTW

Joined: 28 Mar 2012
Posts: 51

PostPosted: Thu 16 Jul 2015, 04:30    Post subject:  

mikeb wrote:


The save sfs to ram i have been using since around 2008 so a bit past a concept Very Happy

mike


Sorry didn't mean to imply it was only a concept, just that it's a new one to me. I actually like the idea but not sure I have the technical skills to put it into practice, does it involve writing scripts to make it work? Not really sure where to start as I have never made an sfs file before, wouldn't know where to store it (presume the same directory as I boot from) and wouldn't know what to put in it either, although I guess this can be a work in progress over a period of time.

TTW
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Thu 16 Jul 2015, 04:40    Post subject:  

Thats ok...actually concept referred to the adrv as apposed to my working sfs save.

Hmm well there was a thread or 2 on the adrv approach but this forum is not the easiest to research from...but perhaps the adrv term might be a good start.

mksquashfs /path/to/folder/ /path/to/file.sfs

is the basic syntax to make an sfs.

For example you could use that to make an sfs of /initrs/pup_rw which is where all the changes are.

You can exclude directories by adding -e proc initrd for example.

For my approach...yes some alterations to the init script and rc.shutdown...(I also use it for slax) you may not like to get into that but the adrv approach uses what puppy has...I believe you name the file appropriately though don't quote me I don't have this stuff as I can simply load any sfs present automatically for an easy life Smile and have the save sfs method available so all this becomes mute.

But its all variations on a theme which might give you what you want.

I am sure someone IS using the adrv method and might pop in here.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 10 of 11 [159 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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
[ Time: 0.0714s ][ Queries: 12 (0.0116s) ][ GZIP on ]