Welcome, Guest. Please login or register.
Did you miss your activation email?
August 14, 2020, 02:23:13 pm

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The XR1.1 Client is out now! Download it now!
190016 Posts in 11005 Topics by 18524 Members
Latest Member: h1ppy
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Savage XR
| |-+  General Savage XR Discussion
| | |-+  Savage XR: Successful lauch of the Linux version on Ubuntu 18.04 Desktop x86_64
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Savage XR: Successful lauch of the Linux version on Ubuntu 18.04 Desktop x86_64  (Read 578 times)
giner
Newbie
*
Posts: 27


View Profile
« on: March 08, 2020, 01:40:03 am »

I've spent sometime figuring out minimum requirements to launch Savage XR for Linux on Ubuntu 18.04 Desktop x86_64 and here are the results. These workarounds won't be needed if (hopefully) somebody updates and fixes the original Linux installer. Tested on Ubuntu 18.04 LiveCD to ensure clean environment.

Code:
#!/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[@]}"

Permanent link to the script https://gist.github.com/giner/deda63984b3e45cced7af1d3dcd792ea
« Last Edit: March 08, 2020, 04:53:03 am by giner » Logged
C.I.A.
XR Contributor
Jr. Member
****
Posts: 70


View Profile
« Reply #1 on: March 10, 2020, 08:19:02 pm »

Genius!

Thanks Giner, worked for me first time on Ubuntu MATE 18.04 LTS. Smiley

Although I did remove the disable CD-ROM, as I dont want people messing with my source.list and I also knocked out the adding universe as its already active.

You might want to consider joining Discord and the Savage XR channel as there is more development talk over there than on this forum these days.

Drk is beavering away finalizing the 64-bit release version of Savage... XR - 64! Which hopefully will make installation a lot less painful.

When I get the chance I'll try your script on Debian 10, should work.

Pure magic!
Thanks again.

Logged
drk
Community Serveradmin
XR Coder
Hero Member
***
Posts: 550



View Profile
« Reply #2 on: March 10, 2020, 08:32:06 pm »

Yes, that's true.
We've already updated savage linux client a lot: gcc-8, std=c++11, x64, python3.7, ssl-1.1.1d, libpng16, sdl-2 and so on (was built and tested on ubuntu 18-19)
I hope it will be released soon (I can share if you would like to try it; some of us already got it)
Logged

giner
Newbie
*
Posts: 27


View Profile
« Reply #3 on: April 10, 2020, 08:11:26 am »

Although I did remove the disable CD-ROM, as I dont want people messing with my source.list and I also knocked out the adding universe as its already active.
These two were done to work on Ubuntu LiveCD
Logged
giner
Newbie
*
Posts: 27


View Profile
« Reply #4 on: April 10, 2020, 08:13:52 am »

You might want to consider joining Discord and the Savage XR channel as there is more development talk over there than on this forum these days.
I'm not sure what those are and how to join them. Can somebody guide me?
Logged
giner
Newbie
*
Posts: 27


View Profile
« Reply #5 on: April 10, 2020, 08:35:34 am »

I hope it will be released soon (I can share if you would like to try it; some of us already got it)

That'd be nice.

I don't receive email notifications for posts updates btw.
Logged
C.I.A.
XR Contributor
Jr. Member
****
Posts: 70


View Profile
« Reply #6 on: April 16, 2020, 11:08:09 pm »

The link to the Savage XR Discord channel is on the front page, which I think is:
  * https://tinyurl.com/xrdiscord

It is possible to access the channel (and create an account) via the website/webapp, however I've found it better to download and use the Linux Discord client, although there are features missing - such as spell checker (who would have thought a chat client needs a spell checker!).

More about Discord here:
  * https://en.wikipedia.org/wiki/Discord_(software)

Homepage here:
  * https://discordapp.com/
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 20 queries.