Skip to content

Instantly share code, notes, and snippets.

@wvega
Created February 9, 2011 23:20
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wvega/819557 to your computer and use it in GitHub Desktop.
Save wvega/819557 to your computer and use it in GitHub Desktop.
Install Mendeley on Fedora
#!/bin/sh
ARCH=`uname -m`
INSTALL=/usr/local/mendeley
# As noted by Narendiran Anandan in http://disq.us/26v7yj,
# required OpenSSL libraries are availabe only at the following locations:
# http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/x86_64/os/Packages/openssl-0.9.8k-1.fc11.x86_64.rpm
# http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages/openssl-0.9.8k-1.fc11.i586|i686.rpm
case $ARCH in
x86_64 )
MENDELEY="http://www.mendeley.com/client/get/100-2"
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/$ARCH/os/Packages"
OPENSSL_RPM="openssl-0.9.8k-1.fc11.$ARCH.rpm"
;;
i586 )
MENDELEY="http://www.mendeley.com/client/get/100-1"
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages"
OPENSSL_RPM="openssl-0.9.8k-1.fc11.$ARCH.rpm"
;;
i* )
MENDELEY="http://www.mendeley.com/client/get/100-1"
OPENSSL_URL="http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages"
OPENSSL_RPM="openssl-0.9.8k-1.fc11.i686.rpm"
;;
* )
echo "This installation script currently does not support your system's architecture: $ARCH"
;;
esac
if [ $OPENSSL_URL ]; then
mkdir $INSTALL
cd $INSTALL
# Download Mendeley Desktop and extract the files to installation directory
wget $MENDELEY
tar -xjf *.tar.bz2
\cp -a mendeleydesktop*/* .
rm mendeleydesktop* -rf
# Install Mendeley Icons
\cp -a share/icons /usr/share/
# Install .desktop
\cp -a share/applications/mendeleydesktop.desktop /usr/share/applications/
# Create executable command
ln -fs $INSTALL/bin/mendeleydesktop /usr/bin/
# Download openssl-0.9.8 and extract the files from the RPM
# See: http://feedback.mendeley.com/forums/4941-mendeley-feedback/suggestions/140258-libssl-so-0-9-8-error-on-64-bit-x86-64-
mkdir -p /tmp/openssl
cd /tmp/openssl
wget "$OPENSSL_URL/$OPENSSL_RPM"
rpm2cpio $OPENSSL_RPM | cpio -idmv
# cd to Mendeley Desktop directory. The one you extracted the files to...
cd $INSTALL/lib
# Fix symbolic links
rm libssl.so.0 -rf
\cp -a /tmp/openssl/usr/lib*/* .
ln -s libssl.so.8 libssl.so.0
rm /tmp/openssl -rf
fi
@dnayyala
Copy link

dnayyala commented May 3, 2018

I had issues with the icons sticking to the launcher in F27. Had to run the following script from http://blog.fpmurphy.com/2011/03/customizing-the-gnome-3-shell.html to update the icon cache.

#!/bin/bash 
find /usr/share/icons -maxdepth 1 -type d | \
while read -r THEME; do
   if [[ -f "$THEME/index.theme" ]]; then
      echo "Updating $THEME cache"
      gtk-update-icon-cache -f -q "$THEME"
   fi
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment