Differences between revisions 15 and 16
Revision 15 as of 2005-07-25 14:41:55
Size: 2510
Editor: anonymous
Comment:
Revision 16 as of 2008-08-25 20:21:49
Size: 2465
Editor: FranklinPiat
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07 #language en
Line 4: Line 4:
To listen to sound (["Ogg"], [["MP3"]], .au files, !["CDs"] etc) on your sound card, you need to: To listen to sound (Ogg, [["MP3"]], .au files, CDs etc) on your sound card, you need to:
Line 8: Line 8:
 * Load the required ["module"]s for your soundcard if using a modular kernel  * Load the required modules for your soundcard if using a modular kernel
Line 10: Line 10:
 * Install sound ["package"]s. To configure the sound, you can use ["sndconfig"].  * Install sound packages. To configure the sound, you can use sndconfig.
Line 12: Line 12:
You can install too eg [http://freshmeat.net/browse/113/?topic_id=113 Sound/Audio apps] or [http://www.underbit.com/products/mad/#using wiki:Self:MAD apps using], 'xfreecd' (music CD playing software), 'mp3blaster' (full-screen console mp3-player), or 'saytime' (if you have no CD drive and no !["MP3s"]). Try to run them as root (it should work). With Debian, ordinary users lack permission to read the CD drive and write to the audio device (usually /dev/dsp), and they probably can't use these programs (yet; see next paragraph). You can install too eg [http://freshmeat.net/browse/113/?topic_id=113 Sound/Audio apps] or [http://www.underbit.com/products/mad/#using wiki:Self:MAD apps using], 'xfreecd' (music CD playing software), 'mp3blaster' (full-screen console mp3-player), or 'saytime' (if you have no CD drive and no [:MP3:MP3s]). Try to run them as root (it should work). With Debian, ordinary users lack permission to read the CD drive and write to the audio device (usually /dev/dsp), and they probably can't use these programs (yet; see next paragraph).
Line 18: Line 18:
 * To allow some users to play music !["CDs"] on the ["CDROM"] drive: 'ls -al /dev/cdrom' to check which special file /dev/cdrom is a symbolic link to. If it is hdc, then do: 'chgrp cdrom /dev/hdc' or if it is something else (i.e. /dev/scd0) do the corresponding thing. Then do 'addgroup USER_ID cdrom' to allow the user to play music ["CDs"]. Changing the group of /dev/hdc (or hdb or whatever) is necessary, because otherwise you would need to add the user to group disk, which is bad for security.  * To allow some users to play music CDs on the CDROM drive: 'ls -al /dev/cdrom' to check which special file /dev/cdrom is a symbolic link to. If it is hdc, then do: 'chgrp cdrom /dev/hdc' or if it is something else (i.e. /dev/scd0) do the corresponding thing. Then do 'addgroup USER_ID cdrom' to allow the user to play music CDs. Changing the group of /dev/hdc (or hdb or whatever) is necessary, because otherwise you would need to add the user to group disk, which is bad for security.
Line 20: Line 20:
 * If you run ["xfreecd"], remember to change the default CDDB server on the 'xfreecd' software from 'cddb.cddb.com' to 'freedb.freedb.org'. This is best done by directly editing the '.xfreecdrc' file in the home directories of the users who use the program.  * If you run xfreecd, remember to change the default CDDB server on the 'xfreecd' software from 'cddb.cddb.com' to 'freedb.freedb.org'. This is best done by directly editing the '.xfreecdrc' file in the home directories of the users who use the program.

["Hardware"]>["Sound"]>


To listen to sound (Ogg, ?"MP3", .au files, CDs etc) on your sound card, you need to:

  • Run a ["kernel"] with the correct sound drivers for your sound card (information about ["PCI"]-soundcards can be found if you run '/sbin/lspci' or in the boot-messages ('/bin/dmesg')). The PC sound cars are Sound Blaster compatible.
  • Load the required modules for your soundcard if using a modular kernel
  • Install sound packages. To configure the sound, you can use sndconfig.

You can install too eg [http://freshmeat.net/browse/113/?topic_id=113 Sound/Audio apps] or [http://www.underbit.com/products/mad/#using wiki:?MAD apps using], 'xfreecd' (music CD playing software), 'mp3blaster' (full-screen console mp3-player), or 'saytime' (if you have no CD drive and no [:MP3:MP3s]). Try to run them as root (it should work). With Debian, ordinary users lack permission to read the CD drive and write to the audio device (usually /dev/dsp), and they probably can't use these programs (yet; see next paragraph).

  • Use 'adduser USER_NAME audio' to allow a specific user to write to the /dev/dsp, /dev/mixer and /dev/audio devices and thus output sound from the soundcard; note: the user needs to log off and on again for such changes to take effect! This is the recommended way to allow a user to play audio. If, instead, you changed the permissions of the /dev/audio etc devices to make them accessible to anyone, that would open a security hole because you would be allowing any trojan to read the microphone device.
  • better is to add your user to the audio group
  • To allow some users to play music CDs on the CDROM drive: 'ls -al /dev/cdrom' to check which special file /dev/cdrom is a symbolic link to. If it is hdc, then do: 'chgrp cdrom /dev/hdc' or if it is something else (i.e. /dev/scd0) do the corresponding thing. Then do 'addgroup USER_ID cdrom' to allow the user to play music CDs. Changing the group of /dev/hdc (or hdb or whatever) is necessary, because otherwise you would need to add the user to group disk, which is bad for security.
  • If you run xfreecd, remember to change the default CDDB server on the 'xfreecd' software from 'cddb.cddb.com' to 'freedb.freedb.org'. This is best done by directly editing the '.xfreecdrc' file in the home directories of the users who use the program.

Related Links:

  • ["SoundFAQ"]
  • ["?GnomeSoundConfiguration"].

  • ["ALSA"]