-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.sh
executable file
·61 lines (47 loc) · 1.93 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
#!/bin/bash
# expand image to whole sd-card
export LANG=C
sudo raspi-config --expand-rootfs
# Disable boot straight to desktop
sudo update-rc.d lightdm disable 2 2>/dev/null
# generally update
sudo apt-get update -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sync
# install missing bits
sudo apt-get install python-dev python-setuptools git htop mpg321 espeak espeak-data lsof -y
sudo easy_install pip
sudo pip install flask
sudo pip install pyzmq # this will take several minutes while since it has to compile zeromq
# install wiringpi2
/home/pi/extremefeedbacklamp/install_WiringPi.sh
# install xfd as startup application
sudo ln -sf /home/pi/extremefeedbacklamp/initd_switchgearsXFD /etc/init.d/switchgearsXFD
sudo ln -sf /home/pi/extremefeedbacklamp/initd_switchgearsXFD_discovery /etc/init.d/switchgearsXFD_discovery
sudo ln -sf /home/pi/extremefeedbacklamp/initd_jenkins_confirm /etc/init.d/jenkins_confirm
sudo ln -sf /home/pi/extremefeedbacklamp/initd_cloudxfd /etc/init.d/cloudxfd
sudo chmod 755 /etc/init.d/switchgearsXFD
sudo chmod 755 /etc/init.d/switchgearsXFD_discovery
sudo chmod 755 /etc/init.d/jenkins_confirm
sudo chmod 755 /etc/init.d/cloudxfd
sudo chown root:root /etc/init.d/switchgearsXFD
sudo chown root:root /etc/init.d/switchgearsXFD_discovery
sudo chown root:root /etc/init.d/jenkins_confirm
sudo chown root:root /etc/init.d/cloudxfd
sudo update-rc.d switchgearsXFD defaults
sudo update-rc.d switchgearsXFD_discovery defaults
sudo update-rc.d jenkins_confirm defaults
sudo update-rc.d cloudxfd defaults
sync
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo ln -sf /home/pi/extremefeedbacklamp/xfdlampupdate.sh /etc/cron.daily/xfdlampupdate
sudo chmod +x /etc/cron.daily/xfdlampupdate
# if daily updates just ain't quick enough
#sudo ln -sf /home/pi/extremefeedbacklamp/xfdlampupdate.sh /etc/cron.hourly/xfdlampupdate
#sudo chmod +x /etc/cron.hourly/xfdlampupdate
sync
# reboot
sudo reboot