RSG Framework
Installation

Linux Installation

Install an RSG Framework server on Linux, step by step.

Running RSG on Linux means installing a standalone database (MariaDB) and the CFX artifacts yourself. This guide walks through the whole process. Once the artifacts are running and txAdmin opens, the rest of the setup is identical to the Windows / txAdmin install.

MariaDB

While Windows uses XAMPP, on Linux we install a standalone copy of MariaDB via the shell.

Before installing any package it's good practice to update your system:

sudo apt-get update

Always use a user that has sudo privileges rather than the root account. It is recommended to disable remote root access to reduce the impact of a possible breach.

Install the MariaDB server:

sudo apt-get install mariadb-server

Follow the guided setup, then run the secure installation:

sudo mysql_secure_installation

The script prompts you to set the root password, remove the anonymous user, restrict root access to the local machine, and remove the test database. Answering Y (yes) to every question is recommended. Once complete you can connect:

mysql -u root -p

If you forgot the root password, a sudo privileged user can bypass the login with sudo mysql -u root.

Creating an admin user

You now have a working MariaDB service. Next, create an administrative user (rather than using root for everything) and grant it privileges. Open the console:

mysql -u root -p

Then run these statements in order, changing the username, password, and host to suit you:

CREATE USER 'user1'@localhost IDENTIFIED BY 'password1';
SELECT User FROM mysql.user;
GRANT ALL PRIVILEGES ON *.* TO 'user1'@localhost IDENTIFIED BY 'password1';
FLUSH PRIVILEGES;

user1, localhost, and password1 are placeholders. Since Linux has no desktop environment, you will most likely connect to the database remotely — in that case use 'user1'@'%' (% means "any host") instead of localhost.

Allowing remote access

By default MariaDB only accepts connections from the local machine. To connect with external software such as HeidiSQL you need to change the bind address.

Open the config file:

sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf

Change the bind-address from 127.0.0.1 to 0.0.0.0 to allow all connections, then save (CTRL+X, Y, Enter). Restart the service and confirm it is running:

sudo systemctl restart mariadb
sudo systemctl status mariadb

Opening ports

MySQL/MariaDB uses port 3306 by default. Ports are like doors — traffic can only pass if the door is open. We use iptables to open the port. Check it is installed:

sudo iptables --version

Then open the port:

sudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT

You can verify the port is reachable with a tool such as portchecker.co.

Running the artifacts

The artifacts are the "brain" of the server. Grab the latest Linux artifact, right-click the latest build and copy the link, then download it with wget (replace the URL with the one you copied):

wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/XXXX/fx.tar.xz

Extract the archive:

tar -xf fx.tar.xz

Then start the server:

./run.sh

From here the setup is identical to Windows — you are now configuring txAdmin. Continue with the txAdmin installation guide, skipping the artifact download steps since you have already completed them.

Next steps

On this page