georgeklinge26
georgeklinge26
The Journaling of Severinsen 930
2 posts
Don't wanna be here? Send us removal request.
georgeklinge26 · 2 years ago
Text
Linux Commands And Scripts
A root user access or normal user with administrative privileges.
1. Keep your server current
For security updates, make sure you update your server.
# Update to apt -y
# apt-upgrade -y
2. Add ports in UFW
We will ensure that we open the following ports, as they are required for FiveM to operate correctly:
# UFW allows 30120 UFW allows 30110
3. Install FiveM
First create a blank directory. Next you need to navigate to it. This directory will hold all of your FiveM server files.
# mkdir ~/fivem_server # cd ~/fivem_server
Use the following command to download the newest master branch:
# wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/3074-0c5d71ad77873c159d7542a7e8314d9696c1b55b/fx.tar.xz
Visit the artifacts servers to see the most recent master branch build. Download it using the wget command.
After downloading the file, extract it using the this command:
# tar -xvf fx.tar.xz
After you have successfully extracted the archive, you can now remove it.
# rm.tar.xz
Next, copy the cfx_server-data repository into a new directory. This directory will include the server resources. The following command will clone the repository into a new folder called fivem_resources in your home directory.
Now, create a no-cost license with a FiveM license key,
We will create a configuration file with the name of server.cfg in fivem_resources directory.
# vi ~/fivem_resources/server.cfg
Add the following lines:
# Change the IP only if using multiple network interfaces. endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120"
# These resources will start by default. ensure mapmanager ensure chat ensure spawnmanager ensure sessionmanager ensure fivem ensure hardcap ensure rconlog ensure scoreboard
# This allows players the ability to use scripthook-based plug-ins, such as the older Lambda Menu. Set this value to 1 to enable scripthook. This does not mean that players will be able to access any plugins that are external to. sv_scriptHookAllowed 0
# Uncomment this line and create an account password to allow RCON. Make sure you change the password - it should look like rcon_password "YOURPASSWORD" #rcon_password ""
A comma separated list of tags to be used on your web server. For example: - sets tags "drifting cars, racing" # Or: # Set tags "roleplay military, tanks, and roleplay" sets tags "default"
Include server information and a hyperlink to the banner image URL. # Size doesn't really matter. Any banner-sized image will work. #sets banner_detail "https://url.to/image.png" #sets banner_connecting "https://url.to/image.png"
# Set your server's hostname in sv_hostname "FXServer however, it is not configured"
# Nested configs! #exec server_internal.cfg
# Loading a Server Image (96x96 PNG File) #load_server_icon myLogo.png
Convars that can be used in scripts temp_convar "hey world! Sbcglobe
Uncomment this line if you do not want your server to be listed in the server browser. # Do not edit it if you *do* wish to see your server listed. #sv_master1 ""
# Add system admins add_ace group.admin command allow # allow all commands add_ace group.admin command.quit deny # but don't allow quit add_principal identifier.steam:110000100000000 group.admin # add the admin to the group
# Hide endpoints of players in external log output. sv_endpointprivacy true
# Server player slot limit (must be between 1 and 32 except if using OneSync) sv_maxclients 32
# License key for your server (https://keymaster.fivem.net) sv_licenseKey replaceThisWithYourLicenseKey
Note: relace this replaceThisWithYourLicenseKey with your generated license key. You can also alter the settings if you want to.
After you're done, save your work and quit.
4. Start the server
You must be in the server resource directory in order to start the server. You can then start the server by using the runserver.sh script that is located in the fivem_server directory. Include the +exec server.cfg parameters.
# cd ~/fivem_resources && bash ~/fivem_server/run.sh +exec server.cfg
Optional option: Run the server in background
To run the server in the background, you can use screen session.
# cd ~/fivem_resources && screen -s "FiveM server" bash ~/fivem_server/run.sh +exec server.cfg
Common Issues
If you don't see any resources discovered and it says'Failed start resource' then you may not have cd'd the correct folder. If you see a lot of errors about citizen.scriptingor /, it's likely that you did not use run.sh. If you see nothing but a heartbeat and no other activity, it is likely that you didn't use run.sh or didn't copy the folder. If you're not able to connect and resources don't get started If you didn't include +exec. If no license key one of the preceding applies.
0 notes
georgeklinge26 · 2 years ago
Text
Linux Commands And Scripts
A root user access or normal user with administrative privileges.
1. Keep your server current
For security updates, make sure you update your server.
# Update to apt -y
# apt-upgrade -y
2. Add ports in UFW
We will ensure that we open the following ports, as they are required for FiveM to operate correctly:
# UFW allows 30120 UFW allows 30110
3. Install FiveM
First create a blank directory. Next you need to navigate to it. This directory will hold all of your FiveM server files.
# mkdir ~/fivem_server # cd ~/fivem_server
Use the following command to download the newest master branch:
# wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/3074-0c5d71ad77873c159d7542a7e8314d9696c1b55b/fx.tar.xz
Visit the artifacts servers to see the most recent master branch build. Download it using the wget command.
After downloading the file, extract it using the this command:
# tar -xvf fx.tar.xz
After you have successfully extracted the archive, you can now remove it.
# rm.tar.xz
Next, copy the cfx_server-data repository into a new directory. This directory will include the server resources. The following command will clone the repository into a new folder called fivem_resources in your home directory.
Now, create a no-cost license with a FiveM license key,
We will create a configuration file with the name of server.cfg in fivem_resources directory.
# vi ~/fivem_resources/server.cfg
Add the following lines:
# Change the IP only if using multiple network interfaces. endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120"
# These resources will start by default. ensure mapmanager ensure chat ensure spawnmanager ensure sessionmanager ensure fivem ensure hardcap ensure rconlog ensure scoreboard
# This allows players the ability to use scripthook-based plug-ins, such as the older Lambda Menu. Set this value to 1 to enable scripthook. This does not mean that players will be able to access any plugins that are external to. sv_scriptHookAllowed 0
# Uncomment this line and create an account password to allow RCON. Make sure you change the password - it should look like rcon_password "YOURPASSWORD" #rcon_password ""
A comma separated list of tags to be used on your web server. For example: - sets tags "drifting cars, racing" # Or: # Set tags "roleplay military, tanks, and roleplay" sets tags "default"
Include server information and a hyperlink to the banner image URL. # Size doesn't really matter. Any banner-sized image will work. #sets banner_detail "https://url.to/image.png" #sets banner_connecting "https://url.to/image.png"
# Set your server's hostname in sv_hostname "FXServer however, it is not configured"
# Nested configs! #exec server_internal.cfg
# Loading a Server Image (96x96 PNG File) #load_server_icon myLogo.png
Convars that can be used in scripts temp_convar "hey world! Sbcglobe
Uncomment this line if you do not want your server to be listed in the server browser. # Do not edit it if you *do* wish to see your server listed. #sv_master1 ""
# Add system admins add_ace group.admin command allow # allow all commands add_ace group.admin command.quit deny # but don't allow quit add_principal identifier.steam:110000100000000 group.admin # add the admin to the group
# Hide endpoints of players in external log output. sv_endpointprivacy true
# Server player slot limit (must be between 1 and 32 except if using OneSync) sv_maxclients 32
# License key for your server (https://keymaster.fivem.net) sv_licenseKey replaceThisWithYourLicenseKey
Note: relace this replaceThisWithYourLicenseKey with your generated license key. You can also alter the settings if you want to.
After you're done, save your work and quit.
4. Start the server
You must be in the server resource directory in order to start the server. You can then start the server by using the runserver.sh script that is located in the fivem_server directory. Include the +exec server.cfg parameters.
# cd ~/fivem_resources && bash ~/fivem_server/run.sh +exec server.cfg
Optional option: Run the server in background
To run the server in the background, you can use screen session.
# cd ~/fivem_resources && screen -s "FiveM server" bash ~/fivem_server/run.sh +exec server.cfg
Common Issues
If you don't see any resources discovered and it says'Failed start resource' then you may not have cd'd the correct folder. If you see a lot of errors about citizen.scriptingor /, it's likely that you did not use run.sh. If you see nothing but a heartbeat and no other activity, it is likely that you didn't use run.sh or didn't copy the folder. If you're not able to connect and resources don't get started If you didn't include +exec. If no license key one of the preceding applies.
1 note · View note