## Getting Started 🚀
Before starting, you'll need:
sudo apt-get install screen
2. Extract the server.7z file to C:\redm\server-files.
### Step 3: Start the Server
FXServer.exe to start the server.
2. A browser window will open for txAdmin setup. Follow these steps:

- Set a password for the admin panel.
- Name your server.

Select Remote URL Template and enter the RSG Core recipe URL:
https://raw.githubusercontent.com/Rexshack-RedM/txAdminRecipe/main/rsgcore.yaml
.

Set the server data path to C:\redm\server-data.


- Enter the key you generated in Step 1.
- Run the recipe and wait for it to complete.

### Step 4: Configure MariaDB
rsg_core).config.lua file:Config = {
Database = {
Host = "localhost",
User = "root",
Password = "yourpassword",
Database = "rsg_core"
}
}Open the following ports on your firewall:
A video demo on how to setup/open ports can be found here.
Update your system:
sudo apt-get update
Install MariaDB:
sudo apt-get install mariadb-server
Secure the installation:
sudo mysql_secure_installation
Log in to MariaDB:
mysql -u root -p
Create a new user and database:
CREATE USER 'user1'@'%' IDENTIFIED BY 'password1';
CREATE DATABASE rsg_core;
GRANT ALL PRIVILEGES ON rsg_core.* TO 'user1'@'%';
FLUSH PRIVILEGES;
Edit the MariaDB configuration file:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Change bind-address to 0.0.0.0.
Restart MariaDB:
sudo systemctl restart mariadb
Open port 3306 for MariaDB:
sudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
Open ports 30120 and 40120 for the server:
sudo iptables -A INPUT -p tcp --dport 30120 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 40120 -j ACCEPT
Download the latest Linux artifacts:
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/<latest-build>/fx.tar.xz
Extract the artifacts:
tar -xf fx.tar.xz
Start the server in a screen session:
screen -S redm
./run.sh
Follow the same txAdmin setup steps as in the Windows section.
server.cfg file for errors.config.lua.30120 and 40120 are open.Congratulations! You’ve successfully set up a RedM server using RSG Core and the txAdmin recipe. Now you can customize your server, add scripts, and invite players to join your world. For more advanced configurations, refer to the RSG Core documentation.
Happy gaming! 🚀