Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated raspberrypi setup script and added README #89

Merged
merged 4 commits into from Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea!

23 changes: 22 additions & 1 deletion hardware/setup/raspberrypi-common.sh
@@ -1,3 +1,5 @@
#!/bin/bash

function showStatus() {
printf "\n${1}\n"
}
Expand Down Expand Up @@ -32,11 +34,30 @@ 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
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"