I've tried all of the Menu Settings/Applications choices you mentioned, but no difference no matter which I choose.
READ-ONLY Archive
https://oldforum.puppylinux.com/
I just edited a copy of /usr/bin/wmpoweroff Backi (saved it into /root/bin), and commented out the save yes or no section so it defaults to not saving (along the lines of how Fred posted earlier). That's pretty quick as-is as it looks like what's left is just a simple "poweroff" command - similar to what you have already (I have no removal of /etc/.Xloaded as that's a puppy/jwm thing I believe).backi wrote:One question what about the Exitx button on your Desktop ......is it away to stop system instantly without waiting like i did in Puppy Linux with ?
There was a small script i used to shutdown instantly .
#!/bin/sh
# skips rc.shutdown and powers off computer without saving the session.
Xdialog --title "script $0" --yesno "\n\nAre you sure to power-off computer WITHOUT saving?\n\n" 0 0
[ $? -eq 0 ] && rm /initrd/pup_ro1/etc/.XLOADED && rm /etc/.XLOADED
exec /bin/busybox poweroff .
I am looking for a way for faster shutdown .
Code: Select all
e2label /dev/sdb1 usbpersistence # <<<< change sdb1 according to your device
Code: Select all
cd /mnt/sdb1 # <<<< change /mnt/sdb1 to your path
touch persistence.conf
echo "/ union" > persistence.conf
mkdir -p DD64-USB/live
cd DD64-USB/live
mkdir temp
mksquashfs temp filesystem.squashfs # will create empty filesystem.squashfs
rmdir temp
Code: Select all
cd /mnt/sda1/debdog64/live/ # <<<< change this according to your path
unsquashfs -f -d /mnt/sdb1 01-filesystem.squashfs # <<<< change /mnt/sdb1 to your path
cp -af vmlinuz1 /mnt/sdb1/boot/vmlinuz-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
cp -af initrd.img /mnt/sdb1/boot/initrd.img-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
Code: Select all
title DD64-USB Frugal RW
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-amd64 boot=live config persistence persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD64-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-amd64
title DD64-USB Frugal RO
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-amd64 boot=live config persistence persistence-read-only persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD64-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-amd64
Code: Select all
leafpad /etc/apt/preferences
Code: Select all
Package: linux-image-3.16.0-4-amd64
Pin: version 3.16.7-ckt11-1+deb8u6
Pin-Priority: 1001
Code: Select all
leafpad /var/lib/synaptic/preferences
Code: Select all
apt-get update # if required
apt-get install live-boot
Code: Select all
apt-get install linux-image-3.16.0-4-amd64
Code: Select all
chmod +x snapmergepuppy
Code: Select all
cp -a /path/to/snapmergepuppy /usr/local/bin
Code: Select all
snapmergepuppy
Code: Select all
cd /mnt/sdb1 # <<<< change /mnt/sdb1 to your path
touch persistence.conf
echo "/ union" > persistence.conf
mkdir -p DD64-USB/live
mkdir boot
Code: Select all
cd /mnt/sda1/debdog64/live/ # <<<< change this according to your path
cp -af 01-filesystem.squashfs /mnt/sdb1/DD64-USB/live/filesystem.squashfs # <<<< change /mnt/sdb1 to your path
cp -af vmlinuz1 /mnt/sdb1/boot/vmlinuz-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
cp -af initrd.img /mnt/sdb1/boot/initrd.img-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
Code: Select all
title DD64-USB Frugal RW
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-amd64 boot=live config persistence persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD64-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-amd64
title DD64-USB Frugal RO
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-amd64 boot=live config persistence persistence-read-only persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD64-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-amd64
Code: Select all
leafpad /etc/apt/preferences
Code: Select all
Package: linux-image-3.16.0-4-amd64
Pin: version 3.16.7-ckt11-1+deb8u6
Pin-Priority: 1001
Code: Select all
leafpad /var/lib/synaptic/preferences
Code: Select all
apt-get update # if required
apt-get install live-boot
Code: Select all
apt-get install linux-image-3.16.0-4-amd64
Code: Select all
chmod +x snapmergepuppy
Code: Select all
cp -a /path/to/snapmergepuppy /usr/local/bin
Code: Select all
snapmergepuppy
Code: Select all
cd /mnt/sda1/debdog64/live/ # <<<< change this according to your path
cp -af vmlinuz1 /mnt/sdb1/boot/vmlinuz-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
cp -af initrd.img /mnt/sdb1/boot/initrd.img-3.16.0-4-amd64 # <<<< change /mnt/sdb1 to your path
Code: Select all
deb http://http.debian.net/debian/ jessie main contrib non-free
deb-src http://http.debian.net/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
#Debian Multimedia
deb ftp://ftp.deb-multimedia.org jessie main non-free
# keyring errors - run apt-get install deb-multimedia-keyring
Code: Select all
e2label /dev/sdb1 usbpersistence # <<<< change sdb1 according to your device
Code: Select all
cd /mnt/sdb1 # <<<< change /mnt/sdb1 to your path
touch persistence.conf
echo "/ union" > persistence.conf
mkdir -p DD32-USB/live
cd DD32-USB/live
mkdir temp
mksquashfs temp filesystem.squashfs # will create empty filesystem.squashfs
rmdir temp
Code: Select all
cd /mnt/sda1/debdog32/live/ # <<<< change this according to your path
unsquashfs -f -d /mnt/sdb1 01-filesystem.squashfs # <<<< change /mnt/sdb1 to your path
cp -af vmlinuz1 /mnt/sdb1/boot/vmlinuz-3.16.0-4-686-pae # <<<< change /mnt/sdb1 to your path
cp -af initrd.img /mnt/sdb1/boot/initrd.img-3.16.0-4-686-pae # <<<< change /mnt/sdb1 to your path
Code: Select all
title DD32-USB Frugal RW
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-686-pae boot=live config persistence persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD32-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-686-pae
title DD32-USB Frugal RO
root (hd0,0)
kernel /boot/vmlinuz-3.16.0-4-686-pae boot=live config persistence persistence-read-only persistence-label=usbpersistence quickreboot noprompt showmounts live-media-path=/DD32-USB/live/ config
initrd /boot/initrd.img-3.16.0-4-686-pae
Code: Select all
leafpad /etc/apt/preferences
Code: Select all
Package: linux-image-3.16.0-4-686-pae
Pin: version 3.16.7-ckt11-1+deb8u3
Pin-Priority: 1001
Code: Select all
leafpad /var/lib/synaptic/preferences
Code: Select all
apt-get update # if required
apt-get install live-boot # might be already installed, depends on which DD version
Code: Select all
mv -f /usr/sbin/update-initramfs.orig.initramfs-tools /usr/sbin/update-initramfs
Code: Select all
apt-get install linux-image-3.16.0-4-686-pae
Code: Select all
chmod +x flush2disk
Code: Select all
cp -a /path/to/flush2disk /usr/local/bin
Code: Select all
flush2disk
Not sure I understand well, if you mean:backi wrote:Cool compendium fred !
But just one question
Maybe my question is a bit naive .........
but could this also be accomplished by extracting a Debian Dog Iso (or any Debian live Iso ) ...
and just copying the live Folder to the " persistence " labeled partition (or into an Folder on it ) ?
If not ...what makes the difference--- what would be wrong with this idea ?
Debian stable does include lzop (lzo) support. lzo level 1 compression is pretty close to lz4 in my experience for speed. You can use busybox version to compress files, seefredx181 wrote:Note:Doing a kernel upgrade when using DebianDog openbox_xfce version 2016-10-16 you'll lose LZ4 support (booting and mounting LZ4 compressed .squashfs modules).
(because the official Debian kernel doesn't have it built in)
That's the way I originally did it. Opened the ISO and copied the /live folder to the HDD 'persistence' labeled partition, I then extracted the filesystem squashfs content to the root / level. That involves two stages as you can't extract to a non empty folder, so I justbacki wrote:could this also be accomplished by extracting a Debian Dog Iso (or any Debian live Iso ) ...
and just copying the live Folder to the " persistence " labeled partition (or into an Folder on it ) ?
I have initrd.img and vmlinuz files in the / folder, that are sym links to actual initrd and vmlinuz files in the /boot folder (that have longer file names that show the versions).fredx181 wrote: (but still the vmlinuz and initrd files must be in /boot (to be found when upgrading kernel/initrd)