This profile is from a federated server and may be incomplete. Browse more on the original instance.

knF,

Hello, that’s perfectly possible, actually I was selfhosting on android until recently. You can find more info in this post: lemmy.world/post/5342541

Unless you need some heavyweight lifting and you’re ok with installing directly the applications (no docker, sorry), that’s a good portable homeserver.

My only suggestion: buy an ethernet adapter as the WiFi connectivity will drop sometimes.

Keep us posted!

knF,

Based on my personal experience at least one year on a 5 years old mobile. It can last longer but I decommissioned it because I got a NUC.

I had setup a charge limiter (between 20% and 80%) with Magisk, initially it was through an automation in homeassistant but the battery usage was very high.

In terms of charge cycles it was one or two per day max

knF,

I love your reviews, thanks for your great work!

Wander, (edited ) to selfhosted
@Wander@packmates.org avatar

The future of selfhosted services is going to be... Android?

Wait, what?

Think about it. At some point everyone has had an old phone lying around. They are designed to be constantly connected, constantly on... and even have a battery and potentially still a SIM card to survive power outages.

We just need to make it easy to create APK packaged servers that can avoid battery-optimization kills and automatically configure an outbound tunnel like ngrok, zerotrust, etc...

The goal: hosting services like , , !? should be as easy as installing an APK and leaving an old phone connected to a spare charger / outlet.

It would be tempting to have an optimized ROM, but if self-hosting is meant to become more commonplace, installing an APK should be all that's needed. can do SSH, VPN and other tunnels without the need for root, so there should be no problem in using tunnels to publicly expose a phone/server in a secure manner.

In regards to the suitability of home-grade broadband, I believe that it should not be a huge problem at least in Europe where home connections are most often unmetered: "At the end of June 2021, 70.2% of EU homes were passed by either FTTP or cable DOCSIS
3.1 networks, i.e. those technologies currently capable of supporting gigabit speeds."

Source: https://digital-strategy.ec.europa.eu/en/library/broadband-coverage-europe-2021

PS. syncthing actually already has an APK and is easy to use. Although I had to sort out some battery optimization stuff, it's a good example of what should become much more commonplace.

cc: @selfhosted

knF,

It is possible nowadays: I’m hosting quite a few services on an 5 years old Android. Just with Termux, no root required. Of course connectef it’s just to the internal network due to all the security concerns mentioned in the post.

To solve all the bandwidth/connection issues, I’ve bought a usbc-ethernet dongle that works like a charm.

To mitigate battery issues I’ve limited the charging to 85%.

I would never host Jellyfin there, but with webdav and Kodi I can get my media served easily to all my devices at home

knF, (edited )

Until one week ago I was using an old Samsung A20 with good results. I moved to a mini PC as I wanted to host Immich server and I felt it was too much for the phone (it might not be the case though…)

A quick extract from an old post of mine on what I was running: lemmy.world/comment/354199

Software: Termux (android app) SSH (OpenSSH in Termux) Rclone (in Termux) Sonarr, Radarr, Lidarr, Prowlarr (in proot-distro) Transmission (in proot-distro) Kavitha (in proot-distro) Podgrab (in proot-distro) Ombi (in proot-distro) ntfy (in proot-distro) Filebrowser (in proot-distro) Vaultwarden (in proot-distro) Homer with lighttpd (in proot-distro)

TLDR: Go for it! Use Termux with proot-distro to avoid headaches

knF,

Thanks a lot! Much better :)

knF,

Can you share the github link? I’m really eager to use it in one of my key projects where JS is a core component :D

knF,

Ah, is it the famous rm -rf / command?

knF,

Usually companies that use open source software in their products contribute actively to the projects. And with “actively” I mean sponsoring the project and/or contributing to the development with PRs. Considering the “rude” reply, it seems that there were already other arguments between the dev and the one that reported the bug.

knF,

With Armbian installed, you can offload services that require to be always active on the box and create an “on-off” schedule for the homelab. This will save quite some electricity usage especially if your homelab is beefy

knF,

Are you referring to the device hacking? If that’s the case it’s purely random for what I recall. High hacking skills means higher chances to get a good node. The only part I was paying attention to were which node to unlock first. I chose them so that if they came out as bad I didn’t block two or more lines from potential success

knF,

Correct, that’s when you try to hack a device. It’s purely random and chances are based on your skills, augments etc.

knF,

I’m hosting al my services on an old Android mobile with termux. Power consumption is ridiculous, not 100% sustainable but it is very low power. You could add solar panels and you’re done. In terms of performance, mainly for family use, I’ve never had an issue once I plugged it to an ethernet port.

knF,

No Docker unfortunately, it would require either to recompile the mobile Kernel or use QEMU and I believe it would have a big impact on the performances. Basically this time the approach was: what can I do with an old mobile without rooting or anything. Hardware:

  • Samsung S20
  • USB3 to Ethernet & charger port
  • 128GB SD card

Sofrware:

  • Termux (android app)
  • SSH (OpenSSH in Termux)
  • Rclone (in Termux)
  • Sonarr, Radarr, Lidarr, Prowlarr (in proot-distro)
  • Transmission (in proot-distro)
  • Kavitha (in proot-distro)
  • Podgrab (in proot-distro)
  • Ombi (in proot-distro)
  • ntfy (in proot-distro)
  • Filebrowser (in proot-distro)
  • Vaultwarden (in proot-distro)
  • Homer with lighttpd (in proot-distro)

Since I wasn’t able to install .NET Runtime in Termux directly, I used the proot-distro (Ubuntu) and inside I’ve installed all the services. Services are started manually every time I restart the proot-distro (unfortunately I’m getting an error when installing Termux:Boot), it’s a simple script so I’m not dying over it. To keep the proot-distro alive I launch is with the screen command so I’m ensuring persistence even when the terminal is closed.

It’s not a clean solution like docker etc. but I’m consuming 5 or 10Wh of energy every day which is close to nothing and probably sustainable with a solar panel.

Every once in a while (basically when the SD is almost full) I transfer the files with rclone to an external drive where I consolidate the files.

Oh extra tip, with rclone you can create a DLNA server so you can serve the files you have download immediately (tested with VNC and Kodi)

The phone/server has still room (CPU & RAM) to go and possibly I could install HomeAssistant without any issue. Also I could add Joplin and Floccus using webdav for storage as I had in my previous server but I don’t miss them.

Any other questions, doubts, scripts, feel free to ask!

knF,

Unfortunately I didn’t give it a try.

I tried HA Bluetooth presence detector on my PC some time ago with not so good results and since that time I didn’t gave another go.

I saw a Termux-bluetooth package so it could be a feasible thing.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines