justlighthouse64 and Fatdog64 hybrid

For talk and support relating specifically to Puppy derivatives
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#41 Post by Sylvander »

Dry Falls wrote:What is different in JL64 over L64 is that pfix=noautosave is the default (pupmode=7/14/15) bootmanager parameter. Autosave would be pupmode 6/12/13. 6 and 7 refer to "save to partition (respectively, ata and usb). These override the settings in event manager. In JL64, event manager is reconfigured to allow save-session dialog at shutdown when running pupmode=12/13.

You can also create a directory "precfg" at mnt/home (top of partition) or a folder one level deep where the basefile (L64 or JL64 sfs file) is located, which contains any settings or files (no whiteouts) which Tazoc's init script overlays atop everything else at boot. For example, I link my mozilla file there (/mnt/home/precfg/root/.mozilla) so I maintain browser settings during pfix=ram (pupmode=5). Save or not at shutdown.

Not sure if this helps or muddles up things further.
The above helps, except...
In my now advanced years...
I'm not so mentally sharp as formerly, so...
Would it be possible to break the above explanation into smaller easier-to-understand chunks?

Ultimately, what I'm after from this OS is...
The ability to shutdown or reboot without saving, simply by doing nothing, OR ELSE...
To choose to save at any particular moment...
By, for example, clicking on a "Save..." icon on the desktop, OR...
By choosing to "Save or not save" during shutdown/reboot.
Is this possible?

My preference:
I normally boot an optical disk, with the pupsave file held on the internal HDD, but treated as though on a Flash Drive, so that a "Save..." icon is auto-created on the desktop.

Less preferred:
I could hold the Puppy and its pupsave on a Flash Drive, and boot it from there.

Dry Falls
Posts: 616
Joined: Tue 16 Dec 2014, 23:37
Location: Upper Columbia

#42 Post by Dry Falls »

Sylvander, Not sure if this is appropriate here because it will break Stemsee's bottom panel if it is lxpanel, but in (extract pet, remove /root/.config) but in JL64-702 it places an icon on the bottom panel and a shutdown-nosave desktop file in the Launcher/Desktop folder. Xfce4, kde4/5, mate, enlightenment have their own shutdown dialog accessible from their respective panels (or menu 'Leave' in kde) which do not save. This pet might be useful to you running openbox, lxde, fusion, icewm or jwm...
Attachments
Shutsdown-nosave-JL64-1.pet
(1.27 KiB) Downloaded 88 times

stemsee

#43 Post by stemsee »

@Sylvander

Here is a simple script with desktop SAVE button. Should appear if startup without savefile.
This will make a squashfs file and move to /initrd/mnt/dev_ro2 (boot drive) or dev_save. Probably needs to add exclude files and dirs. Needs testing.

Code: Select all

#!/bin/bash
#sfs-direct-save by stemsee copyright (c) 2017 Marcos Contant
ln -s /usr/sbin/sfs-direct-save /root/Startup/sfs-direct-save &> /dev/null
savefn () {
is=`mount | grep 'dev_save'`
	yad --undecorated --skip-taskbar --no-buttons --text "Saving" --progress --pulsate &
	pid=$!
if [[ -d /aufs ]]; then
	. /etc/DISTRO_SPECS
	name=$DISTRO_FILE_PREFIX-`date | tr ' ' '-'`-save.sfs
elif [[ -d /live ]]; then
	name=`date | tr ' ' '-'`-save.squashfs
elif [[ -d /media &&  -d /mnt ]]; then
	. /etc/DISTRO_SPECS
	name=${DISTRO_FILE_PREFIX}-${DISTRO_VERSION}-`date | tr ' ' '-'`-save.sfs
else
	. /etc/DISTRO_SPECS
	name=`date | tr ' ' '-'`-save-$DISTRO_PUPPYSFS
	if [[ -z "$name" ]]; then
		name=q-`date | tr ' ' '-'`-save.sfs
	fi
fi 

   if [[ -e /tmp/$name ]]; then
		mv -f /tmp/$name /initrd/mnt/dev_ro2/$name-old
		sleep 1
   else
		echo "Proceeding with '$name' save in /tmp with '$comp'"
   fi
   svd=`mount | grep 'pup_ro1'`
   if [[ ! -z "$svd" ]]; then
		mksquashfs /initrd/pup_ro1/* /tmp/$name $comp $ef -keep-as-directory -noappend
	else
		mksquashfs /initrd/pup_rw/* /tmp/$name $comp $ef -keep-as-directory -noappend
	fi
	if [[ -z "$is" ]]; then
		mv -f /tmp/$name /initrd/mnt/dev_ro2/
	else
		mv -f /tmp/$name /initrd/mnt/dev_save/
	fi
	kill $pid
	yad --undecorated --skip-taskbar --no-buttons --text "Finished" --timeout 2
	exit 0
}
export -f savefn
if [ -z "$is" ]; then
	ok=`yad --geometry=+300+20 --on-top --no-buttons --skip-taskbar --undecorated --form --field=SAVE:BTN "bash -c savefn"`
fi

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

#44 Post by Sylvander »

Thanks for the above guys. :D
Will read more intensely, and attempt ASAP.

I'm retired, and yet I'm struggling to keep up with all the jobs that need done! :roll:

stemsee

#45 Post by stemsee »

Although my remaster is running very smoothly,I am attempting to rebuild from the base file with more control over the final size. As it is at 2GB, but it doesn't need to be.

My style is to include everything 'I' use on a daily basis, I don't want to load unload sfs modules, except the new S_${DISTRO_FILE_PREFIX}-Date_S.sfs created by sfs-direct-save. These are basically snapshots of the rw layer. They should be mounted and rsynced with rw layer.

User avatar
eztuxer
Posts: 494
Joined: Thu 06 Nov 2008, 11:19
Location: Hungary
Contact:

#46 Post by eztuxer »

Hi stemsee.
Great work, looks good, and I can't wait for the next release.
Could you upload your latest 2 GB remaster in the mean time, please ?
I don't mind the big size as long as it handles save file in an easy to use manner.
I also love all the media soft you described.
Keep on keepin' on man !
Don't poop it down... Pup it Up !

stemsee

#47 Post by stemsee »

For anyone who wants to try and who doesn't baulk at the size of this re-mastered Media monster, here it is @ 2.2 GB (non-maximal xz compression) FatHouse64-710M.iso (Media edition)

Ardour-5.4
Audacity
Hydrogen
Jack
Jack-rack
jamin
Zynaddsubfx
Jack
qjackctl
diaporama

libreoffice 5.3.2 ES GB CN PT
mm_view
wex
scrot
Wifi-Scanner-2 (multi_interface-wifi)
WPS office
lxterminal
fatdog savefile creator working with hack.

Most fatdog apps, and updates.

quick-locale-switcher saves puppy_pin per locale for 4 locales en,pt,cn,es now.

It would be nice if someone volunteered to whittle this down a bit!

https://drive.google.com/file/d/0B8-coZ ... ktHOXk0ekk

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#48 Post by ally »

mirrored

:)

User avatar
eztuxer
Posts: 494
Joined: Thu 06 Nov 2008, 11:19
Location: Hungary
Contact:

#49 Post by eztuxer »

Thank you, DWNLD now...
Will post feedback ASAP Just in time for my 65 th B'day April 12 :-)
Don't poop it down... Pup it Up !

User avatar
eztuxer
Posts: 494
Joined: Thu 06 Nov 2008, 11:19
Location: Hungary
Contact:

#50 Post by eztuxer »

Downloaded twice showing same : 2,3 GB (2.278.594.560 bytes)

Copied twice on 2 different USB sticks but not booting.

SHA 256 check = 3db9628b9212c06eb1eecd8333e6fde048c4f5daee0d6ce56b7551980f51ab63

I used Linux Mint USB image writer, will try with unet bootin (windblow$ 10) to see...
Don't poop it down... Pup it Up !

User avatar
eztuxer
Posts: 494
Joined: Thu 06 Nov 2008, 11:19
Location: Hungary
Contact:

#51 Post by eztuxer »

Still not booting.
Will try with a 8 GB stick instead of 16 GB.
Or even with CD or DVD later.
Using f 12 and legacy chosing the USB stick : it displays the first line "anvin, etc..." but nothing more.
The EFI menu can be accessed but no boot either.
Happy Easter holydays.
Don't poop it down... Pup it Up !

stemsee

#52 Post by stemsee »

Just finished remastering with a few bugs squashed, and some creases ironed out!

Wifi-Connect now shows encrypted key 'on', and mac/ssid and BSSID.
Wifi-Scanner-2 scales to 8 wifi interfaces.
savefile.sh and rc.shutdown scripts now working as I hoped.
sfs-unattended-remaster working as hoped
locale switcher is improved for 4 locales GB, US, BR, CN
Updated libroffice, and wps office
chrome has more plugins
chromecasting to my tv works great!
slocategui works great
refdnd now plays media images (cover images) as wallpapers
masterpdf 4 updaed
Menu>Network section tidied up, by removing duplicate .desktop entries

New kernel with built-in initrd and kernel-modules.sfs @ 56mb - 4.10.13-x86_64
yes, this iso has no separate initrd.gz and no boot menu entry.

uploading.

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#53 Post by s243a »

eztuxer wrote:Still not booting.
Will try with a 8 GB stick instead of 16 GB.
Or even with CD or DVD later.
Using f 12 and legacy chosing the USB stick : it displays the first line "anvin, etc..." but nothing more.
The EFI menu can be accessed but no boot either.
Happy Easter holydays.
Is this a windows 10 booting problem?...because there are a bunch of threads about that:
Puppy Linux has troubles with hard drive for Windows 10.
Windows 10 and Puppy coexisting
Windows 8, 8.1 and 10: How to Boot Puppy

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#54 Post by s243a »

stemsee wrote:@Sylvander

Here is a simple script with desktop SAVE button. Should appear if startup without savefile.
This will make a squashfs file and move to /initrd/mnt/dev_ro2 (boot drive) or dev_save. Probably needs to add exclude files and dirs. Needs testing.

Code: Select all

#!/bin/bash
#sfs-direct-save by stemsee copyright (c) 2017 Marcos Contant
ln -s /usr/sbin/sfs-direct-save /root/Startup/sfs-direct-save &> /dev/null
savefn () {
is=`mount | grep 'dev_save'`
	yad --undecorated --skip-taskbar --no-buttons --text "Saving" --progress --pulsate &
	pid=$!
if [[ -d /aufs ]]; then
	. /etc/DISTRO_SPECS
	name=$DISTRO_FILE_PREFIX-`date | tr ' ' '-'`-save.sfs
elif [[ -d /live ]]; then
	name=`date | tr ' ' '-'`-save.squashfs
elif [[ -d /media &&  -d /mnt ]]; then
	. /etc/DISTRO_SPECS
	name=${DISTRO_FILE_PREFIX}-${DISTRO_VERSION}-`date | tr ' ' '-'`-save.sfs
else
	. /etc/DISTRO_SPECS
	name=`date | tr ' ' '-'`-save-$DISTRO_PUPPYSFS
	if [[ -z "$name" ]]; then
		name=q-`date | tr ' ' '-'`-save.sfs
	fi
fi 

   if [[ -e /tmp/$name ]]; then
		mv -f /tmp/$name /initrd/mnt/dev_ro2/$name-old
		sleep 1
   else
		echo "Proceeding with '$name' save in /tmp with '$comp'"
   fi
   svd=`mount | grep 'pup_ro1'`
   if [[ ! -z "$svd" ]]; then
		mksquashfs /initrd/pup_ro1/* /tmp/$name $comp $ef -keep-as-directory -noappend
	else
		mksquashfs /initrd/pup_rw/* /tmp/$name $comp $ef -keep-as-directory -noappend
	fi
	if [[ -z "$is" ]]; then
		mv -f /tmp/$name /initrd/mnt/dev_ro2/
	else
		mv -f /tmp/$name /initrd/mnt/dev_save/
	fi
	kill $pid
	yad --undecorated --skip-taskbar --no-buttons --text "Finished" --timeout 2
	exit 0
}
export -f savefn
if [ -z "$is" ]; then
	ok=`yad --geometry=+300+20 --on-top --no-buttons --skip-taskbar --undecorated --form --field=SAVE:BTN "bash -c savefn"`
fi
Have you considered booting into sandbox.sh for this?

http://distro.ibiblio.org/fatdog/web/faqs/sandbox.html

With sandbox.sh you could even do some kind of incremental save file analogous to saving on the cd.

I suppose though that might have it's on complications for instance if you started the sandbox before xwin boots up would the changes to to the xwin startup be saved?

stemsee

#55 Post by stemsee »

interesting proposal!

here is an update which only shows save icon on desktop if no savefile is being used.

Code: Select all

#!/bin/sh
# sfs-direct-save by stemsee copyright (c) 2017 Marcos Contant
# gpl 3.0
# no warranty use at own risk, 
# 
res=`xrandr | grep '*' | awk '{printf $1}'`
XX=`echo $res | cut -f1 -d'x'`
YY=`echo $res | cut -f2 -d'x'`
is=`mount | grep -e '/initrd/mnt/dev_save'`
svd=`mount | grep -e '/initrd/pup_ro1'`
pos="+20+$((YY - 80))"
export pos is svd
ln -s /usr/sbin/sfs-direct-save /root/Startup/sfs-direct-save &> /dev/null
savefn () {
	yad --geometry=200x20+0+0 --undecorated --no-border --skip-taskbar --no-buttons --text "Saving" --progress --pulsate &
	pid=$!
if [[ -d /aufs ]]; then
	. /etc/DISTRO_SPECS
	name=S_${DISTRO_FILE_PREFIX}`date | tr ' ' '-'`-S.sfs
elif [[ -d /live ]]; then
	name=S_`date | tr ' ' '-'`-S.squashfs
elif [[ -d /media &&  -d /mnt ]]; then
	. /etc/DISTRO_SPECS
	name=S_${DISTRO_FILE_PREFIX}`date | tr ' ' '-'`-S.sfs
else
	. /etc/DISTRO_SPECS
	name=S_`date | tr ' ' '-'`-S-$DISTRO_PUPPYSFS
	if [[ -z "$name" ]]; then
		name=q`date | tr ' ' '-'`-S.sfs
	fi
fi 
	echo "Proceeding with '$name' save on '/$path/$drive' with '$comp'"
	yad --geometry=+0+0 --undecorated --skip-taskbar --no-focus --no-buttons --text "Proceeding with '$name' saved on /intrid/mnt/dev_'save|ro2'" --timeout 1
   if [[ ! -z "$svd" ]]; then
		mksquashfs /initrd/pup_ro1/* /tmp/$name -keep-as-directory -noappend
	else
		mksquashfs /initrd/pup_rw/* /tmp/$name  -keep-as-directory -noappend
	fi
	if [[ ! -z "$is" ]]; then
		mv -f /tmp/$name /initrd/mnt/dev_save/	
	else
		mv -f /tmp/$name /initrd/mnt/dev_ro2/
	fi
	kill $pid
	yad --geometry=+0+0 --undecorated --skip-taskbar --no-focus --no-buttons --text "Finished" --timeout 1
	exit 0
}
export -f savefn
if [ -z "$is" ]; then
	ok=`yad --geometry="$pos" --on-top --no-buttons --no--focus --skip-taskbar --undecorated --form --field=SAVE:BTN "bash -c savefn"`
fi

Post Reply