From fc6ef2b8ed0387ff8fe612c0bea718c16c9eae64 Mon Sep 17 00:00:00 2001
From: Carlos Antonio De Lima Filho <carlos.lima.106@ufrn.edu.br>
Date: Thu, 31 Oct 2024 22:27:29 +0000
Subject: [PATCH] Update file README.md

---
 .../README.md                                 | 76 ++++++++++++++++++-
 1 file changed, 75 insertions(+), 1 deletion(-)

diff --git a/openairinterface5g/openairinterface-install-scripts/README.md b/openairinterface5g/openairinterface-install-scripts/README.md
index 2349252b..49c2f2f0 100644
--- a/openairinterface5g/openairinterface-install-scripts/README.md
+++ b/openairinterface5g/openairinterface-install-scripts/README.md
@@ -19,4 +19,78 @@
 **However, if you do not have such hardware specifications, you may use the one below for both devices (tested for us, you may face some lags, but it works):**
 - Ubuntu 20.04.5 LTS;
 - CPU: 4 cores x86_64;
-- 4 GB RAM.
\ No newline at end of file
+- 4 GB RAM.
+
+## 5GC Installation
+
+In a Linux Terminal, follow the steps below:
+
+**Step 0:** Setup your VM or Baremetal Machine, after install Useful Software:
+
+sudo su
+
+apt update -y
+
+apt upgrade -y
+
+apt install -y python3-pip git curl cmake tree golang vim net-tools build-essential nfs-common openssh-server
+
+**Step 1:** Install dependencies
+
+sudo apt-get install ca-certificates 
+
+sudo apt-get install curl 
+
+sudo apt-get install gnupg 
+
+sudo apt-get install lsb-release 
+
+**Step 2:** Enable packet forwarding
+
+sudo sysctl net.ipv4.conf.all.forwarding=1
+
+sudo iptables -P FORWARD ACCEPT
+
+**Step 3:** Install docker and docker-compose
+
+sudo rm /etc/apt/sources.list.d/docker.list*
+
+sudo mkdir -p /etc/apt/keyrings 
+
+curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+
+sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \\$(. /etc/os-release; echo "\\$UBUNTU_CODENAME") stable"
+
+sudo chmod a+r /etc/apt/keyrings/docker.gpg
+
+sudo apt-get update
+
+sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
+
+```python 
+sudo curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
+```
+
+sudo chmod +x /usr/local/bin/docker-compose
+
+**Step 4:** Clone OpenAirInterface 5G Core repository
+
+git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git
+
+cd oai-cn5g-fed
+
+git checkout slicing-spring-of-code
+
+## Deployment
+
+For this task, open another terminal using crtl+Alt+T.
+
+**Step 1:** Core deployment
+
+cd /home/dco1020/oai-cn5g-fed/docker-compose
+
+sudo python3 core-network.py --type start-basic --scenario 1
+
+Expected result:
+
+After running the above command, nine containers are expected to be in the "Up (healthy)" state as shown in figure below.
\ No newline at end of file
-- 
GitLab