Page 3 of 9

Posted: Sun 25 Nov 2012, 20:13
by 01micko
ICK! Skipping rc.shutdown is dangerous!

Why don't you create yourself a nice little shutdown gui with a checkbox called "save session" or something, , have it checked by default, when unchecked it produces a signal and then that can create a flag in /tmp called "No_save" or whatever.

In rc.shutdown, you will see a big "case" statement with quite a few cases. Find the one "13)". Now you test for the condition of whether "/tmp/No_save" exists and if so don't run the snapmerge. Something like:

Code: Select all

13)
if [ ! -f /tmp/No_save" ];then #start big if
 All the snapmerge stuff happens here

fi #end big if
;;

next_case)whatever
Something like that will work, and make sure everything gets killed and unmounted cleanly.

Posted: Sun 25 Nov 2012, 20:26
by greengeek
So if I understand you correctly, you are suggesting something like the following:
1) Modify rc.shutdown section 13 that you have shown, to test for the flag in /tmp (ie, doesnt proceed with snapmergepuppy if flag is set)
2) Write a script that is able to set the flag in /tmp, then calls wmpoweroff and lets it do the rest
3) Add a desktop icon labelled "immediate shutdown without save" or something and symlink it to the script.

Is that the general concept?

Posted: Sun 25 Nov 2012, 20:29
by 01micko
greengeek wrote:So if I understand you correctly, you are suggesting something like the following:
1) Modify rc.shutdown section 13 that you have shown, to test for the flag in /tmp (ie, doesnt proceed with snapmergepuppy if flag is set)
2) Write a script that is able to set the flag in /tmp, then calls wmpoweroff and lets it do the rest
3) Add a desktop icon labelled "immediate shutdown without save" or something and symlink it to the script.

Is that the general concept?
Yeah, that ought to do it.

Posted: Mon 26 Nov 2012, 08:38
by greengeek
01micko wrote:

Code: Select all

13)
if [ ! -f /tmp/No_save" ];then #start big if
 All the snapmerge stuff happens here

fi #end big if
;;

next_case)whatever
Something like that will work, and make sure everything gets killed and unmounted cleanly.
OK, it's taken me a few hours but I think I've made it to first base. I've got your sample code working now, but I had to add another " (in the end I figured that maybe the leading quote marks were missing from the filename). It seems to work now (just with manual creation of /tmp/No_save) so next I will work on the script to set the flag file and call wmpoweroff.

Posted: Mon 26 Nov 2012, 10:00
by 01micko
Er.. sorry about the missing quote thing, was in a bit of a rush :oops:

Doesn't even need quoting (no spaces :wink: ). Glad it seems to be of some use to you anyway.

Posted: Mon 26 Nov 2012, 16:58
by greengeek
.
Thanks micko. I'm very happy with the outcome.

I have modified the /etc/rc.d/rc.shutdown as follows:

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 /.
  if [ ! -f "/tmp/No_save" ];then 
  #start big if
  #All the snapmerge stuff happens here
  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
  fi #end big if
  ;;
then added a script "No_save" into /usr/bin as follows:

Code: Select all

#!/bin/sh 
echo "test" > /tmp/No_save
/usr/bin/wmpoweroff
and then dragged the script to the desktop and added an icon, so that if I want to do a safe shutdown without waiting for the final save I just click that new icon.

Many thanks for the help!

Posted: Sat 12 Jan 2013, 03:00
by 2000kevin2000
I want to put this on a computer with 96MB RAM and a 166MHZ Pentium MMX... Would this be too taxing on the hardware, should I go for a build like TurboPup or one of the 486/32MB builds instead?

Posted: Sat 12 Jan 2013, 12:24
by Keef
The standard Slacko was quite slow on a P450 laptop I tried it on - and verrrrrry slow to get to the desktop.
THINSlacko is stripped down, but unlikley to be significantly quicker on something as old as your kit.

Posted: Sat 09 Mar 2013, 12:33
by Smithy
Currently running this distro and everything is working well, printing,network, jack, gimp etc. A new candidate for a musicians distro I reckon!

Posted: Sat 09 Mar 2013, 18:13
by greengeek
Hey Smithy, what's the "Partition save" icon you have on the desktop in the third pic?

Posted: Sat 09 Mar 2013, 19:10
by Smithy
Hi greengeek, it is the Linux version of Partition Saving.

http://damien.guibouret.free.fr/en/index_frame.html

Posted: Thu 28 Mar 2013, 04:06
by 01micko
Next version is coming soon!

A sneaky peek...

Easter

Posted: Thu 28 Mar 2013, 09:14
by raffy
Look what's coming on Easter.

Will be waiting. :)

Posted: Thu 28 Mar 2013, 11:02
by nooby
using the standard Slacko I have these result of free

# free
total used free shared buffers
Mem: 3113396 675136 2438260 0 250500
-/+ buffers: 424636 2688760
Swap: 0 0 0
#

3GB DRAM and it uses up 675MB? What does that indicate?
Have I set it up wrong?

Edit

Using the old Thinslacko that is from may 2012
I get this result before making a save file

# free
total used free shared buffers
Mem: 3113496 340372 2773124 0 41412
-/+ buffers: 298960 2814536
Swap: 0 0 0
#

Posted: Thu 28 Mar 2013, 11:29
by 01micko
nooby wrote:using the standard Slacko I have these result of free

# free
total used free shared buffers
Mem: 3113396 675136 2438260 0 250500
-/+ buffers: 424636 2688760
Swap: 0 0 0
#

3GB DRAM and it uses up 675MB? What does that indicate?
Have I set it up wrong?
No, that's ok nooby. Normally, on clean boot you would expect around 400M, this is the sfs expanded. Then open a few apps, browser with tabs and such it quickly increases. I am just trying to get the THIN version (will be renamed "thin".. no caps) to load in less than 256 RAM. So far in virtualbox it seems to work ok. The biggest problem for me is that to maintain decent graphics support, mesa is absolutely required with these newer X.org versions, and that is one FAT package! (~30M).

I hope this gives you some understanding. Never mind if it doesn't :wink: . You have 3 gig so are in luxury :) .

Posted: Thu 28 Mar 2013, 11:37
by nooby
Yes but I do have an old HP computer
that I bought 2003 and that one actually have
only 256MB DRAM so keep at it :)

Posted: Thu 28 Mar 2013, 23:25
by Smithy
Hi 01 micko, nice that you are still working on the thin slacko idea, just a few things I noticed on it.

1. Abiword only opens as a small square, each time you have to resize it to get it to open full screen.
2. The console could do with copy and paste (like 3hd, for those lazy moments).

3. Any way of getting the qt in it to default to clear look or whatever it is called, the one that looks a lot nicer on jack in 3hd. Without having to load a full QT which is quite a large package?

4. Synaptics is still knackered on laptop (like a lot of other distros)
Only 3hd correctly sorted the touchpad. The problem is the tap bit and I haven't managed to get it to work on loads of them (believe me i tried) so they get junked.

5. After sorting out the connection wizard, each time you boot up and hit connect, it runs through the wizard process again before finally getting to connect. What I do is hit the close box on each step and then it gets there eventually.(That was the pup dial wizard btw).

Only minor issues really, but thought you might like to check if you are doing a new one.

Posted: Sun 31 Mar 2013, 04:05
by 01micko
The next THIN, renamed "ThinSlacko" is out.

See http://murga-linux.com/puppy/viewtopic. ... 596#695596

Slacko 5.3.3 99MB : i like it

Posted: Wed 30 Oct 2013, 07:41
by Pelo
That is a Puppy ! Great light but it makes the maximum.
It fills my needs. Just added Flasphayer and pupsavconfig.
Firefox v12 would be better perhaps (i cannot load pictures on Facebook).
Wait and see. 99 MB ! :lol:
Desktop icons : 3 themes, it's enough. We shall add personal choices.GreyFx is a nice one between the default offer.
Gtk themes: four choices, it's enough !
Well, well, well, I enjoy that way of doing.
Merci.
packages download
I must add Slacko's repositories.

Re: Slacko 5.3.3 99MB : i like it

Posted: Wed 30 Oct 2013, 07:49
by greengeek
Pelo wrote:That is a Puppy ! Great light but it makes the maximum.
Yeah, it's one of my favourites. No bloat - just great basic functionality. Seems to have a good kernel that runs well on a lot of hardware.

What hardware are you running Pelo?

(ps: I added Opera as my browser - works great!)