Giter VIP home page Giter VIP logo

serversetup's Introduction

Server Setup Script

This script is used to set up a server and it accepts several command line arguments.

ALL ARGUMENTS ARE OPTIONAL...

But you can use them if you need or want.

Updates are now in the changelog file if you want to read.

Patcher is working now! Thanks to BUKK

Permissions

You have to give it permissions to run properly.

chmod +x server.sh

You also must run this script as root or it won't work!

Usage

server.sh [-d PATH] [-a IP] [-u USER] [-v] [-p PORT] [-x] [-h]

Options

  • -d PATH: Set the directory where the server will be installed
  • -a IP: Set the IP of the server for configuration
  • -u USER: Set the username for the database
  • -v: Set the VPS Mode on. This will get your external IP automatically.
  • -p PORT: (EXPERIMENTAL/ADVANCED USERS ONLY) Set the PORT where the Gateway Server will be listening
  • -x: unlock manual config for ports of the server, this mode is ONLY RECOMENDED FOR ADVANCED USERS and WILL REQUIRE further DB configuration!
  • -h: Display this help message

Examples

One-click install (to rule them all)

./server.sh

To install at /root/gfserver/ directory

./server.sh -d /root/gfserver

To install with kamael as database user:

./server.sh -u kamael

To install with a predefined IP address such as 192.168.200.25

./server.sh -a 192.168.200.25

To install with kamael as db user, at /root/gfonline directory and IP 192.168.2.4 as IP.

./server.sh -d /root/gfonline -a 192.168.2.4 -u kamael

Expert Mode

To use expert mode you must use the flag x

./server.sh -x 

Important: you can use other flags with Expert Mode if you want.

In this mode you will be prompted for choosing EVERY PORT you can configure for the server.

  • Remember that this is experimental and should only be used by ADVANCED USERS who knows how to config the server and database.

Known Bugs

  • wget is pulling data from my little local webserver so the download part won't work with this script right now. I'm gonna upload it on a VPS or a private hosting soon, but now I'm killing bugs so you won't be disappointed.

By the moment: NO WORKAROUND WILL HELP YOU since my script runs custom seds/things. So don't issue it yet.

  • Validation of the input data won't run in a loop, so be careful with input.

  • When trying to install multiple servers, if same folder is set, it overwrites the data and configs from the previous one. So be careful when doing that.

FINAL ADVICE: THIS SCRIPT IS NOT INTENDED TO RUN MORE THAN 1 TIME PER MACHINE so if you screw up something in the setup, you'd better restart your VM/VPS. (Or you can read the code and see where you messed up and try to fix if you know what you're doing)

serversetup's People

Contributors

theghostcoders avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.