12 ms·
I like the idea of using old phones for infrastructure-lite applications, taking advantage of their low power requirements and built-in UPS (which, yes, has its
by BLKNSLVR 1y ago
I like the idea of using old phones for infrastructure-lite applications, taking advantage of their low power requirements and built-in UPS (which, yes, has its own drawbacks which can only be mitigated to a certain degree).
I have a number of old android devices that I'd like to use for ...something cool like this, but my existing homelab infra could just add an extra VM or container to do this without any likely additional power draw. It's still cool and I want to do it though.
My only query about this cool project is why not wifi? Whilst I'm sure there's a good reason for the author (and I can understand having esoteric specific requirements because I have my own "things"), but it would negate the need for a docking->Ethernet device, which feels to me like unnecessary addition of a device that requires power. Also, bandwidth / throughput probably isn't much of a limitation given the device that's being used. I think I'm mainly interested in the author's specific reason for this requirement (I'm a BA, these questions are my bread and butter).
Comment to author: Gotta add the Pixel 5 to your homelab inventory! Also, nice site, layout and information.
- varenc 1y ago> why not wifi? I'm not the author but can speculate. WiFi is higher latency and a bit probabilistic. Like the slowest 1% of requests to the server may take an additional 1000ms or so. And if I was running a blog from a phone I'd want it to be impressively fast. Also an old Android phone may not be able to use modern WiFi standards and it could struggle with the traffic from being on the HN homepage.
- Aachen 1y agoOld phone? It's a Pixel 5 from five years ago. My first Android ever in 2012 already supported 802.11ac with speeds faster than any internet connection I've ever had
- TheBicPen 1y agoAre you sure? Supporting 802.11ac in 2012 is pretty amazing considering that the standard was finalized in late 2013.
- Aachen 1y agoOh, you're right. I was quite sure but it's indeed 802.11n. Maybe I thought it was an upgrade from the other systems (laptop and phone) I had at the time because it was the first with 5 GHz, seeing new WiFi networks that no other of my devices could see, and conflated that with the new standard. That's still faster than the internet connection I have and host my website on today, but not by as much
- hugs 1y agoi've been working on an idea for a while to use those idle old phones for... distributed web and app testing. plug it in at night... wake up having made a few bucks. problem is getting anyone to really care, though. cloud hosting is cheap.
- cinimodev 1y agoHey, blog author here. Thanks! I agree that a VM or container doesn't add to the power usage for a homelab that's already running. I kinda did it for fun and being able to run it off solar. I had original plans to turn the lab off at night and then the phone could keep running from battery. But, the homelab became critical infra and has to be always on lol. The requirement for Ethernet was just for bandwidth consistency. My WiFi network isn't the best.
- _R_ 1y agoOn Android devices, it’s generally difficult for apps to maintain persistent background services. I’m curious how you were able to prevent Android from terminating the process, and how the Pixel 5 server managed to keep running?
- cinimodev 1y agoIt runs inside Termux, which has a persistent notification to keep it open in the background. I believe I also extended the max phantom process to prevent it from being killed.
- indigodaddy 1y agoIs your nginx proxy also caching the site? If so then that is probably contributing to the site stability under the HN load I would think?
- cinimodev 1y agoIt is not. Somehow the sticks and bubblegum are holding together.
- indigodaddy 1y agoWow even more impressive then..
- 1y ago
- lhamil64 1y agoOne issue I have with doing this is what about security? Many older android phones don't get updates anymore (I'm not sure if a Pixel 5 is still supported, it might be) so I'd be concerned about security vulnerabilities going unpatched especially if the phone is exposed to the internet.
- ryukafalz 1y agoThis is one of the longstanding issues with Android, yeah. Pixel 5 went EOL in 2023, though did get some extra (probably security) updates last year. OEMs and SoC manufacturers have been getting better about upstreaming stuff recently from what I've heard (thank you Qualcomm!), but as far as stock OS images go I wouldn't expect manufacturers to support them for one moment longer than they have to. This is part of why efforts like PostmarketOS are so helpful. Ironically, if this was an even older Pixel 3a, you could run it with modern software: https://wiki.postmarketos.org/wiki/Google_Pixel_3a_(google-sargo) https://wiki.postmarketos.org/wiki/Google_Pixel_3a_(google-s...
- monkeyelite 1y agoLimit your attack surface by using a simple stack, and limit the incentive for hacking. Countless sites operate just fine on old software.
- koolala 1y agoIf you have to plug it in anyways, may as well power + ethernet.
- bigiain 1y agoI laughed at "Having a website that is fully offgrid". I _guess_ not being connected to the electrical grid while still being connected to the internet qualifies as "offgrid", but it kinda feels wrong to me.
- nine_k 1y agoWhy, consider a device, like a mobile phone, which is not connected to power grid (solar-charged instead) and uses radio to access the Internet (typically 4G). I think it would be as off-grid as it gets. Quite a bit of off-grid equipment, like weather stations, traffic cameras, etc do exactly that.
- tracker1 1y agoYeah, I would guess you can go a long way with a USB battery based charger device in the middle even... Panel > Battery > Phone... which should hold more than a day's usage for the phone.. since phone batteries tend to lose a lot of life after 4-5 years.
- rendaw 1y agoAre you saying the power required for wifi transmission is lower than the power required for usb? Also, what's a BA?
- tim-- 1y agoI am guessing a business analyst (https://en.wikipedia.org/wiki/Business_analyst https://en.wikipedia.org/wiki/Business_analyst). Basically, someone who facilitates creating and communicating stakeholder analysis across a business. The idea is that a BA would have a thorough understanding of everything across a business. Think of them as a product owner in scrum, except there is a bit more overlap working with different parties both internal and external to the business. You will likely find a BA (or someone with a similar role under a different name) in most large organisations (and likely in quite a lot of medium ones, too).
- BLKNSLVR 1y agoAs per tim (thank you tim), yes, Business Analyst. I ask annoying questions to make sure everyone understands what the actual problem is rather than everyone making their own assumptions where there's ambiguity. An additional device just to facilitate wired network usage over wifi usage felt like unnecessary additional complextiy and probably higher power usage. The blog author replied, however, saying that wifi was a bit flaky, explaining the design choice.
- tommica 1y agoI've had this dream of doing it in Elixir, and use it's capability to easily connect nodes securely together, to add more processing power into the system through by just slapping more phones at it.
- ethagnawl 1y agoThis sounds a lot like the GRiSP project: https://www.grisp.org/ https://www.grisp.org/
- easyThrowaway 1y ago> I like the idea of using old phones for infrastructure-lite applications, taking advantage of their low power requirements and built-in UPS (which, yes, has its own drawbacks which can only be mitigated to a certain degree). I'd love to see a..."serverization" kit for some mobile devices, like the "consolized" kits developed for the game boy advance[1]: Extract the mainboard from your phone and extend it by directly interfacing it with external storage, a better power supply and a physical network interface. [1]https://fingercramp.com/portfolio/gba-consolizer-play-your-favorite-gameboy-games-through-hdmi/ https://fingercramp.com/portfolio/gba-consolizer-play-your-f...
- Palomides 1y agoapproximately 0% of phones can be easily opened up, or have any way to extend their hardware other than usb
- dec0dedab0de 1y agoNobody doing this sort of thing really cares about easy
- qwertox 1y agoI have my Pixel 3 magnetically attached to my keyboard, to the left side, next to the tab, caps lock and other keys. It displays a webpage of a grid of buttons which do things when I press them, like inject the current timestamp at the cursor position, toggle my monitors on and off, launch certain apps. Because I wanted an Elgato Stream Deck but then thought that I have this unused phone.
- BLKNSLVR 1y agoCan you write up how you set that up? It sounds intriguing.
- Denatonium 1y agoIIRC, WiFi on cellphones tends to have power-saving features that cause unsolicited incoming connections to have poor performance and very high latency. I don't know if there are kernel parameters to disable this, but even if there are, you'd likely need root to toggle them.