Created
October 11, 2016 17:55
-
-
Save jpouellet/65bd51a35faf139cf1eacd3d6564364f to your computer and use it in GitHub Desktop.
Set up Spotify in a debian-based Qubes VM
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/sh | |
set -e | |
url='https://repository-origin.spotify.com/pool/non-free/s/spotify-client/' | |
d=$(mktemp -d) | |
echo "Fetching index..." | |
wget -q -O "$d/index" "$url" | |
deb=$(grep href < "$d/index" | cut -d'"' -f2 | grep 'amd64.deb$' | head -1) | |
echo "Downloading client..." | |
wget -q --show-progress -O "$d/spotify.deb" "$url/$deb" | |
echo "Installing spotify..." | |
sudo dpkg -i "$d/spotify.deb" | |
echo "Resolving dependencies..." | |
sudo apt-get install -y -f | |
echo "Creating application shortcut..." | |
sudo ln -s /usr/share/spotify/spotify.desktop /usr/share/applications/spotify.desktop | |
echo 'Done!' | |
echo | |
echo "Run \`qvm-sync-appmenus $(qubesdb-read /name)\` in dom0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment