Created
March 22, 2024 07:06
-
-
Save bonelifer/97df07b4e456f7b85b89652a0e786be4 to your computer and use it in GitHub Desktop.
Compile and install pianobar on Debian
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 Debian | |
# Install needed apps and libraries | |
sudo apt install libgcrypt20-dev make libasound2-dev curl libjson-c6-dev git | |
# 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