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

#1501 Post by fredx181 »

Hi Bill,

I think you will run in trouble sooner or later the way you did, simple example: failed to install libc6-dev because of libc6 v 2.28-10 installed (see pic).
(I did immediately remove the beowulf lines and apt-get update)

Better use the stretch-backports repo instead.

Fred
Attachments
failed.png
(93.71 KiB) Downloaded 677 times

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

#1502 Post by rcrsn51 »

Could you give me some instructions for using the backports kernel? I believe that I tried this once and failed.

Regarding DevuanDog: I still have problems on some bleeding-edge machines with video. Part way through the boot sequence, I get a black screen of death.

But using the 01-filesystem.squashfs from Stretch works. I suspect some little problem with the X in Devuan.

Bill

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

#1503 Post by rcrsn51 »

When I run upgrade-kernel-bpo, I get an empty list for Select a Kernel. I fixed that by setting VER=4.19 in the script.

But I then get an error when it tries to build aufs - something about BUILD_EXCLUSIVE in a dkms.conf file.

So I quit.

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

#1504 Post by fredx181 »

Yes upgrade-kernel-bpo needs updated, I did already work on it but wanted to test more, I'm now investigating if it's possible to keep the beowulf kernel and use linux-headers from backports (probably not, but worth trying)
Back later.

Fred

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

#1505 Post by rcrsn51 »

This is not a big problem. I am interested in kernel upgrades because some of my machines have hardware (touchpads, wifi) that are not supported by the 4.9.x kernel.

In the past, I have found work-arounds by dropping in a Puppy kernel or hand-compiling drivers. But using a Debian 4.19.x kernel makes it far easier.

On my nvidia machines, nouveau+mesa is usually adequate, and those machines don't really need a kernel upgrade anyway. So people who want the nvidia Xorg driver can stick with k4.9.x or try my procedure above.

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

#1506 Post by fredx181 »

Nvidia driver install didn't work by keeping the beowulf kernel and use backports linux-headers
Here's fixed upgrade-kernel-bpo:
https://fredx181.github.io/StretchDog/a ... .5_all.deb
I tested only by choosing the "unsigned" kernel. on 64 and 32 bit and works.
EDIT: e.g: linux-image-4.19.0-0.bpo.6-amd64-unsigned

For the rest I'm not sure if the backports repo has the nvidia driver you need.

Fred

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

#1507 Post by rcrsn51 »

I did the backports upgrade on my nvidia machine and it worked.

But I can't figure out what to put in the /etc/apt/sources.list that will find the backports kernel when I run

Code: Select all

apt-get install linux-headers-$(uname -r)
Update with the correct procedure: I used

Code: Select all

deb http://deb.debian.org/debian/ stretch-backports main contrib non-free
and

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r) -t stretch-backports
apt-get install nvidia-detect
nvidia-detect
apt-get install nvidia-xxx -t stretch-backports
This installed nvidia correctly.
Last edited by rcrsn51 on Tue 01 Oct 2019, 13:34, edited 3 times in total.

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

#1508 Post by fredx181 »

Yes, for me also, message about linux-compiler-gcc-6-x86 not installable
Took me a while to figure out how, added this to sources.list:
deb http://deb.debian.org/debian/ stretch-backports main contrib non-free

And point it explicitly to stretch-backports (don't know why that's needed):

Code: Select all

apt-get install linux-headers-$(uname -r) -t stretch-backports
Probably for the nvidia driver install you need to do that too (-t stretch-backports)

EDIT: just see your update,black screen strange...
The nvidia install went for the backports kernel ? And did you use -t stretch-backports?

Fred

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

#1509 Post by rcrsn51 »

Both the "/" and "-t" notations work the same for me.

But both end up with a black screen on reboot.

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

#1510 Post by fredx181 »

rcrsn51 wrote:Both the "/" and "-t" notations work the same for me.

But both end up with a black screen on reboot.
That's a pity !
If you are sure that the nvidia driver was installed from stretch-backports and was built for the 4.19 backports kernel, I don't know why it didn't work.

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

#1511 Post by rcrsn51 »

That was it! I had to also use

Code: Select all

apt-get install nvidia-xxx -t stretch-backports
Now it works.

This machine also has a Broadcom wifi card. So I ran

Code: Select all

apt-get install broadcom-sta-dkms -t stretch-backports
That worked too.

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

#1512 Post by fredx181 »

rcrsn51 wrote:That was it! I had to also use

Code: Select all

apt-get install nvidia-xxx -t stretch-backports
Now it works.
Ok! Better this way than a system containing beowulf binaries that is broken :wink:

Fred

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

#1513 Post by rcrsn51 »

I have posted here an update to the script for building a LibreOffice squashfs module.

It can now handle optional language packs. Read the howto.txt file for details.

Please provide feedback.

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

#1514 Post by rcrsn51 »

I have posted here a .deb driver package for some nVidia video cards. It is intended for 64bit Stretch setups with the k4.19.0-6-amd64 upgrade. I built the package against a GeForce 310 card which uses nVidia's combo 340.107 driver. It also supports a variety of other cards. Provided that it matches your hardware, it is much easier to use than the "official" Debian install procedure.

As with all nVidia drivers, you should back up your changes folder before proceeding. If something goes wrong, you may not be able to restore the nouveau driver.

After installing, X may not immediately start and drops out to a prompt. Run "nvidia-xconfig" and "startx".

------------------------
Last edited by rcrsn51 on Fri 04 Oct 2019, 12:37, edited 3 times in total.

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

#1515 Post by rcrsn51 »

I have updated the instructions for installing NVIDIA drivers here.

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

#1516 Post by rcrsn51 »

For people who are still having problems with Mozilla browsers and certain streaming content (like mp4/h.264), here is a solution.

a. Install the package libavcodec57 from the Debian repo.

b. Or convert it to a squashfs module and load it as needed.
Last edited by rcrsn51 on Thu 12 Dec 2019, 12:01, edited 2 times in total.

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

#1517 Post by dancytron »

rcrsn51 wrote:For people who are still having problems with Mozilla browsers and certain YouTube content, here is a solution.

a. Install the package libavcodec57 from the Debian repo.

b. Or convert it to a squashfs module and load it as needed.
They might also try libavcodec-extra57.

This package[libavcodec-extra57] replaces the libavcodec57 package and contains the following additional codecs:

* OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band (Encoder/Decoder)
* OpenCORE Adaptive Multi-Rate (AMR) Wide-Band (Decoder)
* Android VisualOn Adaptive Multi-Rate (AMR) Wide-Band (Encoder)

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

#1518 Post by rcrsn51 »

I have posted here a k4.19.0-6-amd64 driver for the Realtek rtl8821ce PCI WiFi card. This driver is not yet in the mainstream kernel.

NOTE: Although the drivers in the rtl-wifi series are intended for dual-antenna cards, some laptop vendors have cheaped-out and only provided one antenna. So if the driver on your system happens to pick the absent antenna, WiFi will fail.

1. Run the "lsmod" command to find the exact name of your driver.
2. Go to /etc/modprobe.d
3. Create a file like "rtl8723be.conf" that matches the driver name.
4. Insert the line "options rtl8723be ant_sel=1"
5. Do a COLD reboot.

If that doesn't help, try "ant_sel=2".

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

#1519 Post by fredx181 »

*** Updated mklive-stretch ***

Download (and make executable) then run 'mklive-stretch' script , from terminal e.g,

Code: Select all

./mklive-stretch -gui
From partition (Linux filesystem formatted, e.g. ext3 or ext4) with at least 3GB free space.
This script can be used best from a 'Dog' based OS, see below for running from a Puppy OS (appimages, dependencies are included).

Changes and fixes:
Fixed that the script ended with failure because kernel 4.9.0-9 not found (removed from Debian repo) Major change is that the kernel (at this time 4.9.0-11) is pre-built in the form of a .squashfs module, vmlinuz1, initrd.img and initrd1.xz.
These files are now downloaded by the script and added to the 'live' folder (instead of installing the kernel by apt-get in chroot)

Appimages. For use on most modern Puppies (dependencies included), make executable before running:
32-bit appimage: mklive-stretch32
64-bit appimage: mklive-stretch64
Run e.g.:

Code: Select all

./mklive-stretch32 -gui
From partition (Linux filesystem formatted, e.g. ext3 or ext4) with at least 3GB free space.

Also updated: upgrade-kernel (v2.0.1) for to upgrade the kernel to v4.9.0-11, install with synaptic or from terminal using apt:

Code: Select all

apt update
apt install upgrade-kernel
Another way to upgrade the kernel (to v4.9.0-11) is to download one of these archives and extract in the 'live' directory, replacing vmlinuz1, initrd.img and initrd1.xz
https://debiandog.github.io/MakeLive/ke ... pae.tar.gz
https://debiandog.github.io/MakeLive/ke ... d64.tar.gz
Or the kernel from stretch-backports (v4.19):
https://debiandog.github.io/MakeLive/ke ... pae.tar.gz
https://debiandog.github.io/MakeLive/ke ... d64.tar.gz
Fred

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

#1520 Post by rcrsn51 »

Users of Stretch-Live k4.19.0-6-amd64 who are booting off USB may need the alternate initrd1.xz. I have posted it here.

Post Reply