-
Notifications
You must be signed in to change notification settings - Fork 5
/
install
59 lines (55 loc) · 1.57 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install git -y
#Mandatory dependencies:
#libfftw
sudo apt-get install libfftw3-dev libfftw3-doc -y
#UHD
sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils cmake build-essential -y
sudo apt-get install libuhd-dev libuhd003 uhd-host -y
#Optional dependencies:
#BOOST
sudo apt-get install libboost-system-dev libboost-test-dev libboost-thread-dev libqwt-dev libqt4-dev -y
#srsGUI
if [ "$1" == "gui" ];
then
echo "Install srsGUI"
git clone https://github.com/suttonpd/srsgui.git
cd srsgui
mkdir build
cd build
cmake ../
sudo make install
cd ../..
else
echo "Install without srsGUI"
sed -i -e 's/target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})/target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})\n add_definitions(-DDISABLE_GRAPHICS)/g' srslte/examples/CMakeLists.txt
fi
#VOLK
git clone https://github.com/gnuradio/volk.git
cd volk
mkdir build
cd build
cmake ../
sudo make install
cd ../..
#VBBU
cd vbbu
mkdir build
cd build
cmake ../
sudo make install
chmod +x *
path=$(pwd)
ln -s "$path"/* /usr/bin
cd ../..
sudo echo "\nnet.core.rmem_max=50000000" >> /etc/sysctl.conf
sudo echo "\nnet.core.wmem_max=1048576" >> /etc/sysctl.conf
sudo echo "\nroot - rtprio 99" >> /etc/security/limits.conf
sudo echo "\nroot - memlock unlimited" >> /etc/security/limits.conf