Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1381 Post by fredx181 »

zagreb999 wrote:it would be very useful
if you can add pdftodjvu
to repositories-
to be possible to install
with synaptic
OK, good idea, added package pdf-to-djvu to repos, install with Synaptic or with apt-get;

Code: Select all

apt-get update
apt-get install pdf-to-djvu
The included script pdf-to-djvu (in /usr/local/bin) has small change, should still be possible to call with Thunar custom action, but you can run also from Menu > Graphics > "Pdf to Djvu convert", then using yad file-selector you can select .pdf files to convert to .djvu.

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

#1382 Post by zagreb999 »

bottom border line for xfce

regards
who knows to add bottom border line
on windows of all apps-as
upper border line,
to be able to move windows
on screen as with upper border
with mouse cursor for XFCE
desktop ?!

thanks!
Attachments
Screenshot_2018-10-05_09-27-47.jpeg
(179.9 KiB) Downloaded 224 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1383 Post by fredx181 »

*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
And build aufs using aufs-dkms, the Debian kernel doesn't include aufs by default
Different from "upgrade-kernel", this will create initrd.img, initrd1.xz, vmlinuz1 and a .squashfs module containing the backports-kernel in a directory on partition of choice (see screenshots).
Similar to how "apt2sfs" works, the required packages are installed (using unionfs-fuse) in "chroot" (jail) so it doesn't alter the filesystem.
So, after running, copy the created files to the frugal installed 'live' folder and reboot to boot with the backports kernel.
(recommended to make backup first of original initrd.img, initrd1.xz, vmlinuz1)

Install upgrade-kernel-bpo with Synaptic (Reload first) or with apt-get:

Code: Select all

apt-get update
apt-get install upgrade-kernel-bpo
Run from Menu > System > Upgrade to Backports kernel

Should work also for a Devuan build

EDIT: Note that this process needs around 750MB free space (temporary at some point, final result will be much less, around 95MB)

EDIT2: Updated to v 0.0.3, made some small changes:
- Will ask for password now when running as normal user
- Better error checking and cleaning up when interrupted

Fred
Attachments
2018-10-06-191828_468x206_scrot.png
Final result in sda5
(74.75 KiB) Downloaded 1073 times
2018-10-06-184606_502x345_scrot.png
(56.56 KiB) Downloaded 1074 times

trister
Posts: 137
Joined: Sun 01 Mar 2015, 21:16

#1384 Post by trister »

fredx181 wrote:*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred
a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 files on the /live folder).



b)Also, I would like to inform our readers that after 3 weeks of testing the stretch32bit version with JWM runs very well on P4 1.6GMHz with 512MB ram. The custom frugal install has LibreOffice 4.4 , firefox 10 (only for playing swf files) and latest firefox , scratch , tux paint,math and type.
Btw, I could not believe that firefox 10 could cooperate so well with the latest adobe flash (v31.0.0.xxx). I can use all the latest flash swf files without having to deal with the latest & heaviest firefoxes.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1385 Post by fredx181 »

trister wrote:
fredx181 wrote:*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred
a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 .
Not very difficult, but I'd like to keep supporting LZ4 for loading and mounting .squashfs.
The backports kernel has that support by default, so only aufs is needed to be built by using aufs-dkms.
But the stable (4.9) kernel hasn't got support for LZ4 by default, so there's the problem.
However, somehow should be possible to make script similar (as you say, kernel upgrade with just copying 3-4)
I'll get back later about it.

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1386 Post by fredx181 »

trister wrote:
fredx181 wrote:*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred
a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 files on the /live folder).
I've added similar script to the repository: upgrade-kernel2
It will create the files required in location of choice for current kernel 4.9.0-8
Note that it will not be registered by the package management.
Install with Synaptic or with apt-get:

Code: Select all

apt-get update
apt-get install upgrade-kernel2
Run from Menu > System > Upgrade-Kernel v2

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

MX-17.1_386.iso

#1387 Post by zagreb999 »

regards fred!

if you have a time, can you make
mx-linux 17.1 32 bit as your mx 16?
it is great, fantastic...
the best linux os!




https://sourceforge.net/projects/mx-lin ... netcologne

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

#1388 Post by s243a »

I don't see this script referenced from the dog site:
https://debiandog.github.io/doglinux/

Edit:
My mistake. I see it in the news section.

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

#1389 Post by s243a »

fredx181 wrote:*** mklive-devuan for testing ***

To my surprise it took very little effort to modify "mklive-stretch" script to build a Devuan live "ascii" ISO (similar to DebianDog).
I guess this is proof of how close Devuan is to Debian)
Changes in script:
- Download and install the debootstrap package from devuan (otherwise it wouldn't find the ascii release (=stretch))
Opps. Installed deboostrap in stretch dog. Got this error:

Code: Select all

root@live:/mnt/sda2# debootstrap --arch=i386 --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://packages.devuan.org/merged
E: No such script: /usr/share/debootstrap/scripts/ascii
I see that I was supposed to get debootstrap from devuan instead. Not sure where I can find a package for this. I did find the source though:
https://git.devuan.org/devuan-packages/ ... s/unstable

I could add the missing script but it looks like they modified the main dbootstrap function. I wonder if it can coexist with debian deboostrap but under a different name. I'll look at the source now.

Edit I think they can coexist. It looks like the script directory is reference relatively.

Code: Select all

	SCRIPT="$DEBOOTSTRAP_DIR/scripts/$1"
https://git.devuan.org/devuan-packages/ ... strap#L410
- Changed debootstrap command to:

Code: Select all

debootstrap --arch=$ARCH --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://packages.devuan.org/merged
- Changed repositories pointing to devuan packages (also StretchDog repository included)
- Changed name of ISO to be created

The working directory I kept "stretch", same as mklive-stretch, so if exist, it may conflict, better rename first before building with mklive-devuan.

ISO Minimal Openbox 32-bit, first of the Desktop variants, size: 220MB, main .squashfs is gzip compressed:
EDIT (an hour later): new download link, forgot to have the "contrib" and "non-free" repositories included in sources.list, now added, the JWM version has that already, btw.
https://dl.dropboxusercontent.com/s/o6g ... 6.iso?dl=1
ISO Minimal JWM 32-bit, third of the Desktop variants, size: 222MB, main .squashfs is gzip compressed:
https://dl.dropboxusercontent.com/s/01r ... 6.iso?dl=1

Attached mklive-devuan script (remove fake .gz)

EDIT2: Tested also 64-bit build now and works fine, JWM iso:
https://dl.dropboxusercontent.com/s/88q ... 4.iso?dl=1

EDIT3: For now the "Full Dog" Desktop choices won't work because they have systemd in the package install list.
To make it work you can remove everything which contains the name systemd from the editable install list. (see pic, gui) EDIT: pic removed, no use anymore, see below.

EDIT4: Attached new mklive-devuan script, some small fixes and changed title and text of yad gui according to being devuan ascii.
Removed systemd from the install lists in the config files (loaded from github) used by mklive-stretch and mklive-devuan.
This fixes the problem for Devuan that it can't find systemd (and Debian will install systemd automatically, not required to specify)

EDIT5: 2018-09-21, fix: package repository "auto-mirror...." is expired, changed now to pkgmaster.devuan.org

Fred
Edit2: I extracted the devaun version of the debootstrap script to

Code: Select all

/opt/debootstrap-devuan/debootstrap
and symbolicly linked it to my execution path:

Code: Select all

ln -s /opt/debootstrap-devuan/debootstrap /usr/bin/debootstrap-devuan
I think I also need to either export the variable indicating the debootstrap folder

Code: Select all

export DEBOOTSTRAP_DIR=/opt/debootstrap-devuan
or alternativly hard code it in the script

Code: Select all

if [ -z "$DEBOOTSTRAP_DIR" ]; then
	if [ -x /debootstrap/debootstrap ]; then
		DEBOOTSTRAP_DIR=/debootstrap
	else
		DEBOOTSTRAP_DIR=/opt/debootstrap-devuan
	fi
fi
https://git.devuan.org/devuan-packages/ ... tstrap#L17

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1390 Post by fredx181 »

Hi, s243a

The debootstrap package from devuan should be downloaded and installed from the script.
They changed address, but still works for me (redirect)

Code: Select all

--2018-10-23 09:57:01--  https://packages.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb
Resolving packages.devuan.org (packages.devuan.org)... 46.105.191.77, 2001:41d0:8:2c55::a2
Connecting to packages.devuan.org (packages.devuan.org)|46.105.191.77|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb [following]
--2018-10-23 09:57:01--  https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb
But apparently doesn't work for you, anyway, re-attached here with changed address to: http://pkgmaster.devuan.org
http://murga-linux.com/puppy/viewtopic. ... 908#996908

So the debootstrap part of the new script is:

Code: Select all

# download and install devuan debootstrap deb
wget --no-check-certificate http://pkgmaster.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.89-devuan2.1_all.deb -O debootstrap_1.0.89-devuan2.1_all.deb
dpkg -i debootstrap_1.0.89-devuan2.1_all.deb    # install devuan debootstrap

########## Set up debootstrap ##########
echo -e "\e[0;36mSetting up debootstrap in stretch/chroot\033[0m"
echo -e "\e[0;36mThis may take a while...\033[0m"
mkdir -p stretch/chroot && cd stretch &&
debootstrap --arch=$ARCH --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://pkgmaster.devuan.org/merged/
EDIT: Reading your post again, I think you didn't run the mklive-devuan script, but ran debootstrap command only, if so, see above for the code.
(and, as discussed earlier in this thread, the Devuan debootstrap package has support for Debian also, so no problem to have it installed (replacing the Debian package))

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

ram size -gui app

#1391 Post by zagreb999 »

regards

ram size -gui app
this script is great!
it is very useful
for all debiandog users.
can it be done as gui script
also to be published in repos?
regards.


@zagreb
Quote:
after quick remaster it does not
remain...
what is solution?
regards.

mount -t tmpfs -o "remount,size=100%" tmpfs /mnt/live/memory/changes

One option is to add the line in /etc/rc.local, before the "exit 0"

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1392 Post by fredx181 »

zagreb999 wrote:mount -t tmpfs -o "remount,size=100%" tmpfs /mnt/live/memory/changes

One option is to add the line in /etc/rc.local, before the "exit 0"
If you added that command to /etc/rc.local, it should remain after making remaster.
Btw, you can also add to your kernel boot line:

Code: Select all

ramsize=100%
Works the same.

Fred

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

#1393 Post by s243a »

fredx181 wrote:
Galbi wrote:Sorry, the modified version did not work.
Ok, thanks anyway for testing.
I assume you did test it with the "porteus-boot" menu.lst entry ?

Code: Select all

title Stretch Dog 64
  root (hd0,0)
  kernel /stretch64/live/vmlinuz1 noauto from=/stretch64 changes=/stretch64/live/
  initrd /stretch64/live/initrd1.xz
But with the original version, I've noticed something. If I boot with initrd.img in the grub line, boots fine. But if I change it for initrd1.xz does not boot and says it can't find Porteus file etc.

Is initrd1.xz a compressed version of initrd.img?
No, booting with initrd1.xz is "porteus" boot style very different from 'live-boot" (with initrd.img) which is the official Debian style.

Fred
What are the differences between these two boot styles?

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#1394 Post by rufwoof »

s243a wrote:What are the differences between these two boot styles?
There used to be three methods, boot-2 was dropped to leave just 2. Historical background ... http://murga-linux.com/puppy/viewtopic. ... 456#774456 (read through that and the next post immediately after it). Boot-3 is nice as you can do a full Debian install, label that partition as 'persistence', add a persistence config (flag) file to that, add the /live folder to that (live-boot), and then boot a live version that uses that full install as the 'save' area. The main sfs can even be empty (but must exists IIRC) i.e. everything in the 'save area'. That way you can boot as though a full install (such as for updating things), or as a live boot ... and use it/shutdown without saving. More along the lines of systemD, whereas Porteus style is more SysV (typically using a save folder for saves instead of a partition (but both can save to a filesystem file). Porteus boot is more aligned to Puppy style.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

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

#1395 Post by s243a »



zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

DebianDog-Wheezy-openbox_xfce-2015-09-02-PAE.iso, gnome apps

#1396 Post by zagreb999 »

DebianDog-Wheezy-openbox_xfce-2015-09-02-PAE.iso, gnome apps
file-roller,
gnome search tool...

this iso is great, works great

why gnome apps
file-roller,
gnome search tool...

can not work?
regards!

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

#1397 Post by s243a »

fredx181 wrote:Hi, s243a

The debootstrap package from devuan should be downloaded and installed from the script.
They changed address, but still works for me (redirect)

Code: Select all

--2018-10-23 09:57:01--  https://packages.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb
Resolving packages.devuan.org (packages.devuan.org)... 46.105.191.77, 2001:41d0:8:2c55::a2
Connecting to packages.devuan.org (packages.devuan.org)|46.105.191.77|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb [following]
--2018-10-23 09:57:01--  https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb
But apparently doesn't work for you, anyway, re-attached here with changed address to: http://pkgmaster.devuan.org
http://murga-linux.com/puppy/viewtopic. ... 908#996908

So the debootstrap part of the new script is:

Code: Select all

# download and install devuan debootstrap deb
wget --no-check-certificate http://pkgmaster.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.89-devuan2.1_all.deb -O debootstrap_1.0.89-devuan2.1_all.deb
dpkg -i debootstrap_1.0.89-devuan2.1_all.deb    # install devuan debootstrap

########## Set up debootstrap ##########
echo -e "\e[0;36mSetting up debootstrap in stretch/chroot\033[0m"
echo -e "\e[0;36mThis may take a while...\033[0m"
mkdir -p stretch/chroot && cd stretch &&
debootstrap --arch=$ARCH --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://pkgmaster.devuan.org/merged/
I'm tyring the script now on TazPup.
http://murga-linux.com/puppy/viewtopic. ... 43#1008843

I'm not booting from it though. I'm using the generated folders for a chroot environment. I didn't see the following packages generated from the build: apt, apt-utils, dpkg, aptitude.

This surprise me because I thought that debootstrap would fetch these packages. Maybe I accidentally deleted them? Anyway, I'm gong to add these packages that I think are missing to the "Base-Install" part of the GUI and see what happens. :)
EDIT: Reading your post again, I think you didn't run the mklive-devuan script, but ran debootstrap command only, if so, see above for the code.
(and, as discussed earlier in this thread, the Devuan debootstrap package has support for Debian also, so no problem to have it installed (replacing the Debian package))

Fred
That's correct. At first I just tried the debootstrap command. I want to learn the differences between your script and the instructions at:
https://devuan.org/os/documentation/dev ... al-install

Edit: I think the problem was that I needed to install perl.

Edit2 I might have to install dpkg-deb or create a wrapper function for busybox. I get the following error running the dpkg command:
dpkg-deb: unrecognized option '--fsys-tarfile'

Command line: dpkg-deb --fsys-tarfile .//var/cache/apt/archives/base-files_9.9+devuan2.5_all.deb

BusyBox v1.27.2 (2018-06-04 11:30:05 CEST) multi-call binary.

Usage: dpkg-deb [-cefxX] FILE [DIR]

Perform actions on Debian packages (.deb)

-c List files
-f Print control fields
-e Extract control files to DIR (default: ./DEBIAN)
-x Extract files to DIR (no default)
-X Verbose -x
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Edit 3
both dpkg and util-linux-bash-completion were available via the tazpup package manager. I'll try again :)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1398 Post by fredx181 »

Hi s243a, out of curiosity I tested on tazpup.
Indeed perl and dpkg are required, and to make the mklive script run properly, also wget and cacerts need to be installed from package manager.
Also when I tried on my sda5 partition I got a permission error (although logged in as root), didn't investigate that further (maybe needed to remount different way ?) so did the build in /root and went fine.

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

mobile browser, Opera Mini

#1399 Post by zagreb999 »

how run
mobile browser, Opera Mini on dd and sd?

in puppy it works!
http://www.murga-linux.com/puppy/viewtopic.php?t=106514

is it possible to create squashfs?

regards

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#1400 Post by dancytron »

A little upgrade snafu.

A bunch of stuff showed for upgrade today, so I "Marked all upgrades" in synaptic and then his apply.

It aborted the upgrade, and this message popped up.
E: /var/cache/apt/archives/gtkdialog_0.8.7-wiak-B_amd64.deb: trying to overwrite '/usr/bin/gtkwialog', which is also in package gtkwialog 0.8.5

Under "details" in the closing dialog, I got this:
debconf: unable to initialize frontend: Gnome
debconf: (Can't locate object method "new" via package "Text::Iconv" (perhaps you forgot to load "Text::Iconv"?) at /usr/share/perl5/Debconf/Encoding.pm line 65, <> line 30.)
debconf: falling back to frontend: Dialog
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 43295 files and directories currently installed.)
Preparing to unpack .../base-files_9.9+deb9u6_amd64.deb ...
Unpacking base-files (9.9+deb9u6) over (9.9+deb9u5) ...
Setting up base-files (9.9+deb9u6) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 43295 files and directories currently installed.)
Preparing to unpack .../gtkdialog_0.8.7-wiak-B_amd64.deb ...
Unpacking gtkdialog (0.8.7-wiak-B) over (0.8.3-2) ...
dpkg: error processing archive /var/cache/apt/archives/gtkdialog_0.8.7-wiak-B_amd64.deb (--unpack):
trying to overwrite '/usr/bin/gtkwialog', which is also in package gtkwialog 0.8.5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gtkdialog_0.8.7-wiak-B_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
I unmarked gtkdialog and did "apply" again and the update completed without error.

So it seems there is some sort of versioning conflict between gtkdialog and gtkwdialog.

Post Reply