-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·49 lines (38 loc) · 1.15 KB
/
setup.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
#! /bin/bash
opkg update
opkg install libasound2-dev python-pip mpg123 alsa-utils alsa-lib-dev python-audio python-opencv
pip install -r requirements.txt
cp initd_alexa.sh /etc/alexa
cd /etc
ln -s ../alexa S99alexa
touch /var/log/alexa.log
#Install MRAA library from Intel GitHub
#echo "Installing other dependencies"
#apt-get install swig
echo "Installing MRAA"
#git clone https://github.com/intel-iot-devkit/mraa.git
#mkdir mraa/build && cd $_
#cmake .. -DBUILDSWIGNODE=OFF
#make
#make install
#cd
echo "MRAA install DONE"
echo "Enter your ProductID:"
read productid
echo ProductID = \"$productid\" >> creds.py
echo "Enter your Security Profile Description:"
read spd
echo Security_Profile_Description = \"$spd\" >> creds.py
echo "Enter your Security Profile ID:"
read spid
echo Security_Profile_ID = \"$spid\" >> creds.py
echo "Enter your Security Client ID:"
read cid
echo Client_ID = \"$cid\" >> creds.py
echo "Enter your Security Client Secret:"
read secret
echo Client_Secret = \"$secret\" >> creds.py
ip = `ifconfig wlan0 | grep "inet addr" | cut -d ':' -f 2 | cut -d ' ' -f 1`
python ./auth_web.py
echo "Open http://$ip:5000"
echo "You can now reboot"