install dockerIf docker is not already installed, install it. There are two ways to do this:
- follow the instructions on the docker website.
- curl OR wget the quick-and-easy install script at https://get.docker.com
$ curl -sSL https://get.docker.com/ | sh $ wget -qO- https://get.docker.com/ | sh
add your user to the docker groupEg, something like
$ sudo usermod -aG docker YOUR_USERNAME
log out and log in againYou need to do this for the previous usermod to take effect.
setup directory permissionscyber-dojo saves the practice sessions to /cyber-dojo
You need to set the correct permissions for this directory.
The user-id for the saver service is 19663, and its group-id is 65533.
In a terminal, type (you may need to prefix these with sudo):
$ mkdir /cyber-dojo $ chown 19663:65533 /cyber-dojo
install the cyber-dojo shell scriptIn a terminal, type:
$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/cyber-dojo $ chmod 700 cyber-dojoNow use this cyber-dojo script to run your own cyber-dojo server.