Installing the tools and database

Important:

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 24.04 and NGINX as a web server.

  1. Add the package sources for MongoDB.

    wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-server-8.0.gpg
        
    echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | \
    tee /etc/apt/sources.list.d/mongodb-org-8.0.list
    <!--NeedCopy-->
    
  2. Add the package sources for Node.js.

    wget -qO - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
    
    echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/nodesource.gpg ] https://deb.nodesource.com/node_24.x nodistro main"  | \
    tee /etc/apt/sources.list.d/nodesource.list > /dev/null
    
    echo -e "Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 600" > /etc/apt/preferences.d/nodejs
    <!--NeedCopy-->
    
  3. Install MongoDB, Node.js and further dependencies.

    apt-get -y update
        
    apt-get -y install mongodb-org nodejs nginx openvpn jq moreutils zip logrotate
    <!--NeedCopy-->
    
  4. Check for the MongoDB version. The version must be 8.

    mongo --version
    <!--NeedCopy-->
    
  5. Check for the Node.js version. The major version must be 24.

    node -v
    <!--NeedCopy-->
    

Note:

You can install the SCG Debian package now.

Installing the tools and database

In this article