Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#31 Post by wiak »

Sorry Fred,

I've downloaded Puppy Slacko but probably won't have time to try debootstrap out with it until tomorrow (hope I can find chroot program for Slacko - otherwise I'll try XenialPup or similar). I am pretty confident it should work anyway and it seems I could even run the DebianDog at same time as the Pup!!! since that's what chroot with all these mount commands of /proc and so on should allow. I have actually since come across "James B" detailing how to run Slacko at same time as FatDog via chroot mechanisms here (not that this has anything to do with debootstrap idea...):

http://www.lightofdawn.org/wiki/wiki.cg ... koInFatdog

It is all very exciting stuff anyway. I can't help wondering what the future of Puppy itself is though since debootstrap can create such a small Debian, but I guess there is room for all and maybe a Puppy with a chroot Debian (or thus created debiandog) running alongside is also a useful possibility (or as with the FatDog example, but instead running Puppy inside a DebianDog via a chroot).

Main thing for me for now though is trying to get a mklive debiandog working via your script but using Puppy system as the host build system.

wiak

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#32 Post by rcrsn51 »

@Fred: Here is my test:

I booted Stretchdog32 off an ISObooter flash drive. I plugged in another flash drive with a big ext4 partition and ran the mklive script from there. It chugged away and eventually made the ISO. I copied it back to the ISObooter drive and rebooted. It worked!

But you quickly realize how many extra little things you need to make a practical OS.

BTW, in the middle of the process, a "Done" message appears with a pause. An impatient person would close the terminal window, assuming that they were done.

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

#33 Post by fredx181 »

Hello rcrsn51

Thanks for testing and good to know it works with isobooter!
Indeed it's very minimal, so lots of work to be done to make it a more complete OS.
I'll have a look at the 'Done' message

Fred

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#34 Post by mikeslr »

Hi Fred and All,

Still trying to get my head around this. As I understand it, the ISO is created in a chroot environment run from another OS. But which actually has to have access to the internet?

My two main computers are a desktop which can only access the internet via wifi, and a laptop, which being portable, can be ported sufficiently close to my router that I can use an ethernet cable.

I'd rather do my exploring of, to me, uncharted territory from my desktop. Is that possible?

Thanks,

mikesLr

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

#35 Post by dancytron »

Built another one. I attempted to add all the DD specific programs and test a few.

This is the application list I used.

Code: Select all

export INSTALL="live-boot wget net-tools ifupdown wireless-tools sysvinit-core xserver-xorg-core xserver-xorg psmisc fuse x11-utils x11-xserver-utils dbus-x11 busybox sudo mawk xinit xterm openbox obconf menu leafpad pcmanfm lxpanel pciutils usbutils gparted file rsync dosfstools parted nano pv synaptic volumeicon-alsa alsa-utils firefox-esr pup-volume-monitor pm-utils apt2sfs debdoginstallscripts debdogmountscripts desktop-drive-icons desktop-editor dogradio edit-sfs-pcmanfm filemnt-pcmanfm fixdepinstall gsu isotools makedebpackage mount-wizard mpv pavrecord pburn pfind portablesfs-loadsfs-fuse quick-remaster remaster-scripts sfsload upgrade-kernel youtube-get youtube-viewer"
I installed Chrome with deb install program. Runs fine with --no-sandbox. Tested apt2sfs, load sfs, gtk youtube, dog radio and edit-sfs and they all worked.

Of course, there is no right click integration and there weren't any filetypes. I had to pick edit sfs and load sfs from the "open with" menu.

It seems when I use save2flash that it doesn't flush the memory like the newer version does. In other words, after I installed Chrome, it seemed like each time I used save2flash it was saving that whole huge amount rather than just what I'd added since the last time I used save2flash. Or I might just be imagining it?

Haven't tried a remaster yet. Maybe later.

edit: Just did a quick remaster. Seems successful. The "double mount" bug has returned though, i.e. when the script pauses to manually cleanout files, there are no files if you go directly to drive by clicking sda2, but there are files if you go by way of /mnt/sda2.

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

#36 Post by fredx181 »

dancytron wrote:This is the application list I used.
.....
Ok, that's good test if all the dog applications have correct dependencies.
I think I will work (probably in the weekend) on a similar setup as it is now, but with the most DD scripts included (and right-click options, file associations pre-configured) but NOT with big programs + dependencies e.g. mpv, youtube-viewer etc.. Prefer to keep it under 200 MB for now.

Also later I will look at save2flash and the double mount bug.

@mikeslr
My two main computers are a desktop which can only access the internet via wifi, and a laptop, which being portable, can be ported sufficiently close to my router that I can use an ethernet cable.


If I understand you well, you wonder if it works with no cable connection, just wifi only, right?
Well I was curious and tested that (cable plugged out, wifi activated ) and to my surprise it just works!
Apparently, in the chroot, the already existing connection from outside chroot is sort of "taken over", don't know exactly how to be honest.

Fred

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#37 Post by mikeslr »

Thanks Fred,

I think. :roll:

My equivocation is because, for me, exploring the possibilities of Puppies and Dogs seems to be addictive. There are other projects I keep putting off. I've said it before:

https://www.youtube.com/watch?v=UPw-3e_pzqU :)

mikesLr

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#38 Post by rcrsn51 »

fredx181 wrote:in the chroot, the already existing connection from outside chroot is sort of "taken over", don't know exactly how to be honest.
I'm guessing that the networking information, like the routing table, is in kernel-space.

So programs like apt-get running in the chroot can still access it.

So as long as your WiFI connection doesn't hiccup, you should be OK.

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

#39 Post by dancytron »

fredx181 wrote:
dancytron wrote:This is the application list I used.
.....
Ok, that's good test if all the dog applications have correct dependencies.
I think I will work (probably in the weekend) on a similar setup as it is now, but with the most DD scripts included (and right-click options, file associations pre-configured) but NOT with big programs + dependencies e.g. mpv, youtube-viewer etc.. Prefer to keep it under 200 MB for now.

Also later I will look at save2flash and the double mount bug.

/snip/

Fred
I think that is good. If you do that, then people will have the basic "starter kit" that they can expand with user applications, create and use sfs files, install deb files they get off the internet, and then remaster themselves.

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#40 Post by wiak »

fredx181 wrote: I attached the debootstrap script, to test in puppy, just extract it somewhere in PATH, e.g. /usr/bin/
Need to get a bit more than that since debootstrap sources from a set of functions called 'functions' that it needs to operate.

I'll work on getting the whole thing onto my Puppy Slacko though since I'm confident that will work.

wiak

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#41 Post by wiak »

Success...

Have chroot debian-stretch running from Slacko64 after using debootstrap to make it.

I previously fetched the Jessie stable debootstrap deb package and extracted that and put the main debootstrap script in /usr/sbin and the folder debootstrap into /usr/share (that /usr/share/debootstrap folder contains amongst other things a set of 'functions' used by debootstrap script and also a set of 'scripts' per distribution - i.e. one of these being called 'stretch').

http://www.murga-linux.com/puppy/viewtopic.php?t=111222

wiak
Last edited by wiak on Fri 04 Aug 2017, 03:22, edited 2 times in total.

AndresC2
Posts: 76
Joined: Sun 09 Jul 2017, 02:12

#42 Post by AndresC2 »

Hello fred! :shock: 8)

Very Cool Script! :D

by the way with aufs-back this will work?

umount /lib/live/mount/overlay
mount -t tmpfs -o "remount,size=90%" tmpfs /lib/live/mount/overlay

mi dell have 512mb of ram
but I have only 256mb in ram in stretch in live mode, is possible more ram with some command?

I did my stretch-minimal in /root is very fast build in ram but you have add minimal apps like links2 midnightcommander ifupdown etc... only 85mb my filesystem.squashfs. :D

xserver-xorg-video-vesa run ugly is possible install puppy/tinycore Xvesa in stretch?

Thanks Fred! :D

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#43 Post by wiak »

I've attached a dotpet of debootstrap from DebianJessie to my above post (as linked below). It's the version of DebianJessieStable-provided debootstrap I used in creating a debian stretch system on my Slacko64 6.3.2 system, but debootstrap is just a script (from Debian) so should work on most Puppies.

Note this is not Fred's mklive-stretch script, which adds a lot on top of debootstrap-created debian system in order to make it into a DebianDog. However, the provided debootstrap pet from Debian Jessie is all you need if you simply want to play with Debian installation yourself on your Puppy system as per my instructions here:

http://www.murga-linux.com/puppy/viewtopic.php?t=111222

Of course, Fred's mklive-stretch script could be modified per my previous suggestions such that it could also run from most any official (or unofficial) Pup per this example of me using debootstrap from Debian on a Pup system.

wiak

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

#44 Post by fredx181 »

@wiak

Great that you accomplished to make it work in puppy !
Need to get a bit more than that since debootstrap sources from a set of functions called 'functions' that it needs to operate.
Yes, sorry, I see you found already in usr/share/debootstrap, but why use the Jessie (extracted deb and not the one from Stretch? (maybe makes no difference, just curious)

Good luck!

@AndresC2
by the way with aufs-back this will work?

umount /lib/live/mount/overlay
mount -t tmpfs -o "remount,size=90%" tmpfs /lib/live/mount/overlay
Yes, I think so (didn't test though) the overlay mechanism is the same as in earlier versions using aufs by defualt (just need to boot now with "union=aufs" (without the quotes))

Fred

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#45 Post by wiak »

fredx181 wrote:but why use the Jessie (extracted deb and not the one from Stretch? (maybe makes no difference, just curious)
Yeah, it was just the one I picked up first (I also thought shortly after that that I should have used the one from Stretch, but was short of time to redo that). As it turns out doesn't seem to matter. I will try the one from Stretch sometime and probably upload new dotpet for that instead eventually in case that proves better for the future...

wiak

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#46 Post by wiak »

Okay, I uploaded dotpet for debootstrap ver 1.0.89 from Debian Stretch to my thread instead of the older one from Jessie. Seems to work fine also.

wiak

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#47 Post by rcrsn51 »

PWF needs some tweaks as it moves from Puppy to Live Stretch

Code: Select all

ln -sf /usr/bin/leafpad /usr/local/bin/defaulttexteditor
ln -sf /usr/bin/midori /usr/local/bin/defaultbrowser
ln -sf /usr/bin/pcmanfm /usr/local/bin/rox
--------------------

I have posted here a package of Realtek USB WiFi drivers (32bit) for Stretch. They are either not yet in the k4.9.0 kernel or the in-kernel versions work poorly.

Code: Select all

8192cu.ko  8192du.ko  8192eu.ko  8812au.ko
Also, posted here is a firmware package for the various USB WiFi drivers that are included in the Live build but are missing their firmware.

Download the packages and install them with: dpkg -i xxx.deb

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

#48 Post by belham2 »

Hi all,

Was wondering if anyone had any ideas what is going on with this Deb 9 Stretch build with script I did a few days ago? The pics and their titles say it all (is there something from Debian xorg-wise that didn't get installed? If so, what?).


[EDIT: Solved.....just remembered each monitor area has to be "right-clicked" on to set its "desktop preferences", you can't just do it from one monitor :oops: ]
Attachments
xrandr-shows-everything-correctly.png
(161.66 KiB) Downloaded 725 times
nothing-is-amiss-in-desktop-preferences.png
(74.48 KiB) Downloaded 710 times
yet-I-am-stuck-with-dual-identical-monitors-with-only-one-showing-chosen-background.png
(126.13 KiB) Downloaded 707 times

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

#49 Post by fredx181 »

rcrsn51 wrote:PWF needs some tweaks as it moves from Puppy to Live Stretch

Code: Select all

ln -sf /usr/bin/leafpad /usr/local/bin/defaulttexteditor
ln -sf /usr/bin/midori /usr/local/bin/defaultbrowser
ln -sf /usr/bin/pcmanfm /usr/local/bin/rox
--------------------

I have posted here a package of Realtek USB WiFi drivers (32bit) for Stretch. They are either not yet in the k4.9.0 kernel or the in-kernel versions work poorly.

Code: Select all

8192cu.ko  8192du.ko  8192eu.ko  8812au.ko
Also, posted here is a firmware package for the various USB WiFi drivers that are included in the Live build but are missing their firmware.

Download the packages and install them with: dpkg -i xxx.deb
Thanks ! Can be useful for some, I remember Pelo mentioned about e.g. 8192cu couple of times (if I'm right).

I will add these to Stretch32 repo later.

Fred

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

#50 Post by belham2 »

Hi Fred,

In all the DDogs Stretch and/or otherwise, I am used to installing "ufw" from Synaptic for the firewall (and setting it up and the rules from the terminal). On Debian, it is a 25MB install. Heaven forbid if the user wants a gui UFW install, called "GUFW", as Synaptic will bring back that 33 things have to be installed & 97MB will be used :shock:

Do we have any other alternative in the DDogs all around (these script builds included)? Something like all pups have with Bob's Easy Firewall, where I think (iirc) the whole package is less than 2MB max (might even be smaller than this).

Post Reply