THINSlacko

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#41 Post 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.
Puppy Linux Blog - contact me for access

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#42 Post 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?

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#43 Post 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.
Puppy Linux Blog - contact me for access

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#44 Post 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.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#45 Post 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.
Puppy Linux Blog - contact me for access

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#46 Post 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!
Attachments
save no_save desktop_.png
(16.4 KiB) Downloaded 2057 times

2000kevin2000
Posts: 7
Joined: Sat 12 Jan 2013, 02:57

#47 Post 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?

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#48 Post 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.

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#49 Post 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!
Attachments
Music2go1.jpg
(175.85 KiB) Downloaded 743 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#50 Post by greengeek »

Hey Smithy, what's the "Partition save" icon you have on the desktop in the third pic?

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#51 Post by Smithy »

Hi greengeek, it is the Linux version of Partition Saving.

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

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#52 Post by 01micko »

Next version is coming soon!

A sneaky peek...
Attachments
capture14732.png
(87.38 KiB) Downloaded 833 times
Puppy Linux Blog - contact me for access

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Easter

#53 Post by raffy »

Look what's coming on Easter.

Will be waiting. :)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#54 Post 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
#
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#55 Post 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 :) .
Puppy Linux Blog - contact me for access

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#56 Post 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 :)
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#57 Post 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.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#58 Post by 01micko »

The next THIN, renamed "ThinSlacko" is out.

See http://murga-linux.com/puppy/viewtopic. ... 596#695596
Puppy Linux Blog - contact me for access

Pelo

Slacko 5.3.3 99MB : i like it

#59 Post 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.
Last edited by Pelo on Sat 12 Apr 2014, 03:36, edited 4 times in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Slacko 5.3.3 99MB : i like it

#60 Post 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!)

Post Reply