26 (edited by unsigned char* 2015-12-12 18:55:32)

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

@Schwertspize & rand():
for know Public and Visible i see the configuration file...
sv_register 0 -> No visible
sv_password ... -> No Public

I know that this can cause mistakes if the admin changes server config "in-game"... but for me is a very little error tongue


@heinrich5991:
Me too... i only know that exists tools like  'http://paletton.com/" for select good colors XDD. Thx for your time with translations! i hope finish maps sections soon for start with this :B


Cheers!

27

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

unsigned char* wrote:

Thx for your time with translations! i hope finish maps sections soon for start with this :B

Uhm, I haven't actually started yet. Where can I find the strings that need translation?

28

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

read the readme.md in the github repo.

Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

29 (edited by unsigned char* 2015-12-14 07:05:22)

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

@Schwertspize
Finally i redirect stdout to /dev/null and print stderr wink
This is the new script: https://gist.github.com/CytraL/86c7857344635e2a980a

@heinrich5991
Sry no, for now not need translations... i need do one thing first tongue.... when ready i will upload a  default.po file for work with it!


Cheers!

30

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

Ok heinrich5991! here the .po file to translate: https://owncloud.redneboa.es/index.php/ … A/download

Can use the program 'poedit' for easy edit.

** All can translate it! help are welcome smile

Cheers!

31

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

This connection is untrusted:

Firefox wrote:

owncloud.redneboa.es uses an invalid security certificate. The certificate is not trusted because it is self-signed. The certificate is not valid for any server names. The certificate expired on 12/16/15 14:34. The current time is 12/23/15 11:35.

So many errors. big_smile May I suggest Let's Encrypt?


EDIT: Also, can I see where these strings are used? This sometimes matters for translation.

32 (edited by unsigned char* 2015-12-23 17:06:51)

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

heinrich5991 wrote:

This connection is untrusted:

Firefox wrote:

owncloud.redneboa.es uses an invalid security certificate. The certificate is not trusted because it is self-signed. The certificate is not valid for any server names. The certificate expired on 12/16/15 14:34. The current time is 12/23/15 11:35.

So many errors. big_smile May I suggest Let's Encrypt?


EDIT: Also, can I see where these strings are used? This sometimes matters for translation.

Jijsdoijsojo yeah i need configure good the SSL Certificate tongue but no problem..... perhaps one year i fix it xDD

You can download it no? I test and i can... :S


You can use the branch 0.1.0 smile
[master] -> 'Stable' version (Now in 0.1.0b, fuck beta.. not stable... beep beep beep)
[0.1.0b] -> Beta
[0.1.0] -> Current work

Thx & Cheers!

33

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

Oook! v0.1.0 finished (but not released)... waiting for new translations....

Changes:

- Improve issues report: now save the log for see the causes...
- Improve server page
- Improve overview page: now request to master-server works fine
- Improve logs: now can use filters
- Improve configuration: 
      Now can upload/select/remove maps
      Now uses a config.json for generate "wizard" section... with this file you can extend all that you need for configure well your mod with twp :B
- Improve login security
- Many code changes...

More news when release!

34 (edited by unsigned char* 2016-01-06 04:55:31)

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

Oook! Released 0.1.0 (for now only English & Spanish) ...

Install

wget http://cytral.github.io/twp/tools/install.sh && sudo bash install.sh

Update

wget http://cytral.github.io/twp/tools/update.sh && sudo bash update.sh

Info about how customize wizard: https://github.com/CytraL/twp/wiki/How- … ion-wizard


Cheers!

-----------------
Recommended update! (Some release-bugs fixed!)

Test:
http://redneboa.es:8000/server/1/banner?title=22213c&detail=000000&address=014167&grads=d6d5d5&grade=a6a5a5

35

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

Nice big_smile

Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

36

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

Nice. I will work on a better install script (rework everything for better security) (split in two parts, one complete install including daemontools as better run environment than init.d and one for manual install (installs as user without any service and let's the user choose)

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)

37

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

wink Sounds nice!! thx for your time.

38

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

Thx the guy that "attack" the server... now TWP works a bit better wink

- Detached server process
- Force launch (prevent 'zombie' state)

Soon 0.1.1 release...

39 (edited by unsigned char* 2016-01-09 23:05:52)

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

Ook 0.1.1 released...
- Fix master-server check
- Improve server instance launching process
- Detached server instance process
- Chaned default 'admin' user creation... now can change the username again.

In other words... you can close TWP and the servers are still running... and if your server falls into a infinite loop, or in general not respond... TWP goes to close it for release the port, so can start a new instance.

-----------

Currently working on 0.2.0 for add more jxsl13 ideas and works with SQLAlchemy ORM wink
0.2.0 goes to break 0.1.x database tongue

Cheers!

40

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

Detached as in "close the browser" or detached as in "process moves itself to the background"  (and is there an option against 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)

41

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

Detached process means that server process is isolated from TWP process. Creates a new session and the process will be the only process in the new process group.

42 (edited by Deepfinder 2016-01-23 11:18:04)

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

I want to install it with "wget http://cytral.github.io/twp/tools/install.sh && bash install.sh" but there is an error...
http://puu.sh/mGm5U/e96c730f26.png

Can you help me? ._.

I will be banned if I troll again ...

43 (edited by jxsl13 2016-01-23 20:09:08)

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

Seems to be the very first exception.
Did you log in as root user?

#!/bin/bash
echo '████████╗  ██╗    ██╗  ██████╗ '
echo '╚══██╔══╝  ██║    ██║  ██╔══██╗'
echo '   ██║     ██║ █╗ ██║  ██████╔╝'
echo '   ██║     ██║███╗██║  ██╔═══╝ '
echo '   ██║     ╚███╔███╔╝  ██║     '
echo '   ╚═╝      ╚══╝╚══╝   ╚═╝     '
echo '               Teeworlds Web Panel Automatic installer'
echo -e "\n"


if [[ -z $SUDO_USER ]]; then
    echo -e "Error, can't read user installation!"
    exit 1
fi

if [[ "$UID" -ne "0" ]];then
    echo 'You must be root to install Teeworlds Web Panel!'
    exit 1
fi

if [ "$SUDO_USER" == "root" ]; then
    echo "Error, install for 'root' user it's a security issue... change user and try again."
    exit 1
fi

read -r -p "Do you want install TWP using '$SUDO_USER' user? [Y/n]: " response
if [[ $response =~ [nN] ]]; then
    exit 0
fi


### INSTALL TWP
INSTALL_USER=$SUDO_USER
INSTALL_DIR='/srv/twp'

if [[ -d "$INSTALL_DIR" ]];then
    echo "You already have Teeworlds Web Panel installed. You'll need to remove $INSTALL_DIR if you want to install"
    exit 1
fi

echo 'Installing requirements. Please, wait...'

apt-get update 1> /dev/null

hash gcc &> /dev/null || {
    echo '+ Installing gcc'
    apt-get install -y gcc 1> /dev/null
}

echo '+ Installing libjpeg'
apt-get install -y libjpeg-dev 1> /dev/null

echo '+ Installing zlib1g'
apt-get install -y zlib1g-dev 1> /dev/null

echo '+ Installing Python-dev'
apt-get install -y python-dev 1> /dev/null

hash python &> /dev/null || {
    echo '+ Installing Python'
    apt-get install -y python 1> /dev/null
}

hash pip &> /dev/null || {
    echo '+ Installing Python pip'
    apt-get install -y python-pip 1> /dev/null
}

echo 'Cloning Teeworlds Web Panel...'
hash git &> /dev/null || {
    echo '+ Installing Git'
    apt-get install -y git 1> /dev/null
}

git clone [url]https://github.com/CytraL/twp.git[/url] "$INSTALL_DIR"
chown -R "$INSTALL_USER":"$INSTALL_USER" "$INSTALL_DIR"

echo 'Installing dependencies...'
pip install -r "$INSTALL_DIR/requirements.txt"

echo -e '\nInstallation complete!\n\n'


### DAEMON
echo 'Adding /etc/init.d/twp...'

cat > '/etc/init.d/twp' <<EOF
#!/bin/bash
# Copyright (c) 2013 LXC Web Panel
# All rights reserved.
#
# Author: Elie Deloumeau
# Modificated for TWP by Alexandre Díaz (dev@redneboa.es)
#
# /etc/init.d/twp
#
### BEGIN INIT INFO
# Provides: twp
# Required-Start: \$local_fs \$network
# Required-Stop: \$local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: TWP Start script
### END INIT INFO


WORK_DIR="$INSTALL_DIR"
SCRIPT="twp.py"
DAEMON="/usr/bin/python \$WORK_DIR/\$SCRIPT"
PIDFILE="/var/run/twp.pid"
USER="$INSTALL_USER"

function start () {
    echo -n 'Starting server...'
    /sbin/start-stop-daemon --start --pidfile \$PIDFILE \\
        --user \$USER --group \$USER \\
        -b --make-pidfile \\
        --chuid \$USER \\
        --chdir \$WORK_DIR \\
        --exec \$DAEMON
    echo 'done.'
    }

function stop () {
    echo -n 'Stopping server...'
    /sbin/start-stop-daemon --stop --pidfile \$PIDFILE --signal KILL --verbose
    echo 'done.'
}


case "\$1" in
    'start')
        start
        ;;
    'stop')
        stop
        ;;
    'restart')
        stop
        start
        ;;
    *)
        echo 'Usage: /etc/init.d/twp {start|stop|restart}'
        exit 0
        ;;
esac

exit 0
EOF

chmod +x '/etc/init.d/twp'
update-rc.d twp defaults 1> /dev/null
echo -e 'Done\n'
/etc/init.d/twp start

### END
echo 'Connect you on http://your-ip-address:8000/ (Example: http://localhost:8000)'
echo 'User: admin'
echo 'Password: admin'
echo -e "*** DON'T FORGET CHANGE DEFAULT ADMIN PASSWORD!!! ***\n\n"
Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

44

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

@Deepfinder : did you try t o run

sudo bash install

?

45

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

ummm :\ yes... current script works only if use "sudo"... need be reworked a bit... now i'm using debian and see that not have "sudo" big_smile

Best wait for 0.2.0 release... wink

P.S: Working Version Test: http://redneboa.es:8000

Cheers!

46

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

twp maxes my server cpu to 100% on load of it's webpage. O.o..

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

47 (edited by Deepfinder 2016-01-24 11:29:54)

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

I installed it manually and now it works fine ^-^

$ apt-get install gcc python python-dev python-pip git libjpeg-dev zlib1g-dev
$ apt-get install screen
$ git clone https://github.com/CytraL/twp.git "twp"
$ cd twp
$ sudo pip install -r requirements.txt
$ screen -mdS "TWP" ./twp.py
$ ./twp.py

I will be banned if I troll again ...

48

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

@pieLover:
TWP is part of the problem or part of the solution?? On my poor VPS i have 0-30% CPU usage (TOTAL)... perhaps in your server have other programs and TWP only shows you that your server have high cpu usage?

TWP uses /proc/stat for calculate CPU usage...


@Deepfinder:
Nice! smile remember that installing it manually twp goes down if you restart your server or something like that.

49

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

I have problems!
I created a server, and this server crashes after ~2 hours (or whatever I dont know but its "Stopped") and now I cant use the old port (same with econ port)! The log says that the port is already in use but there is no server online with this port!
Because I choose "Auto-Launch if offline" I have now 1058 Issues with "Server Offline"!
http://puu.sh/mJ59T/00c36e8928.png
Please help!

I will be banned if I troll again ...

50 (edited by unsigned char* 2016-01-25 19:15:24)

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

omg! xDD :S

- See the logs in /srv/twp/twp.log (can be more ends with ".NUMBER")
- See if the teeworlds process are running: ps -A | grep teeworlds
- Kill it if you see any server: kill -9 PID (remplace PID with the numbre you see with ps -A)

Send me the logs if you can...

You have TWP 0.1.1 no?

P.S: In 0.2.0 i added pagination feature... sry for incoveniences sad