progress tutorial for setting up a FiveM server on Debian

Yarpii

🖤 Founder
Dec 6, 2019
114
1
18
Bitz
💎2,726.97
let's create a user for the server as we do not wanna use root

Let's make sure the server is fully updated and ready for use before we install and setup the fx server
Code:
apt update && apt dist-upgrade -y


Now we do some cleanup
Code:
apt autoremove -y && apt clean


Now restart your server so we can begin with the next step
Code:
reboot now

If have fresh debian it's possible u don't have sudo yet installed so:
Bash:
 apt install sudo


Code:
adduser fxserver
i have called my user fxserver as it is a fx server

now we add this user to the sudo group to use sudo command
Code:
usermod -aG sudo fxserver

Now this is done where going to download the latest versio of the fx server files with
Code:
wget

now we have downloaded the letst server files where need to unpack it with
Code:
tar -xvf fx.tar.xz
very nice
now we remove the packed files
Code:
rm -r fx.tar.xz

-----------------------------------------------------------------------
The server shall need a database so let's set that first up
for users that dont wanna use phpmyadmin go to setp ??
for users that wanna use server with phpmyadmin follow this

Now we need to download our database as i love MaraiDB will i use that for this tutupial

let's install the dependecies mariadb needs and everything else in thos project..
```
apt update
apt dist-upgrade
apt autoremove
apt clean

Now that the server is updated shall we do a fast restart
```
reboot now
```

Now log back into the server


Now where back logged in we can contueu with our work by install the depencies the server will need to make all this magic to work
```
apt install apache2 php7
```

Now we can contue to the










let's create a user for the server as we do not wanna use root
```
adduser fxserver
```
i have called my user fxserver as it is a fx server

now we add this user to the sudo group to use ```sudo``` command
```
usermod -aG sudo fxserver
```

Now this is done where going to download the latest versio of the fx server files with
```
wget
```

now we have downloaded the letst server files where need to unpack it with
```
tar -xvf fx.tar.xz
```
very nice
now we remove the packed files
```
rm -r fx.tar.xz
```
 
Last edited: