Skip to content

Instantly share code, notes, and snippets.

@bonelifer
Last active March 22, 2024 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonelifer/e7ad234d2c8e07ef02ed03edd7e3af49 to your computer and use it in GitHub Desktop.
Save bonelifer/e7ad234d2c8e07ef02ed03edd7e3af49 to your computer and use it in GitHub Desktop.
Compile pianobar on Ubuntu 22.04
#!/bin/bash
# Compile and install pianobar on Ubuntu
# Install needed apps and libraries
sudo apt install git libgcrypt20-dev make libasound2-dev curl libjson-c-dev
# Git Clone pianobar repo
git clone https://github.com/PromyLOPh/pianobar.git
cd pianobar
#Compile
gmake clean && gmake
#Move installed version if it exists. Then copy the newly compiled version into place
pandora=/usr/bin/pianobar
if [ -f $pandora ]
then
sudo mv /usr/bin/pianobar /usr/bin/pianobar-old
fi
sudo cp ./pianobar /usr/bin/pianobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment