Installation
Install RST Bastion from the offline package by unpacking it, running install.sh, reading the initial administrator password and signing in. Covers the directory layout and the upgrade helper.
RST Bastion ships only as an offline installation package. Every edition uses the same package; without a licence it runs as the free edition.
Install
Prerequisites
- The requirements are met.
- The installation package for the host's architecture,
bastion-<version>-linux-<arch>.tar.gz.
Steps
-
Unpack the package and move the directory to its final location. This directory is the installation directory, and every later upgrade runs here:
tar xzf bastion-<version>-linux-amd64.tar.gz sudo mv bastion-<version>-linux-amd64 /opt/bastion -
Run the install script as root:
cd /opt/bastion && sudo ./install.sh -
Read the initial administrator password:
sudo cat /opt/bastion/data/initial-admin-password -
Open the URL the script prints,
https://<host IP>:8088, and sign in asadmin.
install.sh does the following, in order:
- Checks for Docker, the docker compose plugin and
/etc/machine-id. - Loads the images.
- On a new installation, creates
.env(mode 600) from.env.example. Every deployment setting lives in this file. - Creates the
data/directory, readable by root only. - On a new installation, generates a self-signed certificate in
data/tls/and turns on HTTPS in.env. If the host has no openssl or generation fails, it starts on HTTP. - When run as root, installs and starts the upgrade helper.
- Runs
docker compose up -d.
First sign-in
The initial administrator account is admin, the system's super administrator. Its password is generated at random on first start and written to data/initial-admin-password; it is not printed to the container log.
You must change the password on first sign-in, and no other page opens until you do. Sign in again with the new password; initial-admin-password is then deleted.
The sign-in page has a Stay signed in for two weeks option (两周内保持登录). Once an account has two-factor authentication, sign-in also asks for the 6-digit code from the authenticator app; see Profile.
Only the super administrator sees Backup and restore, Licence and Upgrade under System settings, and the new-version notice in the top bar.
Installation directory
| Path | Contents |
|---|---|
.env, docker-compose.yml | Deployment settings; see Configuration |
data/ | Database (data/sqlite/), the encryption key file .encryption-key, recordings, file spaces, the built-in SSH service's host key, HTTPS certificates |
updater/ | Directory shared with the upgrade helper: upgrade requests and progress |
backups/ | Database backups taken before each one-click upgrade; the latest 3 are kept |
data/.encryption-key encrypts asset passwords and other secrets and must be backed up together with the database. If this file is lost, the encrypted data cannot be recovered.
Upgrade helper
One-click upgrade from the console is carried out by the upgrade helper bastion-updater on the host. It is a systemd service running as root that listens on no port. It only processes upgrade requests submitted from the console and checks the signature of every release file again. The bastion container does not mount the Docker socket and cannot run commands on the host.
install.shinstalls the upgrade helper automatically when run as root.- Otherwise, install or update it separately as root with
./install.sh updater /opt/bastion. - Check its status with
systemctl status bastion-updaterandjournalctl -u bastion-updater. - To turn off one-click upgrade, run
systemctl disable --now bastion-updater.
Without the upgrade helper you can still upgrade by hand.
Requirements and network
Check the operating system, Docker and machine-id before installing, and the inbound and outbound ports to open.
Configuration
Deployment settings in the installation directory's .env file covering ports, the built-in SSH service, time zone, licence server, online update, proxy, HTTPS certificates and reverse proxies.