this post was submitted on 19 Sep 2023
60 points (95.5% liked)

Selfhosted

40183 readers
1084 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 1 year ago
MODERATORS
 

Hi, I have a xiaomi mi a3 that I don't use and I'm wondering if it is possible to use it for selfhosting. (piped, nextcloud...)

all 18 comments
sorted by: hot top controversial new old
[–] eskuero@lemmy.fromshado.ws 21 points 1 year ago

Termux has nginx, postgres, python and plenty of stuff compiled to ARM so I bet you can. You would have to be wary of non standard ports unless you have root access and make sure android does not kill or puts to sleep termux by adding exceptions to the app.

I remember running a few low traffic Mastodon bots in a S3 Mini years ago and it was decent.

[–] JaddedFauceet@lemmy.world 18 points 1 year ago (1 children)

google for the things you want to host and append "termux" to it, e.g.:

  • nextcloud on termux
  • piped on termux
[–] stown@lemmy.world 27 points 1 year ago

Thanks to your comment I gave termux another try and finally figured out what I was doing wrong (pgk updates never working). DO NOT install termux from the Play Store, use FDROID. If you use the play store version you have an old and outdated version with old and broken package repos.

[–] sv1sjp@lemmy.world 10 points 1 year ago

But if it does not getting any updates, it is a bit risky.. Find a custom which gets security updates and then do whatever they say in other comments.

[–] MaxVoltage@lemmy.world 7 points 1 year ago

thats a server baby

[–] aesir@lemmy.world 6 points 1 year ago (2 children)

If postmarket os works on that device maybe you can go full Linux (alpine), there will be no systemd which might be a problem and I am not even sure about docker compatibility. You can look it up though.

[–] PlexSheep@feddit.de 2 points 1 year ago

Postmarketos is a great project, but I couldn't get it to boot on my device.

[–] HarriPotero@lemmy.world 1 points 1 year ago

Ubuntu touch supports it decently

[–] PlexSheep@feddit.de 4 points 1 year ago (1 children)

Tried to host a pihole with distrobix some time ago, eventually it just stopped responding sadly. I want a debian server that I can ssh into, it's the bare minimum to host stuff IMO. Tmux is great, but I use it as a client, not a server.

Best case would be to trash the whole android os and somehow get a real Linux distro running headless (I know android is technically Linux, but it does not count)

[–] PoisonedPrisonPanda@discuss.tchncs.de 1 points 1 year ago (1 children)

isnt the supported kernel a critical question for most android phones?

[–] PlexSheep@feddit.de 1 points 1 year ago (1 children)

Not Sure. But it doesn't mean anything when is I can't get a proper distro to boot.

[–] PoisonedPrisonPanda@discuss.tchncs.de 2 points 1 year ago (1 children)

yes actually this is what I mean. although android is linux, any distro wont run on the device

would gentoo be an option as everything is compilled?

[–] PlexSheep@feddit.de 1 points 1 year ago

Postmarketos seems like the best distro for that kind of thing, you compile your kernel yourself too for that distro.

[–] emhl@feddit.de 4 points 1 year ago

Reading this post on my mi A3 right now :D

[–] chriscrutch@lemm.ee 1 points 1 year ago

Can anyone chime in about the safety of this from a battery standpoint? If it's going to function that way it'll probably have to be plugged in all the time, and that device's battery is not removable.

[–] Decronym@lemmy.decronym.xyz 0 points 1 year ago* (last edited 1 year ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
HTTP Hypertext Transfer Protocol, the Web
SSH Secure Shell for remote terminal access
nginx Popular HTTP server

2 acronyms in this thread; the most compressed thread commented on today has 13 acronyms.

[Thread #150 for this sub, first seen 19th Sep 2023, 21:55] [FAQ] [Full list] [Contact] [Source code]

[–] backhdlp@lemmy.blahaj.zone 0 points 1 year ago

Should work, tho I doubt it's much more performant than a pi, so your ideas might be too heavy for it.