Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#661 Post by rcrsn51 »

fredx181 wrote:EDIT2: Also OK on Openbox with pcmanfm providing the desktop
That's good news.

On another topic, I am working at how to install the NVIDIA vendor driver in Stretch-Live from its .run installer file. Trying to install nvidia through the repo was a disaster.

Has this been discussed before? If not, I will post a recipe.

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

#662 Post by fredx181 »

rcrsn51 wrote:On another topic, I am working at how to install the NVIDIA vendor driver in Stretch-Live from its .run installer file. Trying to install nvidia through the repo was a disaster.

Has this been discussed before? If not, I will post a recipe.
What was the disaster then ?

Not that I know of it has been discussed before.

Fred

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

#663 Post by rcrsn51 »

fredx181 wrote:What was the disaster then ?
It was similar to stretchy's report on page 43.

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

#664 Post by rcrsn51 »

How to Install the NVIDIA Video Driver in Stretch-Live 64bit

NVIDIA makes a variety of video cards and supporting them in Linux is a challenge. My old NVIDIA machine loads the open-source nouveau driver - it works, but it's "blinky". There are two methods for installing a better driver. You might want to practise on a test setup first.

Thank you to anikin for helping with this.

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

Method A:

The Debian repo has driver packages that support many NVIDIA cards.

1. Open a terminal and run:

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install nvidia-detect
2a. Run the command: nvidia-detect
2b. It will recommend a driver for your card. Install it. For example:

Code: Select all

apt-get install nvidia-legacy-304xx-driver
3a. Reboot.
3b. To check that the driver has installed correctly, run: lspci -nnk | grep nvidia

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

Method B:

This method installs the NVIDIA vendor driver from scratch.

IMPORTANT: You should back up your changes folder before proceeding. If something goes wrong, you may not be able to restore the nouveau driver.

1a. Run the command: lspci -nnk
1b. Identify the model name of your NVIDIA adapter and the current driver, probably nouveau.

2a. Go here. These are combo Linux driver installers.
2b. For each series, look under Supported Products to see if your model is listed. Be aware that some series are incompatible with some kernels. The 340.107 series is a good choice.
2c. Download the .run installer file.

3. As with Puppy, you need a devx and kernel-sources in order to compile the driver. You have two choices:

a. Download and install them directly into your filesystem.

Code: Select all

apt-get update
apt-get install build-essential
apt-get install linux-headers-$(uname -r)
b. Use apt2sfs to build a mini-devx squashfs module from the above packages. Activate it from the right-click menu.

4. Download and extract the "mk-nvidia.tar.gz" attached below.

5a. Start with an empty folder in an ext partition with 1GB free space.
5b. Put the NVIDIA.run file and the mk-nvidia script in this folder.

6. Open a terminal and run the script. Ignore the messages about installing 32bit compatibility libs. Any error messages at the end may or may not be significant.

7. Unload the devx module and reboot.

8.If X does NOT start and quits with a prompt, run

Code: Select all

nvidia-xconfig
startx
9. If X starts OK, verify with

Code: Select all

lspci -nnk | grep nvidia
nvidia-settings
10.If X still won't start, you may need to reinstall your system.

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

Upgrading the driver for a new kernel: When X fails at bootup, type from the console:

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
nvidia-detect
apt-get remove nvidia-xxx-driver	#use your particular driver package
apt-get install nvidia-xxx-driver
reboot
-------------------
Attachments
mk-nvidia.tar.gz
(697 Bytes) Downloaded 100 times
Last edited by rcrsn51 on Sun 06 Oct 2019, 15:27, edited 21 times in total.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#665 Post by anikin »

rcrsn51 wrote:...On another topic, I am working at how to install the NVIDIA vendor driver in Stretch-Live from its .run installer file. Trying to install nvidia through the repo was a disaster.

Has this been discussed before? If not, I will post a recipe.

With all due respect, it's done a little bit differently in Debian. First, make sure non-free is added to your sources list, something like:

Code: Select all

deb http://http.debian.net/debian/ stretch main contrib non-free
run

Code: Select all

apt-get update && apt-get install nvidia-detect nvidia-kernel-dkms
and run

Code: Select all

nvidia-detect
Debian wrote:NVIDIA GPU detection utility

The 'nvidia-detect' script in this package checks for an NVIDIA GPU in the system and recommends one of the non-free accelerated driver meta-packages (nvidia-driver, nvidia-legacy-340xx-driver, or nvidia-legacy-304xx-driver) for installation.
https://packages.debian.org/stretch/nvidia-detect
Debian wrote:Package: nvidia-kernel-dkms (375.66-2~deb9u1) [non-free]

NVIDIA binary kernel module DKMS source

This package builds the NVIDIA Xorg binary kernel module needed by nvidia-driver, using DKMS. Provided that you have the kernel header packages installed, the kernel module will be built for your running kernel and automatically rebuilt for any new kernel headers that are installed.

The NVIDIA binary driver provides optimized hardware acceleration of OpenGL/GLX/EGL/GLES applications via a direct-rendering X Server for graphics cards using NVIDIA chip sets.

This version only supports GeForce, Quadro, NVS, Tesla, ... GPUs based on the Fermi, Kepler, Maxwell, or newer architectures. Look at the legacy packages for older cards.

See /usr/share/doc/nvidia-kernel-dkms/README.txt.gz for a complete list of supported GPUs and PCI IDs.

Building the kernel module has been tested up to Linux 4.10.
https://packages.debian.org/stretch/nvidia-kernel-dkms
Debian wrote:Package: dkms (2.3-2)

Dynamic Kernel Module Support Framework

DKMS is a framework designed to allow individual kernel modules to be upgraded without changing the whole kernel. It is also very easy to rebuild modules as you upgrade kernels.
https://packages.debian.org/stretch/dkms

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

#666 Post by rcrsn51 »

Hi anikin: Could you confirm that this works in Stretch-Live? Because I attempted something like this and it failed.

[Edit] I tried again using the anikin procedure and it worked. There were still some messages about missing files but they don't appear to be significant.

I think that my original mistake was failing to install the driver package recommended by nvidia-detect.

This method also needs:

Code: Select all

apt-get install linux-headers-$(uname -r)
Thanks.

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

I shortened the procedure down to this:

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install nvidia-detect
nvidia-detect #pick the recommended driver
apt-get install nvidia-legacy-304xx-driver
reboot
It worked and was faster. Have I lost anything by omitting the nvidia-kernel-dkms stuff?

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#667 Post by anikin »

rcrsn51 wrote:It worked and was faster. Have I lost anything by omitting the nvidia-kernel-dkms stuff?
Probably, you haven't. The wiki https://wiki.debian.org/NvidiaGraphicsDrivers and this particular section dealing with your nvidia-legacy-304xx-driver: https://wiki.debian.org/NvidiaGraphicsD ... cy_GPUs.29 says:
This will install the nvidia-legacy-304xx-driver package. DKMS will build the nvidia module for your system, via the nvidia-legacy-304xx-kernel-dkms package.
There are so many nvidia drivers out there and apparently they have their own dkms packages.

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

#668 Post by rcrsn51 »

Thanks. The wiki also talks about running nvidia-config to create an Xorg config. I guess that I don't need to do that in Debian 9?

Running lspci definitely shows that the nvidia driver has loaded.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#669 Post by anikin »

rcrsn51 wrote:The wiki also talks about running nvidia-config to create an Xorg config. I guess that I don't need to do that in Debian 9?
I think you do. Have a look at both Arch Linux and Debian wikis linked below.
Running lspci definitely shows that the nvidia driver has loaded.
This one (from Arch wiki) has a bit more nuanced output.

Code: Select all

lspci -k | grep -A 2 -E "(VGA|3D)"
https://wiki.debian.org/NvidiaGraphicsD ... figuration
https://wiki.archlinux.org/index.php/NVIDIA

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

#670 Post by rcrsn51 »

Scanner driver packages moved here.
Last edited by rcrsn51 on Sun 20 Oct 2019, 14:25, edited 5 times in total.

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

#671 Post by fredx181 »

Added to first post some links:
Any other suggestions ?

@rcrsn51
Does the installing of the Nvidia driver work as expected after reboot ?
I can't test, but I thought maybe it might be required to regenerate initrd and boot with that.
(how it would be in a full install)

EDIT: Package quick-remaster updated to v 1.1.3 with some improvements:
- Added graphical progress bar (instead xterm window)
- More safe because unmounting mount bind directories with "umount -l")
Install with Synaptic or from terminal:

Code: Select all

apt-get update
apt-get install quick-remaster


Fred
Attachments
quick-remaster.jpg
Quick-remaster progress
(17.33 KiB) Downloaded 1184 times
Last edited by fredx181 on Thu 05 Oct 2017, 22:26, edited 3 times in total.

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

#672 Post by rcrsn51 »

fredx181 wrote:Does the installing of the Nvidia driver work as expected after reboot ?
Yes, with both methods.

Method A still gives the message "missing /boot/initrd.img...", but it doesn't appear to matter.

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

#673 Post by dancytron »

EDIT: Package quick-remaster updated to v 1.1.3 with some improvements:
- Added graphical progress bar (instead xterm window)
- More safe because unmounting mount bind directories with "umount -l")
Install with Synaptic or from terminal:
Just used this. Everything worked as expected.

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

xfce panel plugins

#674 Post by zagreb999 »

regards

on
xfce panel there are duplicate (two instead one!) plugins:
pulseaudio, freememaplet tray....


thanks...

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

#675 Post by rcrsn51 »

Hi Fred:

I updated unzipper here.

Also, I am suddenly having problems running "apt-get update" in my 64bit version of Stretch-Live. Is this me or them?

[Update] It's working now.

Bill

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

#676 Post by rcrsn51 »

I have posted a version of ISObooter designed for Stretch-Live here.

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

#677 Post by rcrsn51 »

There has been some recent forum discussion about the painting program azpainter. I have built packages for it here (i386) and here (amd64).

They were built in the Stretch environment, so there are no additional dependencies.

I have only tested azpainter briefly but it looks OK.

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

#678 Post by fredx181 »

Thanks Bill for your contributions!

Added unzipper and azpainter to repos (didn't test azpainter yet but looks promising)
Also added link to your Isobooter post to the first post of this thread.

Fred

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

#679 Post by belham2 »

Hi Fred,

Just wanted to say "hello", and hope that you & yours are in good health & doing well.

You know, it still knocks my socks off. What you say? It's how----after struggling with my fairly extensive 'frugal' puppy kennel to keep them up-to-date, or fix problems that are always existing (or occurring), or heavens knows what that is always going on with them-----I come back to one of my Ddog installs in my Ddog 'frugal' kennel, and, it's like magic. She boots right up, everything is as I left it, no problems, and the simple grace of opening a terminal, typing in "apt-get update && apt-get upgrade", and sitting back, cradling a cup of Joe, and watching in wonder as the whole system is brought up to date. Browsers, security, programs, the awesome Dogradio, everything---all brought up like the children of Zues given new, invigorated life.

Truthfully, it is almost like Fantasy Island, lol, a bliss and welcome respite.

Below is my 32-bit 'Crystal-frugal' (have a 64-bit one too :wink: ) of FVWM-DDog. A simply stunning and beautiful piece of OS, easily built thanks to you. Thank you for making this (and many other Ddogs I've built) an option with your elegant build script.

Coming back to one of my Ddogs is like coming into a harbor in the tempest, a tempest caused by the continual roiling ocean waters of what exists in the puppy-verse madness. Their menus going astray, icons disappearing, dependencies kept in the dark, and on and on and on and on. It never stops in Puppyland. And, yes, alas, I will go back out to sail in those psychosis-causing waters again....trying to do my part, a small part, to help keep the Puppy-verse alive & well. All the while, though, knowing that the swift, fierce & rocksteady Ddog battleships protect the land and -verse bay. A bay of refuge. A place of understanding. A place of calm & serenity.

Hmmm, I should have been a drunk, an extremely drunk, poet/author in another life, lol 8)
Attachments
Ddog-FVWM-Crystal-32-bit.jpg
(31.12 KiB) Downloaded 416 times

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#680 Post by backi »

Hi Belham,Fred and Everyone .

What a Praise for "The Dogs"...... those beautiful and inspired Pieces of Art and Functionality.

My "Amen" to that .

P.S:
What about a Subsection :

"Poetry for and from crazy "Dog Lovers" ".... A Place for freely expressing ecstatic Adoration for those Gods/Dogs .
Or maybe even founding a " Church of the Dogs " ?

Master of Ceremony .." Belham2 and his "Intergalactic Research Orchestra" ".


Looks like this kind of Madness Belham`s enjoying .....is somehow contagious .
:lol: :lol: :lol:

Post Reply