Spotify Debian
Pre-requisites
Install Spotify for your Linux distro by going to the official site of Spotify and notinstalling the package using Snap but using the Debian package installation. Make
may already be installed on your device but you can install it using sudo apt-get install build-essential
to be on the safe side. Rust
Install using the following command - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt-get purge spotify-client
https://github.com/isouravgope/spotify-adblock-linux
code...
git clone https//github.com/.....
cd spotify-adblock-linux
kate or gedit for spot.sh
kate .spot.sh
find wget wget.... deb package
https://repository-origin.spotify.com/pool/non-free/s/spotify-client/
save file
chmo a+x spot.sh
and
./spot.sh
finish
ready spotify
cd ~/.local/share/applications
ls
spotifylinux
or
cd
spotify-adblock
kate Cargo.toml
add [dependencies] lazy_static = "*" libc = "*" regex = "*" serde = { version = "*", features = ["derive"] } serde_regex = "*" toml = "*" anchor-spl = { git = "https://github.com/coral-xyz/anchor" }
git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock
make
If it gives an error, use the commands below.
cargo update
and
sudo apt-get install libssl-dev
To test if it works run this command - LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
This should now launch Spotify with the adblocked version!Creating a desktop file
If you run Spotify installed by you, you will notice the ads aren't blocked unless you run the command above on the terminal. To solve this issue a small hack exists.Fire up your terminal and change your directory on the terminal - cd ~/.local/share/applications
You now need to create a desktop file in order to get the application in your menu. Create the file and edit it by using - nano spotify-adblock.desktop
In the editing space copy paste the following code:
[Desktop Entry]
Type=Application
Name=Spotify (adblock)
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify
No comments