Installing the tools and database

The SCG machine's hostname may not be changed after the MongoDB database has been installed and configured. If required, change the hostname before.

The following instructions use Ubuntu 20.04 and NGINX as a web server.

  1. Add the package sources for MongoDB.

    echo "deb [ arch=amd64 ] focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb.list
    wget -O /tmp/mongo.asc
    apt-key add /tmp/mongo.asc
  2. Add the package sources for Node.js.

    wget -O /tmp/
    chmod a+x /tmp/
  3. Install MongoDB, Node.js and further dependencies.

    apt-get update
    apt-get install mongodb-org nodejs nginx openvpn jq moreutils zip logrotate
  4. Check for the MongoDB version. The version must be 4.4.

    mongo --version
  5. Check for the Node.js version. The major version must be 16.

    node -v

Only earlier versions:1 Configure the database in the next step, see Configuring MongoDB for SCG. For later versions, install the Debian package now.