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.

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

    Copy
    wget -O /tmp/nodeSetup.sh https://deb.nodesource.com/setup_16.x
    chmod a+x /tmp/nodeSetup.sh
    /tmp/nodeSetup.sh
  3. Install MongoDB, Node.js and further dependencies.

    Copy
    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.

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

    Copy
    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.