How I use my Raspberry Pis to help me work on with my side projects
techcoil.com
techcoil.com
It looks like there could potentially be a lot of maintenance to keep multiple individual servers up and running, and this is probably multiple side project in and of itself.
I replaced each and every one of them with an Intel NUC (6. gen Celeron) running FreeBSD, and created a jail for each of the services the individual RPIs maintained.
It uses 5-9W (Idle), which is like 80% of the time. It has real Gigabit Ethernet, as well as a SATA SSD, and that alone is enough to provide much higher performance (for me)
The only RPis i have left running are the individual nodes in my video/climate surveillance.
https://medium.com/@cfatechblog/bare-metal-k8s-clustering-at...
Although using modern websites when you only have 2 GB of RAM and a mobile Celeron chip is absolutely painful...
Hosting websites at your house? Slower load times for your users.
Hosting git at your house? If your house burns, you might lose all copies of the code.
Hosting a manual WordPress installation? That's making work for yourself IMO.
Hosting websites at your house? Slower load times for your users.
Hosting git at your house? If your house burns, you might lose all copies of the code.
I'm guilty of both, although my home connection is a 300/300 mbit fiber connection with a static IP. I make versioned backups locally and remote daily, just as i would from any VPS host.The only reason i'm considering moving all the internet facing stuff to a VPS is to allow me to "relax" a bit, by minimizing the amount of public services/ports that can have potential exploits on my home network. I've tried to minimize the damage an attacker can make by using FreeBSD jails.
I already segregate the network traffic in LAN, DMZ, SERVERS, KIDS, IOT and GUESTS, with the only route being through the firewall for access to other VLANS, as well as not allowing traffic from certain VLANS onto others. I monitor logs religiously.
I'm guessing a VPS would probably allow me to sleep a bit easier at night, though i'd still have the same amount of maintenance work.
This is what off-site backups are for. You have them, for your hosted services as well as your home ones, right?! OK so with a hosted service you have the advantage of them managing uptime and recovery matters to an extent, but I still prefer to have my own backups on another host, so I have the data in my hands if the whole service goes offline for a time.
I'd agree with your other points but I don't think the "what about a site-down situation?" matter differs between self and remote hosted options (unless, perhaps, you are paying a pile for nice renumeration-backed SLA promises).
I'd actually argue it's easy to get set up on the cloud hosted versions of this stuff! sure it helps to roll your own everything (git, jira, IDE...) and i appreciate the work and write up. Plus those rpi's do look pretty fuckin sweet, it makes my nerd senses tingle
USB-to-serial still exists but the support for it is kind of crimped now due to security concerns (in Windows at least) and you can also damage the PC if the external circuit is not thought out correctly.
Not really sure if the USB adapter manages to isolate enough of the risk though, I have only used Firmata...
All use cloudflare dns+ pi hole to block ads.
I use another PI as a media server and for remote torrent downloading.
1. It's dirt cheap than any other solution I found($15, I use 10k mah version)
2. I can plug RPi to it and I can plugin a charger in 2i. When the main power cuts off, It'll instantly switch over to battery with 0 downtime. I think this is called passthrough charging)
3. It can provide 2.5 or 3.5 amps(not sure about exact value) output
4. It has two ports
This alone is a killer feature that’s far less common than I expected before I started searching for it. Most power banks cut off output while they’re charging, and many require physically re-plugging the device to start powering it again.
I ended up acquiring a PiJuice for this functionality alone.
Edit: Someone linked pijuice project. I went to their website and according to them, Their 10k mah version lasts 24+ hours
> Onboard 1820 mAh off the shelf Lipo / LiIon battery for ~4 to 6 hours in constant use! (with support for larger Lipo Battery of 5000 or 10,000 mAH+ to last up to 24 hrs +)
https://uk.pi-supply.com/products/pijuice-standard
So, I would say 2i would probably last about the same?
Usually used for charging other batteries.
An RPi can suck down a continously changing power input.
What particularly makes them unsuitable for this?
Many things 'aren't designed' for something but work just fine in that capacity..
I’m not very keen on running ordinary services on them (my home automation setup runs on an ODROID, with Node—RED and homebridge Docker containers, which benefit from EMMC storage and twice the RAM as a Pi), but I’ve found the Pi to be a great platform for small self-contained tasks that really benefit from having a dedicated machine with a stable configuration.
Also, I’ve found them to be quite reliable from the 2B onwards (I even ran a Swarm cluster on a set of mine for a couple of years) — I have all the setup info for most of these on my GitHub profile at https://GitHub.com/rcarmo
I'm actually looking for a new O-scope (since I am loosing access to a lab) and I'm looking for something small and compact.
??? Shouldn't that be "Smartphones" instead? Even if the Raspberry Pi is popular among a certain segment of people, it is nowhere close to being as mainstream as smartphones which have revolutionized the way we use technology.
The Micro:Bit at least actually got a foothold in UK education.
To be fair, the Micro:Bit exists because of the lessons learned from the failure of the Raspberry Pi in education. In a strange sense, it's the 2.0 version of what the Pi was supposed to be; the Pi lives on because of the hobbyist community, but it failed fairly comprehensively at its intended purpose.
I do have one project idea for using my stack of RPis, though (a badging/console login system for fighting game tournaments) but that is waaaay on the back burner.
If Linux is a must, I'd argue that building a Desktop is easier, since you can verify which hardware works for Linux. (Pick motherboards that others have already tested).
Something like a Ryzen 5 2500x build (6-core / 12-threads) would be far better than a Rasp. Pi for any home-server use. You got 4-DIMMs for easy 32GB support for tons of virtual servers. You have Hard Drives, SSDs, AVX2 (for high-speed H264 encoding), PCIe (GPU compute) and more. The standard Desktop is a beast these days.
--------
For "clusters", a typical GPU like Vega64 or the RTX 2070 will get you far more performance at far cheaper prices. You can even toss two GPUs on a typical Desktop... maybe four GPUs if you go HEDT (Threadripper or i9-Extreme). That's all a modern supercomputer node is these days: just a normal CPU with 4x GPUs on it.
High-performance SIMD programming is a bit difficult at first, but programming CUDA / OpenCL / AMD HCC is actually straightforward. Its the "high performance" part that gets difficult (but that's true of any programming).
Your "cluster of GPUs" is the architecture of modern supercomputers. You can build one under $1500 (2x GPUs RTX 2060 or Rx 590 + Desktop with a bit more power-supply than usual). That's a Heterogeneous compute with 3-nodes (2x GPUs + 1x CPU) right there, plenty of room for experimentation and learning about communication.
--------
IMO, the Rasp. Pi's main benefit is GPIO and I2C pins, as described by the other poster. Rasp. Pi works extremely well as a host to Arduino (since Arduino has better latency metrics to its GPIO). Effectively, Rasp. Pi is easier to program than Arduino, but Arduino is easier to interface from an electronics point of view (due to lower latency, no OS in the way, etc. etc.)
But from a "serious compute" point of view, like servers or HPC, you probably should just get a normal desktop + graphics card. That's pretty much what a supercomputer is these days anyway.
But if one's doing it for the fun of it as the original author appear to have done, then I have no moral complains to present. :)
Eventually I tried other cards with better results. Since then I started using ATP aMLC “industrial” Flash, which has been very reliable.
Intermittent drops often come from undervoltage. You may need a 3.5v power adapter.
Also, slow ssh can come from dns troubles: http://jrs-s.net/2017/07/01/slow-ssh-logins/
Undervoltage is a common issue but easy to identify since it shows up in logs and displays the lightning bolt icon in the top-right corner of a display is connected.
Do you mean a 3.5A power adapter? The Pi runs at 5v.
I have one running on a 2.0A adapter and it's been running for a few years now. Though it uses ethernet so there's less power consumption compared to one using WiFi.
Yeah- sorry. Trying to do this from memory. :)
Unfortunately, all the plants died after a while - mostly because I didn't finish all the features I wanted to write fast enough... - and I abandoned it. I've been considering doing a write up on it since then, but I'm not sure if that would be interesting to anyone other than me.
I wonder, would that count as creative? Maybe I should do the writeup after all (seeing as simply running some PHP on a few Pis got to the frontpage...)
It also has the benefit of being self documenting of dependencies via layers, which is a nice thing to have. To be honest, running just about anything self-hosted can be deemed overkill when there are so many free hosted solutions. But that’s why we’re engineers because sometimes it just scratches an itch for us :)
For the love of $DEITY, please at least use an external USB disk. In RAID1, if possible. (Perhaps some multi-RPI git mirroring scheme could work as well? Anyone ever done something like that?)
Do not EVER trust your valuable data on SD-cards on a Raspberry Pi!
I use an old laptop pretty much in the same way that the author uses his Pi's. While it's fairly new SSD is much more reliable than the Pi's SD card I would never store anything important on it unless I'm certain it's backed up somewhere else as well.
Regardless, 3 bits per cell TLC SD cards (or QLC, 4 bits per cell, ugh) are not made for repeated writes, like git or database workloads. They will get corrupted even in the best conditions.
You could use industrial SD-cards, but I think it's easier just to plug in a USB drive.
Next thing I want to do with it is run a little web app that displays local train and bus times, garbage collection days, weather forecasts, and that sort of thing. They're great for prototyping hardware ideas and running various one-off web services locally!
Examples from my house are: Pihole - Adblock for all wifi devices
Shairport - audio airplay target
Plex - media server
My family members and I simply use these services without even knowing/remembering they're hosted on a RPis. If it requires tinkering or isn't permanent, it goes on a VPS.
Many of the examples listed in the post are things that I would simply host on docker, a VPS or in a VM.
I have Pi2 that acts as a dashboard for real time data on my train to work, my wife's bus route, weather temp and rain probability. I am using sensehat to present this information through pixels.
I have a Pi3 running home automation (hass.io) which I am new to and find amazing in most part.
And final one in my daughters room which is a Pi0 with Envirophat that's monitoring temperature.
All side project and I am not a developer.
It has become integral part of our daily routine.
A dedicated raspberry pi in a nice little case for each is certainly modern and cool, but it doesn't give me quite the same nostalgia as a ancient laptop shoved in a corner...
Any application that requires any level of writing to disk will almost certainly die in short order.
I have a boatload of Pis, doing a bunch of things, and one of the annoying things is having cards die on me. Everything is in ansible, so its not that much effort to rebuild.
However having any important data living on a pi's SD card is a nono
I recommend a program like win32diskimager (https://sourceforge.net/projects/win32diskimager/) so you can make images of your SD cards in their working state and if they get corrupted quickly get them back to working order.
> However having any important data living on a pi's SD card is a nono
That is why I wrote a script using the Fabric Python module to log in to my rpi3 and download important files. Ideally the script would run automatically every day but I haven't quite gotten there yet.
With WireGuard there is not necessarily a central server.
There are many peers and any peer can connect to any other
peer assuming they have the correct authentication
credentials. Every peer has a private and public
key used to identify its self.I do control my pi through telegram (polls a bot), which works nicely for the things I do want to control.
I think for me, I'll just stick with my little linode VPS for hosting side projects :). But, I like the idea of ngrok!