Update setup_pi_monitor.txt
Added requests library to install list added rng-tools to fix random number generator
This commit is contained in:
parent
846a569a2d
commit
1712d8f632
|
@ -2,8 +2,8 @@ x. Download and install the Raspbian image, follow the install instructions:
|
|||
|
||||
https://www.raspberrypi.org/
|
||||
|
||||
x. install the micro SD card, connect keyboard, mouse, screen and finally power
|
||||
|
||||
x. install the micro SD card, connect keyboard, mouse, screen and finally power
|
||||
|
||||
Boot and wait for the GUI to load.
|
||||
|
||||
x. menu -> Preferences -> Raspberry pi configuration
|
||||
|
@ -14,11 +14,11 @@ change default pi password
|
|||
|
||||
change timezone
|
||||
|
||||
when done navigate to finish
|
||||
|
||||
when done navigate to finish
|
||||
|
||||
(optionally) you can change the boot behaviour to boot to CLI not GUI (saves CPU cycles and power if you’re using the unit “headless”).
|
||||
|
||||
reboot
|
||||
|
||||
reboot
|
||||
|
||||
x. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
|
||||
|
@ -27,11 +27,11 @@ update_config=1
|
|||
country=GB
|
||||
|
||||
|
||||
network={
|
||||
network={
|
||||
|
||||
ssid=“yourSSID”
|
||||
psk=“password”
|
||||
key_mgmt=WPA-PSK
|
||||
key_mgmt=WPA-PSK
|
||||
|
||||
}
|
||||
|
||||
|
@ -60,42 +60,48 @@ iface wlan 1 inet manual
|
|||
wireless-power off
|
||||
|
||||
|
||||
x. now that you’re online update the software on your pi
|
||||
x. now that you’re online update the software on your pi
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade
|
||||
sudo rpi-update
|
||||
reboot
|
||||
|
||||
x. install the display library
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade
|
||||
sudo rpi-update
|
||||
reboot
|
||||
|
||||
x. install the display library
|
||||
|
||||
sudo curl -sS get.pimoroni.com/unicornhat | bash
|
||||
|
||||
x. install some useful packages like vim and mail utilities.
|
||||
|
||||
sudo apt-get install -y vim
|
||||
sudo apt-get install -y ssmtp
|
||||
x. install some useful packages like vim and mail utilities.
|
||||
|
||||
sudo apt-get install -y vim
|
||||
sudo apt-get install -y ssmtp
|
||||
sudo apt-get install -y mailutils
|
||||
|
||||
x.
|
||||
|
||||
sudo mkdir gitfile
|
||||
sudo git clone https://github.com/Kris-Sekula/ACI-Health
|
||||
|
||||
this one fixes the random number generator:
|
||||
sudo apt-get install rng-tools
|
||||
|
||||
optional if you're using 'lite' version of rasbian:
|
||||
sudo apt-get install python-requests
|
||||
|
||||
x.
|
||||
|
||||
sudo git clone https://github.com/Kris-Sekula/ACI-Health
|
||||
cd ACI-Health
|
||||
|
||||
sudo mv monitor.py /boot/
|
||||
sudo mv mailmyip.sh /boot/
|
||||
sudo mv vim-rc .vimdc
|
||||
sudo mv ssmtp.conf /etc/ssmtp/ssmtp.conf
|
||||
|
||||
|
||||
sudo mv ssmtp.conf /etc/ssmtp/ssmtp.conf
|
||||
|
||||
|
||||
x. edit email settings, change hostname and outgoing smtp server
|
||||
sudo vi /etc/ssmtp/ssmtp.conf
|
||||
|
||||
|
||||
x. test email
|
||||
echo "Hello world email body" | mail -s "Test Subject" me@domain.com
|
||||
|
||||
|
||||
x. Install cron job to start the monitor function and send email
|
||||
|
||||
|
||||
sudo crontab -e
|
||||
|
||||
@reboot sleep 120 && bash /boot/mailmyip.sh
|
||||
|
|
Loading…
Reference in New Issue