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 Mon 01 Sep 2014, 23:24
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 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
nancy reagan

Joined: 22 Jan 2009
Posts: 510

PostPosted: Sun 27 Feb 2011, 10:57    Post subject: why not use this ready made tool ?  

why not use this ready made tool ?


http://www.murga-linux.com/puppy/viewtopic.php?t=60678
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Sun 27 Feb 2011, 12:15    Post subject:  

Because that tool doesn't give you the option "to save or not to save" at shutdown?

With the arrangement I presently use...
I can choose to save manually at some chosen point in time DURING THE SESSION...
And then:
Either choose to NOT SAVE after that, not even at shut-down/reboot.
OR...
I might go to shut-down, and suddenly realise I NEED to save during shut-down.
Back to top
View user's profile Send private message 
nancy reagan

Joined: 22 Jan 2009
Posts: 510

PostPosted: Sun 27 Feb 2011, 15:09    Post subject:  

Sylvander wrote:

Because that tool doesn't give you the option "to save or not to save" at shutdown?

With the arrangement I presently use...
I can choose to save manually at some chosen point in time DURING THE SESSION...
And then:
Either choose to NOT SAVE after that, not even at shut-down/reboot.
OR...
I might go to shut-down, and suddenly realise I NEED to save during shut-down.


It is my experience that you can do this all with shinobar's pet

http://www.murga-linux.com/puppy/viewtopic.php?t=60678

If you want to save -during- session press the fat red circle on the desktop.

You can organize the util so that it still will ask you at shutdown to, or not to save.
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Sun 27 Feb 2011, 17:02    Post subject:  

OK, I'll try installing it in Wary-511, and see how it goes. Very Happy

I'm back.
Did that...
And the program warned me that I already had a pupsave made and in use, and gave me only the option to close the program.
So I guess it would be necessary to scrap my existing pupsave, lose all the work invested in that, begin afresh.
I'll think about it, but doubt if I'd want to begin again.
I'll try it with the next new Puppy that comes along.
Back to top
View user's profile Send private message 
sergey

Joined: 23 Aug 2010
Posts: 6

PostPosted: Sun 06 Mar 2011, 20:47    Post subject: Save or not save to Savefile in Pup Linux
Subject description: PUPSTATE=5 is only thing that works for me
 

Setting pmedia=usbflash does not work in the latest Puppy
versions I use -- Lighthouse 500-G, Quirky 1.4, Wary5.1.1

Puppy doesnt boot: can't find media -- it must be looking
for a USB something, because it spends some time looking.

I'm using Grub so I applied your suggestion in menu.lst and
tried all variations in syntax based on Grub's README,
For example, on kernel line using (hd0,1)/quirky140.

My method of setting PUPSTATE=5 described in my earlier post
has worked in Lighthouse, Quirky, and Wary for months for me.
It's easy although lacking the characteristic s-m-o-o-t-h,
elegance of Puppy operations.

BTW, Wary 5.1.1 is very fast to reboot, which saved me
lots of time as I rebooted dozens of times for these
experiments.
Back to top
View user's profile Send private message 
Zaven

Joined: 13 Mar 2011
Posts: 6

PostPosted: Tue 22 Mar 2011, 19:30    Post subject:  

My hardware solution: usb flash drives w/ electronic write protect switch
Back to top
View user's profile Send private message 
login123

Joined: 22 Jun 2010
Posts: 9

PostPosted: Tue 03 May 2011, 12:46    Post subject:  

I have been using the configuration described in the first post for puppy 525 .
- It has worked OK since then.
- Nothing saves at shutdown.
- The unclean shutdown warning indeed seems to be harmless.
- Anytime you do want to save something, just click the save to flash bullseye (I renamed that bullseye)
- It's the simplest solution I have seen, just rem out 3 lines of code.

Attached is a screenshot.



Anybody else tried it yet?
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11092
Location: The Peoples Republic of California

PostPosted: Thu 12 May 2011, 14:51    Post subject:  

I wrote the file /etc/.XLOADED with the data false with no line end.
(that's how Puppy writes it)

Then set it as immutable. Puppy can't write to it any more. I've been
doing this for a long time. It eliminates any unwanted dialogs.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11092
Location: The Peoples Republic of California

PostPosted: Thu 12 May 2011, 15:11    Post subject: Re: why not use this ready made tool ?  

nancy reagan wrote:
why not use this ready made tool ?

http://www.murga-linux.com/puppy/viewtopic.php?t=60678


I didn't know that the referenced topic existed or this topic existed.

I wanted a yes/no option on shutdown.

The solution was a text edit of a few lines of text.

Even if I knew these topics existed, I'd just do it my way anyway.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Mechanic_Kharkov


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

PostPosted: Wed 27 Jul 2011, 00:13    Post subject:  

Thanks!
To handle subj in my setup (boot from CD, save file on flash sda1) I have made following three steps:

  • 1. Prevented scheduled saves by setting Save_interval=0 in Menu / System / Puppy Event Manager / Save Session;
  • 2. Edited /etc/rc.d/rc.shutdown file and changed default behavior with this one:
    Code:
      dialog --timeout 10 --yesno 'Save this session?
    (or just wait 10 sec to save)' 0 0 >/dev/console
      if [ $? -eq 1 ];then
       echo "Session saving cancelled" >/dev/console
      else
       echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
       /usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
      fi

  • 3. Edited /usr/bin/xwin file to replace default 30 second timeout with 3 seconds one. (when "X seems have exited uncleanly.." appears).


And now I'm quite happy with results.
Thanks to Sylvander and others who posted to clarify the question!

_________________
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 
login123

Joined: 22 Jun 2010
Posts: 9

PostPosted: Mon 01 Aug 2011, 14:12    Post subject:  

Hi, Mechanic_Kharkov. A question, if I may?

Does the "X seems have exited uncleanly.." message still appear the next time puppy is started? Thanks. Interesting setup you have, btw.
Back to top
View user's profile Send private message 
Mechanic_Kharkov


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

PostPosted: Wed 03 Aug 2011, 19:50    Post subject:  

login123 wrote:
Does the "X seems have exited uncleanly.." message still appear the next time puppy is started?


Yes. It's still here. But it's here for a little time now.
me wrote:
Edited /usr/bin/xwin file to replace default 30 second timeout with 3 seconds one. (when "X seems have exited uncleanly.." appears).

Three seconds is quite enough for me to react when it's really no need to start X, and too short to bother me at boot time. And it's here only if I don't kill file /etc/.XLOADED before saving session. Smile

And what about setup.. It's caused by my BI-440BX chipset that can't boot from USB devices like flash stick. :-/ So I need to use CD-ROM to boot from.

And there was another interesting thing discovered Smile
After all editions made I decided that there would be great to have an ability to boot with my default settings without flash connected assuming no save would be made for such session at all.
So I 've written my pupsave.2fs file to CD. Before saving I have also changed some X configurations (pinboard behavior, backdrop, keyboard switchers, etc), restarted X, then killed file /etc/.XLOADED, and saved session file under X active. Then I have burned the file to boot CD.

Everything goes right if I boot with sda1 connected, but when there is no flash connected and it loads savefile from sr0 (CD) then X starts in strange manner. It shows "taskbar", clock, menu button, and black screen. Mouse works, but there is no icons, no backdrop image on the screen. Restarting X solves the problem. But I couldn't understand what is going wrong. Both files (pupsave.2fs) on flash and on CD are identical (I've compared them).
Trying to change backdrop image when X is in that "partially loaded" state, found that there is no pinboard active (see Scr1 image).
After restart X all my settings came back (see Scr2 image). I have no idea yet how to fix it. But it is not too hard to restart X, so I don't wory, and still happy. But it's really interesting glitch.
Also note on Scr2 that there is still "Save" button on the screen even if no sda drive active but sr0 only.. Wink
Scr2.jpg
 Description   
 Filesize   43.18 KB
 Viewed   1270 Time(s)

Scr2.jpg

Scr1.jpg
 Description   
 Filesize   60.37 KB
 Viewed   1245 Time(s)

Scr1.jpg


_________________
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 
login123

Joined: 22 Jun 2010
Posts: 9

PostPosted: Wed 03 Aug 2011, 22:22    Post subject:  

Thank you. Very informative reply. I'm sorry to not know much about that odd boot difference. The reason I asked that question about the warning is that if I failed to click on "Ignore" during bootup, then the usb stick wouldn't boot next time. That is, if I remember rightly.
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Thu 04 Aug 2011, 01:59    Post subject:  

1. "Yes. It's still here. But it's here for a little time now."
How to prevent the spurious warning as a pupsave installation of Puppy boots, that the previous shut-down was improper.

2. "Also note on Scr2 that there is still "Save" button on the screen"
It's like your Puppy thinks your pupsave is on a Flash Drive.
Perhaps it's been configured [by changing a config setting in a file in the ISO used to make the optical disk?] to treat the pupsave as though it's on a Flash Drive; did you perhaps use this method to do that?

3. For background info see this.
Back to top
View user's profile Send private message 
SimpleWater

Joined: 19 Apr 2011
Posts: 95

PostPosted: Thu 04 Aug 2011, 15:01    Post subject:  

I used this method, and works nice, but not guaranteed. It does save on certain situations. I think restarting X is one of them.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 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.0936s ][ Queries: 13 (0.0124s) ][ GZIP on ]