N6XRE DokuWiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry_pi [2021/06/21 18:18] – [1. Raspbian] garyrustraspberry_pi [2024/04/08 15:40] (current) – [2. How do you cluster Raspberry Pi's] garyrust
Line 1: Line 1:
 [[ZFS]] - [[Firewalls]] \\ [[ZFS]] - [[Firewalls]] \\
 +
 ===== - Raspbian ===== ===== - Raspbian =====
 [[Zoneminder]] - [[MotionEye]] \\ [[Zoneminder]] - [[MotionEye]] \\
 **[[raspberry_pi#top|Top]]**\\ **[[raspberry_pi#top|Top]]**\\
 **x2goclient starts raspberry pi client with CUSTOM startlxde-pi** \\ **x2goclient starts raspberry pi client with CUSTOM startlxde-pi** \\
 +
 +pi@pi-6:~ $ sudo update-alternatives --config x-session-manager \\
 +
 +  Selection    Path                      Priority   Status
 +------------------------------------------------------------
 +* 0            /usr/bin/startlxde-pi      90        auto mode
 +  1            /usr/bin/lxsession         49        manual mode
 +  2            /usr/bin/openbox-session   40        manual mode
 +  3            /usr/bin/startlxde         50        manual mode
 +  4            /usr/bin/startlxde-pi      90        manual mode
 +  5            /usr/bin/startxfce4        50        manual mode
 +  6            /usr/bin/xfce4-session     40        manual mode
 +
 [[linux#how_do_you_monitor_the_progress_of_dd|How do you monitor the progress of dd?]] \\ [[linux#how_do_you_monitor_the_progress_of_dd|How do you monitor the progress of dd?]] \\
 **dd if=/dev/sda of=/dev/sdb bs=4096 status=progress** \\ **dd if=/dev/sda of=/dev/sdb bs=4096 status=progress** \\
 **dd bs=4M if=2020-02-13-raspios-buster.img of=/dev/sdX conv=fsync status=progress** \\ **dd bs=4M if=2020-02-13-raspios-buster.img of=/dev/sdX conv=fsync status=progress** \\
 https://www.raspberrypi.org/downloads/raspbian/ \\ https://www.raspberrypi.org/downloads/raspbian/ \\
 +CLICK ON PICTURE\\
 <html> <html>
-<iframe width="800" height="800" src="https://www.raspberrypi.org/downloads/raspbian/" frameborder="0allow="autoplayencrypted-mediaallowfullscreen></iframe>+<
 +href="https://www.raspberrypi.com/software/" target="_blank"><img 
 +style="border: 2px solid width: 800px; height: 350px;" 
 +alt="Raspberry Pi OS" 
 +src="https://imgur.com/3uif6nA.png"></a>
 </html> \\ </html> \\
 +
 +**[[raspberry_phttps:/i#top|Top]]**\\
 +https://www.raspberrypi.com/documentation/computers/getting-started.html \\
 +CLICK ON PICTURE\\
 +<html>
 +<a
 +href="https://www.raspberrypi.com/documentation/computers/getting-started.html" target="_blank"><img
 +style="border: 2px solid ; width: 800px; height: 450px;"
 +alt="Getting started"
 +src="https://imgur.com/Lx6dRNN.png"></a>
 +</html> \\
 +
 +===== - How do you cluster Raspberry Pi's =====
 **[[raspberry_pi#top|Top]]**\\ **[[raspberry_pi#top|Top]]**\\
-https://www.raspberrypi.org/documentation/installation/installing-images/README.md \\ 
 <html> <html>
-<iframe width="800height="800" src="https://www.raspberrypi.org/documentation/installation/installing-images/README.mdframeborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>+<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 "dockergroup 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> \\ </html> \\
 +
 +===== - Android 13 For Raspberry Pi 4 Is GOOD! And Even Better with Play Store! =====
 **[[raspberry_pi#top|Top]]**\\ **[[raspberry_pi#top|Top]]**\\
-For OpenVPN-Setup at https://github.com/StarshipEngineer/OpenVPN-Setup +https://youtu.be/reuH6NEk6B4?si=_oCVIKGRxHD1wlio \\
-https://www.raspberrypi.org/forums/viewtopic.php?t=193999 \\+
 <html> <html>
-<iframe width="800" height="800" src="https://www.raspberrypi.org/forums/viewtopic.php?t=193999" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>+<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> \\ </html> \\
-===== - Raspbian =====+ 
 +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]]**\\ **[[raspberry_pi#top|Top]]**\\
-https://learn.pimoroni.com/tutorial/raspberry-pi/keeping-your-raspberry-pi-updated \\+https://youtu.be/DcIq7uS1fpQ?si=sLFG8yRhSaq2Wsif \\
 <html> <html>
-<iframe width="800" height="800" src="https://learn.pimoroni.com/tutorial/raspberry-pi/keeping-your-raspberry-pi-updated" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>+<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> \\ </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> \\
 +
 +
 ===== -  Amazon Alexa on a Raspberry Pi ===== ===== -  Amazon Alexa on a Raspberry Pi =====
  
Line 238: Line 323:
 **[[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 =====
  
Line 260: Line 350:
 <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]]**\\
Line 316: Line 401:
 **[[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="0allow="autoplayencrypted-mediaallowfullscreen></iframe>+<
 +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 =====
Line 347: Line 437:
 ===== - 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> \\
  
Line 360: Line 450:
 **[[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="0allow="autoplayencrypted-mediaallowfullscreen></iframe>+<
 +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> \\
  
Line 367: Line 462:
 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> \\
  
Line 414: Line 495:
 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: \\
QR Code
QR Code raspberry_pi (generated for current page)