this post was submitted on 23 Oct 2025
354 points (99.7% liked)

Selfhosted

52504 readers
658 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

This is my solar powered setup. A somewhat old Pixel 6a that fell from a foot and a half (really!?), a 10w Solar setup that was around 20$ on amazon. And an old compost container I have too many of. Ill be giving it a proper 3d printed case when I get a chance (and a host of other changes) but for now this works! Its worth about 40$ in total (the phone is now worth about 21$ on the open market).

Qm4kpb3x0dQ7Qib.jpg

hRMBBvZMfVgbgIs.jpg

Website: https://solar.chrisco.me/

Website was made with a collection of scripts, apache2 (nginx for some reason did not install, errors), and termux. Ill open source the whole setup in a bit. Theres not much to it to be honest.

Hopefully keeping the battery at 80% will help the lifetime of the battery. I may bump it up at some point if it keeps dieing because lack of sunlight. But we shall see.

More info in the link. I couldn't get Piefed to repost from a GotoSocial link.

top 50 comments
sorted by: hot top controversial new old
[–] Cethin@lemmy.zip 5 points 18 hours ago (1 children)

I had the idea to use an old phone as a server recently. Phones are pretty energy efficient, so it seems like it'd be a smart way to recycle one. Does anyone know if this is actually a good practical idea for a lightweight personal server, rather than just a novelty? I haven't heard of anyone doing it before so I'm assuming there's a reason it isn't a good idea, but I don't know what that'd be.

[–] porksnort@slrpnk.net 5 points 18 hours ago

I think the best question to ask first is ‘what kind of server?’

A web server could run a reasonably busy low-tech web2.0 blog site on a phone, I think without breaking a sweat.

Other types of serving (media, especially) would be resource limited) maybe not.

And there is an important difference between ’novelty’ and ‘demo’. Even a novelty server can demonstrate new ways to think about tech. Maybe an author could host their book launch on such a setup, serving only a single file and showing that we don’t exactly need to involve Amazon. That’s where my head goes when thinking about these efforts.

[–] MalReynolds@piefed.social 13 points 1 day ago (1 children)

I'll assume it's cool, but currently hugged to death for me. Just wanted to point out batteries are replaceable even if glued, fixed my GrapheneOS Pixel7 after it killed itself (spicy pillow) charging in heat in a warmer country. iFixit kit + video worked, then got a Chargie which lets you set a temperature above which it will not charge (33C for me, only charges at night in summer). Probably relevant in your case.

[–] sem@lemmy.blahaj.zone 1 points 4 hours ago

With chargie you could keep the battery hovering around 50%

[–] verstra@programming.dev 11 points 1 day ago

Meanwhile, I'm using Pixel 3a for my main phone (for quite a few years now) and consider it a relatively up-to-date phone.

[–] Teppichbrand@feddit.org 12 points 1 day ago (1 children)

Do you know about LowTech Magazine's guide to host super efficient webserver with optional image dithering?

[–] newaccountwhodis@lemmy.ml 3 points 21 hours ago

That website was the first thing I thought about when I saw the post. Great content too!

[–] drkt@scribe.disroot.org 30 points 1 day ago (1 children)
[–] mesamunefire@piefed.social 3 points 17 hours ago* (last edited 17 hours ago)

Oh neat! Yeah ill do it when I get a chance.

EDIT: Looks like quite a few of those sites are defunct.

[–] poVoq@slrpnk.net 23 points 1 day ago (1 children)

Nice work. But the phone should be able to host quite a bit more, as it is actually quite fast.

[–] mesamunefire@piefed.social 27 points 1 day ago (1 children)

Im not sure I want to host more on the phone (yet?). Its a nice novelty but I have other self hosted platforms that are much more robust. This is more of a "can I do it" kind of project. Your seeing my free time right now.

Thanks for the comment!

[–] Whostosay@sh.itjust.works 10 points 1 day ago

But can you do it more

[–] epyon22@programming.dev 16 points 1 day ago (2 children)

First thought is you likely can give it Ethernet with a usb c dongle.

[–] B0rax@feddit.org 5 points 1 day ago (1 children)

Depending on the dongle, that would increase power consumption. I think that is difficult in the current state, seeing that there is not much power to spare at the moment.

[–] pirat@lemmy.world 3 points 18 hours ago

What makes you think it would consume more power than the WiFi radio currently does?

[–] mesamunefire@piefed.social 9 points 1 day ago (1 children)

Oh yeah that would 100% speed it up. Its about 200/300 ms delay on wifi.

[–] foggenbooty@lemmy.world 1 points 19 hours ago (1 children)

That sounds like way too much, unless you have a really congested network or interference in the area. Should be able to get it at least 10x faster, unless you're taking the web server page load time into account in your latency numbers and not just the network.

[–] mesamunefire@piefed.social 1 points 19 hours ago

Its the entire request. Its definitely not the software, that takes > 20 ms if its direct connected via Ethernet usbc. You are entirely correct, it can be much faster like my other services are.

Its wifi 2.4 across multiple walls. Im frankly surprised its only 200+ ms delay with the amount of signals in the area.

[–] Railcar8095@lemmy.world 4 points 1 day ago (1 children)

Do you have a guide to replicate? I have a half broken pixel 7 that might work for something like this

[–] sem@lemmy.blahaj.zone 1 points 4 hours ago

Seconded.

Especially if it could be done on a phone with a non functioning screen.

[–] bigboitricky@lemmy.world 6 points 1 day ago (1 children)
[–] mesamunefire@piefed.social 1 points 1 day ago

Thanks! Its a very simple setup.

[–] tburkhol@lemmy.world 7 points 1 day ago (1 children)

From the power draw, it looks like lemmy federation got hold of it around 16:30. As of 17:20, it's still holding up.

I understand the Mastodon federation system can be very DDOS-ey on web sites, if you're tempted to post it there.

Cool project.

load more comments (1 replies)
[–] oeuf@slrpnk.net 2 points 1 day ago

I've been wanting to do exactly this for a long time. Is there any documentation on how to set it up?

[–] waddle_dee@lemmy.world 6 points 1 day ago (2 children)

I'm curious as to how big of a load you've put on the system, so far. Is it just the site? What's the code for charging? Do you have it set to discharge to 30% then charge, or just charge to 80% whenever it's discharged some arbitrary amount? Sorry for the questions, I'm incredibly fascinated by this project!

[–] mesamunefire@piefed.social 4 points 1 day ago

I think like 5% at max? Apache2 + straight HTML is very low on cpu memory. Its probably overkill honestly.

Its auto set yp go to 80% petminantly as the highest charge. And android itself takes care of the heavy lifting when it comes to battery optimization.

[–] dai@lemmy.world 4 points 1 day ago

I'd dare say the easier method, from memory the p6 should have a charge limit in the stock firmware.

I've not an old Samsung s10+ kicking around with corrupted firmware, should really take a look at it and see if it can be up and running again. Not that I need more cores, ram, cameras or any additions to my equipment but just because.

It fassinates me that consumer hardware, and low power at that goes wasted so often. So many small form factor devices such as phones, with built in ups aren't being leveraged. But I guess that comes down to proprietary binary blobs and developer work on a per device basis.

I might have to investigate what platforms mobile nixos supports and see if it's cheap enough to dabble with.

[–] baatliwala@lemmy.world 3 points 1 day ago (1 children)

Very cool, but would suggest replacing the 6A some time -- read up on its battery problems

[–] beeng@discuss.tchncs.de 1 points 1 day ago (1 children)

Yes send it back to Google and get 100USD for it

[–] mesamunefire@piefed.social 2 points 1 day ago

The battery has already been replaced.

[–] ook@discuss.tchncs.de 3 points 1 day ago

I cannot keep track which models have issues but isn't the 6a one of those with battery bloat issues? Might remember wrong. Definitley a cool project! Is the phone not getting super hot in that plastic box?

[–] cmnybo@discuss.tchncs.de 4 points 1 day ago (2 children)

Has anyone figured out how to make android use a static IPv6 address? If I have to run a reverse proxy on a real PC, I may as well just host the website from that PC.

[–] bassomitron@lemmy.world 3 points 1 day ago (1 children)

Is there a specific reason you strictly need static ipv6?

[–] cmnybo@discuss.tchncs.de 3 points 1 day ago (1 children)

Android changes its IPv6 address daily. That makes it kinda hard to host anything on it. SLAAC would be fine too if it was a stable address.

[–] GenderNeutralBro@lemmy.sdf.org 1 points 19 hours ago (1 children)

Does it do that even if you set it to "use device MAC" for the wi-fi network you're on?

The exact location might depend on brand/OS, but in stock Android it's in Settings > Network & Internet > Internet > gear icon next to active wi-fi network > Privacy.

[–] cmnybo@discuss.tchncs.de 2 points 18 hours ago

That hasn't stopped the addresses from changing on any of the devices I've tried it on.

[–] litchralee@sh.itjust.works 2 points 1 day ago

If you're using SLAAC for auto IP assignment, then the resulting EUI-64-based address would be essentially static, based on the premise that your MAC address and local subnet prefix don't change. Privacy extensions night get in the way, as well as Android's randomized MAC feature, but those are adjustable.

[–] calamityjanitor@lemmy.world 2 points 1 day ago (1 children)

That is fricking sick dude!

load more comments (1 replies)
[–] hexagonwin@lemmy.sdf.org 1 points 1 day ago (1 children)

nice! i'd recommend keeping the battery a bit lower tho, and perhaps lower charging currency/voltage.

i believe it's also possible to run proper linux on this phone btw

[–] i_love_FFT@jlai.lu 1 points 1 day ago (1 children)

Which Linux distro would work on a phone? I have an old zenfone 8 lying around.

[–] hexagonwin@lemmy.sdf.org 2 points 8 hours ago

postmarketOS, mobian, etc.. these are 'real' linux distros that work without the android parts. as your device doesn't have a (near-)mainline kernel port i believe you can boot postmarketOS with the stock downstream kernel, though many peripherals won't function.

halium based distros like ubports and droidian use a part of the android userspace to make those peripherals work, which can be better if mainline is not possible.

[–] polographee@infosec.pub 2 points 1 day ago (1 children)

Whatever you do, keep us posted!, this reusing old technology is really interesting

[–] mesamunefire@piefed.social 3 points 1 day ago

Will do! I still need to do an actual writeup. Maybe even host it on the site.

load more comments
view more: next ›