Skip to content

Install Script

Under most Linux/UNIX like environments (Linux, BSD, OS X, …) new users can simply execute the install.sh script to get everything up and running. Cut + paste the following into your terminal:

curl -o- https://raw.githubusercontent.com/NuSkooler/enigma-bbs/master/misc/install.sh | bash

The script will install mise, use it to install the Node.js version ENiGMA½ requires (read from its package.json), and grab the latest ENiGMA½ release from GitHub (see Choosing a Version). It will also guide you through creating a basic configuration file, and recommend some packages to install.

Once it finishes, test your installation.

By default the script installs the latest ENiGMA½ release. Set ENIGMA_VERSION to install something else:

ENIGMA_VERSIONInstalls
latest (the default)The latest release on GitHub. Pre-releases (-rc versions) are never the latest.
A version, such as 0.7.0 or v0.7.0That release: the script checks out its tag, v0.7.0, and stops with an error if there is no such tag.
master, or another branch nameThat branch, with every change merged since the last release.
curl -o- https://raw.githubusercontent.com/NuSkooler/enigma-bbs/master/misc/install.sh | ENIGMA_VERSION=0.7.0 bash

The script itself always comes from master, as above; it can install any version.

ENIGMA_BRANCH, the setting before ENIGMA_VERSION, still works: ENIGMA_BRANCH=master installs master. If both are set, ENIGMA_VERSION is used.

latest is looked up on GitHub, in the repository ENIGMA_SOURCE names (by default https://github.com/NuSkooler/enigma-bbs.git), so a fork on GitHub gets its own latest release. For a source that is not on GitHub, latest installs master; set ENIGMA_VERSION to a version or branch instead.

A release is installed as a full git clone with its tag checked out, so git reports a “detached HEAD”: that is expected. To move to a later release, see Upgrading, or run:

Terminal window
cd ~/enigma-bbs
git fetch --tags
git checkout v0.7.1
npm ci

Running the script again over an existing install does the same: it fetches, then checks out the version asked for (and brings a branch such as master up to date). It stops with an error if local changes are in the way, or if the branch has commits of its own that are not upstream and upstream has moved on.

When it installs ENiGMA½, the script asks:

Install the enig-term web terminal? [y/N]

enig-term is a browser terminal that ENiGMA½ serves at /_enig/ws-term/. The answer defaults to no. Answer y and the script downloads the latest enig-term release from GitHub, checks it against the release’s SHA256SUMS, and unpacks it into ws-term in your install directory, which is all it takes to turn the route on. If the download fails, does not match its checksum, or curl/wget, tar or sha256sum/shasum is missing, it says so, installs nothing, and the rest of the installation carries on.

Answer ahead of time, or when there is no terminal to ask on, with environment variables:

VariableEffect
ENIGMA_INSTALL_ENIG_TERMyes installs enig-term without asking, no skips it. With no terminal to ask on, the default is no.
ENIGMA_ENIG_TERM_VERSIONInstalls that release, such as 0.1.0, instead of the latest.
curl -o- https://raw.githubusercontent.com/NuSkooler/enigma-bbs/master/misc/install.sh | ENIGMA_INSTALL_ENIG_TERM=yes bash

Afterwards, enig-term needs the web server enabled and a secure WebSocket (wss://) that browsers can reach. Behind a TLS proxy, set the public endpoint in config.hjson:

contentServers: {
web: {
wsTerm: {
endpoint: "wss://bbs.example.com:44512"
}
}
}

Then browse to https://bbs.example.com/_enig/ws-term/. See enig-term Web Terminal for the rest of its settings.

You might also check out some external guides: