forked from openenergymonitor/emonpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
33 lines (22 loc) · 1.08 KB
/
install
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
#!/bin/bash
echo "Set hostname to emonpi"
sudo sed -i 's/raspberrypi/emonpi/' /etc/hosts
sudo sed -i 's/raspberrypi/emonpi/' /etc/hostname
echo "disable serial console"
sudo wget https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console
sudo rpi-serial-console disable
echo "enable serial uploads with avrdue and autoreset & install minicom"
git clone https://github.com/openenergymonitor/avrdude-rpi.git ~/avrdude-rpi && ~/avrdude-rpi/install
echo "install ino Arduino compile tool"
sudo apt-get install arduino -f
sudo apt-get install python-pip
pip install ino
echo "disable the raspi-config auto run"
sudo rm /etc/profile.d/raspi-config.sh
echo "clone emonpi github"
git clone https://github.com/openenergymonitor/emonpi.git ~/emonpi
# Only used when emonPi is used without LCD, run either LCD service or shutdwn service. LCD script also handles shutdown
# echo "install shutdown service"
# sudo /home/pi/emonpi/shutdownpi/install
echo "install LCD"
sudo /home/pi/emonpi/lcd/install