You are not logged in.
Pages: 1
1. pacman -S mpd
2. cp /usr/share/mpd/mpd.conf.example /etc/mpd.conf
3. edit first few lines of /etc/mpd.conf to look like this
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "~/music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory "~/.mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file "~/.mpd/mpd.db"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
log_file "~/.mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
pid_file "/var/run/mpd/mpd.pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
state_file "/var/lib/mpd/mpdstate"
#
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#
#sticker_file "~/.mpd/sticker.sql"4. Run command mpd, get an error
"log: problem opening log file "/var/lib/mpd/mpd.log" (config line 37) for writing"
5.Create a ~/.mpdconf file that looks like this
port "6600"
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"6.Run command mpd get the following message
"listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
Failed to load database: Failed to open database file "/home/reza/.mpd/mpd.db": No such file or directory
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device"
7.Run /etc/rc.d/mpd start get the message
"[FAIL]"
8.Tried killall mpd and repeated steps 6 and 7.
I Don't know how to get this program to work properly, help is greatly appreciated!!!
Last edited by Jabrick (2011-05-18 21:40:57)
Offline
Try setting up MPD according to the wiki:
https://wiki.archlinux.org/index.php/Mpd
Also IMO, it easier to use MPD as user as opposed to a daemon running as root.
Offline
Yes I tried using wiki even with the
/usr/bin/mpd --stdout --no-daemon --verbose
command for alsa but still says
"Failed to bind to '[::]:6600': Address already in use"
I made all the directories that the arch wiki told me to do.
And the port 6600 already in use section didn't help me.
Maybe I missed something?
I will look over it again and update if I solve the issue, but I dont think i forgot anything.
And searching the net people are saying the wiki for MPD is out of date
For example the create-db doesn't work anymore ![]()
Help!
EDIT: inserted the auto_update "yes" in ~/.mpdconf, still says address already in use
Last edited by Jabrick (2011-05-18 18:25:49)
Offline
I would delete all the files, and try setting up MPD as user:
Offline
Thank you anonymous_user for guiding me to focus more on my.
~/.mpdconf file that was the key to getting rid of my error.
It currently looks like this now
port "6600"
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
auto_update "yes"
bind_to_address "localhost"
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
}Now when I run mpd I get no errors!!!! ![]()
Unfortunately nothing happens.
I've already added
mpd ~/.mpd/mpd.conf
to my ~/.xinitrc, and rebooted.
Also when I try and run /etc/rc.d/mpd start
I still get
::Starting Music Player Daemon [FAIL]
What am I doing wrong or missing? This is frustrating :@
And a shout out to aaaaalex from the ubuntu IRC chat for helping me along the way!
Offline
If you are running mpd as a user, you should not run /etc/rc.d/mpd.
Also what client are you using for mpd?
Offline
I sincerely apologize anonymous_user!!!!
I feel like a complete idiot!
I didn't know I needed to download a client!!!
JEEZ.
I'm using the curses client
and working successfully now.
But that you for your guidance about the alternative solution and the client.
I will now play around this the new program and learn some more.
I love arch and the linux community ![]()
One last question to you just for confirmation.
Can I simply remove my client and try different ones at anytime without having to change configurations or anything?
Anyways I'm very happy now, music in my ears ![]()
Offline
Yes though you don't even need to remove a client to try another. You can install them all if you like.
Anyways you should edit your first post and add [SOLVED] to the title, if it is indeed solved.
Last edited by anonymous_user (2011-05-18 19:58:17)
Offline
Pages: 1