Nice!Originally Posted by Jean Béliveau
If your sound card works with alsa
you can add the line
/etc/init.d/alsa-autoconfig
in the boot script /etc/init.d/bootmisc.sh
And alsa ver will be actived at eaxh boot.
Also i suggest to add in the KNOPPIX/usr/local/bin/knx-hdinstall some lines like the folling:
# add alsa activation to bootmisc.sh
# In the boot script /etc/init.d/bootmisc.sh if you add line
# /etc/init.d/alsa-autoconfig
# Alsa server start at boot and it ok for my kde.
# In the KNOPPIX/usr/local/bin/knx-hdinstall of my personalized KNOPPIX I have add some line like:
if checkbootparam alsa >/dev/null 2>&1; then
ALSA_CARD="$(getbootparam 'alsa' 2>/dev/null)"
[ -n "$ALSA_CARD" ] || ALSA_CARD="autodetect"
else
ALSA_CARD="autodetect"
fi
noalsa=""
checkbootparam noalsa && noalsa='#'
checkbootparam noaudio && noalsa='#'
checkbootparam nosound && noalsa='#'
checkbootparam NOALSA && noalsa='#'
checkbootparam NOAUDIO && noalsa='#'
checkbootparam NOSOUND && noalsa='#'
echo "# Boot parameter for knx-hdinstall add">>$TR/etc/init.d/bootmisc.sh
echo "# "$CMDLINE >>$TR/etc/init.d/bootmisc.sh
echo "# KNOPPIX/usr/local/bin/knx-hdinstall add " >>$TR/etc/init.d/bootmisc.sh
echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"ALSA_CARD="$ALSA_CARD >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"/etc/init.d/alsa-autoconfig" >>$TR/etc/init.d/bootmisc.sh
# So the script knx-hdinstall add /etc/init.d/alsa-autoconfig
# at the boot script /etc/init.d/bootmisc.sh.
# May be a futur version of knx-hdinstall can
# transmit.some parameters to alsa and
# set USE_ALSA="" if alsa are detected unsafe.
# Also this option can be offer like for the CUPS server./
Nice!Originally Posted by Jean Béliveau
hopefully this appears soon in next knoppix iso update!
Thats a nice idea, but it is the wrong fix.Originally Posted by Jean Béliveau
You just have to run alsa-autoconfig ONCE after an hd-install. (So you could detect it as well and then chroot to it, and do it once.)
Another possibillity is to cp /etc/modutils/1alsa /etc/modutils/alsa-knx-0.9 or similar to /mnt/target/etc/modutils +
cp /etc/modules.conf /mnt/target/etc/
Though you have to add in both choices to bootmisc.sh:
aumix -w 60 -v 60
cu
Fabian
I have test knx-hdinstall wth the folling uncommented line instead of the line of my late post
on alsa after knx-hdinstall.:
noalsa=""
checkbootparam noalsa && noalsa='# '
checkbootparam noaudio && noalsa='# '
checkbootparam nosound && noalsa='# '
echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh
# use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix
I was inspired of the folling lignes in knx-hdinstal:
# use Knoppix-generated XF86Config
cp -af /etc/X11/XF86Config $TR/etc/X11/XF86Config
cp -af /etc/X11/XF86Config-4 $TR/etc/X11/XF86Config-4
1alsa and alsa-0.9-knoppix are copied in /etc/modutils/ of the target partition
and "aumix -w 60 -v 60" ais added to bootmis.sh
But sound card not work on reboot on target partition!
So i need more explanation froim fabianx
if checkbootparam alsaOriginally Posted by Jean Béliveau
then
echo "# line to unmute the mixer (eso. needed for alsa)" >>$TR/etc/init.d/bootmisc.sh
echo "aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh
# use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix
chroot $TR depmod -a
fi
That should work, or try:
if checkbootparam alsa
then
echo "# line to unmute the mixer (eso. needed for alsa)" >>$TR/etc/init.d/bootmisc.sh
echo "aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh
chroot $TR /etc/init.d/alsa-autoconfig
fi
cu
Fabianx
Presumably, the purpose of using Knoppix as a Linux hard disk installer is to cut through the installation clutter/delay/problems that so many distros seem to have.Originally Posted by Fabianx
The "correct fix" is to take a snapshot of the Knoppix environment as tweaked by a user after detection of hardware and other boot up issues from the live-on-cd execution and then use those exact settings within a on-the-fly, modified knx-hdinstall script.
You might think it's the "wrong fix", but then again, your frame of reference might be off. After all, a battleship can't intimidate a lighthouse into moving out of its path.
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
FOR PARTS - HPE ProLiant MicroServer Gen10 Plus Server
$199.95
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
Supermicro CSE-825-7 X10DRW-i 2 Xeon E5-2667v4 3.2GHz SAS3 2U One Power Supply
$219.75
SuperMicro Server E3-1230v6 X11SSL-F 32GB RAM (2x16GB)
$150.00
HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon
$846.48
HP Proliant MicroServer Gen8 Xeon E3-1220L V2 2.30GHz CPU 16GB RAM *No HDD*
$149.99
SuperMicro 815-7 | 2x Xeon Gold 6128@3.4GHz | 128GB RAM | 2x PSU *NO OS/HDD*
$497.99
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00