|
|
@@ -1,2 +1,60 @@
|
|
|
-# srsran_env
|
|
|
+# srsran 环境配置
|
|
|
|
|
|
+## open5gs
|
|
|
+
|
|
|
+```shell
|
|
|
+sudo apt install gnupg curl python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git cmake libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
|
|
|
+curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
|
|
|
+echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
|
|
|
+sudo apt update
|
|
|
+sudo apt install -y mongodb-org
|
|
|
+sudo systemctl start mongod
|
|
|
+sudo systemctl enable mongod
|
|
|
+
|
|
|
+sudo add-apt-repository ppa:open5gs/latest
|
|
|
+sudo apt update
|
|
|
+sudo apt install open5gs
|
|
|
+
|
|
|
+
|
|
|
+cd open5gs
|
|
|
+meson setup build && cd build
|
|
|
+ninja
|
|
|
+sudo ninja install
|
|
|
+```
|
|
|
+
|
|
|
+## Install the WebUI of Open5GS
|
|
|
+
|
|
|
+```shell
|
|
|
+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
|
|
|
+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
|
|
|
+sudo apt update
|
|
|
+sudo apt install nodejs -y
|
|
|
+curl -fsSL https://open5gs.org/open5gs/assets/webui/install | sudo -E bash -
|
|
|
+```
|
|
|
+
|
|
|
+## Install srsRan_4G
|
|
|
+
|
|
|
+```shell
|
|
|
+sudo apt-get install build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev libboost-system-dev libboost-test-dev libboost-thread-dev libqwt-qt5-dev qtbase5-dev libuhd-dev uhd-host -y
|
|
|
+cd ~
|
|
|
+git clone git@github.com:srsran/srsGUI.git
|
|
|
+cd srsGUI
|
|
|
+mkdir build
|
|
|
+cd build
|
|
|
+cmake -GNinja ../
|
|
|
+ninja
|
|
|
+sudo ninja install
|
|
|
+
|
|
|
+cd ~
|
|
|
+git clone git@github.com:srsran/srsRAN_4G.git
|
|
|
+cd srsRAN_4G
|
|
|
+mkdir build
|
|
|
+cd build
|
|
|
+cmake -GNinja ../
|
|
|
+ninja
|
|
|
+sudo ninja install
|
|
|
+sudo srsran_install_configs.sh service
|
|
|
+```
|