Configuring the audio and updating ALSA for CentOS and RHEL 5

Author(s)

Bill Giannikos

Introduction

This guide will help update your version of the ALSA modules under Fedora 8. This is useful for people who's sound is not currently working with their current version of ALSA. For those that don't know, CentOS 5 and Red Hat Enterprise Linux 5 are basically the same thing just with a different name so this guide applies to both.

Notes

We will be using 'nano' as our text editor of choice but you can use whatever you wish.

While this guide is mainly focused to laptop users there isn't any difference for desktop users.

Prerequisites

You should run a full update for your installation to ensure you have all the latest packages installed.

Installing the latest stable ALSA modules

For an easy install we will be using the ATrpms repository.

1. Load up a terminal window if you are in the graphic interface.

2. Switch to the root user by entering the command “su -” (without the quotes) and typing in your root password

3. Edit the file /etc/yum.conf. Using nano we type the command:

nano -w /etc/yum.conf

4. If you have already configured yum to use the ATrpms repository then append “*alsa*” to the end of the “includepkgs” line and skip the next setup. Otherwise continue on.

5. Add the following to the bottom of this file:

[atrpms]
name=EL $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=1
exclude=*kmdl*i586*
includepkgs=*alsa*

6. Save the file. In nano you press Ctrl-X, answer yes to the “Save modified buffer” question and then press enter on the file name to write.

7. If you have not previously setup ATrpms execute the following command:

rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

8. Now execute the following command:

yum install alsa-driver alsa-kmdl-`uname -r`

9. Reboot your system and you will be using the updated ALSA module.

Remember that you may need to adjust your volume settings.

If this guide didn't work

If this guide did not work you may like to view the general Configuring the audio guide or use the Audio Tester.


Discussion

Lalit, 2009/03/27 12:28

I have installed RHEL5 in my Desktop the adio is not coming.

saurabh, 2009/01/13 20:12

Hi,
I am using RHEL5. I got the following Error:

yum install alsa-driver alsa-kmdl-`uname -r`
Loading “rhnplugin” plugin
http://dl.atrpms.net/el5Client-i386/atrpms/stable/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again

Looking for solution.

Thanks in advance

Saurabh

Bill Giannikos, 2009/01/14 00:19

If /etc/yum.conf, try changing the line:

baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable


to:

baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/stable
nordin, 2008/11/30 23:36

Hello, thank you very much for your effort to put valuable information on this site.
I did all the steps and after “yum install alsa-driver alsa-kmdl-`uname -r`” it installed everything well, it ends with Complete. So I rebooted my machine, but still no sound.

I use CentOS 5 on a 64 bits AMD processor, and EMU 0404 pci soundcard.

An important thing to mention: On the “System” tab of the GUI audio-configuration, I see the alsa driver is 1.0.18a, while the lib and utils packages are of 1.0.14. Is that normal?

Thank you.

Nobody, 2008/07/04 02:10

Thanks alot. My laptop is speaking now ! :)

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
configuring_the_audio_and_updating_alsa_for_centos_and_rhel_5.txt · Last modified: 2009/02/12 03:49 by billg
Contact Us Sister Sites Privacy Policy Terms of Use
Copyright © 2006-2013 Linlap.com and other authors