Skip to content

Server setup

Akashdeep Dhar edited this page Sep 25, 2020 · 1 revision

The following instructions would allow you to set up a Sanctuary Zero server of your own.

  • Install python3 and pip with your GNU/Linux distribution-specific package managers.
  • Install and upgrade virtualenv if not already done.
$ pip3 install virtualenv --user
  • Clone the repository on your local storage and make it your current working directory.
$ git clone https://github.com/t0xic0der/sanctuary-zero.git
$ cd sanctuary-zero
  • Create and activate the virtual environment.
$ virtualenv venv
$ source venv/bin/activate
  • Install all dependencies for the project.
(venv) $ pip3 install -r requirements.txt
  • Run the Sanctuary Zero Server with the tweakable options shown below.
(venv) $ python3 main.py --version
SNCTRYZERO Server by t0xic0der, version 19082020
(venv) $ python3 main.py --version
(venv) $ python3 main.py --help
Usage: main.py [OPTIONS]

Options:
  -c, --chatport TEXT  Set the port value for the server [0-65536]  [required]
  -6, --ipprotv6       Start the server on an IPv6 address  [required]
  -4, --ipprotv4       Start the server on an IPv4 address  [required]
  --version            Show the version and exit.
  --help               Show this message and exit.
(venv) $ python3 main.py -c 9696 -4
[10:35:18] SNCTRYZERO ⮞ Starting SNCTRYZERO v19082020...
[10:35:18] SNCTRYZERO ⮞ IP version : 4
[10:35:18] SNCTRYZERO ⮞ SNCTRYZERO was started up on 'ws://0.0.0.0:9696/'
[10:45:57] USERJOINED ⮞ m3x1c0@37777D41
[10:51:24] USEREXITED ⮞ m3x1c0@37777D41
Clone this wiki locally