Skip to content

Instantly share code, notes, and snippets.

@altruizine
Created November 16, 2012 10:08
Show Gist options
  • Save altruizine/4086143 to your computer and use it in GitHub Desktop.
Save altruizine/4086143 to your computer and use it in GitHub Desktop.
Install Spotify in a Debian Squeeze chroot environment under OpenSuse 12.1.
#!/bin/sh
# Prerequisites: debootstrap and schroot.
# Don't forget to adapt YOUR_USER_NAME below.
# Use the 32-bit version of Spotify (and Debian). The 64-bit version
# often crashes.
cd
debootstrap --arch i386 squeeze /var/chroot/debian-squeeze-i386 http://ftp.de.debian.org/debian/
cat > /etc/schroot/chroot.d/debian-squeeze32 <<EOF
[squeeze32]
aliases=default
description=Debian Squeeze 32bit
personality=linux32
type=directory
directory=/var/chroot/debian-squeeze-i386
users=YOUR_USER_NAME
groups=sbuild
root-groups=root
EOF
cd /etc/schroot/default
cp -p copyfiles copyfiles.dist
echo /etc/asound.conf >> copyfiles
cd
# Add group staff to host system -- needed by one of the debian
# package deps (sgml)
groupadd --preferred-gid 50 staff
schroot apt-get install locales
schroot dpkg-reconfigure locales
schroot bash <<EOF
echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 082CCEDF94558F59
apt-get update
apt-get install spotify-client
y
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment