From Miscellany
Difference between revisions of Raspberry Pi
Comparing revision 234 and revision 240.
| ==RPi Accessories== | ==RPi Accessories== | ||
| * [https://shop.omzlo.com/products/pivoyager-the-smart-ups-for-the-raspberry-pi PiVoyager] is a UPS for any model Raspberry Pi. As well as providing a connection to a Lithium ion battery, this device maintains a clock and calendar for the Pi. When the Pi is connected to external power, it will charge the battery as well as provide operating power to the Pi. | * [https://shop.omzlo.com/products/pivoyager-the-smart-ups-for-the-raspberry-pi PiVoyager] is a UPS for any model Raspberry Pi. As well as providing a connection to a Lithium ion battery, this device maintains a clock and calendar for the Pi. When the Pi is connected to external power, it will charge the battery as well as provide operating power to the Pi. | ||
| * [https://remote.it/rpi/ Remote.it], a VPI for RPi (and all other platforms). Free personal account available, or $2/mo/device for commercial account w/priority email support. | * [https://remote.it/rpi/ Remote.it], a VPI for RPi (and all other platforms). Free personal account available, or $2/mo/device for commercial account w/priority email support. | ||
| * [https://www.tindie.com/products/redrobotics/redboard/ RedBoard+] Robotics RPi hat | * [https://www.tindie.com/products/redrobotics/redboard/ RedBoard+] Robotics RPi hat | ||
| ==Setting Up a Raspberry Pi== | ==Setting Up a Raspberry Pi== | ||
| * [https://read.amazon.com/?asin=B00CZ1C5TQ Getting Started with Raspberry Pi ebook] | * [https://read.amazon.com/?asin=B00CZ1C5TQ Getting Started with Raspberry Pi ebook] | ||
| ===Connecting over the Local Area Network=== | ===Connecting over the Local Area Network=== | ||
| : ''Also see https://ngrok.io for an easier-to-use IP tunneling service'' | : ''Also see https://ngrok.io for an easier-to-use IP tunneling service'' | ||
| ====Issues==== | ====Issues==== | ||
| : RealVPN server is pre-installed on the RPi, but I have not been able to get it to work since the window overfills the screen and is not scrollable. Instead I will try simply using SSH directly to the IP address. | : RealVPN server is pre-installed on the RPi, but I have not been able to get it to work since the window overfills the screen and is not scrollable. Instead I will try simply using SSH directly to the IP address. | ||
| :: '''Turn off NordVPN on the PC before trying to connect, since the IP reassignment makes it impossible to use on the LAN.''' (May be necessary, but is still not sufficient.) | :: '''Turn off NordVPN on the PC before trying to connect, since the IP reassignment makes it impossible to use on the LAN.''' (May be necessary, but is still not sufficient.) | ||
| : In Windows 10, toggle "Device Discovery" switch under "for Devlopers" in Settings > Update & Security window. Requires selecting "Developer Mode" first to enable the switch. This should make it possible to connect via USB and localhost from a different device. After rebooting, use the "Pair" button to display a pairing code to enter on the remote device. | : In Windows 10, toggle "Device Discovery" switch under "for Devlopers" in Settings > Update & Security window. Requires selecting "Developer Mode" first to enable the switch. This should make it possible to connect via USB and localhost from a different device. After rebooting, use the "Pair" button to display a pairing code to enter on the remote device. | ||
| : see [https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/device-portal this page] for info on Windows 10 Device Portal. | : see [https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/device-portal this page] for info on Windows 10 Device Portal. | ||
| ====SSH How-to==== | ====SSH How-to==== | ||
| : First see if the SSH server is installed and running on the RPi. See [https://www.ssh.com/ssh/sshd this page] for details. | : First see if the SSH server is installed and running on the RPi. See [https://www.ssh.com/ssh/sshd this page] for details. | ||
| : [https://linoxide.com/linux-how-to/how-use-ssh-commands-windows-10-command-prompt/ This page] has instructions for opening a cmd window on the PC and logging in to a remote server with SSH. | : [https://linoxide.com/linux-how-to/how-use-ssh-commands-windows-10-command-prompt/ This page] has instructions for opening a cmd window on the PC and logging in to a remote server with SSH. | ||
| : [https://phoenixnap.com/kb/linux-ssh-commands Here is a page] with common SSH commands. | : [https://phoenixnap.com/kb/linux-ssh-commands Here is a page] with common SSH commands. | ||
| : The OpenSSH documentation for Windows is at [https://github.com/powershell/win32-openssh/wiki this page]. | : The OpenSSH documentation for Windows is at [https://github.com/powershell/win32-openssh/wiki this page]. | ||
| ====SSH Server on Windows 10==== | ====SSH Server on Windows 10==== | ||
| : See [https://www.bleepingcomputer.com/news/microsoft/how-to-install-the-built-in-windows-10-openssh-server/ this page] for hints. It is a bit out of date, but has some interesting information. | : See [https://www.bleepingcomputer.com/news/microsoft/how-to-install-the-built-in-windows-10-openssh-server/ this page] for hints. It is a bit out of date, but has some interesting information. | ||
| ====Using ngrok for SSH==== | ====Using ngrok for SSH==== | ||
| : See https://ngrok.com | : See https://ngrok.com | ||
| # Connect RPi to local network | # Connect RPi to local network | ||
| # Determine IP address | # Determine IP address | ||
| # Start ngrok TCP 22 server on Pi | # Start ngrok TCP 22 server on Pi | ||
| ## $ ./ngrok tcp 22 | ## $ ./ngrok tcp 22 | ||
| # Start VNC server on Pi | # Start VNC server on Pi | ||
| # SSH into Pi from remote client (Win10) | # SSH into Pi from remote client (Win10) | ||
| # Start VNCviewer app on desktop (Win10) | # Start VNCviewer app on desktop (Win10) | ||
| ===Create a Network-wide Ad Blocker=== | ===Create a Network-wide Ad Blocker=== | ||
| : https://lifehacker.com/create-a-network-wide-ad-blocker-with-a-raspberry-pi-1727295925 | : https://lifehacker.com/create-a-network-wide-ad-blocker-with-a-raspberry-pi-1727295925 | ||
| :: Includes some how-tos for several purposes | :: Includes some how-tos for several purposes | ||
| ===LAMP Stack Installation=== | ===LAMP Stack Installation=== | ||
| : Follow instructions at https://knowledgeofthings.com/django-on-raspberry-pi/ | : Follow instructions at https://knowledgeofthings.com/django-on-raspberry-pi/ | ||
| # Install Apache 2 | # Install Apache 2 | ||
| # Install MariaDB | # Install MariaDB | ||
| # Install Python 3.x | # Install Python 3.x | ||
| # Install phpMyAdmin | # Install phpMyAdmin | ||
| # Install Django CMS | # Install Django CMS | ||
| ==RPi Projects== | ==RPi Projects== | ||
| ===Home Web Server=== | ===Home Web Server=== | ||
| − | : See ~/Dropbox/RPi&Arduino/articles/Apache2_on_RPi.pdf | ||
| + | : See [[File:$wgServer/articles/Apache2_on_RPi.pdf|Apache on RPi]] | ||
| ====[[Apache2 on RPi]]==== | ====[[Apache2 on RPi]]==== | ||
| : A step-by-step procedure for installing and running Apache2 web server on Raspberry Pi | : A step-by-step procedure for installing and running Apache2 web server on Raspberry Pi | ||
| ===Home Wiki Server=== | ===Home Wiki Server=== | ||
| : Attempting to run Mediawiki on a Pi Zero connected to my home router | : Attempting to run Mediawiki on a Pi Zero connected to my home router | ||
| # Set up SSH server on RPi Zero | # Set up SSH server on RPi Zero | ||
| ## Use Raspbian Buster SD card | ## Use Raspbian Buster SD card | ||
| ## Establish unique password | ## Establish unique password | ||
| ## Configure to allow SSH access (Install & run sshd) | ## Configure to allow SSH access (Install & run sshd) | ||
| # Connect to RPi via SSH from Windows command line (Windows+r cmd) with [https://ngrok.com Ngrok] | # Connect to RPi via SSH from Windows command line (Windows+r cmd) with [https://ngrok.com Ngrok] | ||
| # Install Mediawiki on RPi: ssh [RPi-ip-address] sudo apt-get install mediawiki | # Install Mediawiki on RPi: ssh [RPi-ip-address] sudo apt-get install mediawiki | ||
| <!-- ## Follow procedure in ~/Dropbox/RPi&Arduino/articles/Mediawiki_on_RPi.pdf --> | <!-- ## Follow procedure in ~/Dropbox/RPi&Arduino/articles/Mediawiki_on_RPi.pdf --> | ||
| ## Configure wiki to be read/edit only by logged-in users in LocalSettings.php | ## Configure wiki to be read/edit only by logged-in users in LocalSettings.php | ||
| # Connect RPi to home router | # Connect RPi to home router | ||
| ## Plug in directly to router USB port | ## Plug in directly to router USB port | ||
| ### See if port supplies power to Pi Zero | ### See if port supplies power to Pi Zero | ||
| ## Discover IP address | ## Discover IP address | ||
| ## Configure wiki server & SSH server to use assigned IP address | ## Configure wiki server & SSH server to use assigned IP address | ||
| ## Test by connecting to RPi wiki from laptop | ## Test by connecting to RPi wiki from laptop | ||
| # Investigate setting up static IP to allow access via internet, or use [https://ngrok.com Ngrok] account | # Investigate setting up static IP to allow access via internet, or use [https://ngrok.com Ngrok] account | ||
| ===RPi Connected to Solar Power Controller=== | ===RPi Connected to Solar Power Controller=== | ||
| : https://www.youtube.com/watch?v=1VxP38XlVEQ | : https://www.youtube.com/watch?v=1VxP38XlVEQ | ||
| :: This tutorial demonstrates how to use serial communication on a Raspberry Pi to connect to a solar charge controller and transmit the data using a python web server REST API to web enabled devices. | :: This tutorial demonstrates how to use serial communication on a Raspberry Pi to connect to a solar charge controller and transmit the data using a python web server REST API to web enabled devices. | ||
| :: Video also includes lots of useful apps to look up | :: Video also includes lots of useful apps to look up | ||
| ===Pi Zero Amazon Price Tracker=== | ===Pi Zero Amazon Price Tracker=== | ||
| : [https://www.raspberrypi.org/blog/build-a-raspberry-pi-zero-w-amazon-price-tracker/ See this page] for instructions to script a price tracker for a specific product on Amazon.com | : [https://www.raspberrypi.org/blog/build-a-raspberry-pi-zero-w-amazon-price-tracker/ See this page] for instructions to script a price tracker for a specific product on Amazon.com | ||
| ===Pi Zero 3D Printer Server=== | ===Pi Zero 3D Printer Server=== | ||
| : Jason posted [http://hcmakers.org/w/index.php?title=Raspberry_Pi_Zero_print_server these instructions] for making a wireless print server for his 3D Printer. | : Jason posted [http://hcmakers.org/w/index.php?title=Raspberry_Pi_Zero_print_server these instructions] for making a wireless print server for his 3D Printer. | ||
| ===Pi Zero W Surveillance Camera=== | ===Pi Zero W Surveillance Camera=== | ||
| * https://www.youtube.com/watch?v=rhIzfRmKHnQ | * https://www.youtube.com/watch?v=rhIzfRmKHnQ | ||
| ===RPi Cellphone=== | ===RPi Cellphone=== | ||
| : [https://www.youtube.com/watch?v=jjX7nS3kIao Make Your Own Raspberry Pi Cell Phone] | : [https://www.youtube.com/watch?v=jjX7nS3kIao Make Your Own Raspberry Pi Cell Phone] | ||
| ===RPi Zero on a USB Dongle=== | ===RPi Zero on a USB Dongle=== | ||
| * https://www.youtube.com/watch?v=OU9e3jIqaBY&feature=youtu.be | * https://www.youtube.com/watch?v=OU9e3jIqaBY&feature=youtu.be | ||
| ===Run MS-DOS on a Pi=== | ===Run MS-DOS on a Pi=== | ||
| : [https://magpi.raspberrypi.org/articles/build-a-dos-emulation-system?mc_cid=7589d7823d DOS Emulation System] | : [https://magpi.raspberrypi.org/articles/build-a-dos-emulation-system?mc_cid=7589d7823d DOS Emulation System] | ||
| ===Time-Lapse Photo Setup=== | ===Time-Lapse Photo Setup=== | ||
| : [https://www.instructables.com/Raspberry-PI-Time-Lapse-bean-Growing/ Instructable for Pi-Arduino-controlled time-lapse camera] | : [https://www.instructables.com/Raspberry-PI-Time-Lapse-bean-Growing/ Instructable for Pi-Arduino-controlled time-lapse camera] | ||
| ===Node-RED programming language=== | ===Node-RED programming language=== | ||
| : [https://nodered.org/docs/getting-started/raspberrypi Install & run Node-RED on RPi] | : [https://nodered.org/docs/getting-started/raspberrypi Install & run Node-RED on RPi] | ||
| ===RPi Zero with Pi Camera=== | ===RPi Zero with Pi Camera=== | ||
| : [http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/ Pi Zero with Pi Cam as USB Webcam] | : [http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/ Pi Zero with Pi Cam as USB Webcam] | ||
| ===Collection of Pi Projects=== | ===Collection of Pi Projects=== | ||
| : [https://uplab.pro/ Uptime Lab] - mostly pro-type cases | : [https://uplab.pro/ Uptime Lab] - mostly pro-type cases | ||
| ==Apps for Raspberry Pi== | ==Apps for Raspberry Pi== | ||
| * [https://www.makeuseof.com/tag/top-apps-install-raspberry-pi/ 10 Top Apps to Install on your RPi] from MakeUseOf | * [https://www.makeuseof.com/tag/top-apps-install-raspberry-pi/ 10 Top Apps to Install on your RPi] from MakeUseOf | ||
| * [https://atom.io Atom text editor] | * [https://atom.io Atom text editor] | ||
| * [https://flask.palletsprojects.com/en/1.1.x/ Flask] a very lightweight web server | * [https://flask.palletsprojects.com/en/1.1.x/ Flask] a very lightweight web server | ||
| * [https://ngrok.com/ Ngrok] an IP tunneling service, for exposing web/ftp/ssh/etc servers to the internet | * [https://ngrok.com/ Ngrok] an IP tunneling service, for exposing web/ftp/ssh/etc servers to the internet | ||
| * [https://shakenet.raspberryshake.org/ ShakeNet] Raspberry Shake Web portal - citizen scientist seismograph based on RPi | * [https://shakenet.raspberryshake.org/ ShakeNet] Raspberry Shake Web portal - citizen scientist seismograph based on RPi | ||
| ---- | ---- | ||
| [[Category:3D Printing]] | [[Category:3D Printing]] | ||
| [[Category:Command Line]] | [[Category:Command Line]] | ||
| [[Category:Electronics]] | [[Category:Electronics]] | ||
| [[Category:Microcontrollers]] | [[Category:Microcontrollers]] | ||
| [[Category:Network]] | [[Category:Network]] | ||
| [[Category:Raspberry Pi]] | [[Category:Raspberry Pi]] | ||
| [[Category:Software]] | [[Category:Software]] |
Retrieved from https://wiki.kats-sites.net/index.php?title=Raspberry_Pi