Compiling Pianobar on Ubuntu 15.04

The version of Pianobar in the repositories is relatively modern but I’ve noticed some erratic issues with it, probably caused by changes made upstream after it was built. To get the latest and greatest version up and running from Git, follow these directions:

  • Install dependencies
sudo apt-get install libcurl4-gnutls-dev libjson0-dev libao-dev libmad0-dev libfaac-dev libfaad-dev libgnutls-dev libavcodec-ffmpeg-dev libavdevice-ffmpeg-dev libavfilter-ffmpeg-dev libavformat-ffmpeg-dev libavresample-ffmpeg-dev libavutil-ffmpeg-dev libpostproc-ffmpeg-dev libswresample-ffmpeg-dev libswscale-ffmpeg-dev git build-essential
  • Clone from Git
git clone https://github.com/PromyLOPh/pianobar.git
  • Clean, make and install
$ cd pianobar
$ make clean
$ make
$ sudo make install
  • Make config directory
$ mkdir ~./config/pianobar
  • Add config file and adjust
$ nano .config/pianobar/config

and add the following text:

# This is an example configuration file for pianobar. You may remove the # from
# lines you need and copy/move this file to ~/.config/pianobar/config
# See manpage for a description of the config keys
#
# User
#user = [email protected]
#password = password
# or
#password_command = gpg --decrypt ~/password

# Proxy (for those who are not living in the USA)
#control_proxy = http://127.0.0.1:9090/

# Keybindings
#act_help = ?
#act_songlove = +
#act_songban = -
#act_stationaddmusic = a
#act_stationcreate = c
#act_stationdelete = d
#act_songexplain = e
#act_stationaddbygenre = g
#act_songinfo = i
#act_addshared = j
#act_songmove = m
#act_songnext = n
#act_songpause = S
#act_songpausetoggle = p
#act_songpausetoggle2 =  
#act_songplay = P
#act_quit = q
#act_stationrename = r
#act_stationchange = s
#act_stationcreatefromsong = v
#act_songtired = t
#act_upcoming = u
#act_stationselectquickmix = x
#act_voldown = (
#act_volup = )
#act_volreset = ^

# Misc
#audio_quality = low
#autostart_station = 123456
#event_command = /home/user/.config/pianobar/eventcmd
#fifo = /tmp/pianobar
#sort = quickmix_10_name_az
#love_icon = [+]
#ban_icon = [-]
#volume = 0
#ca_bundle = /etc/ssl/certs/ca-certificates.crt

# Format strings
#format_nowplaying_song = %t by %a on %l%r%@%s
#format_nowplaying_station = Station %n
#format_list_song = %i) %a - %t%r

# high-quality audio (192k mp3, for Pandora One subscribers only!)
#audio_quality = high
#rpc_host = internal-tuner.pandora.com
#partner_user = pandora one
#partner_password = TVCKIBGS9AO9TSYLNNFUML0743LH82D
#device = D01
#encrypt_password = 2%3WCL*JU$MP]4
#decrypt_password = U#IO$RZPAB%VX2


  • Uncomment the user and password line, add in your credentials
  • Uncomment and adjust any other lines that you’d like to change
  • Run pianobar
$ pianobar

Thanks to PromyLOPh for great software!