Goal
Prepare a minimal QB-Core server on a clean Ubuntu/Debian machine.
Prerequisites
- Fresh Ubuntu or Debian installation
- Open ports
30120
(TCP/UDP) - FiveM license key
Steps
- Install packages
sudo apt update && sudo apt install git curl unzip screen xz-utils mariadb-server -y
- Download FiveM artifacts
cd /opt curl -O https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/latest.tar.xz tar xf latest.tar.xz
- Clone the QB-Core framework
git clone https://github.com/qbcore-framework/qb-core.git cp -r qb-core/* /opt/fivem-server/resources/
- Create a basic
server.cfg
echo 'ensure qb-core' > /opt/fivem-server/server.cfg
- Start the server
cd /opt/fivem-server ./run.sh +exec server.cfg
Verification
- The console shows
Started resource qb-core
- Join the server at
localhost
from FiveM