# UE/RAN SIM Installation Guide
## Preparation
### 1. Hardware Requirements
a. Minimum Specification
* CPU : Intel I5
* RAM : 4GB
* Storage : 160GB
* NIC : 1Gbps Ethernet supported by linux kernel
b. Recommended Specification
* CPU : Intel I7
* RAM : 8GB
* Storage : 1TB
* NIC : 10Gbps Ethernet supported by linux kernel
c. General Requirements
* Operating System : Ubuntu 20.04
* Compiler : GCC 7.3.0
* Go : 1.14.4 linux/amd64
## Installation
a. Move to home directory
```
cd ~
```
b. Clone UERANSIM repository
```
git clone https://github.com/aligungr/UERANSIM
```

c. Move to UERANSIM directory
```
cd UERANSIM
```

d. Switch working directory
```
git checkout 3a96298
```

e. Update system repositories and Upgrade installed package
```
sudo apt update
sudo apt upgrade -y
```


f. Installing required tools
```
sudo apt install -y make g++ libsctp-dev lksctp-tools iproute2
sudo snap install cmake --classic
```


g. Build UERANSIM
```
cd ~/UERANSIM
make
```

## Configuration
### 1. Network Configuration
a. Open file /etc/hostname
`sudo nano /etc/hostname`
b. Replace it's contain with "ueransim"
c. Save the file, click "CTRL+x" then "y" then "ENTER"
d. Checkout file under /etc/netplan directory
`ls /etc/netplan`
The command will produce output like
`01-network-manager-all.yaml`
e. Edit the file
`sudo nano /etc/netplan/01-network-manager-all.yaml`
Aternatives
`sudo nano /etc/netplan/$(ls /etc/netplan)`
f. At first, the file will look like
```
network
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
```
Edit the file
```
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses:
- 192.168.56.101/24
gateway4: 192.168.56.1
```
g. Check for syntax error in the configuration file
```
sudo netplan try
```
h. Apply the configuration
```
sudo netplan apply
```