Install Open5GS - JsCc-Electro/5G-SA-Network-Open5gs-srsRAN GitHub Wiki

The Core Network (CN) is a set of open-source software tools used to implement a fifth-generation (5G) mobile communication network based on the 3GPP mobile communication system protocol. It serves as the core network component for the Evolved Packet Core (EPC).

For the installation of the Core Network (CN), the first step is to install MongoDB, which is a database system responsible for Unified Data Management (UDM). The UDM handles and stores user subscription information, including user profile information, session data, and user records. Additionally, the UDM is responsible for user authentication and authorization for access to 5G networks.

sudo su     # Entrar en modo superusuario.
cd          # Ir a la carpeta raíz.
apt update  # Verificar actualización de paquetes disponibles.
apt install wget gnupg curl  # Instalar dependencias
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add - # Descargar archivos del servidor web
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list # Crear Archivo de MongoDB.

Afterward, it is necessary to install the required packages for the proper functioning of the database.

sudo su     # Entrar en modo superusuario.
apt update  # Verificar actualización de paquetes disponibles.
apt install -y mongodb-org mongodb-org-database  # Instalación de MongoDB.
systemctl start mongod  # Iniciar MongoDB.
systemctl enable mongod # Inicio automático de MongoDB.

Upon completing the installation of the database, it is necessary to proceed with the installation of Node.js, which is a JavaScript runtime environment.

sudo su             # Entrar en modo superusuario.
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -      # Descargar última versión de nodejs.
apt install nodejs  # Instalación de nodejs.

To conclude the installation of Open5GS, you need to execute the following commands:

sudo su             # Entrar en modo superusuario.
apt-get install -y software-properties-common # Instalación de administrador de repositorios.
sudo add-apt-repository ppa:open5gs/latest    # Agregar un Archivo de Paquete Personal (PPA)
apt update     # Verificar actualización de paquetes disponibles.
apt install open5gs         # Instalación de Open5GS.
systemctl status open5gs-*  # Verificar que todos los daemons estén activos.

#Install the Open5GS WebUI The WebUI allows for interactive editing of subscriber data, with values such as IMSI, Ki, and OPC needing to match the values on the SIM card being used. To install it, you need to execute the following line of code.

sudo su   # Entrar en modo superusuario.
apt-get install net-tools # Instalar net-tools.
ifconfig  # Verificar que está la red ogstun.
curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash -      # Descargar WebUI Open5GS.

To verify that the WebUI has been installed correctly, you need to open your preferred web browser and enter http://localhost:3000/ in the address bar.

Username : admin
Password : 1423