Created
April 26, 2025 20:00
-
-
Save pjobson/f75ebe4bb95aa5ad96898eb657ece9c2 to your computer and use it in GitHub Desktop.
Installs/Updates CHIRP
This file contains hidden or 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 | |
# This was written for Mint/Ubuntu, should be pretty easy to update for other distros | |
# install python wxgtk4.0 & pipx | |
sudo apt install python3-wxgtk4.0 pipx -y | |
# get the next release | |
NEXT=$(curl -s https://archive.chirpmyradio.com/chirp_next/ | grep "next-" | head -n1 | sed -e 's/.\+href="//' | sed -e 's/">.\+//') | |
# find the whl file | |
FILE=$(curl -s https://archive.chirpmyradio.com/chirp_next/$NEXT | grep whl | sed -e 's/.\+href="//' | sed -e 's/">.\+//') | |
# download the file, yeah yeah I'm using both curl and wget, change it if you want. | |
wget https://archive.chirpmyradio.com/chirp_next/$NEXT/$FILE | |
# install chirp | |
pipx install --force --system-site-packages ./$FILE | |
# delete the whl | |
rm $FILE | |
# different distros use differnt groups for this | |
# you may have to update this line | |
sudo adduser $USER dialout | |
# Add CHIRP to the menu | |
# again, this may not work for different distros | |
IMG=$(find ~/.local/pipx/venvs/chirp/ -name chirp.png) | |
DSK=$(find ~/.local/pipx/venvs/chirp/ -name chirp.desktop) | |
mkdir -p ~/.local/share/icons/ | |
cp $IMG ~/.local/share/icons/ | |
cp $DSK ~/.local/share/applications/ | |
echo "Reboot to update user's groups." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment