Link Search Menu Expand Document

Building from sources (Linux)

If you are planning to make modifications to the SCION implementation, you can build SCION from sources and run your SCIONLab AS with your own version of SCION. For developers’ convenience, SCIONLab supports generating configurations that are compatible with the scripts and machinery intended to run SCION in a development environment.

Building SCION from sources requires following a lengthy setup procedure and installing various development dependencies. The development setup is currently supported/documented for Ubuntu 16.04 or Ubuntu 18.04. It is possible to build SCION on other systems, but no guidance is provided. To keep it simple, just run Ubuntu in a VM or container if you can’t/don’t want to set it up on your workstation.

Please follow the instructions in the GitHub README to clone and build SCION.


After having managed to build SCION and after creating or modifying your AS in the SCIONLab coordination website, you can deploy the generated configuration to your machine.

  1. Download the configuration tarfile from the SCIONLab coordination website.
  2. If you plan on using a VPN, unpack the client-scionlab-<attachment point ISD-AS>.conf to /etc/openvpn/ and start OpenVPN
    sudo systemctl restart openvpn@client-scionlab-<attachment point ISD-AS>
  3. Extract the gen/ subdirectory to your $SC directory.
  4. Restart SCION
    cd $SC stop
    supervisor/ reload  # necessary if supervisor.conf files changed start

Running SCION

To build, start and stop SCION, use the developer script, located in the SCION repository.

cd $SC start          # Build and start SCION services start nobuild  # Start, without building status         # Lists failed SCION services stop           # Stop all SCION services

The commands above are essentially a wrapper around supervisord. Alternatively, use the supervisor commands directly, using the supervisor/ helper script.

cd $SC
supervisor/ reload   # Reload supervisord configuration
supervisor/ status   # Show status of all SCION services
supervisor/          # Starts the supervisor shell

Copyright © 2020, Network Security Group, ETH Zurich