Install MongoDB 8.0 and Open5GS WebUI
May 18, 2025 ยท View on GitHub
The process for the following OS is shown here.
- Ubuntu 22.04
- Ubuntu 24.04
Sample Configurations and Miscellaneous for Mobile Network
Table of Contents
Install MongoDB 8.0
Note. MongoDB v4.4.19 and later will not run on CPUs that do not support AVX instruction. In this case, it is necessary to downgrade it to v4.4.18. For reference, I wrote the steps to install v4.4.18 on Ubuntu 20.04 on Raspberry Pi 4B here.
# apt install gnupg curl
# curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
# echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/8.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list
# apt update
# apt install -y mongodb-org
# systemctl enable mongod
# systemctl start mongod
Install Open5GS WebUI
It is assumed that MongoDB 8.0 has been installed already.
First, install Node.js, see here.
# apt install -y ca-certificates curl gnupg
# mkdir -p /etc/apt/keyrings
# curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
# echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# apt update
# apt install -y nodejs
Then, install Open5GS WebUI.
# mkdir ~/tmp
# cd ~/tmp
# wget https://raw.githubusercontent.com/open5gs/open5gs/refs/heads/main/docs/assets/webui/install
# bash install
If necessary, set the IP address and port to bind as follows (ex. 192.168.0.111:3000).
/lib/systemd/system/open5gs-webui.service
--- open5gs-webui.service.orig 2024-05-12 00:04:58.407915513 +0900
+++ open5gs-webui.service 2024-05-12 00:05:29.518339202 +0900
@@ -7,6 +7,8 @@
WorkingDirectory=/usr/lib/node_modules/open5gs
Environment=NODE_ENV=production
+Environment=HOSTNAME=192.168.0.111
+Environment=PORT=3000
ExecStart=/usr/bin/node server/index.js
Restart=always
RestartSec=2
Update system services.
# systemctl daemon-reload
# systemctl restart open5gs-webui
And, login to Web console as follows and register subscriber information.
http://<IP address of Web console>:3000/
username: admin
password: 1423
Changelog (summary)
- [2025.04.10] Updated MongoDB version to 8.0.
- [2024.05.11] Initial release.