How to configure sound in Linux

0






Adjust the sound on Linux is quite simple, especially Debian, it is what you want to install the ALSA [?] And run the automatic configuration script – and all! And if there is no sound on Linux – it means you need to run alsaconf configuration scripts and at the same time to go to the official website of ALSA and ask to support your sound card under Linux. On this and tells the post. Let there be sound! First you need to put all the packages related to the ALSA . As always, use the command as root:

The apt-cache # search the alsa
# aptitude the install the alsa-utils the alsa-base the alsa-tools
As a result, this should appear in at least two very useful program alsaconf and alsamixer .

If the distribution was not the core of the support of our cards, we will rebuild the kernel (read this article ), throwing out of it too much and turn ALSA cast into the kernel and drivers to the sound card (card) module . These things last is very important, otherwise nothing will find alsaconf.




Then (compiled kernel module driver included, we put all of ALSA) as root:
# Alsaconf
or (in newer versions of the Debian)
# alsactl the init
Thus there is pseudo-master configuration and scanning all possible tire and addresses, is a sound card. Configure, prescribes that where necessary – get the message HAVE A LOT OF FUN!

Next you need to look at the settings of the mixer. It is best not to run kmix (not all of it is), but alsamixer (I use it as a regular mixer). By default Debiane during the first boot after the discovery of sound, all the sticks in the mixer output to zero. Raise the level of sound on Linux using the UP, enjoy the sound. Solving alsamixer impresses with its versatility: it can be used in iksah, and in the console, with any window manager / environment.

If you set up audio subsystem, or some bad software has blocked access to the sound card, close all applications using sound and console give the command as root (or via sudo):
# /etc/init.d/alsa Restart
This will restart the audio subsystem, and do not need to reboot. All enjoy the sound.

If you find that the volume is too low \ high or Linux microphone does not work, adjust the volume in Linux can be full-time configurator alsamixer in the console:
alsamixer -V all
This will give the output of all channels sound card, so you can customize everything from the speaker to the microphone.

Sound only under root!
If someone behaved oddly with access rights, the sound is played only by root, and remember in a simple user will be no sound. At the same time attempt to run the mixer can be accompanied by errors:
Informational server the message the Sound:
the Error ‘while’ initializing the sound driver:
device: the default CAN not the BE Opened for playback (the Permission denied)
of The sound server will of ‘continue’, using the null the output device.
In order to allow users to listen to music, too, give the right to an audio device:
chmod 755 / dev / dsp *
chmod 755 / dev / * the audio
chmod 755 / dev / mixer *
chmod 777 / dev / snd / *
After that, the sound should vosproizovoditsya and users. There is also another way to overcome the problem of ‘sound only from the root “: add the current user to the audio group. The name of the current user, you can learn team the whoami . Further:
#adduser vasheimyapolzovatelya audio
Changes will take effect after you logout (will be logged in again, log-out and then log-in).

The volume under Linux
is easy and simple: the sound driver alsa mixer has a team amixer and it can be used to increase \ decrease the sound level.
amixer -c 0 -q set Master 3 + unmute% amixer -c 0 -q set Master 3% – unmute These commands are easily bolted to the same hotkeys a hotkey .

For lovers of graphic interfaces: in addition kmix program, there is a small but very good program GTKshnaya VolumeIcon (thanks for the tip commentators). The repository is not, but the site has the Debian package sources and simple installation instructions.

And what to listen to music in Linux?
Audio player in Debian enough – write in the console:
apt-cache search audio player
and choose from a wealth of anything. Listen to music on Linux, you can program:
xmms : very similar to the WinAmp music player with tons of features, plugins, supports MP3 / Ogg, wav, audioCD playback, control the keyboard and more.
-media-a beep player : the same as xmms, just a little nicer interface and friends with UTF8.
MOCP – player console with the interface in Norton Commander style; playing, even if you exit the GUI.
rhythmbox : simple and functional player for the GNOME desktop.
amaroK : feature-rich music player and cataloger for KDE.
For starters, you can install multiple players audio on Linux as follows:
apt-get install beep-media-player xmms rhythmbox amarok
and enjoy.