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

  1. Install packages
    sudo apt update && sudo apt install git curl unzip screen xz-utils mariadb-server -y
  2. 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
  3. Clone the QB-Core framework
    git clone https://github.com/qbcore-framework/qb-core.git
    cp -r qb-core/* /opt/fivem-server/resources/
  4. Create a basic server.cfg
    echo 'ensure qb-core' > /opt/fivem-server/server.cfg
  5. 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

See also

Next steps

Continue with Jobs and Guides.