fivemLinux | The server manager you will ever need (CLI Linux)

Description

fivemLinux is a bash tool that lets you manage your FiveM server in a easy way using the command line.
If you have any suggestions or improvements, don’t hesitate to send your pull requests
Github repository

PLEASE WATCH THE VIDEO BELOW

Installation

  1. connect to your virtual server
  2. download the tool using wget
    wget https://raw.githubusercontent.com/Zerefdev/fivemLinux/master/fivem.sh
  3. Convert the file to unix format if needed and give it execution permission
    3.1. Install dos2unix
    sudo apt install dos2unix
    3.2. Convert the file to unix format
    dos2unix fivem.sh
    3.3. Give it permission to “execute”
    chmod +x fivem.sh
  4. Start the installation process and follow the instructions
    ./fivem.sh
  5. Done!

Usage

  • ./fivem.sh update
    updates fivemLinux to the latest version
  • ./fivem.sh start
    starts the server in silent mode
  • ./fivem.sh stop
    stops the server
  • ./fivem.sh restart X
    restarts the server after X seconds
    if X is not given, the server will be instantly restarted
  • ./fivem.sh status
    returns if server is running or not
  • ./fivem.sh cmd "command arg"
    allows you to send commands via the console (restart a resource…etc)
  • ./fivem.sh debug
    starts the server in debug mode (it will output the start process)

Demo video

IYoutube Video
old version: https://www.youtube.com/watch?v=_g7CxD-Lj64

TODO

  • improve cmd case
  • better path saving method Using the best method so far
  • add confirmation for input path and cmd
  • daily auto-restart (refresh RAM, reset players IDs)
  • option to set restart timer to minute insteads of seconds
  • duplicate restartMsg so players will see it 100%

Changelog

[2.0] - 29.05.2019

  • global improvement and organisation
  • color variables removed, replaced with functions
  • cmd prompts a confirmation text if no command was given
  • debug added to see starting process output (for errors)
  • update added

[1.0] - 27.05.2019

  • initial release
  • basic functions
7 Likes

oo fancy

1 Like

updated to v2.0

  • global improvement and organisation
  • color variables removed, replaced with functions
  • cmd prompts a confirmation text if no command was given
  • debug added to see starting process output (for errors)
  • update added

VIDEO UPDATED

Finally something that’s not for windows, thanks!

1 Like

nice colors XD and text almost look like this

FXAdmin is also linux compatible.
If you are looking for something lightweight and WYSIWYG, this shell script is probably the way.

For a little bit more features, check the FXAdmin project.

That script is broken and the creator is toxic as f*ck. The reasons that made me share this script
What do you mean by text almost look like that?

I was not talking about yours. Please see the link he shared…
I am still looking at yours, looks very nice

My bad, deleted.

nah i mean in positive way… it looks good and kinda similar what i have made…
mean i have fixed his script… and u made it even better then mine XD

I’m not always negative :rofl:

You should write a better guide then…

Everything you need is in the documentation, as long as you know how to open the terminal and change directory.

Anyway, there will be a massive update in the next few days that will simplify the entire setup process.

you say in guide. Copy your server01-template.json to server01.json and modify it according to your preferences. You say nothing about where server01.json is placed

I like the way u created everything, Credit for that, i hope i will figuere out how to get it on my server.

I think it was quite implicit it was in the same folder, the “data” folder.
But even if you got it wrong, you just needed to read the error message:

[txAdmin:ConfigExporter] Unnable to load configuration file 'data/server01.json'. (cannot read file, please read the documentation)

Also, if that was not enough there is a specific entry in the troubleshooting guide that explains it a bit more:

If you are not willing to read the (quite short and concise) documentation, there is not much we can do.

Anyway, any feedback is appreciated and I already know we need to make the setup process easier to some users.
Since this conversation is not related to the thread, I recommend that if you still want to discuss it to go to txAdmin’s thread.

I have this scrip in but every time I try and run it I get

Cannot exec ‘/home/FXServerPRP/server-data/run.sh’: Permission denied

Althought my files settings are set at 777 for that file.

make sure your user has permissions to manipulate your server files (chrown -R USER /home/FXServerPRP/)

how to delete the directory i choose? i have wrong step
so i cant command my server, because of that
sorry for my bed english

just delete the file and re-download it again or go to line line 41, you will find the directories there

Bro i have a question, i have server linux in google cloud. This works ? I ask why, create one and start but it won’t let me connect

yes, what won’t let you connect? just watch the video I posted