1 (edited by unsigned char* 2018-06-08 02:38:58)

Topic: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Teeworlds Web Panel

App web for manage your local teeworlds servers.


⚫·· FEATURES

- Responsive design
- Create/Delete/Start/Stop Servers
- Install/Remove Mods
- Compile&Install mods from git repositories
- Charts with some info about server: players, top clans, etc..
- Real-time information about servers: players, logs, ...
- External Console for admin via web: kicks, bans, execute commands....
- Search function
- Players seen function
- 'Adaptative' configuration: Set automatically a basic values for start a server without conflicts
- Relaunch servers if goes offline
- Manage maps
- Create banners for use as signature on forums
- l10n/i18n support
- 64 players servers support
- Users and Permissions
- Registry user activity
- Issues report
- etc...


⚫·· REQUIREMENTS

- gcc: for compile
- python-dev: for compile python libraries
- python-pip: for install python libraries
- python: for run python scripts
- git: for clone project repository


⚫·· GitLab REPOSITORY

https://gitlab.com/Tardo/twp


⚫·· TEST SERVER

http://twp.redneboa.es/server/1/banner


⚫·· INSTALLATION
wget http://tardo.github.io/twp/tools/install.sh && sudo bash install.sh

** This install TWP like a daemon in /srv/twp. See readme if you want an production deploy...

⚫·· UPDATE
wget http://tardo.github.io/twp/tools/update.sh && sudo bash update.sh
⚫·· UNINSTALL
wget http://tardo.github.io/twp/tools/uninstall.sh && sudo bash uninstall.sh
⚫·· DOCKERFILE (nginx+uwsgi+flask)
git clone -b docker https://github.com/Tardo/twp.git --depth=1

2 (edited by jxsl13 2015-10-31 12:01:10)

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Looks great , I hope it'll become maybe more complex like uptee by sushi tee & fisico and maybe less complex to set up smile
Can I spam your repo with feature requests x)?

Teeworlds[ friends ] clan
Some YouTube Stuff about Teeworlds

3

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

jxsl13 wrote:

[...]
Can I spam your repo with feature requests x)?

You should as long as he is actively developing it tongue

@unsigned char*
Keep up the good work! smile

4

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

jxsl13 wrote:

Looks great , I hope it'll become maybe more complex like uptee by sushi tee & fisico and maybe less complex to set up smile
Can I spam your repo with feature requests x)?

Yep, my intention not is make a 'config file' --[to]--> 'web form'... for me editing the config file in text format is more fast.

I don't like release installation script for now... but you can setup it fast only doing:

wget https://fake.redneboa.es/install.sh -O - | bash

and setting 'servers' param in the file: https://github.com/CytraL/twp/blob/master/twp.conf

** If like an advance deploy follow: http://flask.pocoo.org/docs/0.10/deploying/

P.S: Yeah! you can spam smile

--------

@east: Thx dude! smile

5

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

I get

$ curl https://fake.redneboa.es/install.sh
curl: (6) Could not resolve host: fake.redneboa.es

6 (edited by unsigned char* 2015-11-04 05:13:16)

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

heinrich5991 wrote:

I get

$ curl https://fake.redneboa.es/install.sh
curl: (6) Could not resolve host: fake.redneboa.es

Beacuse its a fake url.... wink i will release installation script soon :B

7 (edited by unsigned char* 2015-11-07 08:06:20)

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Umm i have a little question... what is best? connect to econ one time... or connect every time that like need launch a command?

8

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

if there was a feature like cronjob to execute server messages periodically, it would be good to be connected all the time, also maybe searching the server log would be great if it was connected all the time.
If you don't know, why not trying out both by making it optional.
Just my opinion smile

Teeworlds[ friends ] clan
Some YouTube Stuff about Teeworlds

9

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

@jxsl13: Yeah... but i think that is best if i close connection when not need 'launch' commands... and i will start to work soon with your ideas smile

Some new screenshots:
https://dl.dropboxusercontent.com/u/305 … _modal.png
https://dl.dropboxusercontent.com/u/305 … eneral.png
https://dl.dropboxusercontent.com/u/305 … layers.png
https://dl.dropboxusercontent.com/u/305 … er-log.png

More news really soon xDD
Cheers!

10 (edited by jxsl13 2015-11-08 13:18:06)

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

big_smile looks great!
Keep up the great work big_smile

would you mind uploading a test.zip with a vanilla or whatever else server you use for testing purposes big_smile?

Teeworlds[ friends ] clan
Some YouTube Stuff about Teeworlds

11

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Version 0.1.0b released...

Installation:

wget http://twp.redneboa.es -O install_twp.sh && sudo bash install_twp.sh $LOGNAME

This install the TWP as service launched as $LOGNAME user...

12

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

ehmmm.. don't wanna criticize you but I have some nice tips.

1. it's a security issue. I know it's a bit more complex to set up but it's way better to set it up on a high port and let a webserver (eg Apache) proxy it and let Apache provide the authentication, eg via http Basic Authentication.

2. echo '████████╗  ██╗    ██╗  ██████╗ '
echo '╚══██╔══╝  ██║    ██║  ██╔══██╗'
echo '   ██║     ██║ █╗ ██║  ██████╔╝'
echo '   ██║     ██║███╗██║  ██╔═══╝ '
echo '   ██║     ╚███╔███╔╝  ██║     '
echo '   ╚═╝      ╚══╝╚══╝   ╚═╝     '
echo '               Teeworlds Web Panel Automatic installer'

just leave it out. it's unnecessary and you want to impress people.

3. You must be root to install Teeworlds Web Panel
I definitely let a script and a security issue running as root on my server.

4. INSTALL_DIR='/srv/twp'
modern systems don't use it any longer

5. apt-get update &> /dev/null
dumping STDOUT is OK. but dumping the error output too is definitely NOT OK.

6. pip install flask==0.10.1 2> /dev/null
again, a security issue. use minimum version, not define a version. you can't let stability take priority over security. same thing with the APScheduler

7. git clone -b 0.1.0b https://github.com/CytraL/twp.git "$INSTALL_DIR"
two things here. as described in 4. it will fail because there is no parent DIR of $INSTALL_DIR
secondly again stability over security. you define a version with a branch. instead use a stable branch or just master. maybe push to another one

8. and 9. cat > '/etc/init.d/twp' <<EOF
8. if something is already there, overwrite it, surely it's not important
9. did you thought about systemd? sysvinit is not state of the art any longer

10. last but not least, in your init script
stop
start
never thought about a sleep between them?

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

13

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Schwertspize wrote:

ehmmm.. don't wanna criticize you but I have some nice tips.

1. it's a security issue. I know it's a bit more complex to set up but it's way better to set it up on a high port and let a webserver (eg Apache) proxy it and let Apache provide the authentication, eg via http Basic Authentication.

high port != secure? or are you suggesting that the need to run it with higher permissions to have a port <1024 makes it less secure?

Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

14

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

whoops. missed one thing (I wrote in the other) high port that it does not interfere with other apps, and for security block that port with a firewall. then let Apache/nginx/whatever proxy it

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

15

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

HI hi hi! wow... i'm happy for see some feedback!

1. I'm not good with systems xD (with nothing really xD)
2. Not for impress... see text in the console not impress nothing... it's only for see it cool! xDD
** You can se the original script here: https://github.com/lxc-webpanel/lxc-web … install.sh
3. Need root for install a daemon: But folder and execution are owned by $LOGNAME user
4. I'm bad with systems and noob in Linux
5. Ummm... if apt-get udate fails... you have a big problem in your system uh?
6. .....
pip install flask==0.10.1  not install flask in v0.10.1? I don't like that ppl can install the lastest version because can break the source compatibility
7. $INSTALL_DIR is created if not exists, And i use a branch because the master is for stable working but not for "pack"... If i use master for every two user can have a distinct base source...
8. I not see problems here... and can update the daemon script in new installations tongue
9. I''m bad in systems and noob in Linux... need learn more about these tools :\
10. Why need sleep? I tell that i''m bat with system and noob in linux? xDD

Please, you are welcome to update and fix all shit in the installation script or in the project.... i go to try fix all this stuff... but if know how and have a best script... pls, send it to me!


THX!!!!! cheers!

16

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

OK.. what I meant with fixed versions. I'm future there may be security holes (actually in the past there were big holes in big packages). if apt-get failes, you have a big problem but you add this to every command. if something goes wrong and doesn't matter what goes wrong the user must know.

but yes, maybe I rewrite it myself

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

17

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Oh! true... i will change the work flow and use branch for work in development and only merge to master when the version is ready smile yeah bad usage now OOops!

For now i go to update script and change the output to a log file smile

18

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

you may not use apt-get update at all. It's up to the server owner to update the package database.
(moreover, apt-get is used only on debian-like distribution)
you better had this as a requirement .
It's the same with pip.
You can check the presence and ask the user to install it if absent. (with eventually an example of command for debian ^^)

19

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

rand() wrote:

you may not use apt-get update at all. It's up to the server owner to update the package database.
(moreover, apt-get is used only on debian-like distribution)
you better had this as a requirement .
It's the same with pip.
You can check the presence and ask the user to install it if absent. (with eventually an example of command for debian ^^)

Just installing it seems more user-friendly, and I mean this script is aiming to be user-friendly. smile

20

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Question....

Like this: https://dl.dropboxusercontent.com/u/305 … -color.png
Or this: https://dl.dropboxusercontent.com/u/305 … -color.png
Or nothing?

I will need some help with translations (if like more languages than 'bad' english and spanish xD)....

Cheers!

21

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

I have a question. How do you test the "public" thing. Master server Is only reporting heartbeats if you register AFAIK

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

22

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

using sv_register, you have econ control upon the servers.

23

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

Yes but sv_register tells the master server to test if everything is OK (public) and put you on the list (visible). Afaik there is no way to just test heartbeats without getting on the list.

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

24

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

You also can ask the master server the servers list and look for the server you manage.

Public = No password
Visible = sv_register 1

25

Re: [LINUX][TOOL] Teeworlds Web Panel v0.3.2

unsigned char* wrote:

Question....

Like this: https://dl.dropboxusercontent.com/u/305 … -color.png
Or this: https://dl.dropboxusercontent.com/u/305 … -color.png
Or nothing?

I will need some help with translations (if like more languages than 'bad' english and spanish xD)....

Cheers!

I'm not a UX designer, so take my advice with a grain of salt, but I prefer the colorful variant. I could help with the English and German strings.