Both sides previous revisionPrevious revisionNext revision | Previous revision |
raspberry_pi [2024/02/11 10:02] – [3. Raspbian] garyrust | raspberry_pi [2024/04/08 15:40] (current) – [2. How do you cluster Raspberry Pi's] garyrust |
---|
[[ZFS]] - [[Firewalls]] \\ | [[ZFS]] - [[Firewalls]] \\ |
===== - Raspbian ===== | |
[[Zoneminder]] - [[MotionEye]] \\ | |
**[[raspberry_pi#top|Top]]**\\ | |
https://youtu.be/Qit-3upR6iA?si=VzODIZcUb9du9wav \\ | |
<html> | |
<iframe width="800" height="450" src="https://www.youtube.com/embed/Qit-3upR6iA?si=VzODIZcUb9du9wav" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> | |
</html> \\ | |
| |
===== - Raspbian ===== | ===== - Raspbian ===== |
alt="Getting started" | alt="Getting started" |
src="https://imgur.com/Lx6dRNN.png"></a> | src="https://imgur.com/Lx6dRNN.png"></a> |
| </html> \\ |
| |
| ===== - How do you cluster Raspberry Pi's ===== |
| **[[raspberry_pi#top|Top]]**\\ |
| <html> |
| <div style="width: 800px; white-space: pre-wrap;"> |
| **Prompt: How do you cluster Raspberry Pi's using Docker.? Write all coding steps. |
| Response: To cluster Raspberry Pis using Docker, we will use a tool called "Docker Swarm". Here are the step-by-step instructions: |
| |
| 1. Update your Raspberry Pi systems and install Docker: |
| ```bash |
| sudo apt update && sudo apt upgrade -y |
| curl -sSL https://get.docker.com/ | sh |
| sudo usermod ${USER} docker # (Optional, but recommended) Add the current user to the "docker" group for easier usage without using 'sudo' every time. Log out and log back in after running this command. |
| ``` |
| 2. Initialize Docker Swarm on each Raspberry Pi: |
| ```bash |
| docker swarm init --advertise-addr <IP_ADDRESS> # Replace <IP_ADDRESS> with the IP address of your Raspberry Pi |
| ``` |
| 3. Create a sample Docker Compose file for clustering (save it as `docker-compose.yml`): |
| ```yaml |
| version: '3' |
| services: |
| service1: |
| image: <IMAGE_NAME> # Replace with your desired Docker image name |
| deploy: |
| replicas: 3 # Set the number of replicas you want for this service across the cluster |
| ``` |
| 4. Deploy the Docker Compose file on the Swarm using `docker stack deploy`. This command should be run from each Raspberry Pi in your cluster: |
| ```bash |
| docker stack deploy -c docker-compose.yml <STACK_NAME> # Replace <STACK_NAME> with a name of your choice |
| ``` |
| 5. Verify that the service is deployed across all nodes by checking the status of the stack: |
| ```bash |
| docker stack ls |
| docker stack ps <STACK_NAME> |
| ``` |
| 6. Access and interact with the clustered services using their names or IP addresses as needed. |
| |
| Note that this setup assumes you have Docker installed on each Raspberry Pi, and they are all connected to the same network. If your Raspberry Pis are not in the same local network, you will need to set up a VPN or use other methods for them to communicate with each other.** |
| </div> |
| </html> \\ |
| |
| ===== - Android 13 For Raspberry Pi 4 Is GOOD! And Even Better with Play Store! ===== |
| **[[raspberry_pi#top|Top]]**\\ |
| https://youtu.be/reuH6NEk6B4?si=_oCVIKGRxHD1wlio \\ |
| <html> |
| <iframe width="800" height="450" src="https://www.youtube.com/embed/reuH6NEk6B4?si=_oCVIKGRxHD1wlio" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> \\ |
| </html> \\ |
| |
| image ► https://konstakang.com/devices/rpi4/AOSP13/ \\ |
| magicks ► https://androidfilehost.com/?fid=15664248565197206144 \\ |
| magicks apk ►https://github.com/topjohnwu/Magisk/releases/tag/v25.2 \\ |
| lite gapps ► https://sourceforge.net/projects/litegapps/files/ \\ |
| |
| downloaddeviceid ► https://www.apkmirror.com/apk/evozi/device-id/device-id-1-3-2-release/device-id-1-3-2-android-apk-download/ \\ |
| register gapps ► https://www.google.com/android/uncertified/ \\ |
| |
| ===== - Android 14 Tutorial with Google Play store. Raspberry Pi 5, Pi 4 ===== |
| **[[raspberry_pi#top|Top]]**\\ |
| https://youtu.be/DcIq7uS1fpQ?si=sLFG8yRhSaq2Wsif \\ |
| <html> |
| <iframe width="800" height="450" src="https://www.youtube.com/embed/DcIq7uS1fpQ?si=sLFG8yRhSaq2Wsif" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> \\ |
| </html> \\ |
| ===== - Is the Raspberry Pi5 the better Proxmox Server? ===== |
| [[Zoneminder]] - [[MotionEye]] \\ |
| **[[raspberry_pi#top|Top]]**\\ |
| https://youtu.be/Qit-3upR6iA?si=VzODIZcUb9du9wav \\ |
| <html> |
| <iframe width="800" height="450" src="https://www.youtube.com/embed/Qit-3upR6iA?si=VzODIZcUb9du9wav" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
| |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
http://raspberry-python.blogspot.com/2012/10/zfs-file-system-on-raspberry-pi.html \\ | http://raspberry-python.blogspot.com/2012/10/zfs-file-system-on-raspberry-pi.html \\ |
Raspberry_Pi_Python_Adventures_ZFS_file_system_on_Raspberry_Pi.pdf \\ | CLICK ON PICTURE\\ |
{{obj:noreference 800,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/Raspberry_Pi_Python_Adventures_ZFS_file_system_on_Raspberry_Pi.pdf}} \\ | <html> |
| <a |
| href="http://raspberry-python.blogspot.com/2012/10/zfs-file-system-on-raspberry-pi.html" target="_blank"><img |
| style="border: 2px solid ; width: 800px; height: 450px;" |
| alt="Raspberry Pi Python Adventures" |
| src="https://imgur.com/3T5K5y9.png"></a> |
| </html> \\ |
===== - Exploring Docker playlist ===== | ===== - Exploring Docker playlist ===== |
| |
<html> | <html> |
<iframe width="800" height="450" src="https://www.youtube.com/embed/pQdpjuYwvp8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | <iframe width="800" height="450" src="https://www.youtube.com/embed/pQdpjuYwvp8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
</html> | </html> \\ |
**[[raspberry_pi#top|Top]]**\\ | |
[[https://android.jlelse.eu/where-android-and-docker-meet-a2a34130a504|Where Android and Docker meet]] \\ | |
<html> | |
<iframe width="800" height="800" src="https://android.jlelse.eu/where-android-and-docker-meet-a2a34130a504" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</html> | |
<br> | |
===== - Pi Server based on Docker, with VPN remote access, Dropbox backup, Influx, Grafana, etc. ===== | ===== - Pi Server based on Docker, with VPN remote access, Dropbox backup, Influx, Grafana, etc. ===== |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
https://www.raspberrypi.org/forums/viewtopic.php?t=68247 \\ | https://www.raspberrypi.org/forums/viewtopic.php?t=68247 \\ |
| CLICK ON PICTURE\\ |
<html> | <html> |
<iframe width="800" height="800" src="https://www.raspberrypi.org/forums/viewtopic.php?t=68247" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <a |
| href="https://www.raspberrypi.org/forums/viewtopic.php?t=68247" target="_blank"><img |
| style="border: 2px solid ; width: 800px; height: 450px;" |
| alt="/dev/video0 missing" |
| src="https://imgur.com/1xHAXdX.png"></a> |
</html> \\ | </html> \\ |
===== - Streaming Torrents with peerflix on Raspberry Pi ===== | ===== - Streaming Torrents with peerflix on Raspberry Pi ===== |
===== - Redis ===== | ===== - Redis ===== |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Redis.html \\ | https://www.wikiwand.com/en/Redis \\ |
<html> | <html> |
<iframe width="800" height="800" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Redis.html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <iframe width="800" height="700" src="https://www.wikiwand.com/en/Redis" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
| |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
https://redislabs.com/ \\ | https://redislabs.com/ \\ |
| CLICK ON PICTURE\\ |
<html> | <html> |
<iframe width="60%" height="800" src="https://redislabs.com/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <a |
| href="https://redislabs.com/" target="_blank"><img |
| style="border: 2px solid ; width: 800px; height: 450px;" |
| alt="Redis" |
| src="https://imgur.com/9S7Jz5D.png"></a> |
</html> \\ | </html> \\ |
| |
Also see [[Programming And Computing]] - [[cw#echolink|CW]] - [[Electronics]] - [[raspberry_pi|Raspberry Pi]] \\ | Also see [[Programming And Computing]] - [[cw#echolink|CW]] - [[Electronics]] - [[raspberry_pi|Raspberry Pi]] \\ |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Mobile_ad_hoc_network.html \\ | https://www.wikiwand.com/en/Wireless_ad_hoc_network \\ |
<html> | <html> |
<iframe width="800" height="800" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Mobile_ad_hoc_network.html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <iframe width="800" height="800" src="https://www.wikiwand.com/en/Wireless_ad_hoc_network" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
**[[start#top|Top]]**\\ | **[[start#top|Top]]**\\ |
http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Wireless_ad_hoc_network.html \\ | https://www.wikiwand.com/en/B.A.T.M.A.N. \\ |
<html> | <html> |
<iframe width="800" height="800" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Wireless_ad_hoc_network.html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <iframe width="800" height="800" src="https://www.wikiwand.com/en/B.A.T.M.A.N." frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
**[[start#top|Top]]**\\ | |
http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/B.A.T.M.A.N..html \\ | |
<html> | |
<iframe width="800" height="800" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/B.A.T.M.A.N..html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</html> \\ | |
**[[start#top|Top]]**\\ | |
http://www.techinterchange.com.au/howto-setup-raspberry-pi-3-with-mesh-wireless-networking-using-b-a-t-m-a-n/ \\ | |
<html> | |
<iframe width="60%" height="800" src="http://www.techinterchange.com.au/howto-setup-raspberry-pi-3-with-mesh-wireless-networking-using-b-a-t-m-a-n/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</html> \\ | |
**[[start#top|Top]]**\\ | |
How_to_Setup_a_Raspberry_Pi_Ad-Hoc_Network_Using_BATMAN-ADV_on_Raspbian_Stretch.pdf \\ | |
https://medium.com/@tdoll/how-to-setup-a-raspberry-pi-ad-hoc-network-using-batman-adv-on-raspbian-stretch-lite-dce6eb896687 \\ | |
{{obj:noreference 60%,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/How_to_Setup_a_Raspberry_Pi_Ad-Hoc_Network_Using_BATMAN-ADV_on_Raspbian_Stretch.pdf}} \\ | |
| |
===== - BIRD Internet Routing Daemon ===== | ===== - BIRD Internet Routing Daemon ===== |
**[[raspberry_pi#top|Top]]**\\ | **[[raspberry_pi#top|Top]]**\\ |
http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Bird_Internet_routing_daemon.html \\ | https://www.wikiwand.com/en/Bird_Internet_routing_daemon \\ |
<html> | <html> |
<iframe width="800" height="800" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Bird_Internet_routing_daemon.html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | <iframe width="800" height="800" src="https://www.wikiwand.com/en/Bird_Internet_routing_daemon" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
| |
https://youtu.be/15VjDVCISj0 \\ | https://youtu.be/15VjDVCISj0 \\ |
<html> | <html> |
<iframe width="560" height="315" src="https://www.youtube.com/embed/15VjDVCISj0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | <iframe width="800" height="450" src="https://www.youtube.com/embed/15VjDVCISj0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
</html> \\ | </html> \\ |
LINKS: \\ | LINKS: \\ |