Most Linux distributions provide tools that probe your system for sound cards. Most currently available plug-and-play sound cards should be recognized automatically. If you can hear the samples, just clickand everything will be set up for you.
If your card is not detected automatically, you may be presented with a list of sound cards and/or of sound card properties from which to choose. After that, you will have to provide the correct I/O port, IRQ and DMA settings. Information about these settings can be found in your sound card documentation. If you are on a dual boot system with MS Windows, this information can be found in the Windows Control Panel as well.
If your soundcard is not supported by default, you will need to apply other techniques. These are described in the Linux Sound HOWTO.
The cdp package comes with most distributions and provides cdp or cdplay, a text-based CD player. Desktop managers usually include a graphical tool, such as the gnome-cd player in Gnome, that can be started from a menu.
Be sure to understand the difference between an audio CD and a data CD. You do not have to mount an audio CD into the file system in order to listen to it. This is because the data on such a CD are not Linux file system data; they are accessed and sent to the audio output channel directly, using a CD player program. If your CD is a data CD containing .mp3 files, you will first need to mount it into the file system, and then use one of the programs that we discuss below in order to play the music. How to mount CDs into the file system is explained in Section 7.6.5.
The cdparanoia tool from the package with the same name reads audio directly as data from the CD, without analog conversions, and writes data to a file or pipe in different formats, of which .wav is probably the most popular. Various tools for conversion to other formats, such as .mp3, come with most distributions or are downloadable as separate packages. The GNU project provides several CD playing, ripping and encoding tools, database managers; see the Free Software Directory, Audio section for detailed information.
CD burning is covered in Section 9.2.2.
The popular .mp3 format is widely supported on Linux machines. Most distributions include multiple programs that can play these files; xmms, which is presented in the screenshot below, is probably the most wide-spread.
Some distributions don't allow you to play MP3's without modifying your configuration, this is due to license restrictions on the MP3 tools. With the xmms player, you now need the "xmms-mp3" plugin. If error messages indicate that licensing is the trouble, the following procedure describes the path of least resistance:
Download and install apt-get, for instance from http://www.freshrpms.net:
rpm -Uvh /var/tmp/xmms-mp3-1.2.7-21.p.fr1
Run the following commands to prepare your system for use with the apt package manager:
Install the xmms-mp3 plugin:
apt-get install xmms-mp3
(Don't forget to log out of the root account because you've finished modifying your system now) - Play your favorite music:
See Section 7.6 for more on the commands for managing packages.
Both Gnome and KDE incorporate other graphical mp3 players, look in your menus.
Start xmms from a menu, or from the command line like this:
debby:~/mp3> xmms music.mp3
Alternatively, enter the command xmms *.mp3 for playing all .mp3 files in a directory.
An overview of other common sound playing and manipulating software:
Ogg Vorbis: Free audio format: see the GNU audio directory for tools - they might be included in your distribution as well.
Real audio and video: realplay from RealNetworks.
SoX or Sound eXchange: actually a sound converter, comes with the play program. Plays .wav, .ogg and various other formats, including raw binary formats.
Playmidi: a MIDI player, see the GNU directory.
AlsaPlayer: from the Advanced Linux Sound Architecture project, see the AlsaPlayer web site.
KMediaPlayer: base for the KDE multimedia tools.
Check your system documentation for particular tools!
aumix and alsamixer are two common text tools for adjusting audio controls. The alsamixer has a graphical interface when started from the menu or as gnome-alsamixer from the command line. KMix does the same in KDE.
Regardless of how you choose to listen to music or other sounds, remember that there may be other people who may not be interested in hearing you or your computer. Try to be courteous, especially in office environments. And use a quality head-set.
Various players are available:
xine: a free video player
ogle: DVD player
mplayer: Movie Player for Linux
gstreamer: upcoming project developing the GStreamer library and accompanying tools for audio and video recording, editing and playing, to be included in Gnome. See http://www.gstreamer.net for more.
totem: plays both audio and video files, audio CDs, VCD and DVD.
realplay: from RealNetworks.
helixplay: a Real alternative, see HelixDNA.
Most likely, you will find one of these in your graphical menus.
For watching TV there is zapping or xawtv, among many other tools for watching and capturing TV, video and other streams.