Skip to content

Instantly share code, notes, and snippets.

@jpouellet
Created October 11, 2016 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpouellet/65bd51a35faf139cf1eacd3d6564364f to your computer and use it in GitHub Desktop.
Save jpouellet/65bd51a35faf139cf1eacd3d6564364f to your computer and use it in GitHub Desktop.
Set up Spotify in a debian-based Qubes VM
#!/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