Installation on a server (experts only)

What follows are detailed instructions for installing z-Tree unleashed on your own server. We recommend the use of Debian.

Only do this if you are a Linux aficionado. If you are not, use our simple installation instructions using the virtual machine image or ask your local Linux guru to do this for you. Using these instructions while not being a Linux aficionado may have grave consequences.

Use at your own risk.

As stated in our license, there is no warranty and we take no responsibility for any damage, loss of data or other consequences if you follow this instruction.

This document is still a work-in-progress.

  1. Login to your server as root and create the user lab:

     root@zunleashed ~ % adduser lab

    Set a password for lab:

     root@zunleashed ~ % passwd lab
  2. Install required and suggested packages:

     root@zunleashed ~ % echo "deb unstable main" | tee /etc/apt/sources.list.d/unstable-wireguard.list
     root@zunleashed ~ % printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' | tee /etc/apt/preferences.d/limit-unstable
     root@zunleashed ~ % dpkg --add-architecture i386
     root@zunleashed ~ % apt update
     root@zunleashed ~ % apt install git wine wine32 wireguard ssl-cert nginx psmisc sudo tmux
     root@zunleashed ~ % apt install xtightvncviewer x11vnc xvfb vinagre
     root@zunleashed ~ % apt install netcat-openbsd rsync htop geany zip chromium thunderbird
  3. Add lab to the sudoers file:

     root@zunleashed ~ % echo "lab ALL=(ALL) ALL" | tee -a /etc/sudoers

    Alternatively, if you use a dedicated server or a virtual machine, you can enable passwordless authentication. However, this is not secure if the server is also used for other purposes and we do not recommend it:

     root@zunleashed ~ % echo "lab ALL=(ALL) NOPASSWD: ALL" | tee -a /etc/sudoers
  4. Log in as lab, clone this repository and set up some symbolic links:

     root@zunleashed ~ % su - lab
      lab@zunleashed ~ $ git clone
      lab@zunleashed ~ $ ln -s ztree-unleashed/scripts scripts
      lab@zunleashed ~ $ ln -s ztree-unleashed/utils utils

    If you use Debian or a compatible system and wish to enable automatic installation of configuration files, please execute the following:

     lab@zunleashed ~ $ sudo touch /etc/zu_oem
  5. Initialize z-Tree unleashed:

     lab@zunleashed ~ $ cd scripts
     lab@zunleashed ~/scripts $ ./
  6. You are essentially done. We recommend that you put the z-Tree and z-Leaf executables into /share/zTree. For example, you can use a web browser to download files or use Thunderbird. But you could also use rsync or SFTP (e.g. using Filezilla).

  7. You can run a session like this:

     lab@zunleashed ~ $ cd scripts
     lab@zunleashed ~/scripts $ ./
This document is still a work-in-progress.