Let's proceed with the steps needed to install musicpd from ports:
- % su
- # cd /usr/ports/audio/musicpd ; make install clean
- if you want select additional audio formats such as AAC and MOD files
- # cp /usr/local/share/doc/mpd/mpdconf.example /usr/local/etc/mpd.conf
- # chmod 644 /usr/local/etc/mpd.conf
- # vi /usr/local/etc/mpd.conf
music_directory "/mnt/music"
playlist_directory "~/playlists"
db_file "~/database"
log_file "~/log"
error_file "~/error"
pid_file "~/pid"
state_file "~/state"
user "musicpd"
port "6600"
bind_to_address "127.0.0.1"
audio_output {
type "oss"
name "OSS"
}
- # adduser
Username: musicpd
Full name: Music Player Daemon
Uid (Leave empty for default):
Login group [musicpd]:
Login group is musicpd. Invite mpd into other groups? []:
Login class [default]: daemon
Shell (sh csh tcsh bash rbash nologin) [sh]: nologin
Home directory [/home/musicpd]:
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: yes
Username : musicpd
Password :
Full Name : Music Player Daemon
Uid : 1002
Class : daemon
Groups : musicpd
Home : /home/musicpd
Shell : /usr/sbin/nologin
Locked : yes
OK? (yes/no): yes
Add another user? (yes/no): no
Goodbye!
- # mkdir -p /home/musicpd/playlists
- # chown muiscpd:musicpd /home/musicpd/playlists
- # echo 'musicpd_enable="YES"' >> /etc/rc.conf
- # /usr/local/bin/mpd --create-db /usr/local/etc/mpd.conf
To install NCMPC from ports:
- # cd /usr/ports/audio/ncmpc ; make install clean
That's it. ;)
I suggest the following websites to further research information on MPD:
http://musicpd.org/
http://mpd.wikia.com/wiki/Main_Page
http://wiki.bsdforen.de/howto/mpd_einrichten
http://www.freebsdwiki.net/index.php/Icecast_and_Musicpd
I suggest the following websites to further research information on MPD:
http://musicpd.org/
http://mpd.wikia.com/wiki/Main_Page
http://wiki.bsdforen.de/howto/mpd_einrichten
http://www.freebsdwiki.net/index.php/Icecast_and_Musicpd
Awesome! Thank you so much, this worked. I've always been trying to make musicpd (mpd) work on FreeBSD. And now does.
ReplyDelete:)
ReplyDeleteThanks for the positive feedback.
mpd is now named musicpd on ports, and in general the binary is musicpd, do you know why? Just asking because am a bit confused seeing you are running it as mpd
ReplyDeleteI'm not sure I follow...
ReplyDeleteIn the Linux world Music player Daemon is known by its acronym MPD thus the application is named mp in all distribution repositories.
In the FreeBSD side of things there is a mpd in the base system in FreeBSD 9. To distinguish both the ports team opted to name it musicpd in the ports tree.
In short, mpd (Linux) = musicpd (FreeBSD).
thank you for the quick reply. :)
ReplyDeleteNice job!
ReplyDeleteM(usic)PD is so light & fast so I love it ;)
A time ago got it on my ubuntu - now ill try it with a BSD
Thanks.
Thanks for the feedback :)
ReplyDeleteThough this howto is a few years old it should largely (if not completely) apply.
create-db
ReplyDeleteis deprecated, how should i create the database file now?
Matthew,
ReplyDeleteThis how-to was created in 2008, roughly 7 years ago and I'm sure MPD changed much since.
I don't use MPD these days so I'd suggest having a look at the manpage or using a search engine.
Regards,
tangram.
Hi Tangram.
ReplyDeleteMay I just ask, if you don't use MPD anymore, what then do you use as its replacement? I ask because I'm evaluating the use of 'xmms2d', and so far, MPD seems a nicer, cleaner option.
Best,
Paul Kotschy
TBH nothing :) I hardly listen to music these days -.-
ReplyDelete