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 Sun 05 Jul 2015, 00:43
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to save to Savefile only on demand in Puppy 5.2
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [42 Posts]   Goto page: Previous 1, 2, 3
Author Message
Mechanic_Kharkov


Joined: 24 Jul 2011
Posts: 9
Location: Kharkov, Ukraine

PostPosted: Thu 04 Aug 2011, 19:17    Post subject:  

2 Sylvander:
1. I think it's not a good idea to hardcoded deleting the .XLOADED file. If everything is ok with X - maybe. But if something going wrong, then this prompt helps to bypass X starting. I know that there is ability to use pfix=nox, but standard prompt seems to be more finger-saving technology (less typing required) Smile

2. It really does. It thinks that it's still on flash in some mystic way. But it's not my own fault [or glory]. Yes, I really edited a little some configuration files on CD, but there was nothing about savefile location. I have just add a key to forcing ACPI usage - it's necessary to powerdown correctly on my board, and add a notification about ACPI is forced to boot.msg file ("Just wait 5 seconds for normal startup (note that acpi is forced)").
Now the "isolinux.cfg" file contents such settings:
Code:
label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=cd acpi=force

There is no flash references in boot config files on CD. The reference is still maybe somewhere inside pupsave file itself. Maybe the cause is last saving of pupsave file under alive X. So, pupmode=13 is still active (it's exactly correct, because the prompt on shutdown inserted to case 13 only, and it appears anyway).
Btw, while trying to save pupsave file from command line (/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw) with X inactive I've got some "file is locked" conditions. So it does not work while some processes are still running. And I really have no idea neither which ones exactly nor how to stop them.
So, next step is trying to burn onto CD pupsave file after correct shutdown with session saved on exit. Awaiting for save completion (now it still saves. about 30 minutes were already passed).

Thanks for remastering ISO file manual too. I did not know how to do it under linux, and used UltraISO under windows.


SimpleWater wrote:
I used this method, and works nice, but not guaranteed. It does save on certain situations. I think restarting X is one of them.

I have a bit strange situation with the file laying on CD (read-only CD-ROM), but with saving abilities also activated. So if any saving would be tried to perform then the system must raise some writing error message [or simply hang-up]. But nothing like that was detected even when restarting X many times. So, it seems that the X restarting is not an accidental save cause.

_________________
Let's digitize the world to re-compile it to better suit our own needs!
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 506
Location: GERMANY

PostPosted: Fri 09 Sep 2011, 06:44    Post subject:  

Hi folks !
Tried several options .(mochi mopel--)
Somehow after installing a pet file then shutdown without saving (with mochimopels script) previous installed pet file still saved ,despite shutdown
without saving.(this occurs alwasy after installing programms either pet or deb files)
Other changes (for example a text file) where not saved.
what is that ?
Same effect- result with sylvanders change of the rc.shutdown.

then tried reversed action ,deleting the program(previous installed pet or deb files) manually (during session) then -shutdown without save.but now the " no save" option did work. These files still where there despite deleting during session.
Strange behaviour.
My saveintervalls are set to =0.
Does anybody know a simple way to choose save or not to save at shutdown .
I also used pupsavecinfig pet similar results.
I am using macpup 525- lucid- puppy 529- and dpupexprimo on USB stick.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3735
Location: West Lothian, Scotland, UK

PostPosted: Fri 09 Sep 2011, 07:17    Post subject:  

1. All of my Puppies are each loaded using a "live" CD-RW, with the pupsave+SFS filepair...
Either on an ext3 partition on a Flash Drive, or else on an ext3 partition on an internal HDD...

2. And a file included in the ISO has had a configuration setting changed...
So that the pupsave on the HDD is treated as though a pupsave on a Flash Drive->[GREAT feature].

3. Not all of my Puppies [at least 1 doesn't] have feature 2 working, even when the necessary change has been made. Sad
Don't know why.
Back to top
View user's profile Send private message 
login123

Joined: 22 Jun 2010
Posts: 13

PostPosted: Tue 05 May 2015, 10:28    Post subject:  

Fwiw, the method described in post 1 still works for Puppy 5.2.8.05. You still get a harmless warning during restart.

If I had a tiny bit more courage I would try some of those dialog options. Smile Has anyone used them enough to say they work without fail?

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


Joined: 23 Nov 2006
Posts: 10907

PostPosted: Tue 05 May 2015, 10:45    Post subject:  

ripping out the code that generates and uses that .xloaded is the best thing you can do for any puppy...its totally pointless and just gets in the way.

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

Joined: 16 Jul 2013
Posts: 385

PostPosted: Tue 05 May 2015, 12:43    Post subject:  

login123 wrote:
You still get a harmless warning during restart.


Hi login123 - did you catch this post by Bruce B, one page back in this very thread? Looks like a simple solution for eliminating that warning - http://www.murga-linux.com/puppy/viewtopic.php?p=522050#522050

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


Joined: 23 Nov 2006
Posts: 10907

PostPosted: Tue 05 May 2015, 12:55    Post subject:  

The stupid code that writes it is in /usr/X11R7/bin/xwin and the stupid code that reads it is in /etc/profile

I like to point out stupid Very Happy

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


Joined: 16 Jun 2008
Posts: 1015
Location: Union New Jersey USA

PostPosted: Tue 05 May 2015, 13:20    Post subject: A method for simpletons  

Since this thread was re-opened some 4 years after login123's original post seeking a “simple way to control saving sessions”, and although its good to know that the advice given at that time still works, for the purpose of completeness, if you'll take some advice from a simpleton when it comes to technicalities, might I suggest the following:

1. Install shinobar's pupsaveconfig: http://www.murga-linux.com/puppy/viewtopic.php?p=457081&sid=180f22c30f84c56f9717be236030055a#457081

It includes a modification to Barry K's “Shutdownconfig” without which following only jpep's first two instructions will not avoid automatic saving at shutdown/reboot on older Pups.

2. Follow jpep's instructions: http://murga-linux.com/puppy/viewtopic.php?t=81911. After the installation of shinobar's pupsaveconfig, only jpeps' steps one and two are necessary and no warning that "X seems to have exited uncleanly the last time you ran puppy..." will thereafter appear.

Remember to Save before shutting down/rebooting.

mikesLr
Back to top
View user's profile Send private message 
login123

Joined: 22 Jun 2010
Posts: 13

PostPosted: Wed 06 May 2015, 09:42    Post subject:  

Hi, Moat. Thanks for that reminder. I saw that post by Bruce B but just forgot it. Will try it within a day or two.
But, I would much appreciate if you explain what it means to:
1. Write the file "/etc/.XLOADED with the data false with no line end"
2. "set it as immutable".

Hi, mikeslr, thank you for the advice. Sorry for reviving an old post. I only recently found out for sure it still works with 528.05. I bumped it because a post here by bill says it may have become lost: http://murga-linux.com/puppy/viewtopic.php?t=81911

I haven't tried Shinobar's excellent PupsaveConfig-2.2.5 yet. If I knew for sure that it worked in 528 05 I would install it right away. I did try several of the suggestions earlier in this topic with no success, probably some mistake in my code.

It is not easy to dig out all the issues and solutions on this forum, but I am reading as fast as I can, and much appreciate the helpful attitudes of all the members. Smile
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 1015
Location: Union New Jersey USA

PostPosted: Wed 06 May 2015, 10:38    Post subject: (jpeps + shinobar)'s pets = No AutoSave on Lupu 5.28  

Hi login123

When this thread started, you were running 5.20 and 5.25. I still run 5.25 on a Dell Dimension 4600 which is attached to our only printer. I don't recall if, after finding jpeps's instructions, I tried to avoid AutoSave. I rarely print anything and the Dimension is only turned on when I do. So I may not have taken the time to attempt modification. In fact, I may have applied the adage "If it ain't broke, don't fix it". The Dimension still runs 5.25 because setting up Cups is a PITA.

I can, however, confirm that the shinobar-jpeps combination does work on Lupu 5.28. While i explore many Pups, mostly from a ZTSystems Quad Core, and drop some Pups as others are published, the original Lupu 5.28 has been on that computer now for at least 3 years. Lupu 5.28 is my "fall-back": (a) it just works; and (b) my impression is that webpages load faster and it can often pick up weak wireless signals when newer Pup's can't. The ZTSystem is 2 floors and about 150 feet from the router.

By now, I rarely have any reason to modify Lupu 5.28. But as I do put it to work at least 4 or 5 times a week, avoiding unwanted additions to its SaveFile was something worth obtaining. I am certain that before trying the jpeps-shinobar combination I backed up my SaveFile. And I distinctly recall that I initially only applied jpep's instructions and only thought of Shinobar's modified PupSaveConfig when I noticed it was still Saving at shutdown despite having applied the first 2 steps of jpep's instructions. [Shinobar's modification to PupSave is apparently the standard for newer Pups. So I hadn't realized jpep's instructions went beyond the second step].

At any rate, the information in my prior post is based on my experience on my system. I do recommend, however, that before trying it you back up your SaveFile. I have no idea how the other changes I've made over the last 3 years on my system may have differed from your own.

mikesLr
Back to top
View user's profile Send private message 
login123

Joined: 22 Jun 2010
Posts: 13

PostPosted: Wed 06 May 2015, 14:46    Post subject:  

Thanks for the confirmation.
I'll back up the save file and install Shinobar's pet.
Are you using the latest, 2.2.6?

First, though, might try that code change that Moat pointed out, just to see what happens.

Right now Puppy 528 05 is on a 2 gb USB stick, for experimenting, so I want to control rewrites and changes.

It will be eventually used in a multiboot setup on a laptop.
Probably will not need it to print anything even on the laptop.

Thanks again.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 1015
Location: Union New Jersey USA

PostPosted: Wed 06 May 2015, 15:52    Post subject: pupsaveconfig-2.2.5.pet is the one I used  

Hi login123,

pupsaveconfig-2.2.5.pet is the one I'm using. Available here: http://www.murga-linux.com/puppy/viewtopic.php?p=457081&sid=784364161882f4ccfb5662b15b6ba8bd#457081

mikesLr
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [42 Posts]   Goto page: Previous 1, 2, 3
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.0881s ][ Queries: 13 (0.0068s) ][ GZIP on ]