The Algo scripts can’t be run directly on Windows, but you can use the Windows Subsystem for Linux (WSL) to run a copy of Ubuntu Linux right on your Windows system.
To run WSL you will need:
Enable the ‘Windows Subsystem for Linux’:
Wait a minute for Windows to install a few things in the background (it will eventually let you know a restart may be required for changes to take effect—ignore that for now). Next, to install the actual Linux Subsystem, you have to jump over to ‘Control Panel’, and do the following:
Run these commands in the Ubuntu Terminal to install a prerequisite package and download the Algo scripts to your home directory. Note that when using WSL you should not install Algo in the
/mnt/c directory due to problems with file permissions.
You may need to follow these directions in order to paste commands into the Ubuntu Terminal.
cd umask 0002 sudo apt update sudo apt install -y python3-virtualenv git clone https://github.com/trailofbits/algo cd algo
Now you can continue by following the README from the 4th step to deploy your Algo server!
You’ll be instructed to edit the file
config.cfg in order to specify the Algo user accounts to be created. If you’re new to Linux the simplest editor to use is
nano. To edit the file while in the
algo directory, run:
./algo has finished you can use the
cp command to copy the configuration files from the
configs directory into your Windows directory under
/mnt/c/Users for easier access.