From The World according to Vissie
Jump to navigation Jump to search

setup MPD server

sudo apt-get install mpd

What we need to do is add the user mpd to the groups pulse and pulse-access so that it can access the audio system. [untested]

sudo usermod -aG pulse,pulse-access mpd
vim: /etc/mpd.conf
music_directory       "/home/sleepy/Music"
playlist_directory    "/var/lib/mpd/playlists"
db_file               "/var/lib/mpd/db"
log_file              "/var/log/mpd/mpd.log"
error_file            "/var/log/mpd/mpd.error"
pid_file              "/var/run/mpd/"
state_file            "/var/lib/mpd/mpdstate"

Just something to remember:

The final setting I modified was state_file. This setting points to a file that holds the information about what state MPD is in when it stops. Again, this points to a file on the writable NFS mount. However, the state file is unique for each appliance. When I turn an appliance back on, I want its state, not the state of another appliance.

# If you don’t’ want to enter a username when connecting comment out user by adding a #
# user                          "mpd"
# Make the mpd server bind to all available network addresses or alternatively specify an IP address.
bind_to_address       "any"
port                  "6600"
auto_update           "yes"

audio_output {                                                                                                                   
       type            "alsa"
       name            "MPD ALSA"
       mixer_type      "software"
       mixer_device    "default"
       mixer_control   "PCM"

audio_output {
    type                    "fifo"
    name                    "FIFO"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"

if sound is not working, good luck! Maybe try

sudo vim /etc/pulse/client.conf
autospawn = yes
pulseaudio --kill
pulseaudio --start

MPD clients

Check out Cantata. For some reason its way big for me!


sudo apt-get install ncmpcpp

on Arc I had some issue...

pacaur -S ncmpcpp
pacaur -S ncurses

or, get the latest one:

Add the following to your /etc/apt/sources.list

#### testing  #########
deb testing main contrib non-free
#### unstable #########
deb unstable main contrib non-free
sudo apt-get update
sudo apt-get -t unstable install ncmpcpp

mkdir ~/.ncmpcpp
cd ~/.ncmpcpp
vim config
ncmpcpp_directory =         "~/.ncmpcpp"
mpd_host =                  ""
mpd_port =                  "6600"	
mpd_music_dir =             "/path/to/your/music/"

u Update music database


--- .mpdconf ---

audio_output {
       type                    "fifo"
       name                    "FIFO"
       path                    "/tmp/mpd.fifo"

format "44100:16:2"


--- .ncmpcpp/config ---

visualizer_output_name = "FIFO"
visualizer_in_stereo = "yes"
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_sync_interval = "1"
visualizer_type = "wave" (spectrum/wave