Browse Source

organizing

Anton TETERIN 2 years ago
parent
commit
8e0943f726

+ 5 - 0
README.md

@@ -3,3 +3,8 @@
 # 2022 03 19  + published on https://github.com/InstallAndUse/RPi /A
 
 Raspberry computer related projects
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 5 - 0
setup_NTP_server_using_GPS_receiver/README.md → install/NTP_server_using_GPS_receiver/README.md

@@ -78,3 +78,8 @@ rm
 #
 # refs: https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd
 #       http://www.unixwiz.net/techtips/raspberry-pi3-gps-time.html
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 64 - 0
install/VPN_Server/PiVPN@rpi.md

@@ -0,0 +1,64 @@
+#
+# Configuring VPN server on Raspberry Pi
+#
+
+# 2022-09-07  + merged with installation logic in general
+
+
+# source https://docs.pivpn.io/install/
+
+# download recent Raspberry Pi OS Lite image and burn it to flash card [link]
+
+# install recent Raspberry Pi Lite (without GUI interface) [link]
+
+# configure firstboot [RPi/install_firstboot]
+
+# configure manual IP address [link] (for port forwarding from router to VPN server)
+
+# configure Dynamic DNS to ensure that VPN server is reachable, in case IP address changes [link]
+
+# download PiVPN installer and execute
+```
+sudo su
+curl -L https://install.pivpn.io > installer.sh
+chmod +x installer.sh
+./installer.sh
+```
+
+
+# unattended updates
+Good idea, if system will stay long time alone.
+Not so good idea, because of lack of control (inspection), which packages will be updated
+
+reboot
+
+login into local user, which is holding pivpn configuration files
+
+# VPN Clients
+list and add
+```
+pivpn list
+pivpn add
+    Name: (client)
+    How many days should the certificate last? [1080]
+    Password: (pass)
+```
+now new user should be in the list and opvn config generated and can be found
+```
+ls -la /home/(config user)/ovpns/
+(client).ovpn
+```
+
+# Config files
+You can copy config file in any desired way (scp probably is the best).
+
+Or generate QR-code for WireGuard Android's application
+```
+pivpn -qr
+```
+
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 11 - 1
install_firstboot/README.md → install/firstboot/README.md

@@ -19,8 +19,12 @@ usermod -aG sudo (you)
 mkdir /home/(you)
 chown -R (you):(you) /home/(you)
 
-# update
+# update, reboot and run update one more time
+```
 apt update && apt upgrade -y
+shutdown -r now
+apt update && apt upgrade -y
+```
 
 # initial config
 raspi-config
@@ -29,3 +33,9 @@ raspi-config
 5. interfacing, P2, enable ssh
 
 # reboot
+
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 5 - 0
setup_internet_connection_quality_monitoring/internet-pi@rpi4.md → install/internet_connection_quality_monitoring/internet-pi@rpi4.md

@@ -22,3 +22,8 @@ ansible-playbook main.yml
 sudo netstat -ntap | grep 3030
 ```
 open (host):3030
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 10 - 0
setup_real_time_clock_RTC/README.md → install/real_time_clock_RTC/README.md

@@ -81,3 +81,13 @@ systemctl disable fake-hwclock
 
 # refs:
 # https://cdn-learn.adafruit.com/downloads/pdf/adding-a-real-time-clock-to-raspberry-pi.pdf
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 6 - 0
setup_replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/PostgreSQL (publisher) @RPi (Debian).md → install/replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/PostgreSQL (publisher) @RPi (Debian).md

@@ -85,3 +85,9 @@ iptables -L -n -v --line-numbers | grep 5432
 
 
 # reboot and retry last SELECT command, everything should work
+
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 5 - 0
setup_replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/PostgreSQL (subscriber) @Fedora31.md → install/replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/PostgreSQL (subscriber) @Fedora31.md

@@ -58,3 +58,8 @@ GRANT ALL ON TABLE telemetry_lab5rp41 TO (user2) ;
 
 # check replication
 SELECT * FROM pg_stat_replication;
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 6 - 0
setup_replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/README.md → install/replication_of_historical_data_from_sensors_to_server_using_PostgreSQL/README.md

@@ -3,3 +3,9 @@
 In this project we shall setup replication between PostgreSQL DataBases (DBs) to move historical data of DS18x20 sensors from measurement units to server.
 
 there are many variants to deploy such replication. In my case Dell Latitude laptop with Fedora 31 was used to act as satellite to acquire telemetry from sensors. I shall keep this project open, because there are many other interesting setups to appear, using different operating systems.
+
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 5 - 0
read_temperature_from_DS18x20_sensors/README.md → use/read_temperature_from_DS18x20_sensors/README.md

@@ -119,3 +119,8 @@ ALTER TABLE telemetry_host ADD COLUMN value INTEGER NOT NULL;
       2020-06-12 10:47:03.880082+01 | 27687 | /sys/bus/w1/devices/10-000800e489b3
       2020-06-12 10:47:04.031554+01 | 28750 | /sys/bus/w1/devices/10-00080280a759
      (9 rows)
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 0 - 0
read_temperature_from_DS18x20_sensors/read_ds18x20.py → use/read_temperature_from_DS18x20_sensors/read_ds18x20.py


+ 0 - 0
read_temperature_from_DS18x20_sensors/read_ds18x20.sh → use/read_temperature_from_DS18x20_sensors/read_ds18x20.sh


+ 5 - 0
show_DS18x20_sensors_historical_data_from_PostgreSQL_using_Grafana/README.md → use/show_DS18x20_sensors_historical_data_from_PostgreSQL_using_Grafana/README.md

@@ -1,2 +1,7 @@
 # In this project, we shall use Grafana frontend to show historical data of DS18x20 Dallas sensors, connecting to PostgreSQL.
 # 2022 03 19  + published on https://github.com/InstallAndUse/RPi /A
+
+
+
+Books:
+- [Anton's bookshelf](https://og2k.com/books/)

+ 0 - 0
show_egp30_sensors_data/read_sgp30.py → use/show_egp30_sensors_data/read_sgp30.py