-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
75 lines (54 loc) · 1.66 KB
/
bootstrap.sh
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
apt-get update
apt-get upgrade -y
apt-get install -y git gdb
git clone https://github.com/gnuradio/pybombs.git
sudo chown -R vagrant:vagrant pybombs
cd pybombs
# git checkout 351cff306adc1ade7ae1c7af1bca19ae8076437a
# checkout slightly older version because they may have pulled in a bug
sudo chown -R vagrant:vagrant src
git config --global --unset http.proxy
dd if=/dev/zero of=/swapfile1.swap bs=1024 count=524288
chown root:root /swapfile1.swap
chmod 0600 /swapfile1.swap
mkswap /swapfile1.swap
swapon /swapfile1.swap
echo '/swapfile1.swap none swap sw 0 0' >> /etc/fstab
#cd pybombs
cp config.defaults config.dat
sed -i 's/\[defaults\]/\[config\]/g' config.dat
sed -i 's/makewidth\=4/makewidth\=1/g' config.dat
./pybombs -vf install uhd
./pybombs -vf install gnuradio
#pwd
#ls -a
./pybombs env
source /usr/local/setup_env.sh
cd ../
#git clone https://github.com/gnuradio/gnuradio.git
#cmake
#make test
#make install
#GR-DSD
sudo apt-get install -y libsndfile1-dev libcppunit-dev libitpp-dev cmake libboost-all-dev libncurses5-dev
git clone https://github.com/robotastic/gr-dsd.git
cd gr-dsd
cmake -DCMAKE_PREFIX_PATH=/home/vagrant/pybombs/gnuradio .
# -DCMAKE_MODULE_PATH=/home/vagrant/gnuradio/cmake/Modules
make
sudo make install
sudo ldconfig
cd ../
#OP25 INSTALL
cd pybombs
./pybombs install -vf gr-op25
cd ../
#TRUNK RECORDER INSTALL
git clone https://github.com/robotastic/trunk-recorder.git
cd trunk-recorder
cmake -DCMAKE_PREFIX_PATH=/home/vagrant/pybombs/gnuradio .
#-DCMAKE_MODULE_PATH=/home/vagrant/gnuradio/cmake/Modules
make
sudo chown -R vagrant /home/vagrant/trunk-recorder
sudo chmod -R u+rwx /home/vagrant/trunk-recorder