Let's install the latest version of Advanced Linux Sound Architecture (ALSA) in Ubuntu...
What is the latest version?
Go to ALSA Download Page and find out the Stable Release versions for alsa-driver
, alsa-lib
and alsa-utils
. The current versions are 1.0.22.1, 1.0.22 and 1.0.22 respectively. Keep the version numbers, we will use it very shortly...
Check the current version of ALSA installed in the machine...
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Compiled on Jan 28 2010 for kernel 2.6.31-14-generic (SMP).
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Compiled on Jan 28 2010 for kernel 2.6.31-14-generic (SMP).
If it is the latest version, then no need to proceed further, you are up-to-date :)
Setup Script
Copy the below code to your favorite editor and save the file as
setup-alsa.sh
. Change the variables DRIVER_VERSION, LIB_VERSION and UTILS_VERSION to the latest version numbers found out earlier (put just the version).#!/bin/sh
# ----------
# ALSA Setup
# ----------
# ---- Modify Here ----
DRIVER_VERSION=1.0.22.1
LIB_VERSION=1.0.22
UTILS_VERSION=1.0.22
# ---- Modify Here ----
# On Error
error() {
echo "ERROR!!!"
exit
}
# Stop ALSA
sudo /etc/init.d/alsa-utils stop
if [ $? -ne 0 ]; then
error
fi
# Install Tools
sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev
if [ $? -ne 0 ]; then
error
fi
# Cleanup
rm -rf ~/alsa* ~/.pulse*
# Create Folder
sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
if [ $? -ne 0 ]; then
error
fi
# Download
sudo wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-$DRIVER_VERSION.tar.bz2
sudo wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$LIB_VERSION.tar.bz2
sudo wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$UTILS_VERSION.tar.bz2
if [ $? -ne 0 ]; then
error
fi
# Unpack
sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*
if [ $? -ne 0 ]; then
error
fi
# Setup Driver
cd alsa-driver*
sudo ./configure
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
# Setup Lib
cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
# Setup Utils
cd ../alsa-utils*
sudo ./configure
if [ $? -ne 0 ]; then
sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so
sudo ./configure
fi
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
echo -e "\nRestart your computer, run \"sudo alsaconf\" and restart again..."
# COMPLETE
# ----------
# ALSA Setup
# ----------
# ---- Modify Here ----
DRIVER_VERSION=1.0.22.1
LIB_VERSION=1.0.22
UTILS_VERSION=1.0.22
# ---- Modify Here ----
# On Error
error() {
echo "ERROR!!!"
exit
}
# Stop ALSA
sudo /etc/init.d/alsa-utils stop
if [ $? -ne 0 ]; then
error
fi
# Install Tools
sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev
if [ $? -ne 0 ]; then
error
fi
# Cleanup
rm -rf ~/alsa* ~/.pulse*
# Create Folder
sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
if [ $? -ne 0 ]; then
error
fi
# Download
sudo wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-$DRIVER_VERSION.tar.bz2
sudo wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$LIB_VERSION.tar.bz2
sudo wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$UTILS_VERSION.tar.bz2
if [ $? -ne 0 ]; then
error
fi
# Unpack
sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*
if [ $? -ne 0 ]; then
error
fi
# Setup Driver
cd alsa-driver*
sudo ./configure
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
# Setup Lib
cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
# Setup Utils
cd ../alsa-utils*
sudo ./configure
if [ $? -ne 0 ]; then
sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so
sudo ./configure
fi
sudo make
sudo make install
if [ $? -ne 0 ]; then
error
fi
echo -e "\nRestart your computer, run \"sudo alsaconf\" and restart again..."
# COMPLETE
Change file permission and execute script.
$ chmod +x setup-alsa.sh
$ ./setup-alsa.sh
$ ./setup-alsa.sh
If it completes successfully... ALSA is installed... reboot the machine...
Check the version, it must show the latest version...
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Compiled on Jan 28 2010 for kernel 2.6.31-14-generic (SMP).
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Compiled on Jan 28 2010 for kernel 2.6.31-14-generic (SMP).
Run
alsaconf
and reboot again...$ sudo alsaconf
Voila!!! Done...
Reference: Upgrade Alsa (1.0.22.1) on Ubuntu Karmic Koala 9.10
12 comments:
I applaud whomever took the time to put that together. It is a well thought out instructional piece.
I ran the script;
It downloaded the files and restarted the machine
I executed the command:
sudo alsaconfig
it responded:
sudo: alsaconfig: command not found
I had sound before doing this; now i have NO SOUND.
Not a good thing!
DANGER! DANGER! DANGER! Will Robinson. Folks stay away from this one.
@rj:
Thanks rj... it was a typo... it is alsaconf...
Just so you know, I had to switch:
# Stop ALSA
sudo /etc/init.d/alsa-utils stop
with
sudo /sbin/alsa-utils stop
I'm using ubuntu 10.04
The file /lib/modules/2.6.35-22-generic/build/include/linux/autoconf.h does not exist.
Please install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory with kernel sources (default is /lib/modules/2.6.35-22-generic/build).
I want to try to install ALSA onto my system with a patch file that I received which is supposed to support my hardware.
I'm using Ubuntu 10.10, I've tried to use apt-get to install kernel-sources, I also downloaded the same kernel I have (2.6.35) from kernel.org ... good lord I'm such a newb :(
I've tried installing alsa in Mint 10 a couple of times and keep getting the same errors. I have a .doc of my terminal window of the attempt. Can you help?
@belue I can take a look. Sent across to webmaster@atoztoa.com...
Interesting…
mumbaiflowerplaza.com
شركة تنظيف بالرياض
شركة تنظيف منازل بالرياض
شركة تنظيف فلل بالرياض
شركة تنظيف شقق بالرياض
شركة تنظيف خزانات بالرياض
شركة جلي بلاط بالرياض
شركة تنظيف بيوت بالرياض
شركة تنظيف مجالس بالرياض
شركة نقل اثاث بالرياض
شركة نقل عفش بالرياض
شركة تخزين اثاث بالرياض
كشف تسربات المياه
شركة عزل خزانات بالرياض
شركة مكافحة حشرات بالرياض
شركة رش مبيدات بالرياض
شركة مكافحة النمل الابيض بالرياض
شركة عزل بالرياض
افضل شركة دهانات بالرياض
شركة تنظيف خزانات بالرياض
شركة تنظيف بالرياض
شركة مكافحة حشرات بالرياض
شركة رش مبيدات بالرياض
شركة مكافحة النمل الابيض بالرياض
TS DSC 2017
Telangana DSC 2017
TS DSC Notification 2017
TS DSC Model Papers 2017
Sakshi TS DSC Model Papers 2017
Namasthe Telangana TS DSC Model Papers 2017
TS DSC District wise Vacancies list 2017
Post a Comment