forked from F5OEO/dvbsdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·119 lines (92 loc) · 2.18 KB
/
install.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
source ./detect_platform.sh
# Install environment for DVB with LimeSDR
mkdir build
mkdir bin
cd build
# ------ Install LimeSuite ---------
#Install debian packages for LimeSuite
sudo apt-get update
sudo apt-get install -y git g++ cmake libsqlite3-dev libi2c-dev libusb-1.0-0-dev netcat
#Install latest LimeSuite
git clone --depth=1 https://github.com/myriadrf/LimeSuite
cd LimeSuite
mkdir dirbuild
cd dirbuild
cmake ../
make
sudo make install
sudo ldconfig
# Work for Nano but not rpi : too fix
cd ../udev-rules/
chmod +x install.sh
sudo ./install.sh
cd ../../
#Update Lime firmware
sudo LimeUtil --update
#--------- Install LimeSDRTools --------------
# Install debian packages
git clone https://github.com/F5OEO/limesdr_toolbox
cd limesdr_toolbox
# Install sub project dvb modulation
sudo apt-get install -y libfftw3-dev
git clone https://github.com/F5OEO/libdvbmod
cd libdvbmod/libdvbmod
make
cd ../DvbTsToIQ/
make
cp dvb2iq ../../../../bin/
cd ../../
#Make
make
make dvb
cp limesdr_dvb ../../bin/
cd ../
if [ "$Platform" = "rpi" ] ; then
echo installing avc2ts
#-------- For raspberry pi , install encoder avc2ts
git clone https://github.com/F5OEO/avc2ts
cd avc2ts
./preinstall.sh
make
cp avc2ts ../../bin/
cd ../
fi
if [ "$Platform" = "nano" ] ; then
sudo apt-get install buffer ffmpeg
fi
#------For X86, install ffmpeg encoder
#------- Install Leandvb -----------------
git clone https://github.com/pabr/leansdr
cd leansdr/src/apps
git checkout work
make
make embedded
cp leandvb ../../../../bin/
cd ../../../
#------- Raspberry : Install KisSpectrum -------------
if [ "$Platform" = "rpi" ] ; then
#Install debian packages
sudo apt-get install -y fftw3-dev libjpeg-dev autoconf ttf-dejavu-core
git clone https://github.com/F5OEO/kisspectrum
cd kisspectrum
#install liquid-dsp library
git clone --depth=1 https://github.com/jgaeddert/liquid-dsp
cd liquid-dsp
./bootstrap.sh
./configure
make
sudo make install
cd ../
#make
make
cp kisspectrum ../../bin/
cd ../
fi
#--------- Install csdr ----------------
git clone https://github.com/simonyiszk/csdr
cd csdr
make && sudo make install
cd ../
# End of install
cd ../scripts
echo "Installation finished, you scripts going to script folder "