Forked from olejon/Install Spotify 0.9 on Fedora 64-bit
Last active
May 6, 2017 14:52
-
-
Save nickboldt/e33dc26c85f901057835e5a67d0d8d88 to your computer and use it in GitHub Desktop.
Install Spotify (v1.0) on RHEL7 or Fedora 24 64-bit
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
# START GUIDE | |
# Make sure you copy the whole lines into Terminal. Each command is on one line. | |
# Open Terminal and become root | |
sudo su | |
# Enable necessary EPEL and RPMFusion repos from https://rpmfusion.org/Configuration if you haven't already | |
# then update | |
yum update | |
# Install necessary packages | |
yum install ffmpeg-libs fribidi lame-libs libXScrnSaver libass libva opencv-core openjpeg-libs schroedinger soxr x264-libs x265-libs xvidcore alien | |
# get libgcrypt from https://pkgs.org/download/compat-libgcrypt | |
# this was 404'd | |
wget https://heanet.dl.sourceforge.net/project/unitedrpms/repository/x86_64//compat-libgcrypt-1.5.5-5.fc24.x86_64.rpm --no-check-certificate | |
# or... | |
wget https://raw.githubusercontent.com/UnitedRPMs/unitedrpms/master/RPM/unitedrpms-25-1.noarch.rpm | |
rpm -Uvh unitedrpms*rpm | |
dnf install libgcrypt1.5.4 | |
# Download latest Spotify version 1.0 from http://repository.spotify.com/pool/non-free/s/spotify-client/ | |
wget http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.53.758.gde3fc4b2-33_amd64.deb | |
# Convert deb package to rpm package | |
alien -r .//spotify-client_1.0.53.758.gde3fc4b2-33_amd64.deb | |
# Install rpm package | |
rpm -i --nodeps --force ./spotify-client-*.rpm | |
# Install necessary libraries | |
wget https://www.dropbox.com/s/ekgbtu8rupo0ofy/libcrypto.so.1.0.0 -O /usr/lib64/libcrypto.so.1.0.0 | |
wget https://www.dropbox.com/s/2lj4jbfnbdifdu8/libssl.so.1.0.0 -O /usr/lib64/libssl.so.1.0.0 | |
ldconfig | |
# Install icons (long line coming up) | |
xdg-icon-resource install --size 16 /opt/spotify/spotify-client/Icons/spotify-linux-16.png "spotify-client" && xdg-icon-resource install --size 22 /opt/spotify/spotify-client/Icons/spotify-linux-22.png "spotify-client" && xdg-icon-resource install --size 24 /opt/spotify/spotify-client/Icons/spotify-linux-24.png "spotify-client" && xdg-icon-resource install --size 32 /opt/spotify/spotify-client/Icons/spotify-linux-32.png "spotify-client" && xdg-icon-resource install --size 48 /opt/spotify/spotify-client/Icons/spotify-linux-48.png "spotify-client" && xdg-icon-resource install --size 64 /opt/spotify/spotify-client/Icons/spotify-linux-64.png "spotify-client" && xdg-icon-resource install --size 128 /opt/spotify/spotify-client/Icons/spotify-linux-128.png "spotify-client" && xdg-icon-resource install --size 256 /opt/spotify/spotify-client/Icons/spotify-linux-256.png "spotify-client" && xdg-icon-resource install --size 512 /opt/spotify/spotify-client/Icons/spotify-linux-512.png "spotify-client" | |
# Add Spotify to the Applications menu | |
cp -p /opt/spotify/spotify-client/spotify.desktop /usr/share/applications/ | |
# open firewall ports | |
iptables -A INPUT -d 127.0.0.1 -p tcp -m multiport --dports 4381,8099,l2c-control,4070,443,80 -j ACCEPT | |
iptables -A INPUT -p tcp -m multiport --dports 4381,8099,l2c-control,4070,443,80 -j ACCEPT | |
# Log out | |
# Log in | |
# Spotify should now be in the Applicatons menu | |
# END GUIDE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment