-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup_pi_software.sh
47 lines (36 loc) · 1019 Bytes
/
setup_pi_software.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
#!/bin/sh
#Move to setup directory
cd setup/
#General settings
sudo apt-get -y update
sudo apt-get -y install libtool
sudo apt-get -y install autoconf
#Wi-Fi network hosting
sudo apt-get -y install isc-dhcp-server
sudo apt-get -y install hostapd
sudo echo "ipv6" >> /etc/modules
cp hostapd/hostapd.conf /etc/hostapd/hostapd.conf
#Serial port setup
##libserialport library
git clone git://sigrok.org/libserialport libserialport
cd libserialport/
./autogen.sh
./configure
make
sudo make install
cd ../
##cMultiWii
git clone https://github.com/rgw3d/cMultiWii.git cMultiWii
#PiQuadcopter server setup
##websocketpp
git clone https://github.com/zaphoyd/websocketpp.git websocketpp
##supporting libraries for websocketpp
sudo apt-get -y install libboost-dev
sudo apt-get -y install libboost-system-dev
sudo apt-get -y install libboost-chrono-dev
## ensure compiler can find all linked libraries for when we compile everything
sudo ldconfig
#PiQuadcopter server
cd ../
make #this will take a while.......
exit 0