Last active
March 22, 2024 07:08
-
-
Save bonelifer/e7ad234d2c8e07ef02ed03edd7e3af49 to your computer and use it in GitHub Desktop.
Compile pianobar on Ubuntu 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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