From d3a10ed0cad6a1e06cc3b8e39ea86807d6ecddec Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sun, 3 Sep 2023 20:03:47 +0900 Subject: [PATCH] [WebUI] Update NodeJS installation Guide --- docs/_docs/guide/01-quickstart.md | 15 ++++++++++++--- .../guide/02-building-open5gs-from-sources.md | 16 +++++++++++++--- docs/_docs/platform/02-centos.md | 5 +++++ docs/_docs/platform/03-fedora.md | 1 + docs/_docs/tutorial/01-your-first-lte.md | 17 +++++++++++++++-- vagrant/centos/Vagrantfile | 3 +-- 6 files changed, 47 insertions(+), 10 deletions(-) diff --git a/docs/_docs/guide/01-quickstart.md b/docs/_docs/guide/01-quickstart.md index e5b3b519f..fe8644412 100644 --- a/docs/_docs/guide/01-quickstart.md +++ b/docs/_docs/guide/01-quickstart.md @@ -188,10 +188,19 @@ The WebUI allows you to interactively edit subscriber data. While it is not esse 1. *Debian and Ubuntu* based Linux distributions can install [Node.js](https://nodejs.org/) as follows: ```bash + # Download and import the Nodesource GPG key $ sudo apt update - $ sudo apt install curl - $ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - - $ sudo apt install nodejs + $ sudo apt install -y ca-certificates curl gnupg + $ sudo mkdir -p /etc/apt/keyrings + $ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + + # Create deb repository + $ NODE_MAJOR=20 + $ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + + # Run Update and Install + $ sudo apt update + $ sudo apt install nodejs -y ``` 2. To install [Node.js](https://nodejs.org/) on *openSUSE*, run the following: diff --git a/docs/_docs/guide/02-building-open5gs-from-sources.md b/docs/_docs/guide/02-building-open5gs-from-sources.md index 6735405dd..4515b5794 100644 --- a/docs/_docs/guide/02-building-open5gs-from-sources.md +++ b/docs/_docs/guide/02-building-open5gs-from-sources.md @@ -422,9 +422,19 @@ $ ./build/tests/app/app ## Both 5G Core and EPC with ./build/configs/sample.yaml [Node.js](https://nodejs.org/) is required to build WebUI of Open5GS ```bash -$ sudo apt install curl -$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - -$ sudo apt install nodejs +# Download and import the Nodesource GPG key +$ sudo apt update +$ sudo apt install -y ca-certificates curl gnupg +$ sudo mkdir -p /etc/apt/keyrings +$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + +# Create deb repository +$ NODE_MAJOR=20 +$ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + +# Run Update and Install +$ sudo apt update +$ sudo apt install nodejs -y ``` Install the dependencies to run WebUI diff --git a/docs/_docs/platform/02-centos.md b/docs/_docs/platform/02-centos.md index 414cf2f23..1f49d252f 100644 --- a/docs/_docs/platform/02-centos.md +++ b/docs/_docs/platform/02-centos.md @@ -238,11 +238,16 @@ to support IPv6. This is done by setting the `diable_ipv6` option for `ogstun` to 0 (false): ```bash +$ sysctl -n net.ipv6.conf.lo.disable_ipv6 +1 $ sysctl -n net.ipv6.conf.ogstun.disable_ipv6 1 +$ sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 $ sudo sysctl -w net.ipv6.conf.ogstun.disable_ipv6=0 +$ sysctl -n net.ipv6.conf.lo.disable_ipv6 +0 $ sysctl -n net.ipv6.conf.ogstun.disable_ipv6 0 ``` diff --git a/docs/_docs/platform/03-fedora.md b/docs/_docs/platform/03-fedora.md index 0f218b3f2..d3b083041 100644 --- a/docs/_docs/platform/03-fedora.md +++ b/docs/_docs/platform/03-fedora.md @@ -120,6 +120,7 @@ $ cd ../ [Node.js](https://nodejs.org/) is required to build WebUI of Open5GS ```bash +$ sudo dnf install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y $ sudo dnf -y install nodejs ``` diff --git a/docs/_docs/tutorial/01-your-first-lte.md b/docs/_docs/tutorial/01-your-first-lte.md index 5f2958ea0..0b78ed6d6 100644 --- a/docs/_docs/tutorial/01-your-first-lte.md +++ b/docs/_docs/tutorial/01-your-first-lte.md @@ -179,8 +179,21 @@ $ sudo apt install open5gs The following shows how to install the Web UI of Open5GS. ```bash -$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - -$ sudo apt install nodejs +# Download and import the Nodesource GPG key +$ sudo apt update +$ sudo apt install -y ca-certificates curl gnupg +$ sudo mkdir -p /etc/apt/keyrings +$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + +# Create deb repository +$ NODE_MAJOR=20 +$ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + +# Run Update and Install +$ sudo apt update +$ sudo apt install nodejs -y + +# Install the WebUI of Open5GS $ curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash - ``` diff --git a/vagrant/centos/Vagrantfile b/vagrant/centos/Vagrantfile index aedd96125..7928bad2b 100644 --- a/vagrant/centos/Vagrantfile +++ b/vagrant/centos/Vagrantfile @@ -12,8 +12,7 @@ Vagrant.configure("2") do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. - config.vm.box = "centos/stream8" - config.vm.box_version = "20210210.0" + config.vm.box = "generic/centos8" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs