-
USB sound on Alix running Voyage
Posted on May 18th, 2011 2 commentsI thought that using a USB sound card with Linux would be easy, just plug and play, but I was wrong, it seems. Plugging in the Terratec Aureon Dual USB (ID: 0ccd:0077) that I bought rendered a promising output from dmesg and lsusb, and lsmod showed that even relevant modules were loaded. The problem was that mpd and other programs did not find any way to actually output sound to any device. They had the firm belief that my system was lacking any sound card. Maybe I would need some sound related packages?
aptitude install alsa-base alsaplayer alsaplayer-text alsa-utils
No luck… The mpd configuration file /etc/mpd.conf seemed mostly confusing when it came to output devices, and the wiki page it referred to did not help either. A search with Google on the USB ID was helpful though, as usual. Someone with the alias BigRon also had problems with Debian and this Terratec USB sound card. The results from his attempts, documented with verbose output, was similar to mine. User bandan’s reply was the beginning of the end of my trouble! I had to edit /etc/modprobe.d/alsa-base.conf to comment out a line preventing USB devices from becoming the first (default) device, substituting it for a line with the opposite effect.
## Keep snd-usb-audio from beeing loaded as first soundcard<br/> #options snd-usb-audio index=-2
# Fix from http://forum.doozan.com/read.php?2,4119,4166<br/>- Allow snd-usb-audio to be loaded as first soundcard options snd-usb-audio index=0
Now I was at least able to get alsamixer to acknowledge the mere existence of a sound related device, but alas it chose an input only device (most likely my Logitech webcam with microphone) as the default device even though it called the Terratec one default by name. Luckily for me the just mentioned forum thread linked to a more substantial thread describing the problem in more depth. I added myself and the mpd user to the audio group, to make sure that there would not be any problems with permissions regarding the devices
addgroup jadler audio addgroup mpd audio
I was still unable to play anything (without explicitly chosing what Alsa refers to as sound card 1). So I kept trying the stuff that had worked for the person reporting in the forum, creating an /etc/asound.conf file with basically the same content as suggested in the last thread referred to above, but changing all references to hw:0 to hw:1, and from card 0 to card 1. Now mplayer works, but I still can’t get mpd to do its thing. -
Alix2d13 — Voyage Linux or Debian Live?
Posted on May 12th, 2011 No commentsI am not sure whether it is caused by the Ubuntu 10.10 amd64 running on my workstation or on some bug in the Emdebian package, but I do have a hard time to get Emdebian installed. I have tried Multistrap, Debootstrap, and Debian Installer, and I have done it on the Alix computer using PXE boot, on my workstation (followed by chroot etc), and on virtual machines using qemu/kvm or Virtualbox, but so far no luck.
All of this makes it less and less attempting to actually install any Emdebian based Debian, and so I gradually turned back to Voyage Linux. When I was browsing the Voyage site I learned about Debian Live, the system that “punkytse” uses to create the Voyage images, and also offers for download under tha name “Voyage SDK”. So now I am testing Debian Live and trying to learn more about it.
The wiki and the manual seems to be a good place to start when learning about Debian Live.
For those interested in PC Engines Alix the Alix forum may also be a good source of information.
(I should really find a better WordPress theme, I know…)
-
Installing Linux on PC Engines Alix2d13 (part 2)
Posted on May 8th, 2011 No commentsI have found it to be quite nice to be able to boot the Alix board over the network using PXE. Using the Debian netboot.tar.gz tarball and TFTP I can boot the Debian Installer or a rescue system, and the former lets me install Debian Linux without physically touching the CF.
In order to make netboot use the serial port as console I have patched the Debian netboot tarball, and I made a script that does all the patching, just for you…
I have tested it with the Debian stable and testing netboot.tar.gz downloaded today and it works, and also with the daily snapshot from Debian installer.
The script will modify the file syslinux.cfg in order to make PXELinux use the serial port, and the files adtxt.cfg, rqtxt.cfg and txt.cfg to make sure that the Linux kernel (actually the Debian installer in this case) also uses the serial port as console. (Look at the script to see the actual changes. You should of course have a look at it before running it, anyway.)
Making my ancient Netgear WGT634U running OpenWRT serve PXE images was really a no-brainer. In the Services/Dnsmasq page I entered the three choices shown below, with the patched netboot untarred on a USB stick mounted on /mnt/sda2.
References (other that links above):
- http://www.debian.org/releases/stable/i386/ch04s05.html.en—about setting up a TFTP server for netboot.
- http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html—as above, for dnsmasq
- http://www.debian-administration.org/articles/478—more on dnsmasq
- http://etherboot.org/wiki/dnsmasq—even more on dnsmasq and PXE
Some more patching lets me use preseeding too, but more on that another time. -
WordPress, säkerhetsuppdatering, 2.3.3
Posted on February 5th, 2008 No commentsJag ser att det har släppts ännu en brådskande säkerhetsuppdatering för WordPress.
Ryan skriver:
WordPress 2.3.3 is an urgent security release. A flaw was found in our XML-RPC implementation such that a specially crafted request would allow any valid user to edit posts of any other user on that blog. In addition to fixing this security flaw, 2.3.3 fixes a few minor bugs. If you are interested only in the security fix, download the fixed version of xmlrpc.php and copy it over your existing xmlrpc.php. Otherwise, you can get the entire release here.
Also, there is a vulnerability in the WP-Forum plugin that is being actively exploited right now. If you are using this plugin, please remove it until an update is available.
Since we are talking security, remember to use strong passwords and change them regularly. While you’re updating WP and your plugins, consider refreshing your passwords.
Det känns tryggt att det kommer nya säkerhetsuppdateringar ofta, även om jag ärligt talat inte har installerat den förra än. Vad jag kan se i bulletinen så är det inte säkerhetshål som berör mig särskilt mycket. Jag har inga sparade utkast, och skulle någon läsa eventuella sådana skulle det inte göra mig så mycket. Jag är ensam användare på min egen blogg, så den senaste varningen rör mig nog inte heller.På sätt och vis känns det, åtminstone för mig personligen, som att dessa täta uppdateringar och den inte helt automagiska proceduren för att uppgradera, gör att jag gärna väntar ett tag innan jag uppgraderar. Väntar jag som nu drygt en månad så kanske det kommer ännu en ny uppdatering, och det är lika mycket (eller lite) jobb att uppgradera oavsett hur många (mindre) versionssteg det gäller. Som Debian-användare är jag väl bortskämd, van som man är att kunna uppgradera hela linux-installationen med två ord: ‘apt-get upgrade’…
Andra bloggar om: WordPress, säkerhet, uppdatering
-
MySQL, Sun och DN:s inkompetens
Posted on January 17th, 2008 No commentsMin första text om att Sun köper MySQL blev kort, men det är inte något jag slutar tänka på.
Jag kan inte annat än hålla med bloggaren på Digital Media. DN har verkligen klantat sig. Jag kanske är lite partisk med tanke på mitt snart 30-åriga datorintresse, men jag har faktiskt svårt att förstå att de inte tar med uppköpet av MySQL på förstasidan, inte bara som en liten anonym blänkare på två rader på ekonomidelens omslag. Vore jag redaktör vore det förstasidesstoff, och jag skulle se till att en skribent som vet vad det handlar om skriver artikeln.
Cecilia Jacobsson må vara en bra journalist, därom kan jag inte uttala mig, men det är patetiskt uppenbart att hon inte är insatt i IT. Dels kan hon inte stava till MySQL (utan särskriver det som My SQL), dels har hon uppenbarligen ingen aning om vad som menas med öppen källkod eller open source (FOSS). Hon skriver att gratis nedladdning är synonymt med öppen källkod—jag må vara skadad av mina många år som datorintresserad, men jag tycker ändå att en skribent som inte förstår skillnaden mellan vad t.ex. WinAMP och GIMP står för inte borde få skriva en artikel som denna.
Påståendet att MySQL är en del av Linux kanske man måste tolerera, även om många av oss vet bättre. Visst ingår MySQL i många linuxdistributioner, installeras det inte automatiskt så har man i alla fall möjligheten att installera det. Att Linux är kärnan, kernel, och att alla andra program som ingår i en distribution inte per automatik är synonymt med Linux kanske jag motvilligt måste acceptera att en glad datoramatör inte kan förstå (även om det bär emot). Att MySQL åtminstone i begreppet LAMP är jämställt med både Linux-kärnan, Apache och PHP verkar ha gått Cecilia helt förbi.
Det är inte utan att det känns lite tråkigt att inte någon av oss som läser och förstår detta kunde ha fått skriva artikeln istället. För mig är det en världsomskakande händelse, och jag tycker verkligen att DN borde ha tillräcklig pejl på omvärlden för att inse det.
Andra bloggar om: DN, MySQL, MySQL, öppen källkod, open source, FOSS, Linux, Apache, PHP
Datorer, PHP, Programmering öppen källkod, blogg, DN, FOSS, linux, MySQL, open source


