View Single Post
  #2   (View Single Post)  
Old 20th October 2015
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default

This is an update for OpenBSD release 6.3

In OpenBSD 6.3 release, the default /etc/mpd.conf file is now provisioned with sndio for the audio output. If I attempted to start mpd system wide in /etc/rc.conf.local, there were problems with audio streams.

What worked well is to setup a local configuration (per user) as described in the
Arch Linux mpd wiki.
I used OpenBSD /usr/local/share/doc/examples/mpd/mpd.conf when making a ~/.mpd/mpd.conf. If you have an /etc/mpd.conf, rename it to a non-functional backup.


1) In mpd.conf, Comment out
Code:
bind_to_address                        "localhost"
to
Code:
#bind_to_address                        "localhost"
2) uncomment
Code:
#bind_to_address                 "~/.mpd/socket"
to
Code:
bind_to_address                 "~/.mpd/socket"
3) If you are using Gnome3, KDE4 or Xfce4, you can specify the xdg, freedesktop music directory
Code:
music_directory                 "~/Music"
4) Autostart the command on login
Code:
mpd ~/.mpd/mpd.conf
The above command can be added to ~/.xinitrc or ~/.xsession or the autostart file in your WM/DE.

Last edited by shep; 23rd August 2018 at 12:19 AM. Reason: Updated for 6.3 , ~/.profile entry to create local socket not needed - removed
Reply With Quote