-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Notes on creating a raspberry pi in kiosk mode for a scroll of real time streams from the cameras | ||
|
||
This is a Pi Model B v2.0 | ||
* [https://www.pololu.com/product/2750] | ||
* [https://www.raspberrypi.com/products/raspberry-pi-2-model-b/] | ||
|
||
## Burn SD card | ||
* download and install the Pi Imager app | ||
* set up to use PI OS Lite (need to use "buster" version) | ||
* In advanced: 1) enable SSH with hostname (kioskpi) 2) username and password (pi) 3) wireless LAN setting | ||
* SSH in (use ssh [email protected]) then username and pass as above | ||
* Once in run a full upgrade (`update` and `full-update`) | ||
|
||
Note: check the hostname is correct after the image ... `hostname`. You might need to update /etc/hostname and /etc/hosts | ||
|
||
## Set up the autologin to the pi user | ||
* Run `sudo raspi-config` | ||
* Scroll through options: | ||
* Boot to CLI as pi (1 - System options), (S5 - Boot), (B2 - CLI) | ||
* Network at boot: (1 - System Options), (S6 - Net at Boot), Yes | ||
* Remove splash: (1 - System options), (S7 - splash), No | ||
* Overclock it: (4 - Performance), (P1 - Overclock), OK, High | ||
* Expand to full file system: (6 - Advancced), (A1 - Expand) | ||
* GPU (4 - Performance), (P2 - GPU memory), 256 | ||
* Finish and `Yes` to the reboot | ||
* This should restart with a CLI logged in as "pi" | ||
|
||
## Setup the wifi dongle | ||
|
||
### Build and Install | ||
|
||
Need to build the wifi driver first. Dongle is a rtl8188fu (Obda:f179). | ||
|
||
1. sudo apt-get install -y raspberrypi-kernel-headers | ||
2. sudo apt-get install -y build-essential git dkms raspberrypi-kernel-headers | ||
3. sudo ln -s /lib/modules/$(uname -r)/build/arch/arm /lib/modules/$(uname -r)/build/arch/armv7l | ||
4. git clone -b arm https://github.com/kelebek333/rtl8188fu rtl8188fu-arm | ||
5. sudo dkms add ./rtl8188fu-arm | ||
6. sudo dkms build rtl8188fu/1.0 | ||
7. sudo dkms install rtl8188fu/1.0 | ||
8. sudo cp ./rtl8188fu-arm/firmware/rtl8188fufw.bin /lib/firmware/rtlwifi/ | ||
|
||
### Configuration | ||
* disable power managment and plugging replugging issues | ||
* `sudo mkdir -p /etc/modprobe.d/` | ||
* `sudo touch /etc/modprobe.d/rtl8188fu.conf` | ||
* `echo "options rtl8188fu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/rtl8188fu.conf` | ||
* Disable MAC Address Spoofing | ||
* `sudo mkdir -p /etc/NetworkManager/conf.d/` | ||
* `sudo touch /etc/NetworkManager/conf.d/disable-random-mac.conf` | ||
* Blacklist for kernel 5.15 and newer (No needed for kernel 5.17 and up) | ||
* If you are using kernel 5.15 and newer, you must create a configuration file with following commands for preventing to conflict rtl8188fu module with built-in r8188eu module. | ||
* `echo 'alias usb:v0BDApF179d*dc*dsc*dp*icFFiscFFipFFin* rtl8188fu' | sudo tee /etc/modprobe.d/r8188eu-blacklist.conf` | ||
|
||
### Notes | ||
* [https://github.com/corneal64/Realtek-USB-Wireless-Adapter-Drivers] | ||
* [https://github.com/kelebek333/rtl8188fu/tree/arm#how-to-install-for-arm-devices] | ||
* [https://forums.raspberrypi.com/viewtopic.php?t=334503] | ||
|
||
## Install the displaycamera software | ||
* `wget https://github.com/Anonymousdog/displaycameras/archive/0.8.3.3.zip` | ||
* `unzip 0.8.3.3.zip` | ||
* `cd displaycameras-0.8.3.3` | ||
* `sudo chmod +x install.sh` | ||
* `sudo ./install.sh` | ||
* locate the layout files in the /etc/displaycameras/displaycameras.conf | ||
* add in the RTSP feeds plus trim down to the relevant screens only | ||
* sudo systemctl restart displaycameras.service | ||
* restart to see changes take effect | ||
|
||
## RTSP feeds | ||
* Gate: rtsp://172.10.0.100:7447/Rm8pDxEh0W0bG3qZ | ||
* Drive: rtsp://172.10.0.100:7447/TZCFSXMxZwOzepzt | ||
* LongGarden: rtsp://172.10.0.100:7447/HTyBwszxgDTZhzjn | ||
* BackGarden: rtsp://172.10.0.100:7447/4EmOx05plChk5Rta | ||
|
||
## Links | ||
* [https://www.raspberrypi.com/tutorials/how-to-use-a-raspberry-pi-in-kiosk-mode/] | ||
* [https://reelyactive.github.io/diy/pi-kiosk/] | ||
* [https://www.youtube.com/watch?v=0tvX_gsv2ZU] | ||
* [https://selfhostedhome.com/raspberry-pi-video-surveillance-monitor/] | ||
|
||
## Notes: | ||
* `sudo systemctl restart displaycameras.service` | ||
* `sudo systemctl status displaycameras.service` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Flight Radar | ||
|
||
## Set up Pi | ||
* install full latest image | ||
* `sudo apt-get update` | ||
* `sudo apt-get upgrade` | ||
|
||
## Install FR software | ||
* `sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"` | ||
* `sudo fr24feed --signup` | ||
* `sudo systemctl start fr24feed` | ||
|
||
## To see status | ||
* `fr24feed-status` | ||
|
||
## Links | ||
* [https://pimylifeup.com/raspberry-pi-flightradar24/] | ||
* [https://www.flightradar24.com/build-your-own] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# General Pi set up | ||
|
||
## Burn SD card | ||
* download and install the Pi Imager app | ||
* set up to use PI OS Lite | ||
* In advanced: 1) enable SSH with hostname (<purpose>pi) 2) username and password (pi) 3) wireless LAN setting | ||
* SSH in (use ssh pi@<purpose>pi.local) then username and pass as above | ||
* Once in run a full upgrade (`update` and `full-update`) | ||
|
||
Note: check the hostname is correct after the image ... `hostname`. You might need to update /etc/hostname and /etc/hosts | ||
|
||
## Set up the autologin to the pi user | ||
* Run `sudo raspi-config` | ||
* Scroll through options: | ||
* Boot to CLI as pi (1 - System options), (S5 - Boot), (B2 - CLI) | ||
* Network at boot: (1 - System Options), (S6 - Net at Boot), Yes | ||
* Remove splash: (1 - System options), (S7 - splash), No | ||
* Overclock it: (4 - Performance), (P1 - Overclock), OK, High | ||
* Expand to full file system: (6 - Advancced), (A1 - Expand) | ||
* GPU (4 - Performance), (P2 - GPU memory), 256 | ||
* Finish and `Yes` to the reboot | ||
* This should restart with a CLI logged in as "pi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Grafana Pi | ||
|
||
---- | ||
## Overall | ||
1. Install and configure Influx DV ... V1 ... then run some python data into it | ||
2. Install and set up Grafana | ||
|
||
---- | ||
## Status | ||
* `sudo systemctl status influxdb` | ||
* `sudo systemctl status grafana-server` | ||
|
||
---- | ||
## URLs | ||
* InfluxDB: http://statspi:8086/ | ||
* Grafana: http://statspi:3000/ | ||
|
||
---- | ||
## Links | ||
* https://pimylifeup.com/raspberry-pi-internet-speed-monitor/ | ||
* https://pimylifeup.com/raspberry-pi-influxdb/ --> v1 install please | ||
* https://pimylifeup.com/raspberry-pi-grafana/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Setting up a pi for monitoring the network | ||
|
||
## Intial setup | ||
* From NEMS main site download the image and burn it | ||
* Dont set the WIFI credentials as this is due to be physical connection to the network | ||
|
||
## To set up the agents on all the services you want monitored | ||
* add monitorpi ip to the /etc/hosts | ||
* `sudo apt install nagios-nrpe-server monitoring-plugins -y` | ||
* edit `/etc/nagios/nrpe.cfg` and add "monitorpi" to the allowed_hosts plus enbale logging | ||
* `sudo systemctl restart nagios-nrpe-server` | ||
|
||
## Notifications | ||
* https://docs.nemslinux.com/en/latest/notifications/telegram.html | ||
* https://docs.nemslinux.com/en/latest/gettingstarted/smtp.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Set up Pi Hole DNS servers to remove adverts | ||
|
||
## Things i did | ||
1. Burn a 64bit lite OS to the Pis | ||
2. Make sure the IP address is now static | ||
3. `sudo apt update & apt upgrade -y` | ||
4. 'sudo raspi-config` ... filesystem plus boot to pi | ||
5. `curl -sSL https://install.pi-hole.net | bash` | ||
6. | ||
|
||
# Links | ||
* https://www.youtube.com/watch?v=cE21YjuaB6o | ||
* * https://www.crosstalksolutions.com/the-worlds-greatest-pi-hole-and-unbound-tutorial-2023/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Statistics gathering Pi | ||
|
||
Short explain on how i created the statistics Pi | ||
|
||
## Creation | ||
* Create from Pi lite O/S | ||
* extend file system | ||
* Auto login to `pi` | ||
* Full upgrade and update | ||
|
||
## Set up local installs | ||
* set up speed test as per here: https://pimylifeup.com/raspberry-pi-internet-speed-monitor/ | ||
* set up pip as per here: https://pimylifeup.com/raspberry-pi-pip/ | ||
* `sudo apt install influxdb-client` | ||
* `sudo pip3 install influxdb` | ||
* from github clone `scp -pr pi/speedtest pi@statspi:/home/pi/speedtest` | ||
* manually add data pi IP to the /etc/hosts | ||
* add to crontab with `*/30 * * * * python3 /home/pi/speedtest/speedtest-influx.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# VLC based mosaic of camera |