Introduction
Sandstorm is an open-source platform for self-hosting web applications. It provides files storage capabilities, live chat, document editor, task and project management, among other things. It has a store with multiple mini apps that are easy to install and setup. This gives you a great chance of control over your data and privacy. This article explains how to install Sandstorm on Ubuntu 20.04 server.
Prerequisites
- Deploy a fully updated Rcs Ubuntu 20.04 Server.
- Create a non-root user with sudo access.
1. Install Java
Update the system.
$ sudo apt update
Install Java.
$ sudo apt install openjdk-11-jre -y
Verify that Java is installed.
$ java -version
2. Install Sandstorm
Install required dependencies.
$ sudo apt install build-essential libcap-dev xz-utils zip unzip strace curl discount git python3 zlib1g-dev golang-go cmake strace flex bison locales -y
Install Meteor.
$ curl https://install.meteor.com/ | sh
Download and import the Sandstorm releases keyring.
$ curl https://raw.githubusercontent.com/sandstorm-io/sandstorm/master/keys/release-keyring.gpg | gpg --import
Download the PGP key fingerprint of a Sandstorm.
$ wget https://raw.githubusercontent.com/sandstorm-io/sandstorm/master/keys/release-certificate.kentonv.sig
Verify the certificate with GPG.
$ gpg --decrypt release-certificate.kentonv.sig
Download the installer script and its signature.
$ wget https://install.sandstorm.io/install.sh
$ wget https://install.sandstorm.io/install.sh.sig
Verify the signature installer script.
$ gpg --verify install.sh.sig install.sh
Run the installer. Follow the prompt and configure Sandstorm. After installation is finished, copy the URL given similar to this: http://192.0.2.11/setup/token/ba1592988089645f9c52d0032c0d2c874e2f129f
.
$ bash install.sh
During installation, answer questions as follows:
- How are you going to use this Sandstorm install? Press Enter.
- OK to continue? Press Enter.
- What *.sandcats.io subdomain would you like? Enter none, then Enter.
- URL users will enter in browser: Enter
http://192.0.2.11
. - Wildcard host: Press Enter.
Enable port 80
through the firewall.
$ sudo ufw allow 80
Edit Sandstorm configuration file sandstorm.conf
.
$ sudo nano /opt/sandstorm/sandstorm.conf
Find the line PORT=6080
and change it like bellow.
PORT=80
Enable the Sandstorm service to run at system startup.
$ sudo systemctl enable sandstorm
Restart the service for changes to take effect.
$ sudo systemctl restart sandstorm
Verify the status of the service.
$ sudo systemctl status sandstorm
3. Access Sandstorm
To access the Sandstorm Web Interface, go to your browser and visit http://serverIP/
. For example:
http://192.0.2.11/setup/token/ba1592988089645f9c52d0032c0d2c874e2f129f
Conclusion
You have installed Sandstorm on your server. You can now finish setting up Sandstorm. Find more information on how to use Sandstorm, go to the official documentation page.