Hello, Guest

By registering with us, you'll be able to discuss, share and private message with other members of our community.
What's new

How to Install a RedAge RP Server Build on Linux (Debian 10) | RAGE:MP 1.1

Alexalsaud

Administrative
Staff member
Admin
Joined
Aug 5, 2024
Messages
337
ICoins
1,501

How to Install a RedAge RP Server Build on Linux (Debian 10) | RAGE:MP 1.1


Hello, in this thread I will try to tell you in as much detail as possible how to install the RedAge Role Play (RAGE:MP 1.1) server build on Linux (using the Debian 10 distribution as an example). At the end of the video, there will be a video on which all the steps from the manual will be done visually.

Start.

I'll be using the latest version of Debian 10 (netinst), which I downloaded from the official website:
I'll do everything on a virtual machine, but you'll probably have hosting with SSH access.

Let's check the information about the distribution by entering the command - lsb_release -a


debian@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
The first step is to update the kernel and packages to the latest versions:
Enter the command:

Bash:
sudo apt update && sudo apt full-upgrade

We agree to the installation and expect the result.

Next, you need to download a clean RAGE:MP 1.1 (linux_x64.tar.gz) server,
this archive is located in the folder with RAGE Multiplayer installed or can be downloaded from the link:

Enter the command:
Bash:
wget https://cdn.rage.mp/updater/prerelease/server-files/linux_x64.tar.gz
or upload the archive with pens via SFTP.

Let's unzip the archive with the command:

Bash:
tar -xzf linux_x64.tar.gz
Navigate to the ragemp-srv folder with the command:
Bash:
cd ragemp-srv
Enter the command:
Bash:
chmod +x ragemp-server
to give our executable run rights.

Let's start a clean server with the command:
Bash:
./ragemp-server
and make sure that everything works correctly, we should get a clean log of the server startup, without errors.
We have installed a clean server (database), any server build can be installed on this template.
Example of a successful launch:
1725037345508.png
Next, we will install the RedAge RP mod itself and the environment for it.
It is necessary to install a DBMS server - MySQL, create two databases.
Enter the command:
Bash:
sudo apt install default-mysql-server
We agree to the installation and expect the result.

Go to the database interface by entering the command:
Bash:
sudo mysql
Inside this interface, sequentially enter the commands:
SQL:
// Создаем две базы данных
CREATE DATABASE redage;
CREATE DATABASE redagelogs;


// Создаем пользователя для работы с базами данных
// Не забудьте изменить пароль p4ssw0rd на свой.
CREATE USER 'redage'@'localhost' IDENTIFIED WITH mysql_native_password BY 'p4ssw0rd'; // Команда для версии MySQL > 5.7
CREATE USER 'redage'@'localhost' IDENTIFIED BY 'p4ssw0rd'; // Команда для версии MySQL <= 5.6

// Предоставляем пользователю полный доступ к двум базам данных
GRANT ALL PRIVILEGES ON redage . * TO 'redage'@'localhost';
GRANT ALL PRIVILEGES ON redagelogs . * TO 'redage'@'localhost';
FLUSH PRIVILEGES;
If the commands were executed without errors, our data for the MySQL.cs file would be:
Host: localhost
User: redage
Database: redage && redagelogs
Password: p4ssw0rd (change to your own)
Exit the MySQL interface using the Ctrl + D keyboard shortcut.

Next, we need to import the database dump into the databases we have created.
Upload two sql files to any place on the server and enter the commands sequentially (during the execution process, you will be asked for a password for the user - enter the one you set above):
Bash:
sudo mysql -u redage -p redage < redage.sql
sudo mysql -u redage -p redagelogs < redagelogs.sql
At this stage of installing and configuring MySQL, let's move on to the server files.
We need to upload the RedAge server files to our folder with a clean RAGE:MP server:
List of files and folders to download:
  1. dotnet/resources
  2. dotnet/settings.xml
  3. client_packages
  4. conf.json
After we have downloaded all the files, we once again make sure that the line "csharp" : "enabled" is indicated in the server config (conf.json).

Final stage.
It is necessary to replace the file SQLite.Interop.dll (when running on Windows, this file is copied by itself after building the project):
Copy the file with the replacement:
from here dotnet\resources\client\bin\x64\Debug\netcoreapp3.1\runtimes\linux-x64\native\SQLite.Interop.dll
here dotnet\resources\client\bin\x64\Debug\netcoreapp3.1\SQLite.Interop.dll

Do not forget (on your PC) to fill out the file MySQL.cs, compile the solution and load new files client.dll and server.dll at: dotnet\resources\client\bin\x64\Debug\netcoreapp3.1
Delete the Settings.db if necessary, and in the future, when changing the backend, only two files (client.dll and server.dll need to be replaced.

Launch the server, everything should work perfectly:
1725037485033.png
I hope I explained everything clearly and the issue with the installation of the RAGE:MP server on Linux is now closed :)
Ask if something is not clear, if you have time - I will answer and try to help.

credit: Harland David Sanders
 
Back
Top