How to stop "SAVING TO FILE" at shutdown?

Booting, installing, newbie
Message
Author
User avatar
ninaholic
Posts: 10
Joined: Sat 19 Oct 2013, 06:46

#21 Post by ninaholic »

sc0ttman wrote:Open the terminal, type 'geany /etc/rc.d/rc.shutdown' (without the quotes)

then find this line, it should be around line 825 (use search - Ctrl+F)

Code: Select all

/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
The line above is the one the launches snapmergepuppy, comment it out, with a # at the start of the line. So it looks like this:

Code: Select all

#/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
Thanks! Using this stops the session from always saving without my permission in 421retro on a flash stick. There was 3 of them around lines 600-700 for me and I had to comment out the last one under "13)". :)

Then I changed this to stop it from saving every 30 minutes:
Jasper wrote:You could permanently change System>Puppy Event Manager>Save Session> Interval to 0.
And added this to stop each bootup from warning me that the shutdown doesn't save "properly":
Smithy wrote:Another simple way to get around this is to just add to /etc/rc.d/rc.local:
Code:
rm /etc/.XLOADED
Basically I have my "base" set up exactly how I want, with always 18M free, and if I want to make any changes to it (not too common since I'm using it mostly as an old "Firefoxbook") I can just press the Save button on the desktop. :)

marada2
Posts: 64
Joined: Sat 19 Oct 2013, 22:50

#22 Post by marada2 »

sidders wrote:Nancy its may be in the etc/rc.shutdown. I modified it for a live/kiosk cd i made to not prompt or save at shutdown. I took out a swathe of code fron line 50 onwards.
I am interested in this approach. Would you mind talking through exactly what you did?

sitdown
Posts: 13
Joined: Sat 03 Jan 2015, 18:58

#23 Post by sitdown »

I know it is an old thread, but i can not see any other forumthreads that do apply to my problem.

I tried first the solution for getting a option to save or not saving the session. But then did not work after several trials, i tried to disable all lines corresponding to saving the session. As it is now:

So does puppy linux still use this config file or is it something i do wrongly?
Last edited by sitdown on Sun 04 Jan 2015, 14:55, edited 1 time in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#24 Post by bigpup »

The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

sitdown
Posts: 13
Joined: Sat 03 Jan 2015, 18:58

#25 Post by sitdown »

What i did to disable saving session automaticly and to give me a textbox with choice every shutdown.

1. I disabled autosavefunction every 30 minuts.
System/puppy event manager/session:0

2. Disable autosave on shutdown, geany /etc/rc.d/rc.shutdown
I edited the lines below like this:

Code: Select all

13) #PDEV1 and PUPSFS and PUPSAVE
  #/initrd/pup_rw has tmpfs, pup_ro1 has ${DISTRO_FILE_PREFIX}save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
  #the above are in unionfs at /.
  #(echo "$(eval_gettext "Saving session to \${SAVEFILE} (\${SAVEPART})...")" >/dev/console)
  #(echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console)
  #(/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw)
  dialog --yesno "Save session?" 0 0 >/dev/console
  if [ $? -eq 0 ]; then
  echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
  /usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
  fi 
  ;;
I also disabled lines with #, not sure if that was correct, but it does work as it is now. So i will not change anything if not i would hear something else from a geek out there :):

Code: Select all

12)
  TXT=`basename $SAVEFILE`
  echo "$(eval_gettext "\${TXT} mounted directly top layer, session already saved.")" >/dev/console
  #echo "`basename $SAVEFILE` mounted directly top layer, session already saved." >/dev/console
  ;;
 3) #PDEV1.
   echo "$(eval_gettext "Saving session to \${PDEV1}...")" >/dev/console #121104
   echo "Saving session to $PDEV1..." >/dev/console
   #the above are in unionfs at /.
   #dialog --yesno "Save this session?" 0 0 >/dev/console
   #if [ $? -eq 0 ]; then
   #echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
   #/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
   #fi
   ;;
   # Følgende 2 linjer er default setting for lagring av session, fjern linjer 
   # over til første(#):
   # :/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
   # ;;
 7) #PDEV1 and PUPSFS.
   echo "$(eval_gettext "Saving session to \${PDEV1}...")" >/dev/console
   #echo "Saving session to $PDEV1..." >/dev/console
   #/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
  ;;
 13) #PDEV1 and PUPSFS and PUPSAVE
  #/initrd/pup_rw has tmpfs, pup_ro1 has ${DISTRO_FILE_PREFIX}save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
  #the above are in unionfs at /.
  #(echo "$(eval_gettext "Saving session to \${SAVEFILE} (\${SAVEPART})...")" >/dev/console)
  #(echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console)
  #(/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw)
  dialog --yesno "Save session?" 0 0 >/dev/console
  if [ $? -eq 0 ]; then
  echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
  /usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
  fi 
  ;;
- I also changed the System/Cpu scaling function, as i had problems with flash beeing "choppy", i guess others might have the same problem.

______________________________________________________________________

I will look into that, i did find more lines with the simular save session, as i understand it is different ways of installing puppy. CD/Flash/HD:


Thank you for that quick response. :)

I do find some interesting things with Puppy, it actually is quite informative. As now i found out that there is a cpu frequency adjusting "app?", i can easily find out how to change this. Probably it is the same with Ubuntu, but i never new it.

So maybe this could be a good platform to play the "corrupt" tetris battle game. I think that players beside hacking for unlimited cheats, as i never use also hack my game, so the pieces does slow down. I should not play it, but i find it relaxing but frustrating and i am hooked. LOL

Pelo

Pupsaveconfig will give you the choice

#26 Post by Pelo »

Pupsaveconfig will give you the choice. Nevertheless, one Puppy, a French one, does not care of pupsaveconfig and saves the session each time. The nice french Triton (Precise 5.7.1) perhaps will obey your scripts. On test.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#27 Post by Sylvander »

To make "Don't save" the default in the dialog:
Include --defaultno in the code as shown here.

Jose A. Senna
Posts: 43
Joined: Tue 20 Dec 2016, 23:16

A related question: How to clean up savefile ?

#28 Post by Jose A. Senna »

Last time I used Puppy i downloaded the light-49.0.linux-i686_6.sfs
(light Firefox). I tried to expand it using unsquashfs and it stopped dead
at about 65%, apparently for insufficient memory or disk space.
My savefile isize s 64M, and the icon on the taskbar used to report
62M personal storage, 35M free. After I rebooted, it reports 62M
personal storage, 1M free. and warnings about the personal
storage getting full are popping up. I think it is most probable
that what is filling the storage space is junk left by unsquashfs, but
whatever it may be, I want to know how to clean it.

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#29 Post by Mercedes350se »

@Jose A. Senna

I came across your post by accident. I would suggest that you start a new thread and ask the question there.

That way more people will see it and hopefully you get an answer.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

Re: A related question: How to clean up savefile ?

#30 Post by Sailor Enceladus »

Jose A. Senna wrote:Last time I used Puppy i downloaded the light-49.0.linux-i686_6.sfs
(light Firefox). I tried to expand it using unsquashfs and it stopped dead
at about 65%, apparently for insufficient memory or disk space.
My savefile isize s 64M, and the icon on the taskbar used to report
62M personal storage, 35M free. After I rebooted, it reports 62M
personal storage, 1M free. and warnings about the personal
storage getting full are popping up. I think it is most probable
that what is filling the storage space is junk left by unsquashfs, but
whatever it may be, I want to know how to clean it.
You just need to click on an sfs or right-click and select sfs_load I think (not unsquashfs), that way it won't "install" to the savefile or take up any room in it. If you specifically want it extracted to the savefile instead you probably need at least 128MB savefile or even 256MB savefile for Mozilla browser because it expands to around 100MB before even opening it and then like 20MB more setting up all it's cache stuff. 64MB is not really enough. It would make more sense to download a tar.xz / gz / bz2 or pet than a sfs if you want to do that "extract it to savefile" method though.

Post Reply