Instalar mpd y el cliente mpc (linea de comandos), y/o sonata un cliente con interfaz gráfica.
# emerge -av mpd
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] media-libs/libshout-2.1 445 kB
[ebuild N ] media-sound/mpd-0.16.2 USE="aac alsa bzip2 curl ffmpeg \
fifo flac id3tag ipv6 mad network ogg sqlite tcpd unicode vorbis -ao \
-audiofile -cdio -cue -debug -fluidsynth -inotify -jack -lame -lastfmradio \
-libsamplerate -mikmod -mms -modplug -mpg123 -musepack -openal \
-oss -pipe -profile -pulseaudio -sid -sndfile -twolame -wavpack -wildmidi \
-zeroconf -zip" 467 kB
Total: 2 packages (2 new), Size of downloads: 912 kB
Would you like to merge these packages? [Yes/No
# emerge -av media-sound/mpc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] media-libs/libmpdclient-2.4 USE="static-libs -examples" 268 kB
[ebuild N ] media-sound/mpc-0.20 USE="iconv -bash-completion" 97 kB
Total: 2 packages (2 new), Size of downloads: 365 kB
Would you like to merge these packages? [Yes/No]
El archivo de configuracion /etc/mpd.conf es basicamente como este:
# /etc/mpd.conf
# Archivo de configuracion para MPD
# Files and directories #######################################################
#
music_directory "/media/data/musica"
#
playlist_directory "/var/lib/mpd/playlists"
#
db_file "/var/lib/mpd/database"
#
log_file "/var/log/mpd/mpd.log"
#
pid_file "/var/run/mpd/mpd.pid"
#
state_file "/var/lib/mpd/state"
#
# General music daemon options ################################################
# cambie por su nombre de usuario.
user "gentoo"
#
# For network
bind_to_address "localhost"
#
# And for Unix Socket
#bind_to_address "/var/lib/mpd/socket"
#
port "6600"
#
log_level "default"
#
save_absolute_paths_in_playlists "no"
#
#
metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
#
# Symbolic link behavior ######################################################
#
follow_outside_symlinks "yes"
#
follow_inside_symlinks "yes"
#
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
}
#
# Audio Output ################################################################
#
# An example of an ALSA output:
#
audio_output {
type "alsa"
name "HDA Intel"
auto_resample "no"
## device "hw:0,0" # optional
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}
#
audio_output_format "44100:16:2"
#
samplerate_converter "Fastest Sinc Interpolator"
#
# Volume control mixer ########################################################
#
mixer_type "software"
#
# Resource Limitations ########################################################
#
connection_timeout "60"
max_connections "10"
max_playlist_length "16384"
max_command_list_size "2048"
max_output_buffer_size "8192"
#
# Character Encoding ##########################################################
#
filesystem_charset "UTF-8"
#
id3v1_encoding "ISO-8859-1"
###############################################
Hay que crear los directorios y archivos que faltan en la seccion Files and directories:
# touch /var/lib/mpd/database
# touch /var/log/mpd/mpd.log
# touch /var/run/mpd/mpd.pid
# touch /var/lib/mpd/state
Agregar al usuario gentoo al grupo audio:
# gpasswd -a gentoo audio
Cambiar el propietario de los archivos y carpetas creados con anterioridad:
# chown -R gentoo.audio /var/{lib,log,run}/mpd
Cambiar permisos de manera recursiva al directorio de musica:
# chmod -R a+x /media/data/musica.
Es el momento de crear la base de datos:
# mpd --create-db
Agregar mpd al arranque y reiniciar:
# rc-update add mpd default
# shutdown -r now
Llego el momento de iniciar mpc (linea de comandos), o sonata (interfaz grafica), como usuario normal:
gentoo@hypatia ~ $ mpc play
Various Artists - Deusa do Amor
[playing] #1145/1188 0:04/4:57 (1%)
volume:100% repeat: off random: on single: off consume: off
Los comandos del cliente mpc:
gentoo@hypatia ~ $ mpc help
Linux es genial!.
No hay comentarios:
Publicar un comentario