knF

joined 2 years ago
[–] knF 4 points 1 year ago (4 children)

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 4 points 1 year ago (6 children)

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 2 points 1 year ago

A few points here:

  • all articles are dated 2022 and after, I recall having "battery included" devices from way earlier than 2022
  • companies don't move a single inch before it's a law and they're late even when it's mandatory (GDPR implementation anyone? 🤣 ) I agree on the fact that the quoted text can be interpretated in favour of embedded batteries. I really hope this direction will change drastically.

Unfortunately progress and laws advance by trial and error and all at the expenses of the environment. Hopefully soon we'll get to a sustainable future

[–] knF 2 points 1 year ago

Thanks a lot for the reply @[email protected], much appreciated. I'm watching the video right now, thanks for sharing your personal experience on hosting the services and the security considerations, good to know! I was between happy and surprised to see that the video is on PeerTube, way to go, thanks for promoting the Fediverse. 👍

Not 100% sure if I want to go through this hole now 🤣

[–] knF 3 points 1 year ago (2 children)

Sounds really interesting! Could you please indicate what are you selfhosting exactly in order to achieve this?

[–] knF 1 points 1 year ago

I had a similar issue, use a more recent version of the lemmy-ui image. I used "latest" and it worked

[–] knF 1 points 1 year ago

It seems a high usage to me as well... what's the load? (from the uptime command) I'm puzzled as the disk and network are basically idle (very low usage) but the CPU is basically saturated...

Beside this THANK YOU FOR YOUR GREAT WORK!

[–] knF 1 points 1 year ago
[–] knF 1 points 1 year ago

Fantastic, thanks a lot!

[–] knF 2 points 1 year ago (3 children)

We should ask to add a reference to this community in the description next to the reddit one, does anyone know the maintainer?

[–] knF 4 points 1 year ago* (last edited 1 year ago) (1 children)
[–] knF 2 points 1 year ago

I'm currently using an "old" mobile (Samsung A20) with Termux (standard ROM, not rooted) and works like a charm! I'm hosting the *arr suite, Kavita, Podgrab, Homeassistant, ntfy and there's still room left (in terms of CPU and RAM). In terms of consumption we're in the order of a few (<5W) Watts per day. The only issue is the storage, I've added a 128GB SD card and every once in a while I consolidate the content in an external HDD. And the nice thing is that you breath a new life in old hardware.

view more: ‹ prev next ›