Setup guide for Linux
This guide will prepare your machine for local development with the SpatialOS SDK.
Note: You need to have access to SpatialOS to download the SDK.
1. System requirements
Before following the setup guide check that your machine meets the hardware requirements.
2. Set up the SpatialOS CLI
To set up the SpatialOS CLI (spatial
):
Download
spatial
for Linux (64bit): Download.By downloading
spatial
, you agree to the SpatialOS EULA.Put
spatial
in a directory.For example,
bin
in your home directory:mkdir -p $HOME/bin && mv $HOME/Downloads/spatial $HOME/bin
.Add the directory to your
PATH
.Make sure
spatial
is executable: runchmod +x <path_to_spatial_here>
.Check this succeeded by running
spatial update
in your terminal. You should get the output:Current version of the 'spatial' command-line tool: <version number>
Attempting to download the latest version...
3. Set up Unity (optional, unsupported)
Install Unity version 2017.3.0:
- Go to the experimental Unity build for 2017.3.0.
- Download the installer of your choice.
- Run the installer.
Install Unity into the directory
/opt/Unity
.spatial worker build
expects to find Unity in this directory.Set the environment variable
UNITY_HOME
to/opt/Unity
.Launch Unity and complete the registration process.
Next steps
You’ve now set up your experimental Linux development environment with SpatialOS!