Difference between revisions of "Linux generic installation"

From EncyclopAtys

Jump to: navigation, search
m (add Category:Obsolete as Ryzom installer should be the defaut instsall method)
(Update links and add precisions on this tutorial's goals and state after the main part)
Line 7: Line 7:
 
  }}
 
  }}
  
In this tutorial, we will cover the installation and configuration of the Ryzom client itself. We will not document how to install dependencies for it can change from a distribution to another.
+
This tutorial is targeted towards power-users, not general public. It covers the installation and configuration of the Ryzom client itself in a generic way without looking to integrate it within a specific tool or distribution. Because of this, it does not document how to install dependencies for it can change from a distribution to another.
  
 
== From the official archive ==
 
== From the official archive ==
Line 14: Line 14:
  
 
<pre>mkdir -p "$HOME/ryzom"
 
<pre>mkdir -p "$HOME/ryzom"
wget -O "ryzom_live_client_linux.7z" "https://sourceforge.net/projects/ryzom/files/installer/ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z/download"
+
wget -O "ryzom_live_client_linux.7z" "https://download.ryzom.com/ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z"
wget -O "ryzom_live_data.7z" "https://sourceforge.net/projects/ryzom/files/installer/ryzom_live_data.7z/download"
+
wget -O "ryzom_live_data.7z" "https://download.ryzom.com/ryzom_live_data.7z"
 
7z x "ryzom_live_client_linux.7z" -o"$HOME/ryzom/"
 
7z x "ryzom_live_client_linux.7z" -o"$HOME/ryzom/"
 
7z x "ryzom_live_data.7z" -o"$HOME/ryzom/"
 
7z x "ryzom_live_data.7z" -o"$HOME/ryzom/"
 
rm -f "ryzom_live_client_linux.7z" "ryzom_live_data.7z"
 
rm -f "ryzom_live_client_linux.7z" "ryzom_live_data.7z"
 
</pre>
 
</pre>
 +
 +
The game can now be started with the following command:
 +
 +
<pre>~/ryzom/ryzom_client</pre>
 +
 +
In order to simplify this, it it possible to use the starting script presented below or to create a graphical launcher if your desktop environment supports it (in this case, you should replace <code>~</code> by <code>$HOME</code>).
  
 
== Starting script (optional) ==
 
== Starting script (optional) ==

Revision as of 11:14, 22 August 2019

en:Linux generic installation
fr:Linux generic installation
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Markanjio, 2019-08-22)


This tutorial is targeted towards power-users, not general public. It covers the installation and configuration of the Ryzom client itself in a generic way without looking to integrate it within a specific tool or distribution. Because of this, it does not document how to install dependencies for it can change from a distribution to another.

From the official archive

First, you may need to install wget and 7z. Then, retrieve the compressed Ryzom archive using the following commands:

mkdir -p "$HOME/ryzom"
wget -O "ryzom_live_client_linux.7z" "https://download.ryzom.com/ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z"
wget -O "ryzom_live_data.7z" "https://download.ryzom.com/ryzom_live_data.7z"
7z x "ryzom_live_client_linux.7z" -o"$HOME/ryzom/"
7z x "ryzom_live_data.7z" -o"$HOME/ryzom/"
rm -f "ryzom_live_client_linux.7z" "ryzom_live_data.7z"

The game can now be started with the following command:

~/ryzom/ryzom_client

In order to simplify this, it it possible to use the starting script presented below or to create a graphical launcher if your desktop environment supports it (in this case, you should replace ~ by $HOME).

Starting script (optional)

If you do not already have one, create a custom directory where you can store executable files:

mkdir -p "$HOME/bin"
echo '[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH"' >>"$HOME/.bashrc"
source "$HOME/.bashrc"

Create the $HOME/bin/ryzom file with the following content and change your_account_name_goes_here with your account name.

#!/bin/sh

set -euo pipefail
IFS=$'\n\t'

ACCOUNT="your_main_account_name_goes_here"
RYZOM_DOMAIN="ryzom.com"
RYZOM_DIR="$HOME/ryzom"
RYZOM_CLIENT="ryzom_client"

if [ $# -ge 1 ]; then
    ACCOUNT="$1"
fi

cd "$RYZOM_DIR"

if hash pass 2>/dev/null; then
    PASSWORD="$(pass $RYZOM_DOMAIN/$ACCOUNT)"
    "$RYZOM_DIR/$RYZOM_CLIENT" "$ACCOUNT" "$PASSWORD"
else
    "$RYZOM_DIR/$RYZOM_CLIENT" "$ACCOUNT"
fi

Now set the starting script executable:

chmod a+x "$HOME/bin/ryzom"

You can now start Ryzom using the ryzom command. To start Ryzom with another account, you can use the ryzom account_name command.

Password management (optional)

pass can be used to handle your account password. The starting script already handles it providing you store your password under ryzom.com/account_name. Obviously, you can store passwords for multiple accounts using the same pattern.