How to Install a FiveM Server on Linux
How to Install a FiveM Server on Linux
FiveM is a modification framework for Grand Theft Auto V that allows you to play on customized multiplayer servers. This guide will walk you through setting up your own FiveM server on a Linux system.
Prerequisites
- A Linux server (Ubuntu 20.04/22.04 recommended)
- At least 4GB RAM (8GB recommended for better performance)
- 50GB+ free disk space
- Root or sudo access
- Basic knowledge of Linux command line
Installation Steps
Step 1: Update System Packages
sudo apt update && sudo apt upgrade -y
Step 2: Install Required Dependencies
sudo apt install -y wget tar git libatomic1 libc6 libcurl4 libgcc1 libgconf-2-4 liblua5.3-0 libstdc++6 libuv1
Step 3: Download FiveM Server Files
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/[LATEST_BUILD]/fx.tar.xz
Replace [LATEST_BUILD] with the latest build number from FiveM artifacts page
Step 4: Extract FiveM Files
tar -xvf fx.tar.xz
Step 5: Run the Server
./run.sh
The first run will download additional files and may take several minutes.
Step 6: Configure Your Server
Edit the server.cfg file:
nano server-data/server.cfg
Basic configuration should include:
# Server name sets sv_hostname "My FiveM Server" # Maximum players sets sv_maxClients 32 # License key (get from https://keymaster.fivem.net) sv_licenseKey "your-license-key-here"
Step 7: Start Your Server
./run.sh +exec server.cfg
Troubleshooting
- Ports not open: Ensure ports 30120 (TCP/UDP) are open in your firewall
- Permission denied: Run
chmod +x run.sh
and ensure files are owned by your user - Server not showing in list: Verify your license key is valid and ports are forwarded correctly
Conclusion
You now have a basic FiveM server running on Linux. For more advanced configuration, consider adding resources, setting up databases, and implementing admin tools.
Comments
Post a Comment