Difference between revisions of "Open5gs: Install WebUI Open5gs"

From OnnoWiki
Jump to navigation Jump to search
 
Line 55: Line 55:
  
 
  systemctl daemon-reload
 
  systemctl daemon-reload
  sysyemctl restart open5gs-webui
+
  systemctl restart open5gs-webui
 
  systemctl enable open5gs-webui
 
  systemctl enable open5gs-webui
 
  systemctl status open5gs-webui
 
  systemctl status open5gs-webui

Latest revision as of 13:21, 30 July 2023

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 gcc g++ make
sudo apt install -y nodejs


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 restart open5gs-webui
systemctl enable open5gs-webui
systemctl status open5gs-webui
● open5gs-webui.service - Open5GS WebUI
     Loaded: loaded (/lib/systemd/system/open5gs-webui.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-07-23 04:19:06 UTC; 6s ago
   Main PID: 51827 (node)
      Tasks: 11 (limit: 10656)
     Memory: 58.6M
        CPU: 1.264s
     CGroup: /system.slice/open5gs-webui.service
             └─51827 /usr/bin/node server/index.js

Jul 23 04:19:06 server2204 systemd[1]: Started Open5GS WebUI.
Jul 23 04:19:08 server2204 node[51827]: > Ready on http://0.0.0.0:8080
Default URL http://localhost:3000
Setelah diubah menjadi URL http://ip-address:8080  - untuk remote akses
Administrator Account [Username:admin, Password:1423]

Pranala Menarik