[FX-Server][Tutorial] How To Setup FX-Server On Linux - From Start To Finish

I guess I’ll have to do that. I don’t know why it doesn’t work. I’m getting re-transmissions when I shark the packets on my server while trying to query with FiveM…

1 0.000000000 151.80.44.223 → 192.168.1.2  UDP 74 30110 → 30120 Len=32
2 0.000629147 151.80.44.223 → 192.168.1.2  TCP 74 35880 → 30120 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1427502982 TSecr=0 WS=128
3 0.046607019  192.168.1.2 → 151.80.44.223 UDP 254 30120 → 30110 Len=212
4 0.997995828 151.80.44.223 → 192.168.1.2  TCP 74 [TCP Retransmission] 35880 → 30120 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1427503232 TSecr=0 WS=128
5 3.004786271 151.80.44.223 → 192.168.1.2  TCP 74 [TCP Retransmission] 35880 → 30120 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1427503733 TSecr=0 WS=128
6 19.687560225  192.168.1.4 → 192.168.1.2  UDP 60 49720 → 30120 Len=15
7 19.709553843  192.168.1.2 → 192.168.1.4  UDP 249 30120 → 49720 Len=207
8 19.758612860  192.168.1.4 → 192.168.1.2  TCP 66 49349 → 30120 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 WS=256 SACK_PERM=1
9 22.759189032  192.168.1.4 → 192.168.1.2  TCP 66 [TCP Retransmission] 49349 → 30120 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 WS=256 SACK_PERM=1
10 28.759220409  192.168.1.4 → 192.168.1.2  TCP 66 [TCP Retransmission] 49349 → 30120 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 WS=256 SACK_PERM=1
11 35.461702999 88.198.50.201 → 192.168.1.2  UDP 60 55006 → 30120 Len=16
12 35.466609905  192.168.1.2 → 88.198.50.201 UDP 250 30120 → 55006 Len=208

We already know that:
Resolved live-internal.fivem.net:30110 to 151.80.44.223:30110

So it’s getting re-transmits consistently, even with the heartbeat server.

Gonna copy all my troubleshooting into a post for tech difficulties I guess.
Thank you

What if you run netstat? Is it listening?

^ pcap showing listening and replying to the heartbeat server ^

 tcp        0      0 0.0.0.0:30120           0.0.0.0:*               LISTEN```

Keep in mind these results were WITH ufw enabled, back up and running again. So it's not network issues. The traffic is making it there, but still no dice with server responding to queries on LAN or through the internet.

I started a topic here, in case you want to follow it:

Instead of blowing up this thread for support lol. Thanks to everyone who tried by the way!

2 Likes

Hopefully it gets solved for your specific setup :slight_smile:

1 Like

Can someone help me I want to make a fivem server and i tried but it doesn’t not work for me.

Hello and thanks you for this tutorial! it really helped! by the way i have a little problem, when i try to run the server, the console says: Permission denied
I tried to type this:

chmod u+x run.sh

But it don’t change anything.
Someone know how to fix it?

1 Like

sorry for double post.
I tried many things but i still can’t run fx-server on linux.
Here is what i tried with putty and the error

here is the fx-server-data

here is my server.cfg

€dit: Sorry messed with links
€dit2: just seen that the ip was 0.0.0.0 so i tried with the server IP, still same. (i have 3 servers)

hi great tutorial,

i have the server running but cant get mod to work, i tried how you said by dragging the dowloaded mod to the resources folder and adding it to the start list but no joy,

this is the mod - https://www.gta5-mods.com/scripts/superman-v-script-by-bk-modding-gta-v

# you probably don't want to change these!
# only change them if you're using a server with multiple network interfaces
endpoint_add_tcp "81.19.211.117:30121"
endpoint_add_udp "81.19.211.117:30121"

start mapmanager
start chat
start spawnmanager
start fivem
start hardcap
start ■■■■■■■
start 809dae-Superman V

sv_scriptHookAllowed 1

# change this
rcon_password **********

sv_hostname **********

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
load_server_icon gtxlogofivem.png

# convars for use from script
set temp_convar "hey world!"

# disable announcing? clear out the master by uncommenting this
#sv_master1 ""

# want to only allow players authenticated with a third-party provider like Steam?
#sv_authMaxVariance 1
#sv_authMinTrust 5

# 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:110000112345678 group.admin # add the admin to the group

# player endpoint protection
sv_endpointprivacy true

am i missing something?

anybody got a restart.sh file they can share with me am confused what to change on fxserver? to automatically restart my server

how do you add admins?

When I should run the server with this command:
bash /home/fx-server/run.sh +exec server.cfg
It says: “Permission denied”
But why?!

Im getting the same error as Xeltex but mine is much longer. Any help?


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

proot info: pid 3041: terminated with signal 11
proot info: pid 3040: terminated with signal 11
proot info: pid 3039: terminated with signal 11
proot info: pid 3038: terminated with signal 11
proot info: pid 3037: terminated with signal 11
proot info: pid 3036: terminated with signal 11
proot info: pid 3035: terminated with signal 11
proot info: pid 3034: terminated with signal 11
proot info: pid 3033: terminated with signal 11
proot info: pid 3032: terminated with signal 11
proot info: pid 3031: terminated with signal 11
proot info: pid 3030: terminated with signal 11
proot info: pid 3029: terminated with signal 11
proot info: pid 3028: terminated with signal 11
proot info: pid 3027: terminated with signal 11
proot info: pid 3026: terminated with signal 11
proot info: pid 3025: terminated with signal 11
proot info: pid 3024: terminated with signal 11
proot info: pid 3023: terminated with signal 11
proot info: pid 3022: terminated with signal 11
proot info: pid 3021: terminated with signal 11
proot info: pid 3020: terminated with signal 11
proot info: pid 3019: terminated with signal 11
proot info: pid 3018: terminated with signal 11
proot info: pid 3017: terminated with signal 11
proot info: pid 3016: terminated with signal 11
proot info: pid 3015: terminated with signal 11
proot info: pid 3014: terminated with signal 11
proot info: pid 3013: terminated with signal 11
proot info: pid 3012: terminated with signal 11
proot info: pid 3011: terminated with signal 11
proot info: pid 3010: terminated with signal 11
proot info: pid 3009: terminated with signal 11
proot info: pid 3008: terminated with signal 11
proot info: pid 3007: terminated with signal 11
proot info: pid 3006: terminated with signal 11
proot info: pid 3005: terminated with signal 11
proot info: pid 3004: terminated with signal 11
proot info: pid 3003: terminated with signal 11
proot info: pid 3002: terminated with signal 11
proot info: pid 3001: terminated with signal 11
proot info: pid 3000: terminated with signal 11
proot info: pid 2999: terminated with signal 11
proot info: pid 2998: terminated with signal 11

1 Like

when i type this git clone, it says: " -bash: git: command not found "

Or you could just use my servermanager, which also helps with running multiple servers.

@Supa might consider this as an alternative :slight_smile:

This did not post in the correct spot.

So after following the entire tutorial I get this error on Ubuntu 16.04 have searched everywhere for an answer to no avail :confused:

root@etnminingpool:/home/fx-server-data# bash /home/fx-server/run.sh +exec /home/fx-server-data/server.cfg
/home/fx-server/run.sh: line 8: /home/fx-server/proot: cannot execute binary file: Exec format error
/home/fx-server/run.sh: line 8: /home/fx-server/proot: Success

You need to use “bash /home/fx-server/run.sh +exec server.cfg” and not the full path else it tries to use the proot path.

How do i make the screen command i kind of need the get out of the cfx then

Did you get it sorted? I have the same problem