Monday, July 30, 2012

posted at knoppix net but they take too long to moderate


Hi.  Using Knoppix LiveCD 6.7 and sound worked once last year on this Asus pc and now it just happened to work again.

So I need to document all the settings so I can manually configure them the next time I want sound and it fails to auto configure.

I listed a few areas I thought of here [URL="http://techlinkcorner.blogspot.com/2012/07/suddenly-sound-worked-on-knoppix-livecd.html"]my little link saver site[/URL]

mobo is Asus k8u-x

knoppix@Microknoppix:~$ lsmod
Module                  Size  Used by
ipv6                  204900  18
ppdev                   4123  0
lp                      6090  0
nouveau               444891  2
ttm                    37497  1 nouveau
drm_kms_helper         19152  1 nouveau
8250_pnp                3379  0
parport_pc             24483  1
8250                   15637  1 8250_pnp
floppy                 41359  0
parport                21667  3 ppdev,lp,parport_pc
serial_core            12186  1 8250
snd_intel8x0           19600  3
i2c_ali15x3             3830  0
i2c_ali1535             3678  0
i2c_ali1563             3938  0
k8temp                  2431  0
snd_ac97_codec         77913  1 snd_intel8x0
ac97_bus                 750  1 snd_ac97_codec
uli526x                11083  0

and the line from lspci is here:
00:04.0 Multimedia audio controller: ALi Corporation M5455 PCI AC-Link Controller Audio Device (rev 20)

How would I manually duplicate the current working condition?

Awesome Knoppix Hacks and Seminar on Persistent Settings

<<no longer applies>> :(

and here's someone else validating my problem - no more 'saveconfig' ...just as I started to think I had a solution. :(

http://brownn.wordpress.com/2009/02/16/further-thoughts-on-knoppix-6/

......

This will probably cure my prior posted issue.  Knoppix can save the current configuration!

This guy is awesome, he wrote a book with 100 Knoppix hacks, Kyle Rankin.

Here is his awesome youtube seminar:

Remaster Knoppix without Remastering

http://www.youtube.com/watch?v=OdahQulIcUU

Here is a nice post with someone's favorite hacks that I think I'll be using right now.

http://www.wplug.org/w/images/f/fb/Wplug-top023.txt


Suddenly Sound Worked on Knoppix LiveCD

(add to linux links:  http://www.youtube.com/watch?v=OdahQulIcUU  )

looking for the working settings so I can duplicate it next time it fails:


knoppix@Microknoppix:~$ lspci
00:00.0 Host bridge: ALi Corporation M1689 K8 Northbridge [Super K8 Single Chip]
00:01.0 PCI bridge: ALi Corporation AGP8X Controller
00:02.0 PCI bridge: ALi Corporation M5249 HTT to PCI Bridge
00:03.0 ISA bridge: ALi Corporation M1563 HyperTransport South Bridge (rev 70)
00:03.1 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
00:04.0 Multimedia audio controller: ALi Corporation M5455 PCI AC-Link Controller Audio Device (rev 20)
00:0d.0 Ethernet controller: ALi Corporation ULi 1689,1573 integrated ethernet. (rev 40)
00:0e.0 IDE interface: ALi Corporation M5229 IDE (rev c7)
00:0e.1 Mass storage controller: ALi Corporation ULi 5289 SATA (rev 10)
00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:0f.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:0f.2 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:0f.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)

knoppix@Microknoppix:~$ lsmod
Module                  Size  Used by
ipv6                  204900  18 
ppdev                   4123  0 
lp                      6090  0 
nouveau               444891  2 
ttm                    37497  1 nouveau
drm_kms_helper         19152  1 nouveau
8250_pnp                3379  0 
parport_pc             24483  1 
8250                   15637  1 8250_pnp
floppy                 41359  0 
parport                21667  3 ppdev,lp,parport_pc
serial_core            12186  1 8250
snd_intel8x0           19600  3 
i2c_ali15x3             3830  0 
i2c_ali1535             3678  0 
i2c_ali1563             3938  0 
k8temp                  2431  0 
snd_ac97_codec         77913  1 snd_intel8x0
ac97_bus                 750  1 snd_ac97_codec
uli526x                11083  0 

knoppix@Microknoppix:/etc/modprobe.d$ cat alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }

# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

knoppix@Microknoppix:/proc$ cd asound
knoppix@Microknoppix:/proc/asound$ ls
M5455  card0  cards  devices  oss  pcm  seq  timers  version
knoppix@Microknoppix:/proc/asound$ ls s*
clients  drivers  oss  queues  timer
knoppix@Microknoppix:/proc/asound$ ls -la
total 0
dr-xr-xr-x   5 root root 0 Jul 30 18:50 .
dr-xr-xr-x 112 root root 0 Jul 30 17:52 ..
lrwxrwxrwx   1 root root 5 Jul 30 18:50 M5455 -> card0
dr-xr-xr-x   7 root root 0 Jul 30 18:50 card0
-r--r--r--   1 root root 0 Jul 30 18:50 cards
-r--r--r--   1 root root 0 Jul 30 18:50 devices
dr-xr-xr-x   2 root root 0 Jul 30 18:50 oss
-r--r--r--   1 root root 0 Jul 30 18:50 pcm
dr-xr-xr-x   2 root root 0 Jul 30 18:50 seq
-r--r--r--   1 root root 0 Jul 30 18:50 timers
-r--r--r--   1 root root 0 Jul 30 18:50 version
knoppix@Microknoppix:/proc/asound$ cd card0
knoppix@Microknoppix:/proc/asound/card0$ ls
codec97#0  id  intel8x0  oss_mixer  pcm0c  pcm0p  pcm1c  pcm2p
knoppix@Microknoppix:/proc/asound/card0$ ls -la
total 0
dr-xr-xr-x 7 root root 0 Jul 30 18:50 .
dr-xr-xr-x 5 root root 0 Jul 30 18:50 ..
dr-xr-xr-x 2 root root 0 Jul 30 18:50 codec97#0
-r--r--r-- 1 root root 0 Jul 30 18:50 id
-r--r--r-- 1 root root 0 Jul 30 18:50 intel8x0
-rw-r--r-- 1 root root 0 Jul 30 18:50 oss_mixer
dr-xr-xr-x 3 root root 0 Jul 30 18:50 pcm0c
dr-xr-xr-x 3 root root 0 Jul 30 18:50 pcm0p
dr-xr-xr-x 3 root root 0 Jul 30 18:50 pcm1c
dr-xr-xr-x 3 root root 0 Jul 30 18:50 pcm2p
knoppix@Microknoppix:/proc/asound/card0$ cat id
M5455
knoppix@Microknoppix:/proc/asound/card0$ cat intel8x0
Intel8x0

knoppix@Microknoppix:/proc/asound/card0$ cat oss_mixer 
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "" 0
PCM "PCM" 0
SPEAKER "" 0
LINE "Line" 0
MIC "Mic" 0
CD "CD" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "" 0
LINE1 "Aux" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "IEC958" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "Phone" 0
PHONEOUT "Master Mono" 0
VIDEO "Video" 0
RADIO "" 0
MONITOR "" 0
knoppix@Microknoppix:/proc/asound/card0$ cd codec97#0/
knoppix@Microknoppix:/proc/asound/card0/codec97#0$ ls
ac97#0-0  ac97#0-0+regs
knoppix@Microknoppix:/proc/asound/card0/codec97#0$ ls -la
total 0
dr-xr-xr-x 2 root root 0 Jul 30 18:51 .
dr-xr-xr-x 7 root root 0 Jul 30 18:50 ..
-r--r--r-- 1 root root 0 Jul 30 18:51 ac97#0-0
-r--r--r-- 1 root root 0 Jul 30 18:51 ac97#0-0+regs
knoppix@Microknoppix:/proc/asound/card0/codec97#0$ cat ac97#0-0
0-0/0: Analog Devices AD1888

PCI Subsys Vendor: 0x1043
PCI Subsys Device: 0x810d

Flags: 10
Capabilities     : -headphone out-
DAC resolution   : 20-bit
ADC resolution   : 16-bit
3D enhancement   : No 3D Stereo Enhancement

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID      : codec=0 rev=0 AMAP LDAC SDAC CDAC DSA=0 SPDIF DRA VRA
Extended status  : SPCV LDAC SDAC CDAC SPDIF=3/4
PCM front DAC    : 48000Hz
PCM Surr DAC     : 48000Hz
PCM LFE DAC      : 48000Hz
PCM ADC          : 48000Hz
SPDIF Control    : Consumer PCM Copyright Category=0x22 Generation=1 Rate=48kHz



AD18XX configuration
Unchained        : 0x1000,0x0000,0x0000
Chained          : 0x0000,0x0000,0x0000
knoppix@Microknoppix:/proc/asound/card0/codec97#0$ cat ac97#0-0+regs
0:00 = 0090
0:02 = 1f1f
0:04 = 0404
0:06 = 0008
0:08 = 0000
0:0a = 0000
0:0c = 801f
0:0e = 801f
0:10 = 0808
0:12 = 0808
0:14 = 0000
0:16 = 9f9f
0:18 = 0808
0:1a = 0000
0:1c = 8080
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 03c7
0:2a = 05c0
0:2c = bb80
0:2e = bb80
0:30 = bb80
0:32 = bb80
0:34 = 0000
0:36 = 9f80
0:38 = 9f9f
0:3a = 2a20
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 8080
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0004
0:74 = 1001
0:76 = 6420
0:78 = 0000
0:7a = 0000
0:7c = 4144
0:7e = 5368
knoppix@Microknoppix:/proc/asound/card0/codec97#0$ 

Alsa and some Linux distros not working with ASUS k8u-x

http://lists.debian.org/debian-amd64/2006/03/msg00190.html

http://permalink.gmane.org/gmane.linux.alsa.user/22879

http://forum.linhes.org/viewtopic.php?f=2&t=9190

http://lists.debian.org/debian-amd64/2006/03/msg00191.html


Monday, July 23, 2012

discussion of live linux cd's and security

discussion of live linux cd's and security

http://www.wilderssecurity.com/showthread.php?t=115012

How to get chrome for linux into ubuntu

How to get chrome for linux into ubuntu

http://www.liberiangeek.net/2011/12/install-google-chrome-using-apt-get-in-ubuntu-11-10-oneiric-ocelot/

fascinating...

This worked for me while using the Live CD Ubuntu 10.04.3 LTS

Interesting that you can update software in the virtual folder tree while using a live cd.


Wednesday, July 18, 2012

Flash in Lubuntu Live CD and Sound Issue Solved

Ausu K8U-X motherboard 500mb ram, sempron cpu

Problems

no flash included in Lubuntu Live CD version 11.04

no sound unless startx as root

chromium browser wouldn't run as root

synaptic gui software installer would only run as root

error from trying to install flash this way:

   sudo apt-get install flashplugin-nonfree

error:


download failed
The Flash plugin is NOT installed.


(see end for more on error)

So I could install flash as root and have sound, but not run the browser, or I could run the browser but have no sound, or I could install flash, run browser as non-root user but have no sound!

So I had to do the following:

1
Find the working package from when I ran gui as root from synaptic.
It is called:
 browser-plugin-gnash

then from command line as root do this:

  sudo apt-get install browser-plugin-gnash

this actually worked, no errors.

2
Start up gui as root

  sudo startx

3
Run Chromium browser as root with the requirements that came from the error message.

In a terminal enter:

  chromium-browser --user-data-dir=/home/ubuntu

4
Also had to right-click on the task bar to add the volume control

Youtube works, but BBC and Bloomberg radio didn't, I may need to install some other form of flash or something, I'll work on it.


This following path didn't work:

Find out the non-root username with "whoami" before any "sudo su"

  whoami

non-root username for Lubuntu Live CD is:  ubuntu

Open up a terminal from the gui desktop and log in as ubuntu since starting it as root with sudo makes everything done in it as root.

Start the browser from the terminal as ubuntu user

To do that I had to find the command that the gui shortcut is using by getting the properties of it from the start menu and entering it into the terminal, however this failed as user ubuntu!

The error for not starting as root, however, was actually useful and helpful to me!

It said that it just needed a home directory so I did step 3, above.


Original full error:



download failed
The Flash plugin is NOT installed.
dpkg: error processing flashplugin-downloader (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up libasound2-plugins (1.0.24-0ubuntu6) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 flashplugin-downloader
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ask Ubuntu FAQ

Ask Ubuntu FAQ: http://askubuntu.com/questions?sort=faq