-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgnuRadio.py
More file actions
97 lines (80 loc) · 3.27 KB
/
Copy pathgnuRadio.py
File metadata and controls
97 lines (80 loc) · 3.27 KB
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
#!/usr/bin/python2
#!/usr/bin/env python
#GNU Radio Install script
from subprocess import *
from os import *
from time import *
call("cd $home", shell = True)
call("cd Downloads", shell = True)
call("echo Installing Python", shell = True)
sleep(3)
call("wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz", shell = True)
call("tar -xvf Python-2.7.6.tgz", shell = True)
call("cd Python-2.7.6", shell = True)
call("./configure", shell = True)
call("make", shell = True)
call("sudo make install", shell = True)
call("sudo apt-get install python-dev", shell = True)
call("sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose", shell = True)
call("sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-cheetah doxygen python-docutils", shell = True)
call("echo Installing USRP Driver UHD", shell = True)
sleep(3)
call("sudo chmod u+x usrp.sh", shell = True)
call("./UHDDriver.sh")
call("echo Installing Git", shell = True)
sleep(3)
call("sudo apt-get update", shell = True)
call("sudo apt-get install git", shell = True)
call("echo Installing cmake", shell = True)
sleep(3)
call("sudo apt-get install cmake", shell = True)
call("echo Installing boost", shell = True)
sleep(3)
call("sudo apt-get install libboost-all-dev", shell = True)
call("echo Installing cppunit", shell = True)
sleep(3)
call("sudo apt-get install libcppunit-dev:i386 libcppunit-doc libcppunit-dev", shell = True)
call("echo Installing fftw", shell = True)
sleep(3)
call("sudo apt-get install fftw-dev", shell = True)
call("echo Installing gsl", shell = True)
sleep(3)
call("sudo apt-get install libgsl0ldbl", shell = True)
call("echo Installing swig", shell = True)
sleep(3)
call("sudo apt-get install swig", shell = True)
call("echo Installing wxPython", shell = True)
sleep(3)
call("sudo apt-get install python-wxgtk2.8", shell = True)
call("echo Installing qt", shell = True)
sleep(3)
call("sudo apt-get install libqt4-core libqt4-gui", shell = True)
call("echo Installing qwt", shell = True)
sleep(3)
call("echo Installing pyqt", shell = True)
sleep(3)
call("sudo apt-get install python-qt4", shell = True)
call("echo Installing doxygen", shell = True)
sleep(3)
call("sudo apt-get install doxygen", shell = True)
call("echo Installing setuptools", shell = True)
sleep(3)
call("sudo apt-get install python-setuptools", shell = True)
call("echo Installing setuptools", shell = True)
sleep(3)
call("sudo apt-get install python-setuptools", shell = True)
call("sudo apt-get install build-essential xorg-dev libudev-dev libts-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev libopenal-dev libogg-dev libvorbis-dev libaudiofile-dev libpng12-dev libfreetype6-dev libusb-dev libdbus-1-dev zlib1g-dev libdirectfb-dev", shell = True)
call("echo Installing SDL", shell = True)
sleep(3)
call("wget http://www.libsdl.org/release/SDL2-2.0.3.tar.gz", shell = True)
call("sudo gzip -d SDL2-2.0.3.tar.gz", shell = True)
call("sudo tar -xvf SDL2-2.0.3.tar", shell = True)
call("cd SDL2-2.0.3", shell = True)
call("./configure",shell = True)
call("make", shell = True)
call("sudo make install", shell = True)
call("echo Installing GNURadio", shell = True)
sleep(3)
call("sudo apt-get install gnuradio", shell = True)
sleep(3)
call("sudo gnuradio-companion", shell = True)