Page 1 of 1
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Thu Apr 14, 2022 8:04 pm
by dcung
I just saw this thread.
I did some test with help from Fred and Bill a while ago.
Nvidia GeForce 7900GS (in PCs) and nvidia quadro (in Dell D630 laptops).
viewtopic.php?t=3062
viewtopic.php?t=3062&hilit=nvidia&start=39
I downloaded yours and tested it.
Thank you @gumanzoy. Your custom build shows that with the skill and knowledge like yourself, nvidia driver (in Dell D630 laptops with nvidia quadro) can work in Bullseye.
I attempted to redo installing nvidia driver (only with newer kernel) hoping to update the old post, but still could not achieve like you had. I lack the know how. If you have pointers or hint for me to make custom build for Dell D630 nvidia driver, I appreciate it and will experiment with it again - interested to get old nvidia driver working in Bullseye for my D630.
Apart from attempting to redo, I tried to put your nvidia squash in a vanilla Bullseye, hoping for 'miracles' and it didn't work.
Here's a screenshot of your custom build on a Dell D630 -> works great! 
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Fri Apr 15, 2022 6:13 am
by dcung
Updated/corrected my old post to reflect that it is possible to have legacy nvidia n340 driver in Bullseye.
viewtopic.php?t=3062&hilit=nvidia&start=47
I just don't know how...
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Fri Apr 15, 2022 8:56 am
by gumanzoy
@dcung
I use this version nvidia-graphics-drivers-legacy-340xx (340.108-10) unstable
You can add it from snapshot
https://snapshot.debian.org/archive/deb ... acy-340xx/
Code: Select all
deb https://snapshot.debian.org/archive/debian/20210501T031424Z/ sid main contrib non-free
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Fri Apr 15, 2022 9:37 am
by dcung
@gumanzoy
viewtopic.php?t=3062&hilit=nvidia&start=48
I just got it working. I found some postings and followed it. They were using this repo.
I just use Fred's minimal build with kernel k-5.10.0-13-amd64
Code: Select all
# Debian Sid
deb http://deb.debian.org/debian/ sid main contrib non-free
If I didn't see your post and test your custom build, I didn't know for sure that Bullseye will install n340 driver. So, thank you!
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Sun Apr 24, 2022 10:26 am
by fredx181
Ilianaroe wrote: Sun Apr 24, 2022 10:01 am
dcung wrote: Fri Apr 15, 2022 9:37 am
@gumanzoy
https://forum.puppylinux.com/viewtopic.php?t=3062&hilit=nvidia&start=48
I just got it working. I found some postings and followed it. They were using this repo.
I just use Fred's minimal build with kernel k-5.10.0-13-amd64
Code: Select all
# Debian Sid
deb http://deb.debian.org/debian/ sid main contrib non-free
If I didn't see your post and test your custom build, I didn't know for sure that Bullseye will install n340 driver. So, thank you!
Will you please share those reddits links? It will be really helpful for me
I think those reddit links are shared here: viewtopic.php?p=54972#p54972
EDIT: As stated in one of these reddit posts https://www.reddit.com/r/debian/comment ... &context=3:
then reboot and all is working with the proprietary driver. I then removed the repository from apt sources.list
Important IMO to remove the Sid repo from sources.list after done, otherwise you get a mixed Bullseye/Sid system, which I wouldn't recommend (sooner or later gives problems).
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Sun Apr 24, 2022 11:41 pm
by dcung
fredx181 wrote: Sun Apr 24, 2022 10:26 am
Important IMO to remove the Sid repo from sources.list after done, otherwise you get a mixed Bullseye/Sid system, which I wouldn't recommend (sooner or later gives problems).
Yes
, I did it on a 'disposable' install, ie. delete afterward. Only did it to satisfy my curiosity.
Now I know, StretchDog, BusterDog, Bullseye, and Sid can install the driver on this old laptop of mine. I still use StretchDog mainly though.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 5:45 am
by gumanzoy
Update 2022.07.12
Fresh rebuild 01-filesystem.squashfs. Add man-db and keep eng manpages.
Add i386 libs to amd64 build: libjpeg62-turbo:i386 libncursesw5:i386 libncursesw6:i386 libstdc++6:i386 libxcursor1:i386 libxext6:i386 libxft2:i386 libxinerama1:i386 zlib1g:i386 libpng12-0:i386
Modify build script mklive-bullseye
mklive-bullseye-gumanzoy -cli mklive-bullseye64-xfce-gumanzoy.conf
Code: Select all
+[ "$ARCH" = "amd64" ] && dpkg --add-architecture i386
Disable smartd
Code: Select all
+echo path-exclude=/etc/init.d/smartmontools > etc/dpkg/dpkg.cfg.d/smartd
+echo path-exclude=/usr/sbin/smartd >> etc/dpkg/dpkg.cfg.d/smartd
libpng12 install
Code: Select all
+if [ "$ARCH" = "amd64" ]; then
+! [ -f var/cache/apt/archives/libpng12*_i386.deb ] && \
+wget --no-check-certificate https://github.com/doglinux/bulldog/raw/master/i386/libpng12-0_1.2.50-2+deb8u3.2_i386.deb \
+-P var/cache/apt/archives
+dpkg --force-overwrite -i var/cache/apt/archives/libpng12*_i386.deb
+fi
I prefer to keep eng manpages, but delete /usr/share/doc and /usr/share/info
Copy code from livekit Slax cleanup to ungzip manpages.
Code: Select all
+# Unzip gzipped files (man pages), so LZMA can compress 2times better.
+# First we fix symlinks, then uncompress files
+# $1 = search directory
+uncompress_files()
+{
+ local LINK LINE
+
+ find "$1" -type l -name "*.gz" | while read LINE; do
+ LINK="$(readlink "$LINE" | sed -r 's/.gz$//')"
+ FILE="$(echo "$LINE" | sed -r 's/.gz$//')"
+ ln -sfn "$LINK" "$FILE"
+ rm -f "$LINE"
+ done
+ find "$1" -type f -name "*.gz" | xargs -r gunzip
+}
+
+uncompress_files etc/alternatives
+
if [ "$KEEPMANDOC" = "FALSE" ]; then
find /usr/share/doc -type f -exec rm -f {} 2> /dev/null \;
find usr/share/man -type f -exec rm -f {} 2> /dev/null \;
find usr/share/gtk-doc -type f -exec rm -f {} 2> /dev/null \;
find usr/share/info -type f -exec rm -f {} 2> /dev/null \;
chown -R man:root usr/share/man
+else
+find usr/share/doc -type f -exec rm -f {} 2> /dev/null \;
+find usr/share/gtk-doc -type f -exec rm -f {} 2> /dev/null \;
+find usr/share/info -type f -exec rm -f {} 2> /dev/null \;
+rm -f usr/local/bin/man
+rm -fr usr/share/man/??
+rm -fr usr/share/man/??.*
+rm -fr usr/share/man/*_*
+uncompress_files usr/share/man
+ chown -R man:root usr/share/man
fi
Add same behavior to apt2sfs, apt2sfs-fullinst and remastercow scripts.
Make /usr/local/lib/cleanup function and import it to scripts.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 9:14 am
by fredx181
Hi @gumanzoy , first, thanks for your work !
But... tried your mklive mod by running ./mklive-bullseye-gumanzoy -cli mklive-bullseye64-xfce-gumanzoy.conf
and failed because debootstrap not found.
I noticed that you commented out download and install debootstrap, any reason for that ?
Code: Select all
# wget --no-check-certificate http://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.89_all.deb -O debootstrap_1.0.89_all.deb
# dpkg -i debootstrap_1.0.89_all.deb
Uncommented these lines and the build went fine.
Note that the older debootstrap version is on purpose, once I tried newest version and it didn't follow the --no-merged-usr
switch, which is needed, otherwise e.g. /bin /lib become symlinks which may conflict with some custom programs, e.g. remaster and with sfs loading.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 9:27 am
by gumanzoy
fredx181 wrote: Mon Jul 25, 2022 9:14 am
Note that it's on purpose that it's an older debootstrap version, once I tried newest version and it didn't follow the --no-merged-usr
switch, which is needed, otherwise e.g. /bin /lib become symlinks which may conflict with some custom programs, e.g. remaster and with sfs loading.
debootstrap 1.0.123 from bullseye (my host system) works fine with --no-merged-usr
I use this version for my builds.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 9:32 am
by fredx181
gumanzoy wrote: Mon Jul 25, 2022 9:27 am
fredx181 wrote: Mon Jul 25, 2022 9:14 am
Note that it's on purpose that it's an older debootstrap version, once I tried newest version and it didn't follow the --no-merged-usr
switch, which is needed, otherwise e.g. /bin /lib become symlinks which may conflict with some custom programs, e.g. remaster and with sfs loading.
debootstrap 1.0.123 from bullseye (my host system) works fine with --no-merged-usr
I use this version for my builds.
Ok, but still the script should install debootstrap IMO (1.0.123 then if you prefer), it's a dependency.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 9:51 am
by gumanzoy
fredx181 wrote: Mon Jul 25, 2022 9:32 am
Ok, but still the script should install debootstrap IMO (1.0.123 then if you prefer)
I commented it out. Because debootstrap already installed in my system. And i don't suggest this patch for general version of script.
But if no have debootstrap - script show msg "You don't have debootstrap installed.\nIt's a dependency of this program.\n Please install it."
Maybe it will be good to have separate options KEEPMAN KEEPDOC KEEPINFO
and if KEEPMAN="TRUE", but KEEPLOCALES="FALSE" - delete manpages other than eng.
Re: Share my BullseyeDog LiveUSB custom build for hardware testing (nvidia-drivers, GPUTest)
Posted: Mon Jul 25, 2022 3:22 pm
by fredx181
gumanzoy wrote:I commented it out. Because debootstrap already installed in my system. And i don't suggest this patch for general version of script.
But if no have debootstrap - script show msg "You don't have debootstrap installed.\nIt's a dependency of this program.\n Please install it."
Yes, that's right.
Maybe it will be good to have separate options KEEPMAN KEEPDOC KEEPINFO
and if KEEPMAN="TRUE", but KEEPLOCALES="FALSE" - delete manpages other than eng.
Good ideas, but at the moment I'm not sure if I'll do that, it's rather complicated to implement in the GUI and CLI (and also in the .conf files) (and the script is already over-complicated IMO)