PtokaX forum

Development Section => Lua tools => Topic started by: ATAG on 27 September, 2008, 19:56:52

Title: Hub Setup Script (*nix)
Post by: ATAG on 27 September, 2008, 19:56:52
Little help to quick-setup a PtokaX hub on Linux - tested on Ubuntu only. Requires Lua 5.1 and LuaFilesystem library :)
Quoteatag@atag-desktop:~$ ./px_install
What will be the hub's configuration directory? (/home/atag/.PtokaX/):

What will be the hubaddress? (localhost):

What will be the hub's listen port? (4111):

What will be the name of your hub? (atag's PtokaX hub):
My Testconfig
What will be the hub owner's nickname? ([SU]atag):

What will be [SU]atag's password? (856168):

-------------- Hub Information ------------------
config dir = /home/atag/.PtokaX/
hubaddress = localhost
hubport    = 4111
hubname    = My Testconfig

owner nick = [SU]atag
owner pass = 856168
-------------------------------------------------
Is this information correct? (Y/n):
y
Now Your new PtokaX hub is ready to start.
To do this, use '/home/atag/.PtokaX/px_start' command.
Good bye!

Script is attached to prevent problems with charset...