FlexHub installation

From FlexHub
Jump to: navigation, search

Installation info here

Windows


Download the Windows version of the FlexHub - http://www.flexhub.org/forum/index.php?action=downloads;cat=2
Unzip the zip file to a new folder
Run FlexHub.exe

Or read the file "Readme.txt"(the file is in the archive)

Linux


Variant 1: Installing through the terminal:

sudo apt-get install curl
curl http://flexhub.org/downloads/flexhub.tgz|tar xvz
cd FlexHub
sudo chmod +x lua
sudo ./lua ./FlexHub.lua


REQUIREMENTS: for GUI only: x11 wxGTK, x11 gtk+ 2.0 or higher, x11 xorg-server
NOTE: Currently FlexHub doesn't run on x64 systems.

Variant 2:

 Download the Linux version of the FlexHub --> http://www.flexhub.org/forum/index.php?action=downloads;cat=2 
Unpack the tgz file to a new folder
To set proper permissions, goto the new FlexHub folder and use: chmod +x lua

FIRST USE:

 Type: ./lua ./FlexHub.lua from the FlexHub folder to start the hub
NOTE: In Linux systems, all ports from 1 to 1024 are opened only through root, is why run the hub on these ports only need to use the command: sudo ./lua ./FlexHub.lua

For Linux without gui you can use the following commandline options:

--nogui To disable the hub Console-GUI (use this when you get: error loading module 'wx')
--noupdate To disable the !update command in the hub
--nochangeports To disable the commands to add and remove ports inside a running hub
--norestart To disable the restart function from inside the hub
--noshutdown To disable the shutdown function from inside the hub
--notouchrestartscript To tell FlexHub to not touch the RestartScript.sh or RestartScript.bat used to restart the hub (it will still create one if its missing)
--logdir=./logs/ The directory to store logfiles. For now this needs to be a subfolder in the FlexHub folder
--configdir=./settings/ The directory to store and load configurationfiles, For now this needs to be a subfolder in the FlexHub folder

The following settings will be saved on first use and do not need to be used on the command line again (unless you want to change them)
--port=<port1>[,<port2>] Regular port(s), to use multiple ports, just add them one after another comma separated, no spaces
--sport=<secure port1>[,<secure port2>] Secure port(s): EXPERIMENTAL (Can cause the hub to freeze when a secure socket is 'ghosting'.)
--bind=<ip> Will bind the port to a specific interface (IP), default = * and will bind to all local interfaces
--userlimit=<number> Host userlimit, there's no way to override this value from within the hub, but a lower value can be used in the hub to control max users with !set maxusers <number>

Use these when you want to add a new Hubowner account from the commandline (needed on first run if you use --nogui)
--nick=<nickname> Nickname of master account
--pass=<password> Password of master account (always use a unique and safe pass)
--nickip=<ip> Only allow connections from this ip for the master account (same as the bindip command in the hub)

Example: ./lua ./FlexHub.lua --nogui --nick=MyNick --pass=12345 --port=8000

Or read the file "Readme.txt"(the file is in the archive)