Last active
March 8, 2020 04:52
-
-
Save giner/deda63984b3e45cced7af1d3dcd792ea to your computer and use it in GitHub Desktop.
Install libs needed to run Savage XR on Ubuntu 18.04
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
#!/bin/bash | |
# This script installs libraries needed to run Savage XR on Ubuntu 18.04 Desktop x86_64 | |
# NOTE: To run Savage XR successfully you also need to do the following | |
# | |
# Run the script to install the required libraries: | |
# wget https://gist.githubusercontent.com/giner/deda63984b3e45cced7af1d3dcd792ea/raw/install_libs_for_savage-xr.sh | |
# chmod +x ./install_libs_for_savage-xr.sh | |
# sudo ./install_libs_for_savage-xr.sh | |
# | |
# Run the installer in text mode as graphic mode may not work: | |
# ~/Downloads/xr_setup-1.0-cl_lin_prod.bin --mode console | |
# | |
# After installation run: | |
# rm ~/savage-xr/libs/libstdc++.so.6 && rm ~/savage-xr/libs/libgpg-error.so.0 | |
# | |
# Run this a few times times (normally two) untill all updates are installed | |
# rm -f ~/savage-xr/libs/libz.so.1 && ~/savage-xr/savage.sh | |
set -euo pipefail | |
arch=i386 | |
libs=( | |
libc6 | |
libstdc++6 | |
libx11-6 | |
libxft2 | |
libxinerama1 | |
libgpg-error0 | |
libsdl1.2debian | |
libgl1 | |
libglu1-mesa | |
) | |
libs_arch=() | |
for lib in "${libs[@]}" | |
do libs_arch+=("$lib:$arch") | |
done | |
# Disable CD-ROM source | |
sed -i '/^deb cdrom/ s/^/#/' /etc/apt/sources.list | |
dpkg --add-architecture "$arch" | |
apt-add-repository -ns universe | |
apt update | |
apt install "${libs_arch[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment