Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| sonata [Le 10/03/2009, 19:36] – créée thuban | sonata [Le 20/01/2010, 08:25] (Version actuelle) – disposes > dispose (Sonata), fonctionnalité intéressantes > fonctionnalités intéressantes, controlé > contrôlé, Voila > Voilà Canigou 66 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Sonata : un client graphique pour mpd ====== | ||
| + | Voici un lecteur de musique léger et complet. Il lit la musique avec mpd en arrière plan. Voyons ici comment configurer ce démon rapidement pour utiliser pleinement Sonata. | ||
| + | |||
| + | === Avantages === | ||
| + | |||
| + | Léger, rapide, ne prend pas toutes les ressources de l' | ||
| + | |||
| + | === Inconvénients === | ||
| + | |||
| + | Il faut savoir configurer mpd | ||
| + | ===== Installation ===== | ||
| + | |||
| + | Installez les paquets Sonata et mpd : | ||
| + | < | ||
| + | apt-get install sonata mpd | ||
| + | </ | ||
| + | ===== Configuration ===== | ||
| + | |||
| + | Copiez le fichier / | ||
| + | < | ||
| + | cp / | ||
| + | </ | ||
| + | créez les dossiers éventuels : | ||
| + | < | ||
| + | mkdir ~/.mpd | ||
| + | mkdir ~/ | ||
| + | </ | ||
| + | |||
| + | éditez le fichier .mpdconf à votre guise. voici un exemple utile : (commenter les lignes " | ||
| + | < | ||
| + | ######################## | ||
| + | # You can put symlinks in here, if you like. Make sure that | ||
| + | # the user that mpd runs as (see the ' | ||
| + | # can read the files in this directory. | ||
| + | |||
| + | music_directory " | ||
| + | playlist_directory " | ||
| + | db_file " | ||
| + | log_file " | ||
| + | error_file " | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ######################## | ||
| + | # | ||
| + | # If you wish to use mpd --kill to stop MPD, then you must | ||
| + | # specify a file here in which to store MPD's process ID. | ||
| + | # | ||
| + | pid_file " | ||
| + | # | ||
| + | # If specified, MPD will save its current state (playlist, | ||
| + | # current song, playing/ | ||
| + | # used to restore the session the next time it is run. | ||
| + | ######### | ||
| + | state_file " | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ######################## | ||
| + | # | ||
| + | # If started as root, MPD will drop root privileges and run as | ||
| + | # this user instead. | ||
| + | # started by. If left unspecified, | ||
| + | # privileges at all (not recommended). | ||
| + | ######### | ||
| + | #user " | ||
| + | # | ||
| + | # The address and port to listen on. | ||
| + | ########ICI AUSSI TU PEUX COMMENTER POUR ÉVITER CERTAINS SOUCIS QUE PEUVENT PRÉSENTER CERTAINS CLIENTS | ||
| + | # | ||
| + | port " | ||
| + | # | ||
| + | # If the address is a path, then a UNIX domain socket will be | ||
| + | # created instead of listening on a TCP port. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Controls the amount of information that is logged. | ||
| + | # " | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ########################### | ||
| + | # | ||
| + | # If yes, service information will be published with Zeroconf. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # The service name to publish. | ||
| + | # your local network. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ########################## | ||
| + | # | ||
| + | # MPD can require that users specify a password before using it. | ||
| + | # You may specify one ore more here, along with what users who | ||
| + | # log in with that password are allowed to do. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Specifies what permissions a user who has not logged in with a | ||
| + | # password has. By default, all users have full access to MPD | ||
| + | # if no password is specified above, or no access if one or | ||
| + | # more passwords are specified. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ########################## | ||
| + | # | ||
| + | # MPD supports many audio output types, as well as playing | ||
| + | # through multiple audio outputs at the same time. You can | ||
| + | # specify one or more here. If you don't specify any, MPD will | ||
| + | # automatically scan for a usable audio output. | ||
| + | # | ||
| + | # See < | ||
| + | # for examples of other audio outputs. | ||
| + | # | ||
| + | # An example of an ALSA output: | ||
| + | ########## | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | audio_output { | ||
| + | type " | ||
| + | name "My ALSA Device" | ||
| + | # device | ||
| + | # format | ||
| + | } | ||
| + | # | ||
| + | # An example of an OSS output: | ||
| + | # | ||
| + | # | ||
| + | # type " | ||
| + | # name "My OSS Device" | ||
| + | # device | ||
| + | # format | ||
| + | #} | ||
| + | # | ||
| + | # An example of a shout output (for streaming to Icecast): | ||
| + | # | ||
| + | # | ||
| + | # type " | ||
| + | # encoding | ||
| + | # name "My Shout Stream" | ||
| + | # host " | ||
| + | # port " | ||
| + | # mount "/ | ||
| + | # password | ||
| + | # quality | ||
| + | # bitrate | ||
| + | # format | ||
| + | # user " | ||
| + | # description | ||
| + | # genre " | ||
| + | # public | ||
| + | # timeout | ||
| + | #} | ||
| + | # | ||
| + | # An example of a null output (for no audio output): | ||
| + | # | ||
| + | # | ||
| + | # type " | ||
| + | # name "My Null Output" | ||
| + | #} | ||
| + | # | ||
| + | # Force all decoded audio to be converted to this format before | ||
| + | # being passed to the audio outputs. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # If MPD has been compiled with libsamplerate support, this | ||
| + | # specifies the sample rate converter to use. Possible | ||
| + | # values can be found in the mpd.conf man page or the | ||
| + | # libsamplerate documentation. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ############################# | ||
| + | # | ||
| + | # MPD needs to know what mixer settings to change when you | ||
| + | # adjust the volume. | ||
| + | # pick one based on which ones it was compiled with support for. | ||
| + | # | ||
| + | # An example for controlling an ALSA mixer: | ||
| + | # | ||
| + | mixer_type | ||
| + | mixer_device | ||
| + | mixer_control | ||
| + | # | ||
| + | # An example for controlling an OSS mixer: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # If you want MPD to adjust the volume of audio sent to the | ||
| + | # audio outputs, you can tell it to use the software mixer: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ######################### | ||
| + | # | ||
| + | # Specifies the type of ReplayGain to use. Can be " | ||
| + | # " | ||
| + | # < | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Sets the pre-amp used for files that have ReplayGain tags. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Enable on the fly volume normalization. | ||
| + | # volume of all songs played to be adjusted so that they sound | ||
| + | # as though they are of equal loudness. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ########################### | ||
| + | # | ||
| + | # The size of the buffer containing decoded audio. | ||
| + | # shouldn' | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # How much of the buffer to fill before beginning to play. | ||
| + | # Increase this if you hear skipping when changing songs. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Similar options for the HTTP stream buffer. | ||
| + | # skipping while playing HTTP streams, you may wish to increase | ||
| + | # these. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ########################### | ||
| + | # | ||
| + | # Specifies the HTTP proxy to use for playing HTTP streams. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ############################# | ||
| + | # | ||
| + | # These are various limits to prevent MPD from using too many | ||
| + | # resources. | ||
| + | # restricting your usage of MPD. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ###################### | ||
| + | # | ||
| + | # If file or directory names do not display correctly, then you | ||
| + | # may need to change this. In most cases it should be either | ||
| + | # " | ||
| + | # after changing this (use mpd --create-db). | ||
| + | # | ||
| + | filesystem_charset | ||
| + | # | ||
| + | # The encoding that ID3v1 tags should be converted from. | ||
| + | # | ||
| + | id3v1_encoding | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | |||
| + | ######################### | ||
| + | # | ||
| + | # Try disabling this if you have MP3s which appear to end | ||
| + | # abruptly. | ||
| + | # recommended that you fix your MP3s with vbrfix (available from | ||
| + | # < | ||
| + | # point you can re-enable support for gapless MP3 playback. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Enable this if you wish to use your MPD created playlists in | ||
| + | # other music players. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # A list of tag types that MPD will scan for and make available | ||
| + | # to clients. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ################################################################ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Voilà, il ne vous reste plus qu'à lancer mpd (vous pouvez l' | ||
