-
Notifications
You must be signed in to change notification settings - Fork 58
Installation on Ubuntu Server 17.04
ranebull edited this page Oct 21, 2017
·
1 revision
Upgrade system:
$ sudo -s
$ apt update && apt upgrade
Install some prerequisites:
$ apt install -y build-essential python-pip python-dev
Install Flask, dataset and simplejson:
$ sudo pip install Flask flask-seasurf simplejson "dataset==0.6.4"
Clone the repo:
$ git clone https://github.com/balidani/tinyctf-platform.git
$ cd tinyctf-platform
Fix SQLAlchemy error:
$ sed -i -e s/ctf.db/ctf.db?check_same_thread=False/g config.json
Or adding ?check_same_thread=False
after ctf.db in config.json.
Import the tasks (Must do after every task-change):
$ python task_import.py
If you want to clear all old tasks, then import the tasks from tasks.json, run:
python task_import.py purge
Start the server:
$ python server.py
Note: Flask should run on top of a proper web server if you plan to have many players.