Skip to content

Instantly share code, notes, and snippets.

@jishanshaikh4
Created December 1, 2021 17:41
Show Gist options
  • Save jishanshaikh4/6f6dbb331c4d91f1ef768f90c739a124 to your computer and use it in GitHub Desktop.
Save jishanshaikh4/6f6dbb331c4d91f1ef768f90c739a124 to your computer and use it in GitHub Desktop.
Install Spotify for Linux (Ubuntu/Debian based distro) WITHOUT ADS
#!bin/bash
####################################################################################
# INSTALL S P O T I F Y ON LINUX (WITHOUT ADS)
# Estimated download size 500-600 MB
# How to execute this script?
# sudo bash spot_without_ads.sh
# For any issues, report here at https://gist.github.com/jishanshaikh4/6f6dbb331c4d91f1ef768f90c739a124
####################################################################################
# STEP: 0
#########
# Install the dependencies required
sudo apt install git wget tar make gcc libc-dev curl
# STEP: 1
#########
# Install the official Spotify client for Linux
curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client
# STEP: 2
#########
# Build the Adblocker from scratch
# CREDIT: github.com/abba23/spotify-adblock-linux/ (Rust version is up now)
git clone https://github.com/abba23/spotify-adblock-linux.git
cd spotify-adblock-linux
wget -O cef.tar.bz2 https://cef-builds.spotifycdn.com/cef_binary_88.1.6%2Bg4fe33a1%2Bchromium-88.0.4324.96_linux64_minimal.tar.bz2
tar -xf cef.tar.bz2 --wildcards '*/include' --strip-components=1
make
sudo make install
cd ..
sudo rm -rf spotify-adblock-linux
# STEP: 3
#########
# Set the default spotify application icon in launcher
wget https://gist.githubusercontent.com/jishanshaikh4/1d95eb0eb7d6e624d83ba28c4190ac1c/raw/9d7c439da8af221aeb5becaea5db5e75965d62a7/spotify.desktop
sudo mv spotify.desktop /usr/share/applications/spotify.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment