From Ryzom Forge Wiki
m |
(Major update for v3) |
||
Line 6: | Line 6: | ||
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. | 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. | ||
− | == | + | == From the official archive == |
− | |||
− | |||
This is optional but highly recommended in order to speed up the installation process and spare your internet connection. First, you may need to install <code>wget</code> and <code>7z</code>. Then, retrieve the compressed Ryzom archive using the following commands: | This is optional but highly recommended in order to speed up the installation process and spare your internet connection. First, you may need to install <code>wget</code> and <code>7z</code>. Then, retrieve the compressed Ryzom archive using the following commands: | ||
<pre>mkdir -p "$HOME/ryzom" | <pre>mkdir -p "$HOME/ryzom" | ||
− | wget http:// | + | wget "http://netix.dl.sourceforge.net/project/ryzom/installer/ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" |
− | 7z x | + | wget "http://netix.dl.sourceforge.net/project/ryzom/installer/ryzom_live_data.7z" |
− | rm | + | 7z x "ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" -o"$HOME/ryzom/" |
+ | 7z x "ryzom_live_data.7z" -o"$HOME/ryzom/" | ||
+ | rm -f "ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" "ryzom_live_data.7z" | ||
</pre> | </pre> | ||
− | + | == Starting script (optional) == | |
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | If you do not already have one, create a custom directory where you can store executable files: | |
− | <pre> | + | <pre>mkdir -p "$HOME/bin" |
− | + | [[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH" | |
− | + | echo '[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH"' >>"$HOME/.bashrc" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | + | Create the <code>$HOME/bin/ryzom</code> file with the following content and change <code>your_account_name_goes_here</code> with your account name. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre>#!/bin/sh | <pre>#!/bin/sh | ||
− | + | set -euo pipefail | |
− | + | IFS=$'\n\t' | |
− | |||
− | |||
− | set - | ||
− | + | DEFAULT_ACCOUNT="your_account_name_goes_here" | |
+ | ACCOUNT="$DEFAULT_ACCOUNT" | ||
+ | RYZOM_DOMAIN="ryzom.com" | ||
+ | RYZOM_DIR="$HOME/ryzom" | ||
+ | RYZOM_CLIENT="ryzom_client" | ||
− | if [ | + | if [ $# -ge 1 ]; then |
− | + | ACCOUNT="$1" | |
fi | fi | ||
− | |||
− | + | hash pass 2>/dev/null && pass -c "$RYZOM_DOMAIN/$ACCOUNT" | |
− | + | cd "$RYZOM_DIR" | |
− | + | "$RYZOM_DIR/$RYZOM_CLIENT" "$ACCOUNT"</pre> | |
− | + | Now set the starting script executable: | |
− | + | <pre>chmod a+x "$HOME/bin/ryzom"</pre> | |
− | + | You can now start Ryzom with an automatic login using the <code>ryzom</code> command. To start Ryzom with another account, you can use the <code>ryzom account_name</code> command. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Auto-login using pass == | == Auto-login using pass == | ||
− | [http://www.passwordstore.org/ pass] can be used to handle your account password. | + | [http://www.passwordstore.org/ pass] can be used to handle your account password. The starting script already handles it providing you store your password under <code>ryzom.com/account_name</code>. At startup, your password will be in your clipboard for a few seconds so you can simply paste it into the field. Obviously, you can store passwords for multiple accounts using the same pattern. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{In_Category|Linux}} | {{In_Category|Linux}} |
Revision as of 17:58, 29 October 2016
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.
From the official archive
This is optional but highly recommended in order to speed up the installation process and spare your internet connection. First, you may need to install wget
and 7z
. Then, retrieve the compressed Ryzom archive using the following commands:
mkdir -p "$HOME/ryzom" wget "http://netix.dl.sourceforge.net/project/ryzom/installer/ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" wget "http://netix.dl.sourceforge.net/project/ryzom/installer/ryzom_live_data.7z" 7z x "ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" -o"$HOME/ryzom/" 7z x "ryzom_live_data.7z" -o"$HOME/ryzom/" rm -f "ryzom_live_client_linux$(test $(uname -m) = 'x86_64' && echo 64 || echo 32).7z" "ryzom_live_data.7z"
Starting script (optional)
If you do not already have one, create a custom directory where you can store executable files:
mkdir -p "$HOME/bin" [[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH" echo '[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH"' >>"$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' DEFAULT_ACCOUNT="your_account_name_goes_here" ACCOUNT="$DEFAULT_ACCOUNT" RYZOM_DOMAIN="ryzom.com" RYZOM_DIR="$HOME/ryzom" RYZOM_CLIENT="ryzom_client" if [ $# -ge 1 ]; then ACCOUNT="$1" fi hash pass 2>/dev/null && pass -c "$RYZOM_DOMAIN/$ACCOUNT" cd "$RYZOM_DIR" "$RYZOM_DIR/$RYZOM_CLIENT" "$ACCOUNT"
Now set the starting script executable:
chmod a+x "$HOME/bin/ryzom"
You can now start Ryzom with an automatic login using the ryzom
command. To start Ryzom with another account, you can use the ryzom account_name
command.
Auto-login using pass
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
. At startup, your password will be in your clipboard for a few seconds so you can simply paste it into the field. Obviously, you can store passwords for multiple accounts using the same pattern.
5 pages in Linux