From 28ccbaa530ad2079f9cc192685b4fc59ac949389 Mon Sep 17 00:00:00 2001 From: PrabhanshuAttri Date: Wed, 11 Mar 2020 16:18:43 -0400 Subject: [PATCH 1/4] added #! to the script --- hardware/setup/raspberrypi-common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/setup/raspberrypi-common.sh b/hardware/setup/raspberrypi-common.sh index f528e816..4c65d60d 100644 --- a/hardware/setup/raspberrypi-common.sh +++ b/hardware/setup/raspberrypi-common.sh @@ -1,3 +1,5 @@ +#!/bin/bash + function showStatus() { printf "\n${1}\n" } From 9109450923b07fe9995e6ed2c573c1efd6507449 Mon Sep 17 00:00:00 2001 From: PrabhanshuAttri Date: Wed, 11 Mar 2020 16:45:52 -0400 Subject: [PATCH 2/4] added nmap to pi setup --- hardware/setup/raspberrypi-common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hardware/setup/raspberrypi-common.sh b/hardware/setup/raspberrypi-common.sh index 4c65d60d..1664ed33 100644 --- a/hardware/setup/raspberrypi-common.sh +++ b/hardware/setup/raspberrypi-common.sh @@ -34,6 +34,9 @@ sudo apt-get install git htop -y showStatus 'Installing screen' sudo apt-get install screen -y +showStatus 'Installing nmap' +sudo apt-get install nmap -y + showStatus 'Installing AnyDesk' wget https://download.anydesk.com/rpi/anydesk_5.5.4-1_armhf.deb sudo dpkg -i anydesk*.deb From 58b86838b68014db60c35b5821e0c2de929feaaf Mon Sep 17 00:00:00 2001 From: PrabhanshuAttri Date: Wed, 11 Mar 2020 17:06:44 -0400 Subject: [PATCH 3/4] Added after setup instructions --- hardware/setup/raspberrypi-common.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/hardware/setup/raspberrypi-common.sh b/hardware/setup/raspberrypi-common.sh index 1664ed33..8f15086c 100644 --- a/hardware/setup/raspberrypi-common.sh +++ b/hardware/setup/raspberrypi-common.sh @@ -43,5 +43,21 @@ sudo dpkg -i anydesk*.deb sudo apt-get install -f sudo systemctl daemon-reload -showStatus 'Completed Raspberry Pi Common Setup' cd ~/ + +echo "Completed Raspberry Pi Common Setup + +Your Raspberry Pi is update to date. The following packages were installed and enabled: +- SSH: remote secure shell +- VNC: remote access on the same network, works without internet +- AnyDesk: remote access via internet +- Vim: file editing in SSH +- curl and wget: for file downloads and ping, Rasbian comes with these. +- htop: an interactive process viewer for Unix systems +- screen: virtual terminals to run tasks in background +- nmap: for scanning IP of devices connected in the network + + +NOTE!!! + +- Changing HOSTNAME of Raspberry Pi from raspberrypi would also change url for communication server. Default URL for communication server is http://raspberrypi.local" From e604f901b398151239d0a49a41bd20f5c9269699 Mon Sep 17 00:00:00 2001 From: PrabhanshuAttri Date: Wed, 11 Mar 2020 17:07:14 -0400 Subject: [PATCH 4/4] Added hardware README.md --- hardware/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hardware/README.md diff --git a/hardware/README.md b/hardware/README.md new file mode 100644 index 00000000..5564dc4b --- /dev/null +++ b/hardware/README.md @@ -0,0 +1,16 @@ +# Hardware Firmware + +This directory contains the firmware for data collection. + +Sub-directories and their usage + +- `CommunicationsPi`: files related to radio and internet communications + +- `SensorPi`: files related to Sensors + +- `setup`: files related to initial setup + + +#### Credits + +- [Dave Hylands](https://github.com/dhylands/dotfiles/blob/master/bin/find_port.py)