How to install and Configure Sandstorm on CentOS 8.1
To Install and Configure Sandstorm on CentOS 8.1
Introduction:
Sandstorm is an open-source platform for hosting web apps. It is a user interface that can be used to install several apps easier including WordPress, GitLab, MediaWiki, Apache Wave, and RoundCube webmail.
Installation Procedure:
Check the installed version of OS on system
[root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 8.3.2011
Before you start, you need to install the download script for Sandstorm as it is required for the installation process.
[root@linuxhelp ~]# curl https://install.sandstorm.io >install.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 77576 100 77576 0 0 40194 0 0:00:01 0:00:01 --:--:-- 40174
Once it is done, you shall install sandstorm by executing the downloaded script as follows.
[root@linuxhelp ~]# bash install.sh
Sandstorm makes it easy to run web apps on your own server. You can have:
1. A typical install, to use Sandstorm (press enter to accept this default)
2. A development server, for working on Sandstorm itself or localhost-based app development
How are you going to use this Sandstorm install? [1]
We're going to:
* Install Sandstorm in /opt/sandstorm
* Automatically keep Sandstorm up-to-date
* Create a service user (sandstorm) that owns Sandstorm's files
* Configure Sandstorm to start on system boot (with systemd)
* Listen for inbound email on port 25.
Rest assured that Sandstorm itself won't run as root.
OK to continue? [yes] yes
OK to skip automatic HTTPS setup & bind to port 6080 instead? [yes]
Note: Sandstorm's storage will only be accessible to the group 'sandstorm'.
As a Sandstorm user, you are invited to use a free Internet hostname as a subdomain of sandcats.io,
a service operated by the Sandstorm development team.
...
Sandcats.io protects your privacy and is subject to terms of use. By using it,
you agree to the terms of service & privacy policy available here:
https://sandcats.io/terms https://sandcats.io/privacy
Choose your desired Sandcats subdomain (alphanumeric, max 20 characters).
Type the word none to skip this step, or help for help.
What *.sandcats.io subdomain would you like? [] none
URL users will enter in browser: [http://linuxhelp:6080]
Sandstorm requires you to set up a wildcard DNS entry pointing at the server.
This allows Sandstorm to allocate new hosts on-the-fly for sandboxing purposes.
Please enter a DNS hostname containing a '*' which maps to your server. For
example, if you have mapped *.foo.example.com to your server, you could enter
"*.foo.example.com". You can also specify that hosts should have a special
prefix, like "ss-*.foo.example.com". Note that if your server's main page
is served over SSL, the wildcard address must support SSL as well, which
implies that you must have a wildcard certificate. For local-machine servers,
we have mapped *.local.sandstorm.io to 127.0.0.1 for your convenience, so you
can use "*.local.sandstorm.io" here. If you are serving off a non-standard
port, you must include it here as well.
Wildcard host: [*.linuxhelp:6080]
Config written to /opt/sandstorm/sandstorm.conf.
Finding latest build for dev channel...
Downloading: https://dl.sandstorm.io/sandstorm-276.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 62.4M 100 62.4M 0 0 945k 0 0:01:07 0:01:07 --:--:-- 1094k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 310 100 310 0 0 186 0 0:00:01 0:00:01 --:--:-- 186
GPG signature is valid.
Created symlink /etc/systemd/system/multi-user.target.wants/sandstorm.service → /etc/systemd/system/sandstorm.service.
Your server is coming online. Waiting up to 90 seconds...
Your server is now online! Visit this link to start using it:
http://linuxhelp:6080/setup/token/1e44210f81b6502a918af681f8bf4ab6b94bfade
NOTE: This URL expires in 15 minutes. You can generate a new setup URL by running
'sudo sandstorm admin-token' from the command line.
To learn how to control the server, run
sandstorm help
Now switch to your browser and give this domain address as URl http://linuxhelp:6080/setup/token/1e44210f81b6502a918af681f8bf4ab6b94bfade
With this, the installation of sandstorm on Centos 8.3 comes to an end.
# curl https://install.sandstorm.io > install.sh
"dd if=/dev/zero of=/swap.img bs=1M count=1024
mkswap /swap.img
swapon /swap.img
echo /s
RAM: 1 GB
Disk space: 5 GB
Swap: Enabled, if possible
You can probably get away with less, but we wouldn't advise it. 2GB is vastly better