forked from filipsPL/autowx2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·126 lines (88 loc) · 2.57 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
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
### created for and tested at the debian-like systems (tested on debian, ubuntu and mint)
### for installing the dongle
### for details, see: http://www.instructables.com/id/rtl-sdr-on-Ubuntu/
#sudo echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"' >> /etc/udev/rules.d/20.rtlsdr.rules
#sudo echo "blacklist dvb_usb_rtl28xxu" >> /etc/modprobe.d/rtl-sdr-blacklist.conf
./configure.sh
echo "basedir_conf.py:"
cat basedir_conf.py
source basedir_conf.py
echo $baseDir
echo
echo
echo "******** Installing required packages"
echo
echo
sudo apt-get update
sudo apt-get install rtl-sdr git libpulse-dev qt4-qmake fftw3 libc6 libfontconfig1 libx11-6 libxext6 libxft2 libusb-1.0-0-dev \
libavahi-client-dev libavahi-common-dev libdbus-1-dev libfftw3-long3 libfftw3-single3 libpulse-mainloop-glib0 librtlsdr0 librtlsdr-dev \
libfftw3-dev libfftw3-double3 libfftw3-quad3 lame sox libsox-fmt-mp3 libtool automake python-pil python-imaging
echo
echo
echo "******** Installing python requirements"
echo
echo
pip install -r requirements.txt
mkdir -p $baseDir/bin/sources/
cd $baseDir/bin/sources/
echo
echo
echo "******** Installing wxtoimg"
echo
echo
## 32 bit version
# wget http://www.wxtoimg.com/downloads/wxtoimg_2.10.11-1_i386.deb
# sudo dpkg -i wxtoimg_2.10.11-1_i386.deb # may generate some dependencies errors; if not, stop here
# # sudo apt-get update
# # sudo apt-get upgrade
# sudo apt-get -f install
# # sudo dpkg -i wxtoimg_2.10.11-1_i386.deb # to finish the installation
# rm wxtoimg_2.10.11-1_i386.deb
#wget http://www.wxtoimg.com/downloads/wxtoimg-linux64-2.10.11-1.tar.gz
wget https://wxtoimgrestored.xyz/downloads/wxtoimg-linux64-2.10.11-1.tar.gz
gunzip < wxtoimg-linux64-2.10.11-1.tar.gz | sudo sh -c "(cd /; tar -xvf -)"
#rm wxtoimg-linux64-2.10.11-1.tar.gz
wxtoimg -h
echo
echo
echo "******** Installing multimon-ng-stqc"
echo
echo
cd $baseDir/bin/sources/
git clone https://github.com/sq5bpf/multimon-ng-stqc.git
cd multimon-ng-stqc
mkdir build
cd build
qmake ../multimon-ng.pro
make
sudo make install
multimon-ng -h
echo
echo
echo "******** Installing kalibrate"
echo
echo
cd $baseDir/bin/sources/
git clone https://github.com/viraptor/kalibrate-rtl.git
cd kalibrate-rtl
./bootstrap
./configure
make
sudo make install
kal -h
echo
echo
echo "******** Getting auxiliary programs"
echo
echo
cd $baseDir/bin/
wget https://raw.githubusercontent.com/filipsPL/heatmap/master/heatmap.py -O $baseDir/bin/heatmap.py
echo
echo
echo "******** Getting fresh keplers"
echo
echo
cd $baseDir
bin/update-keps.sh
exit 0