Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Jan 2018, 10:14
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
DebianDog HowTo thread
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 10 [146 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Author Message
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Mon 20 Jun 2016, 12:55    Post subject:  

To make certain that its nothing I did, I reverted to OpenBox DebianDog, opened up Synaptic and searched for e17, Marked that for installation and let it determine all of the dependencies, Installed, edited .xsession to start e17 ... restarted and ... still the same, no Open With applications to choose from, no file associations apparent, even for a simple .txt file.

I've tried all of the Menu Settings/Applications choices you mentioned, but no difference no matter which I choose.
s.png
 Description   
 Filesize   150.12 KB
 Viewed   883 Time(s)

s.png

Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Mon 20 Jun 2016, 14:06    Post subject:  

Hi ruwoof .
I created the same text file as you put it to desktop and did left mouse-click on this Textfile----menu opened ----
clicked open
(instead of open with ) ......a list of Application in alphabethical order appeared .....I scrolled down to Leafpad ..choosed it .......now every time i click that desktop file it opens with Leafpad .

If i make a left_mouseclick on that Textfile Menu appears
and go to ---open with
--- Submenue appears>
XFilewriter Leafpad X fileViewer
Other Application

appears

But it is not quite clear what you want to accomplish:
I encountered in the beginning the same problem with
empty menu list for application also with missing entrys in the main menu . Some how this has gone now ..but i cannot replicate how this was solved .
Maybe it is an issue from Openbox Desktop .
I myself using a JWM-ICEWM DebDog Pae version for me this thing in Setting Panel >Menu>Applications>Dog is present.

Maybe do a reset of your Profile Setting here :
Setting Panel >Settings>Profiles

I did a remastered JWM-ICEWM DebDog Pae version .
I put it to Google Drive .
I will give you link later i am now uploading .
Put it to a stick with Debian Dog installer.

I boot with :
title Debian-PorteusDog - changes to /live/ sysvinit
uuid 0460ed9c-cc19-4a69-8159-66882c4865bd
kernel /live/vmlinuz1 from=/ noauto changes=EXIT:/live/
initrd /live/initrd1.xz

Here is the link to the Iso
https://drive.google.com/file/d/0B9Nazhpo1Th-YzZLSHY0cG82OU0/view?usp=sharing

Last edited by backi on Mon 20 Jun 2016, 15:30; edited 1 time in total
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Mon 20 Jun 2016, 15:26    Post subject:  

Ah-ha

Just did another install from openbox of e17 ...etc but this time instead of selecting system default during the first install setup/run, I selected the US default choice ... and its OK, applications list and are associated etc. The default UK keyboard (my locale) was also picked up OK.
a.png
 Description   
 Filesize   149.64 KB
 Viewed   837 Time(s)

a.png


Last edited by rufwoof on Mon 20 Jun 2016, 15:54; edited 1 time in total
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Mon 20 Jun 2016, 15:48    Post subject:  

Glad you solved it.
E17 is quite complex but also fun and lots of discoveries. .... while looking for an answer to your Problem ...as a side-effect i discovered a new option for fine-tuning this fine desktop .
It is fun to do this kind of cyber-swarm intelligence increase and learning synergy .
Debian Dog is "The Killer" .The best of Puppy and Debian.
This dog " breed " ( and his sister Mintpup) are Champion Dogs .

Wish you a good night .
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Tue 21 Jun 2016, 06:20    Post subject:  

How do you change (or stop) the pulsating icon animation when you mouse hover over icons in the tray ibar?
vibe.png
 Description   
 Filesize   33.47 KB
 Viewed   805 Time(s)

vibe.png

Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Tue 21 Jun 2016, 06:56    Post subject:  

I think there is no chance to stop it .
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Tue 21 Jun 2016, 08:24    Post subject:  

Thanks Backi.

Nice Debian specific theme here https://exchange.enlightenment.org/theme/show/1544

Looks to me to be the same general theme, but with a rotating 3D-animated Debian swirl on the wallpaper
swirl.png
 Description   
 Filesize   57.25 KB
 Viewed   767 Time(s)

swirl.png

Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Tue 21 Jun 2016, 10:26    Post subject: e17 themes and more  

hi ruf !

Cool Link .Didnt know.
Did not know that this animated icons exist .
If you like to change themes " on the fly " without saving them all into save-file ( to keep save-file slim ) .....i made an themes folder, stored it somewhere out of save-file then select(mark ) all the themes inside and symlinked them all into ~.e/e/themes ......or maybe /usr/share/enlightenment/data/themes .

If you now go to (Main)Menu >Settings>Themes ...the whole parade will be shown .
Select decorate and enjoy your new Disco .

But what i wanted to say ......there is a little sophisticated Gadged which i like very much..take a look at the Everything Starter
.. the so called run everything--the Everything Starter....
You can apply it either to shell or invoke it with key Alt-ESC . this will let you launch almost everything ....
type in some letters of the program you want to start ...
but ......do your own experiments .

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 .


http://www.wikihow.com/Use-Enlightenment-in-Linux
Maybe this link is useful for you .http://www.bodhilinux.com/w/enlightenment-settings-a-dialog-box-roadmap/
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Tue 21 Jun 2016, 16:25    Post subject: Re: e17 themes and more  

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 .

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).
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Thu 23 Jun 2016, 03:59    Post subject: E17 Desktop and more  

Hi rufwoof 1
If you want to test different Desktop(setups)-profiles and save them ... have a look at Settings Panel> >Settings>Profiles.......do your own experiments .
Salute !
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Sat 09 Jul 2016, 08:15    Post subject:  

How to stop your Hardisk from spinning when running Puppy or D-D from Usb-Stick in frugal mode .

One day i found it quite annoying when using Puppy from a Usb-Stick in frugal mode that hardisk on my machine keeps spinning without any purpose.

So i found something that could be useful for everyone .
Here is a little trick how it can be accomplished .

It is just a little script ....first :
install hdparm

Make a script ----
#!/bin/bash
hdparm -y /dev/sdx

make it executable
.....and click on it ...your Hardisk will stop spinning.
In case you get access to your Harddrive again after using it ....click again.
You can put this script into your Startup folder ..so it will prevent your Harddisk from spinning from beginning ....while not in use.
Probably saves your Accus some power .
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Mon 01 Aug 2016, 15:56    Post subject:  

Hi All,

How-to for a special way of installing DebianDog in a single 'persistence' labeled partition
(or better, a different label e.g. 'usbpersistence', see below (this unique label name to make it not conflict with a 'persistence' labeled partition e.g. on hard drive)).
See here for info about rufwoof's discovery (using Debian Live) to be able to boot read-write and read-only using live-boot's 'persistence' and 'persistence-read-only' options
http://www.murga-linux.com/puppy/viewtopic.php?p=915639#915639
(and read further down the thread for more info)

I'd call it a frugal install with some benefits of a full install (e.g. possible to upgrade the kernel and generate new initrd)

An advantage of the RO option (persistence-read-only) is that the changes are written to RAM (tmpfs), so it's running very fast (e.g. when installing programs or running a program that creates new files, e.g. firefox cache).
However, by default the changes are lost after reboot, unless you run the 'snapmergepuppy' script to save 'on demand' (see also below).

Here's how I did it on a USB stick, containing one partition (ext4 filesystem) with grub4dos already installed on it (grldr and menu.lst on root of partition).

In this example I installed DebianDog64.

First: label the partition 'usbpersistence', in terminal:
Code:
e2label /dev/sdb1 usbpersistence # <<<< change sdb1 according to your device


Make sure sdb1 is mounted before doing the following, mountpoint for me is /mnt/sdb1
Code:

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


My frugal install of DebianDog64 is in /mnt/sda1/debdog64/live/ (where 01-filesystem.squashfs is located), in terminal:
Code:

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


Add these entries to menu.lst:
Code:

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


A few more steps are required to make possible upgrading the kernel to newer version:
Open /etc/apt/preferences with leafpad:
Code:
leafpad /etc/apt/preferences

and remove these lines (this will disable the 'pinning' of the kernel version) :
Code:

Package: linux-image-3.16.0-4-amd64
Pin: version 3.16.7-ckt11-1+deb8u6
Pin-Priority: 1001


And save the file

And the same for /var/lib/synaptic/preferences:
Code:
leafpad /var/lib/synaptic/preferences


and remove the same lines as shown above and save.

Then, VERY important! : install the 'live-boot' package:
Code:
apt-get update # if required
apt-get install live-boot


Now you can upgrade the kernel:
Code:
apt-get install linux-image-3.16.0-4-amd64


And also new /boot/initrd.img-3.16.0-4-amd64 will be generated.

Or do just 'apt-get upgrade' and it will update all including the kernel image.

When booting 'DD64 Frugal RO', there will be no changes saved by default.
To save changes 'on demand' you can run rufwoof's mod of the 'snapmergepuppy' script, download from here:
http://www.murga-linux.com/puppy/viewtopic.php?p=915639#915639
Extract and make executable:
Code:
chmod +x snapmergepuppy

Copy it to /usr/local/bin :
Code:
cp -a /path/to/snapmergepuppy /usr/local/bin

And run from terminal to save on demand:
Code:
snapmergepuppy


EDIT:
------------------------------------------------------------------------------------------------
Instead of the previous, I'd prefer personally a slightly different setup, difference is that 'filesystem.squashfs' is not empty.
The advantage is that you can always start fresh by deleting the saved files in 'usbpersistence' (except the DD64-USB folder where filesystem.squashfs is located and the 'boot' folder)

Make sure sdb1 is mounted before doing the following, mountpoint for me is /mnt/sdb1
Code:

cd /mnt/sdb1   # <<<< change /mnt/sdb1 to your path
touch persistence.conf
echo "/ union" > persistence.conf
mkdir -p DD64-USB/live
mkdir boot


My frugal install of DebianDog64 is in /mnt/sda1/debdog64/live/ (where 01-filesystem.squashfs is located), in terminal:
Code:

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


Add these entries to menu.lst:
Code:

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


A few more steps are required to make possible upgrading the kernel to newer version:
Open /etc/apt/preferences with leafpad:
Code:
leafpad /etc/apt/preferences

and remove these lines (this will disable the 'pinning' of the kernel version) :
Code:

Package: linux-image-3.16.0-4-amd64
Pin: version 3.16.7-ckt11-1+deb8u6
Pin-Priority: 1001


And save the file

And the same for /var/lib/synaptic/preferences:
Code:
leafpad /var/lib/synaptic/preferences


and remove the same lines as shown above and save.

Then, VERY important! : install the 'live-boot' package:
Code:
apt-get update # if required
apt-get install live-boot


Now you can upgrade the kernel:
Code:
apt-get install linux-image-3.16.0-4-amd64


And also new /boot/initrd.img-3.16.0-4-amd64 will be generated.

Or do just 'apt-get upgrade' and it will update all including the kernel image.

When booting 'DD64 Frugal RO', there will be no changes saved by default.
To save changes 'on demand' you can run rufwoof's mod of the 'snapmergepuppy' script, download from here:
http://www.murga-linux.com/puppy/viewtopic.php?p=915639#915639
Extract and make executable:
Code:
chmod +x snapmergepuppy

Copy it to /usr/local/bin :
Code:
cp -a /path/to/snapmergepuppy /usr/local/bin

And run from terminal to save on demand:
Code:
snapmergepuppy


Note: In case of 'starting fresh' by deleting the saved files (see also above):
If (only if) the kernel is updated (so /boot/vmlinuz-3.16.0-4-amd64 and /boot/initrd.img-3.16.0-4-amd64 are new) then you need to copy the original vmlinuz and initrd files to /boot again:

Code:

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

-------------------------------------------------------------------------------------------

Fred

_________________
Dog Linux website

Last edited by fredx181 on Sun 07 Aug 2016, 18:21; edited 1 time in total
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Mon 01 Aug 2016, 17:19    Post subject:  

The same can equally be applied to any of the Debian liveCD current stable offerings https://www.debian.org/CD/live/. For instance I downloaded the Debian Jessie amd64 KDE ISO and extracted the /live/filesystem.squashfs from that.

I have menu.lst (grub4dos), the unsquashed Debian filesystem.squashfs and the 'persistence' partition label all in the same single partition (first primary ext3 sda1 in my case).

In that case, there's no /etc/apt/preferences nor /var/lib/synaptic/preferences editing involved (files don't exist anyway).

The 'persistence' boot parameter basically just writes all changes immediately to the disk partition with a 'persistence' label and persistence.conf file present (or a different partition label if you use the peristence-label=xxx boot parameter to point to a different partition/label). When you combine 'persistence persistence-read-only' together as boot parameters it reads the persistence (saves), but doesn't write changes to disk and instead overlays all changes in memory. That snapmergepuppy just flushes those memory changes to disk i.e. adds a 'save on demand' type function.

Using a HDD as I am I'm finding that it runs really well, and Debian's stable and extensive repository is fantastic.

After a initial setup of one of the Debian ISO's, I'd recommend first booting with no persistence-read-only parameter (just the persistence boot parameter alone), as that writes all changes instantly to disk. Why? Because likely there's loads of updates to bring that ISO filesystem version up to date and there can be too many for those to all be kept in memory (as they are when the persistence-read-only parameter is used).

The other thing I did was change /etc/apt/sources.list to look like
Code:
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

The default repository set (sources.list) is reduced in the liveCD versions and the above expands that out to being more like the full installs. From a terminal you can run

apt-get update
to update the local database

apt-get upgrade
which applies updates

Note that after changing sources.list to the above I ran that apt-get install deb-multimedia-keyring command as commented in that example to get rid of annoying invalid key or suchlike messages. You can use apt-get install to install other programs such as apt-get install openshot (or whatever). Better still is to use the Synaptic gui.

Up until a few days ago I was still running a single core Celeron 2GB, but have since dusted off a quad core 2GB amd64, and since having installed KDE onto that as per the above ... its great. Compositing effects are fantastic. Whilst retaining some of the puppy like features of frugal (optional save or not), and having fast security fixes come through and access to a extensive repository of stable programs. KDE has some neat features such as you can resize icons (you need to right click the desktop and select the unlock widgets option first) individually, and even rotate them through any 0..360 degree angle. The KDE's desktop cube is neat, I have mine set to switch to that view upon moving the mouse into the top left corner .. which when activated you can then drag the 'cube' (mine is three sided as I've only set up three desktops). Not so keen on the wobbly window option myself, where windows wobble around as you move them, I just have mine set to normal moves (but that become semi transparent as you drag them).
snapshot1.jpg
 Description   
 Filesize   25.84 KB
 Viewed   597 Time(s)

snapshot1.jpg

snapshot2.jpg
 Description   
 Filesize   46.7 KB
 Viewed   592 Time(s)

snapshot2.jpg

snapshot1.jpg
 Description   I've set my desktop 2 with system monitor type widgets
 Filesize   47.8 KB
 Viewed   605 Time(s)

snapshot1.jpg

Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2193

PostPosted: Tue 02 Aug 2016, 21:02    Post subject:  

If you apply the installation/setup as per the last couple of postings to other choices such as using Debian Jessie KDE liveCD, then rather than reconfiguring the system to automatically log in and run as root I'm finding that simply adding root versions of terminal and the filemanager (dolphin in KDE) launchers tends to be adequate. That leaves everything else running as 'user' and there's no risk of programs not running due to complaining about running as root (as some do), whilst terminal and filemanager provide root access/control.

In KDE you run either su to access super user in terminal mode, or kdesu in graphical mode. Creating copies of the filemanager desktop file in /usr/share/applications containing a "kdesu dolphin" type exec command (changed according to whichever filemanager you opt to use) enables those to be dropped onto the tray/panel ready to be launched as/when required (I used those to replace the existing 'user' terminal and filemanager icons in the tray). Or of course, do similar for desktop icons if you prefer icons on the desktop instead of in the tray.

Nice and simple, running as 'user', but a click of the terminal and/or filemanager icons has you straight into root mode to change/rearrange things as desired.
s.png
 Description   
 Filesize   25.88 KB
 Viewed   522 Time(s)

s.png

s.jpg
 Description   
 Filesize   38.45 KB
 Viewed   520 Time(s)

s.jpg

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Wed 19 Oct 2016, 08:55    Post subject:  

Hi All,

Very similar to what I posted here for DebianDog64:
http://murga-linux.com/puppy/viewtopic.php?p=916339#916339
But then for Debiandog Jessie 32 bit PAE.

How-to for a special way of installing DebianDog in a single 'persistence' labeled partition
(or better, a different label e.g. 'usbpersistence', see below (this unique label name to make it not conflict with a 'persistence' labeled partition e.g. on hard drive)).
See here for info about rufwoof's discovery (using Debian Live) to be able to boot read-write and read-only using live-boot's 'persistence' and 'persistence-read-only' options
http://www.murga-linux.com/puppy/viewtopic.php?p=915639#915639
(and read further down the thread for more info)

I'd call it a frugal install with some benefits of a full install (e.g. possible to upgrade the kernel and generate new initrd)

An advantage of the RO option (persistence-read-only) is that the changes are written to RAM (tmpfs), so it's running very fast (e.g. when installing programs or running a program that creates new files, e.g. firefox cache).
However, by default the changes are lost after reboot, unless you run the 'snapmergepuppy' script to save 'on demand' (see also below).
EDIT: rufwoof called it later "flush2disk", download here newer version (attached):
http://murga-linux.com/puppy/viewtopic.php?p=928882#928882

Here's how I did it on a USB stick, containing one partition (ext4 filesystem) with grub4dos already installed on it (grldr and menu.lst on root of partition).

In this example I installed DebianDog 32 bit.

First: label the partition 'usbpersistence', in terminal:
Code:
e2label /dev/sdb1 usbpersistence # <<<< change sdb1 according to your device


Make sure sdb1 is mounted before doing the following, mountpoint for me is /mnt/sdb1
Code:

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


My frugal install of DebianDog32 is in /mnt/sda1/debdog32/live/ (where 01-filesystem.squashfs is located), in terminal:
Code:

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

(or do similar from extracted or mounted ISO)

Add these entries to menu.lst:
Code:

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


A few more steps are required to make possible upgrading the kernel to newer version:
Open /etc/apt/preferences with leafpad:
Code:
leafpad /etc/apt/preferences

and remove these lines (this will disable the 'pinning' of the kernel version) :
Code:

Package: linux-image-3.16.0-4-686-pae
Pin: version 3.16.7-ckt11-1+deb8u3
Pin-Priority: 1001


And save the file

And the same for /var/lib/synaptic/preferences:
Code:
leafpad /var/lib/synaptic/preferences


and remove the same lines as shown above and save.

Then, VERY important! : install the 'live-boot' package:
Code:
apt-get update # if required
apt-get install live-boot # might be already installed, depends on which DD version


----------------------------------------------------------------------------------------------
EDIT:
I've overlooked something that has to done also first to make upgrading /boot/initrd.img-3.16.0-4-686-pae possible:
In terminal:
Code:
mv -f /usr/sbin/update-initramfs.orig.initramfs-tools /usr/sbin/update-initramfs

----------------------------------------------------------------------------------------------

And also new /boot/initrd.img-3.16.0-4-686-pae will be generated.
Now you can upgrade the kernel:
Code:
apt-get install linux-image-3.16.0-4-686-pae


Or do just 'apt-get upgrade' and it will update all including the kernel image.

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)

When booting 'DD32 Frugal RO', there will be no changes saved by default.
To save changes 'on demand' you can run rufwoof's mod of the 'snapmergepuppy' script, download from here:
EDIT: rufwoof called it later "flush2disk", download here newer version (attached):
http://murga-linux.com/puppy/viewtopic.php?p=928882#928882
EDIT2: rufwoof's latest-latest flush2disk attached here:
http://murga-linux.com/puppy/viewtopic.php?p=929037#929037

Remove the fake .gz and make executable:
Code:
chmod +x flush2disk

Copy it to /usr/local/bin :
Code:
cp -a /path/to/flush2disk /usr/local/bin

And run from terminal to save on demand:
Code:
flush2disk


Fred

_________________
Dog Linux website

Last edited by fredx181 on Sat 22 Oct 2016, 06:26; edited 2 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 10 [146 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1895s ][ Queries: 12 (0.0149s) ][ GZIP on ]