MPD: Music Player Daemon

Informazioni:

Music Player Daemon (MPD) consente l'accesso remoto per la riproduzione di musica (MP3, Ogg Vorbis, FLAC, AAC, mod, e onda file) e la gestione delle playlist. MPD è stato progettato per integrare il computer in un sistema che fornisce il controllo per la riproduzione di musica su una rete locale. E 'anche una grande scrivania lettore musicale, soprattutto se siete una console drogato, come frontend opzioni, o riavviare X spesso.

@ MPD home page

Panoramica:

Non sto qui a spiegare quello che è - tutti capiranno che si tratta di un lettore musicale.
Ma per presentare e dare istruzioni su come installarlo.

Il programma di installazione / configurazione:

# apt-get install mpd sonata
Ora arriva la parte noiosa e un po 'di confusione. Dobbiamo impostare il MPD prima di poterlo utilizzare. Per cominciare ci modificare il file / etc / mpd.conf. Mi consiglia di effettuare una copia di backup del originale per prevenire in futuro la strisciamento è quello di evitare la passeggiata a cercare mpd.conf web.
# cp /etc/mpd.conf /etc/mpd.conf.backup
# nano /etc/mpd.conf

  1. Richiesto sentieri percorsi e facoltativo
    In questo passaggio è necessario configurare le directory in base al luogo in cui la nostra musica si trova. Nel campo music_directory mettere la directory della vostra musica (si può solo mettere a) e l'altra copia questo esempio.
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory      “/home/os.meus.documentos/music”
    playlist_directory   “~/.mpd/playlists”
    db_file              “~/.mpd/tag_cache”
    log_file             “~/.mpd/mpd.log”
    error_file           “~/.mpd/errors.log”
    pid_file             “~/.mpd/pid”

    ################################################################
    #
    ######################## OPTIONAL PATHS ########################
    #
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    #
    state_file “~/.mpd/state”
    #
    ################################################################
  2. DAEMON OPZIONI
    Metti l'utente nel campo del tuo nome utente (nel mio caso è qaz). Decommentate gli altri.
    ######################## DAEMON OPTIONS ########################
    #
    # If started as root, MPD will drop root privileges and run as
    # this user instead.  Otherwise, MPD will run as the user it was
    # started by.  If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    #
    user                            “qaz”
    #
    # The address and port to listen on.
    #
    bind_to_address                 “localhost”
    port                            “6600″

    #
    # Controls the amount of information that is logged.  Can be
    # “default”, “secure”, or “verbose”.
    #
    log_level                       “default”
    #
    ################################################################
  3. Uscite audio e mixer
    Decommentare le linee del suo output. Nel mio caso è alsa.
    ########################## AUDIO OUTPUT ########################
    #
    # 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 <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    #
    # An example of an ALSA output:
    #
    audio_output {
    type                    “alsa”
    name                    “My ALSA Device”

    #        device                  “hw:0,0″     # optional
    #        format                  “44100:16:2″ # optional
    }
    #
    # An example of an OSS output:
    #
    #audio_output {
    #        type                    “oss”
    #        name                    “My OSS Device”
    #        device                  “/dev/dsp”   # optional
    #        format                  “44100:16:2″ # optional
    #}
    #
    # An example of a shout output (for streaming to Icecast):
    #
    #audio_output {
    #        type                    “shout”
    #        name                    “My Shout Stream”
    #        host                    “localhost”
    #        port                    “8000″
    #        mount                   “/mpd.ogg”
    #        password                “hackme”
    #        quality                 “5.0″
    #        bitrate                 “128″
    #        format                  “44100:16:1″
    #        user                    “source”                # optional
    #        description             “My Stream Description” # optional
    #        genre                   “jazz”                  # optional
    #        public                  “no”                    # optional
    #}
    #
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #
    #audio_output_format             “44100:16:2″
    #
    ################################################################
    #
    ############################# MIXER ############################
    #
    # MPD needs to know what mixer settings to change when you
    # adjust the volume.  If you don’t specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    #
    # An example for controlling an ALSA mixer:
    #
    mixer_type                      “alsa”
    mixer_device                    “default”
    mixer_control                   “PCM”

    #
    # An example for controlling an OSS mixer:
    #
    #mixer_type                      “oss”
    #mixer_device                    “/dev/mixer”
    #mixer_control                   “PCM”
    #
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #
    #mixer_type                      “software”
    #
    ################################################################
  4. ALTRE OPZIONI
    Decommentare le due voci.
    ######################### OTHER OPTIONS ########################
    #
    # The metadata types MPD will recognize.
    #
    metadata_to_use                  “artist,album,title,track,name,genre,date,composer,performer,disc”
    #
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #
    save_absolute_paths_in_playlists “no”
    #
    ################################################################
  5. Altre impostazioni
    Erano così come sono di default. A scanso di dubbi qui è il mio risultato finale.

Ora dobbiamo aggiungere il nostro utente (qaz nel mio caso) per il gruppo MPD (questo passaggio bisogno di sapere):
# groupadd mpd
# gpasswd -a qaz mpd

Assicurarsi che la cartella ~ /. MPD non richiede privilegi di root.

Ora faremo il database - potrebbe richiedere un certo tempo.
$ mpd --create-db
In questo momento abbiamo la MPD completamente installato e configurato.
$ mpd

Front-end:

Abbiamo bisogno ora solo un frontend. Vorrei scegliere la Sonata.

Sonata è un elegante GTK + musica cliente per il Music Player Daemon (MPD).

@ Sonata Homepage

Screenshot della sonata. Clicca sulla foto per altre immagini.

La Sonata richiede un po 'anche il programma di installazione. Ma prima si lancia:
$ sonata
Andare alle preferenze, la scheda MPD inserire le tue impostazioni. Mio caso sarà:

  • Nome: qaz
  • Host: localhost
  • Porto: 6600
  • Password: (vuoto)
  • Musica Dir: / home / os.meus.documentos / musica /

Se necessario uccidere i due casi (killall) e lancio di nuovi MPD e Sonata.

Riferimenti:
"Techzone / Zwame
"Wiki ArchLinux
"MPD home page

Il mio file:
"Http: / / dotfiles.org / ~ uterrorista / 2Fetc%% 2Fmpd.conf

Feedback:
Se avete domande o riparazione nel tutorial non esita - il feedback è per questo motivo : P

Popularity: 92% [?]

N. diciture elencate nell'allegato Linuxdeb. Altro:

Una risposta a "MPD: Music Player Daemon"

  1. Dice:

    [...] Pubblica link>> riproduzione Joao Goncalves: MPD: Music Player Daemon Prima salvato da foundit | 1 ora fa Problemi di Apple Software Update per MacBook Air, Correzioni video [...]


Lascia un Commento

XHTML: Puoi utilizzare questi <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>