Linux Server Manager (Bash) 2.0

Easily control your Minecraft server / network in Linux.

  1. coolv1994
    Want to set up a Minecraft server/network on your new VPS/Dedicated server?

    Want to easily control your server without using a control panel such as Multicraft?

    Want to take advantage of technology already programmed into your operating system?

    If you answered yes, this is the solution for you.


    Installation (1 Server)
    Copy or symlink file `server.sh` to your server folder. Ex: `/home/minecraft/Survival`

    With your shell, use command `chmod +x /home/minecraft/Survival/server.sh` to mark the file as executable.

    Then use command `ln -s /home/minecraft/Survival/server.sh /bin/minecraft` to make a shortcut in /bin.

    Open file `server.sh`, uncomment line 5 and comment line 6.

    Copy file `server.cfg` to your server folder. Ex: `/home/minecraft/Survival`

    Open file `server.cfg` and modify as needed.

    You can now control your Minecraft server by using the simple command `minecraft`.

    Then use command `ln -s /home/minecraft/Survival/server.sh /etc/init.d/minecraft` to make a shortcut in /etc/init.d.

    Your Minecraft network is now a Linux service, you can use this to start your server automatically on reboots, etc...

    Example: To start your server, use command `minecraft start`.

    Use `minecraft` with no arguments for a list of commands.

    Optional Feature: Any command not handled by this script will be passed on to the Minecraft server.
    Open file `server.sh`, uncomment line 177 and comment line 178.

    Example: The command `minecraft say Hello everybody!` will send a message to everyone online saying "Hello everybody!"

    Installation (Multiple Servers)
    Copy file `network.sh` to `/home/minecraft` or your user directory.

    Copy file `servers.cfg` to `/home/minecraft` or your user directory.

    Open file `servers.cfg` and modify as needed.

    Copy or symlink file `server.sh` to all your server and proxy folders. Ex: `/home/minecraft/Survival`

    Copy file `server.cfg` to your all server folders. Ex: `/home/minecraft/Survival`

    Copy file `server (bungee).cfg` to your all proxy folders. Ex: `/home/minecraft/Bungee` and rename to `server.cfg`

    Open your `server.cfg` files and modify as needed.

    With your shell, use command `chmod +x /home/minecraft/network.sh` to mark the file as executable.

    Also mark each of the server scripts executable. Ex: `chmod +x /home/minecraft/Survival/server.sh`

    Then use command `ln -s /home/minecraft/network.sh /bin/minecraft` to make a shortcut in /bin.

    You can now control your Minecraft server by using the simple command `minecraft`.

    Then use command `ln -s /home/minecraft/network.sh /etc/init.d/minecraft` to make a shortcut in /etc/init.d.

    Your Minecraft network is now a Linux service, you can use this to start your server automatically on reboots, etc...

    Example: To start your server/network, use command `minecraft @ start` or `minecraft <group> <server> start`.

    Use `minecraft` with no arguments for a list of commands.

    Optional Feature: Any command not handled by this script will be passed on to the Minecraft server.
    Open file `server.sh`, uncomment line 177 and comment line 178.

    Example: The command `minecraft server @ cmd say Hello everybody!` will send a message to everyone on every server saying "Hello everybody!"

    Start on Server Boot
    Fedora / CentOS
    `chkconfig --add minecraft`
    Ubuntu / Debian
    `update-rc.d minecraft defaults`

    Spigot
    If you use Spigot for your Minecraft server, copy or symlink file `restart.sh` and place it in your server's root folder.

    Example: `/home/minecraft/Survival`

    Use command `chmod +x restart.sh` to mark the file as executable.

    This will allow you to automatically start your server back up after using the `/restart` command in-game.

    Note: Remember to edit your `Spigot.yml`...

    Change: `restart-script: ./start.sh`
    To: `restart-script: ./restart.sh`.

    • /bin/minecraft (symlink of /home/minecraft/network.sh)
    • /home/minecraft/network.sh
    • /home/minecraft/servers.cfg
    • /home/minecraft/server.sh
    • /home/minecraft/Bungee/BungeeCord.jar
    • /home/minecraft/Bungee/server.sh (symlink of /home/minecraft/server.sh)
    • /home/minecraft/Bungee/server.cfg
    • /home/minecraft/Survival/Survival.jar
    • /home/minecraft/Survival/server.sh (symlink of /home/minecraft/server.sh)
    • /home/minecraft/Survival/server.cfg
    • /home/minecraft/Backups/Bungee/
    • /home/minecraft/Backups/Survival/

    Usage
    Use as: minecraft <group> <server> <command>
    • start - Start the Minecraft server
    • stop - Stop the Minecraft server
    • restart - Restart the Minecraft server
    • status - Check the server's status (Running or not Running)
    • save - Save the world (etc..)
    • backup - Create an archive of the server
    • cmd (mc command) - Use a Minecraft command (ban Player123, say Hello, etc...)

    Example Configs
    Server Configuration
    BungeeCord Config
    Multi-Server Config

    Requirements
    • Linux machine
    • Screen
    • Java


    View on GitHub

    OoyschesteroO likes this.

Recent Updates

  1. Version 2.0

Recent Reviews

  1. m0bY
    m0bY
    5/5,
    Version: 2.0
    Very, very good, but restart.sh it's not working. Can you please fix it ? I need it!
  2. Elkenfugel116
    Elkenfugel116
    5/5,
    Version: 2.0
    Excellent. Thank you for making this and posting it for others to use. Valuable resource for those new to Linux.
  3. Zee1234
    Zee1234
    5/5,
    Version: 1.0
    Full disclosure: I'm not using your scripts. HOWEVER, I'm learning with them and it's really helpful. I've figured out how to do a lot I didn't even realize could be done because I looked through your scripts. TY.
    1. coolv1994
      Author's Response
      Thanks for the review. I'm glad you were able to learn from my scripts.