Difference between revisions of "Open5gs: Download"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 112: | Line 112: | ||
WorkingDirectory=/usr/lib/node_modules/open5gs | WorkingDirectory=/usr/lib/node_modules/open5gs | ||
Environment=NODE_ENV=production | Environment=NODE_ENV=production | ||
− | Environment=0.0.0.0 # tambahan untuk Remote Akses | + | Environment=HOSTNAME=0.0.0.0 # tambahan untuk Remote Akses |
− | Environment=8080 | + | Environment=PORT=8080 # tambahan untuk Remore Akses |
ExecStart=/usr/bin/node server/index.js | ExecStart=/usr/bin/node server/index.js | ||
Restart=always | Restart=always |
Revision as of 11:14, 23 July 2023
Untuk mengoperasikan Open5gs direkomendasi menggunakan sistem operasi Ubuntu 22.04. Berikut adalah langkah yang perlu di lakukan untuk mendownload dan menginstalasi open5gs.
Install aplikasi pendukung
sudo apt update sudo apt install -y software-properties-common
Install MongoDB
Import public key
sudo apt update sudo apt-get install gnupg curl curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \ sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \ --dearmor
Buat file /etc/apt/sources.list.d/mongodb-org-6.0.list
Di Ubuntu 22.04 (Jammy)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Install MongoDB
sudo apt update sudo apt install -y mongodb-org
Restart, Enable, cek status
sudo systemctl start mongod sudo systemctl enable mongod sudo systemctl status mongod
Tip: MongoDB digunakan sebagai database untuk NRF/PCF/UDR dan PCRF/HSS.
Install 5G
Tambahkan Open5gs ke repository yang ada di sistem operasi,
sudo add-apt-repository ppa:open5gs/latest
Instalasi Open5gs
sudo apt update sudo apt install -y open5gs
Restart, Enable
sudo systemcl
open5gs-amfd open5gs-ausfd open5gs-bsfd open5gs-hssd open5gs-mmed open5gs-nrfd open5gs-nssfd open5gs-pcfd open5gs-pcrfd open5gs-scpd open5gs-sgwcd open5gs-sgwud open5gs-smfd open5gs-udmd open5gs-udrd open5gs-upfd
Install WebUI Open5GS
WebUI memungkinkan Anda mengedit data pelanggan secara interaktif. Meskipun tidak penting untuk menggunakan ini, itu membuat segalanya lebih mudah ketika Anda baru memulai petualangan Open5GS Anda. (Tool command line tersedia untuk advanced user).
Node.js diperlukan untuk menginstal WebUI Open5GS
Distribusi Linux berbasis Debian dan Ubuntu dapat menginstal Node.js sebagai berikut:
sudo apt update sudo apt install curl curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt install -y nodejs sudo apt install -y gcc g++ make
Install yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt install -y yarn
Install WebUI Open5GS.
curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash -
Agar bisa di akses dari Remote PC. Edit
cd /etc/systemd/system/multi-user.target.wants vi open5gs-webui.service
Pastikan
[Unit] Description=Open5GS WebUI Wants=mongodb.service mongod.service [Service] Type=simple WorkingDirectory=/usr/lib/node_modules/open5gs Environment=NODE_ENV=production Environment=HOSTNAME=0.0.0.0 # tambahan untuk Remote Akses Environment=PORT=8080 # tambahan untuk Remore Akses ExecStart=/usr/bin/node server/index.js Restart=always RestartSec=2 [Install] WantedBy=multi-user.target
Restart
systemctl daemon-reload systemctl enable open5gs-webui
Default:
URL http://localhost:3000 URL http://ip-address:8080 - untuk remote akses Administrator Account [Username:admin, Password:1423]