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

#401 Post by fredx181 »

jd7654 wrote:Not familiar with the packages and why installing mpv acts as the parent package and also installs mplayer and gnome-mplayer, usually it is the other way around. But I ran into a conflict with chromium and mpv cause script to fail, so that's why I tried just gnome-mplayer package, which installed mplayer but not mpv. But since that didn't work right, I tried smplayer instead, which also installed mplayer but not mpv, but that works correctly with full screen resize. Strange. If mpv installed with firefox then gnome-mplayer worked properly.
Maybe this info helps:
gnome-mplayer (from dog repo) has mplayer already included.
Installing mplayer will install the official Debian package and will uninstall gnome-mplayer.
What you say about mpv being a parent package I don't understand, AFAIK it's independent of mplayer or gnome-mplayer
To make full screen work for gnome-mplayer , go in the Preferences > Tab Mplayer and add in the box "Extra options for mplayer":

Code: Select all

-zoom
To make vlc run as root:

Code: Select all

sed -i 's/geteuid/getppid/' /usr/bin/vlc
Fred

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

#402 Post by fredx181 »

peebee wrote:I've uploaded a replacement zz-lxdd-config-1708.squashfs which should replace the version in /live/modules obtained from the LxDD-17.08.1.iso

Not really sure why light-locker caused the permanent screen blanking problem but in the new .squashfs it is disabled (as is lightdm so there is no tty7 desktop - tty2 is still there and the root password is toor if you need to login).

Cheers
peebee
My simple fix was to just disable the screen-locker
Extract attached tar.gz in the file system or in rootcopy frugal install folder.

Fred
Attachments
disable-screen-locker.tar.gz
Extract in the file system or in rootcopy frugal install folder
(1.32 KiB) Downloaded 216 times

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

#403 Post by jd7654 »

fredx181 wrote:What you say about mpv being a parent package I don't understand, AFAIK it's independent of mplayer or gnome-mplayer
To make full screen work for gnome-mplayer , go in the Preferences > Tab Mplayer and add in the box "Extra options for mplayer":

Code: Select all

-zoom
That was my bad. I see that dogradio was the package installing mplayer and gnome-mplayer, not mpv. Only conflict was mpv and chromium.
EDIT: I see that mpv installed was old 0.13.0 version and prolly conflicts with newest chromium. On my Debian full install, mpv full with pseudo-gui is 0.23.0.
Last edited by jd7654 on Sun 20 Aug 2017, 20:51, edited 1 time in total.

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

#404 Post by fredx181 »

Hi All,

I made JWM config deb package "jwmconf" , it;s in the repos, so can be added to install list, it will automatically install jwm and rox (and some more)

I made a build using this successfully:

Code: Select all

DESK_APPS_INSTALL="jwmconf pcmanfm lxrandr lxinput"
Attached jwm.conf (remove fake .gz)
To build (using cli in this example):

Code: Select all

./mklive-stretch -cli jwm.conf
(requires latest mklive-stretch)

It's a bit of an experiment by using deb package for make a build with configured Desktop environment, not sure yet if it's the right way.

EDIT: THe JWM configuration is rather simple, I'm personally not much into JWM/ROX, if anyone feels like improving and share the results it would be nice!
(then I can include the changes in a new deb package)

EDIT2: Made a fix for jwmconf deb package, when changing jwm theme, conky stays transparent now (with previous version it turned black)

Fred
Attachments
stretchlive-jwm.jpg
Stretch Live with JWM
(39.83 KiB) Downloaded 609 times
jwm.conf.gz
JWM config (remove fake .gz)
(2.55 KiB) Downloaded 202 times

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

#405 Post by rcrsn51 »

I burned some Stretch-Live ISOs to DVD and got an interesting result.

If I booted an Athlon machine with the 32bit disc, I got an immediate kernel-panic.

But the 64bit version booted fine.

This machine will boot 32bit Puppy discs OK.

labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

testing minimal iso

#406 Post by labbe5 »

Hi Fredx,

This way of building a minimal OS is new to me. I took the time to test it, and i found that this minimal ISO is faster than other Dog. Before that i was contemplating using mini.ISO (50MB) from Ubuntu and try a 17.04 minimal installation, very basic, adding packages that i really need with apt. But it doesn't have utilities from Dog-based OS, so it is less versatile.

What i added :

I had to install firmware-linux-nonfree for wifi. Out-of-the box, wifi is not available. You can install firmware-linux-free, but i really needed the nonfree.

I added a user. I realized that i needed a display manager with a greeter.

Without a display manager, to switch to my user account, i had to do exit x, do Alt-F1 to have a prompt to username and password. Entering both, i switched to my user account, needed for some applications, such as VLC, Firejail, and so on.

As a display manager, Slim is kind of a GUI for Alt-F1, so i installed Slim. As a result, the Debian installation is less minimal, but more polished.

I look forward to whatever you do, it is very interesting.

Finally, keep on with your 32-bit OS development, many developers are dumping this architecture in favor of 64-bit only. When you can have a good 32-bit second-hand laptop or a refurbished 32-bit Dell netbook for less than 100$ which was valued at 1000$ a few years ago, it is not tomorrow i will switch to 64-bit architecture just to have a brand new thing.

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

Re: testing minimal iso

#407 Post by rcrsn51 »

labbe5 wrote:Out-of-the box, wifi is not available.
If you want help with this, you should supply more specific information.

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

#408 Post by fredx181 »

rcrsn51 wrote:I burned some Stretch-Live ISOs to DVD and got an interesting result.

If I booted an Athlon machine with the 32bit disc, I got an immediate kernel-panic.

But the 64bit version booted fine.

This machine will boot 32bit Puppy discs OK.
Hi Bill, did you test that with both boot methods (porteus-boot and live-boot)
I can't test that myself, but I wouldn't surprsed if live-boot works and porteus-boot not. (just guessing)

@labbe5
Without a display manager, to switch to my user account, i had to do exit x, do Alt-F1 to have a prompt to username and password. Entering both, i switched to my user account, needed for some applications, such as VLC, Firejail, and so on.

As a display manager, Slim is kind of a GUI for Alt-F1, so i installed Slim. As a result, the Debian installation is less minimal, but more polished.
As a coincidence I just made a fix for "display-manager <> console login (automatic)" conflict, see next post

Fred
Last edited by fredx181 on Mon 21 Aug 2017, 18:15, edited 2 times in total.

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

#409 Post by fredx181 »

*** Updated mklive-stretch ***

Some small changes:
- When installed a display-manager, e.g. lightdm or slim, the script will detect it and disable the (default) login method through /etc/inittab
(otherwise strange things can happen, login on both tty1 and tty7)
See also these posts about the issue
http://murga-linux.com/puppy/viewtopic. ... 774#964774
http://murga-linux.com/puppy/viewtopic. ... 776#964776
http://murga-linux.com/puppy/viewtopic. ... 778#964778
- The generated config file "build_setup.conf" contains now info about which architecture it's build for
(e.g: generated for architecture: i386)
And if 32 bit build, "build_setup.conf" contains now FORCE32=TRUE
(needs to be set to FALSE if making a 64 bit build)


mklive-stretch script (right-click > Save link as and make executable)

Fred

labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

#410 Post by labbe5 »

If you want help with this, you should supply more specific information.
Thanks.

After installing firmware-linux-nonfree, i am able to see wifi networks available in my vicinity.

Before, the GUI did not launch at all.

I also needed to install acpi to have batteries status on my laptop.

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

#411 Post by dancytron »

Is there a specific package that has to be included for lz4 to work on the Quick Remaster? Or is it just not supported yet.

I did a quick remaster using lz4 and it seemed to do what it was supposed to, but when I rebooted, I got the errors in the screenshot I've attached. It worked fine when I redid it with gzip and I've used xz in the past and that's worked too.

I saved the bad 01-filesystem.squashfs if there is something you'd like me to check.

Luckily someone had the great idea to include emergency backups as a part of the quick remaster program. :D :D
Attachments
error.jpg
(103.48 KiB) Downloaded 923 times

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

#412 Post by rcrsn51 »

fredx181 wrote:did you test that with both boot methods (porteus-boot and live-boot) I can't test that myself, but I wouldn't surprsed if live-boot works and porteus-boot not. (just guessing)
Unfortunately, the 32bit disc failed to boot with either "live" setting. But the 64bit disc worked fine either way.

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

#413 Post by fredx181 »

dancytron wrote:Is there a specific package that has to be included for lz4 to work on the Quick Remaster? Or is it just not supported yet.

I did a quick remaster using lz4 and it seemed to do what it was supposed to, but when I rebooted, I got the errors in the screenshot I've attached. It worked fine when I redid it with gzip and I've used xz in the past and that's worked too.

I saved the bad 01-filesystem.squashfs if there is something you'd like me to check.
I see Trinitydog, is it about that ?
Anyway, are you able to mount the squashfs ? (from one of the dogs that supports LZ4)
LZ4 should work, on StretchLive I tested on 64 and 32 bit
Trinydog Stretch I just tested booting with LZ4 squashfs and works also.
Luckily someone had the great idea to include emergency backups as a part of the quick remaster program.
Mmm.. what was his name again ? :) :)

Fred

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

#414 Post by dancytron »

Trinitydog is just the name of the folder. I was too lazy to change the menu.1st file, so I just deleted the Trinitydog I wasn't using and pasted the Stretch-live I made into that folder.

Have you tested the Quick Remaster with lz4 yet?

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

#415 Post by dancytron »

I think I found the save2flash issue.

This is an entry from my log file.
Get:49 https://fredx181.github.io/StretchDog/amd64/Packages ./ porteusbootscripts 0.0.3 [6598 B]
When I go to the site and download porteusbootscripts 0.0.3 and extract it, it contains the old save2flash and snapmergepuppy files.

apt-cache rdepends shows
root@live:~# apt-cache rdepends porteusbootscripts
porteusbootscripts
Reverse Depends:
debdogmountscripts
root@live:~# apt-cache rdepends debdogmountscripts
debdogmountscripts
Reverse Depends:
porteusbootscripts
debdoginstallscripts
root@live:~# apt-cache rdepends debdoginstallscripts
debdoginstallscripts
Reverse Depends:
root@live:~#

My build_setup.txt file shows that I decided to add debdoginstallscripts on my own in the extra apps, because why not.
Extra Dog Packages:
google-chrome-stable gksu ntfs-3g mpv upgrade-kernel debdoginstallscripts lxterminal mtpaint xarchiver xfce4-appfinder mc desktop-drive-icons links2 gdmap
So, I believe that the issue is caused by the out of date files in porteusbootscripts, which is being installed because somewhere along the line I decided that debdoginstallscripts sounded like a good thing to install.

I will test this hypothesis tomorrow.

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

#416 Post by jd7654 »

fredx181 wrote:*** Updated mklive-stretch ***
- When installed a display-manager, e.g. lightdm or slim, the script will detect it and disable the (default) login method through /etc/inittab
...
- The generated config file "build_setup.conf" contains now info about which architecture it's build for
New script looks good. Strangeness from lxdd.conf build is fixed. Also, good changes for 32-bit config awareness.

Previously:
fredx181 wrote:I made JWM config deb package "jwmconf" , it;s in the repos, so can be added to install list, it will automatically install jwm and rox (and some more)
...
It's a bit of an experiment by using deb package for make a build with configured Desktop environment, not sure yet if it's the right way.
Jwm config build looks good. I think that can be a nice way to keep the simplicity of the build tool, by automating the configs/customizations by adding it at the end as a package.
I also like the adding of SFS files like Peebee did in his build. I was playing around with adding modules in script at last dialog. Maybe the description could be changed to say that you can add/edit files in chroot or add modules in isodata folders at that point?

Side note:
While playing around with Dog package tool AptToSfs to create sfs modules to load, ran into failures of that app when using older or newer forced version packages such as:
firefox-esr=24.8.0esr-1~deb8u2 mpv=0.23.0-2+b2
I found that if you remove the "=" sign from the working directory name, then the AptToSfs completed successsfully with those forced version packages.

Change to /usr/local/bin/apt2sfs line 352:

Code: Select all

export SFS=$(for i in "$INSTALL"; do echo $(echo $i | sed 's| |_|g' | sed 's|=||g'); done)

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

#417 Post by rcrsn51 »

Here is the PeasyScan image scanning program. There are two versions because it contains a binary.

Remove the fake .gz extension.
Attachments
peasyscan_2.12_i386.deb.gz
(42.32 KiB) Downloaded 151 times
peasyscan_2.12_amd64.deb.gz
(43.35 KiB) Downloaded 152 times

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

#418 Post by fredx181 »

@dancytron
I think I found the save2flash issue.
...
...
Sure you did !
I fixed the problem by removing debdogmountscripts dependency in version 0.0.3
So now installing debdoginstallscripts will not install porteusbootscripts
Also added ~/Startup/initchanges.sh in the 0.0.3 version (will help empty tmpfs after running save2flash)
But in fact porteusbootscripts doesn't need to be installed, because these (essential) scripts are already in the build by default.
But version 0.0.3 has the logrotate option, if you want that:

Code: Select all

apt-get install porteusbootscripts=0.0.3
Also added new version 0.0.4 to the repo that has the exact same files as included in the build.

Thanks for finding out and sorry for the inconvenience.

About the (corrupted ?) 01-filesystem.squashfs, just try to mount it, if it doesn't mount probably it got corrupted
Then your problem hasn't got to do with LZ4, I guess

@rcrsn51
Thanks again for your contributions! Added to the repos
(had been earlier added the other two you shared)

@jd7654

Nice suggestions, added line "Also you can add .squashfs modules in the isodata/live folder..." to the script
Also will update apt2sfs later after some testing

Fred

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#419 Post by peebee »

Suggestion:

make purge at line #644 a config list so that other unwanted packages can also be removed if required.

Update:
LxDD-uk-i386-17.08.2.iso
Last edited by peebee on Tue 22 Aug 2017, 12:22, edited 1 time in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#420 Post by peebee »

Synaptic error when trying to apply an installation request:
E: Could not open lock file /var/cache/apt/archives/lock - open (2: No such file or directory)
E: Could not open file descriptor -1
E: Unable to lock the download directory
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

Post Reply