From f687e62f25a0e3165728806f5722136bebec5f04 Mon Sep 17 00:00:00 2001 From: paulmataruso Date: Sat, 25 Jan 2025 19:24:57 +0000 Subject: [PATCH] Update README.md --- README.md | 64 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 4cdce00..6143aeb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ -# DHI-CNI -DHI OsmocomCNI + Open5GS - 2/3G + 4/5G Core -# DHI-CNI - 2G/3G + 4G/5G Core +# DHI OsmocomCNI + Open5GS - 2/3G + 4/5G Core Open5gs and OsmocomCNI are running on two different VMs, on a single Proxmox host. We present two networks to each VM. @@ -26,48 +24,76 @@ Reference the netplan YAMLS files for each respective VM for correct IP config Install MongoDB 4 if you have AVX support, use a newer version Add repo for needed library -```echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list``` +``` +echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list +``` Install libssl, and don't forget to apt hold this package -```sudo apt-get install libssl1.1``` +``` +sudo apt-get install libssl1.1 +``` Remove repo after, don't need it. -```sudo rm /etc/apt/sources.list.d/focal-security.list``` +``` +sudo rm /etc/apt/sources.list.d/focal-security.list +``` Get MongoDB Key -```curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -``` +``` +curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - +``` Add repo -```echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list``` +``` +echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list +``` Install MongoDB -```apt update && apt install mongodb-org -y``` +``` +apt update && apt install mongodb-org -y +``` Add Ubuntu Open5gs PPA, and install Open5GS -```add-apt-repository ppa:open5gs/latest && apt update && apt install -y open5gs``` +``` +add-apt-repository ppa:open5gs/latest && apt update && apt install -y open5gs +``` Next install Open5GS WebUI Make folder for keys -```mkdir -p /etc/apt/keyrings``` +``` +mkdir -p /etc/apt/keyrings +``` Get keys and store them -```curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg``` +``` +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +``` Create and add deb repo -```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``` +``` +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 +``` Update and install NodeJS -```apt -y update && apt install -y nodejs``` +``` +apt -y update && apt install -y nodejs +``` And now run Open5GS WebUI Install script -```curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash -``` +``` +curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash - +``` Make WebUI bind to something other then localhost Edit this file -```/lib/systemd/system/open5gs-webui.service``` +``` +/lib/systemd/system/open5gs-webui.service +``` Add the following ``` @@ -76,7 +102,9 @@ ENVIROMENT=PORT=8080 ``` Reload services and start WebUI -```systemctl daemon-reload && systemctl restart open5gs-webui``` +``` +systemctl daemon-reload && systemctl restart open5gs-webui +``` While we are here let's add the NAT rules for UE Connectivity ```