With the latest release of android it now supports some Linux functionality. I got docker installed simply by following Docker’s docs.

Any thoughts or uses for a mobile homelab? What would be useful to have mobile?

  • confuser
    link
    fedilink
    English
    4
    edit-2
    1 month ago

    How do we activate this feature? I have it enabled after going into the developer settings menu but nothing seems to happen, I see mentions of an app but idk what the app is. I am on grapheneOS though instead of normal android so there could be something with that here.

    Oh nvm I figured it out, it just took a bit for me to realize there was a new terminal app on my phone

  • @node815@lemmy.world
    link
    fedilink
    English
    81 month ago

    Maybe your own adblocker, I thought about doing that myself, I use the public one from adguard on my phone (dns.aguard-dns.com) but having it on your own device would be pretty slick perhaps. But thinking about it more, Google wouldn’t just let you use an internal IP for the private DNS. I have tried it with my locally hosted adblocker and it rejects it.

    Or you could set up a dashboard like Homepage or Dashy, or Flame or ? Ultimately, your imagination would do! :)

    • trevor (he/they)
      link
      fedilink
      English
      21 month ago

      Unfortunately, from trying this myself, I don’t think you can forward port 53 to the Android host, so that won’t work (easily). It seems that privileged ports aren’t allowed to be forwarded.

      • Lka1988
        link
        fedilink
        English
        11 month ago

        I’ll have to give this a shot with pi-hole later tonight.

  • @shyguyblue@lemmy.world
    link
    fedilink
    English
    41 month ago

    Oh nice! I’d love to run an ad blocker/dns/reverse proxy on something with a little more beef than the Pi zero I’ve got now.

    Jellyfin and or Pi zero does not like streaming through the video.local address I’ve got setup, so i have to use IP address to get anything without stuttering.

    • @merthyr1831@lemmy.ml
      link
      fedilink
      English
      11 month ago

      pi zero for streaming is insane not gonna lie. What sort of resolution do you stream it at?

      A decently newish phone would blow even a pi 5 out of the water I bet. Modern GPU drivers from snapdragon or mediatek plus core designs that arent 7 years old out of the factory would be a godsend for low-watt homelabbers

      • @shyguyblue@lemmy.world
        link
        fedilink
        English
        11 month ago

        Dang, I just realized I didn’t explain the setup well enough:

        An old laptop runs the Jellyfin server, but the Pi runs the reverse proxy. For some reason, trying to use the reverse proxied address causes problems, but connecting directly to the laptop via IP address and port runs fine.

        I tried a Jellyfin server with a pi 2 or 3 and it couldn’t serve more than one client at a time. So i imagine a zero wouldn’t even be able to load the app, much less serve anything :/

        My main reason for running my DNS/ad block/nginx through the zero, sometimes the laptop goes down, freezes, or fails to clear the transcodes folder, so having that stuff separate keeps at least part of the network running.

        • @macattack@lemmy.world
          link
          fedilink
          English
          127 days ago

          Are you using DNS Rewrites for jellyfin? I am using that (via AdGuard Home) w/ my Reverse Proxy (Zoraxy) and most of the apps work outside of jellyfin. Wondering if I need to configure the domain in the compose/env file 🤔

    • Lka1988
      link
      fedilink
      English
      3
      edit-2
      1 month ago

      The VM eats through the battery, that’s the only hangup I have with this. Otherwise that’s a fantastic idea.

      • @shyguyblue@lemmy.world
        link
        fedilink
        English
        11 month ago

        If I trusted the battery tech more, I would use an old phone. But I’ve had one of those white plastic Mac books hooked up to power so long, the battery swelled out of its enclosure :/

        Maybe there’s a way to disconnect the battery, or an app that switches off charging, so it drains enough to keep that from happening

        • Lka1988
          link
          fedilink
          English
          2
          edit-2
          1 month ago

          There are root apps that can limit battery charge level. If you have an older phone that’s rootable, I would look into that.

  • @knF@lemmy.world
    link
    fedilink
    English
    5
    edit-2
    1 month ago

    Impressive! Can you please link the instructions you followed?

    Some time ago I was hosting the full ARR suite, bitwarden, AdGuard etc, but it was usually a mess with direct installs. With docker it might be worth revisiting it.

    My only advice, buy a usb-ETH dongle, it will make a huge difference in stability

      • @shadowtofu@discuss.tchncs.de
        link
        fedilink
        English
        31 month ago

        I just checked, and I have connectivity while on cellular. Maybe (just wild speculation) your mobile network is IPv6-only? Android (not Linux) should list 192.0.0.4 as an IP address in that case.

        • @shadshack@sh.itjust.works
          link
          fedilink
          English
          21 month ago

          It’s probably that. While on cellular my IP isn’t 192.0.0.4 (but it is in 10. space), but there’s probably some v6 somewhere in the way.

    • @Dust0741@lemmy.worldOP
      link
      fedilink
      English
      7
      edit-2
      1 month ago

      Hmm I was messing with its networking. External vpns break stuff on GrapheneOS. Its internal IP was 192.168.0.2, and my network is different.

      • @shadowtofu@discuss.tchncs.de
        link
        fedilink
        English
        51 month ago

        Yes, Linux is running in a VM, and the network interface is a virtualized veth interface connected to a host bridge. The host android system has IP address 192.168.0.1, and this network interface is called avf_tap_fixed (as seen from termux).

      • @macattack@lemmy.world
        link
        fedilink
        English
        127 days ago

        Any other tips for the VM and/or GrapheneOS compatibility? Ie: did you use a different profile? I run Debian throughout my house as is, but plan on integrating the VM for better integration but was a little hesitant to be an early adopter due to the potential nuances. (lemme know if you have a blog/gist/etc covering it too)

        • @Dust0741@lemmy.worldOP
          link
          fedilink
          English
          227 days ago

          I used the owner profile. Idk much about it tbh, I have yet to do more in depth testing as my phone doesn’t have displayport functionality so I am a little discouraged to be an early adopter too. I couldn’t get SSH setup so typing a lot on the small keyboard wasn’t ideal.

          I’d check Google/GOS docs for more info for now. I’ll bet there’ll be a lot in the coming years as fast as usecases

  • mesa
    link
    fedilink
    English
    151 month ago

    Debian is supposedly coming to android. That would be cool.

  • Domi
    link
    fedilink
    English
    191 month ago

    With the latest release of android it now supports some Linux functionality.

    Wait, it does? Gonna have to check that out.

      • Domi
        link
        fedilink
        English
        41 month ago

        Dope, seems to not have landed yet in LineageOS but the Terminal app is already installed. Just missing the toggle in the developer options.

      • @Appoxo@lemmy.dbzer0.com
        link
        fedilink
        English
        21 month ago

        Is it an app I should be able to just find in my installed apps or do I need to enable it?
        Because as of now (Pixel 7, Android 15) I can only find Termux.

  • @muelltonne@feddit.org
    link
    fedilink
    English
    71 month ago

    What is the current wisdom about having an android device always plugged in? Some people say that it will kill and pillow the battery, but does it really?

    • @Lyra_Lycan@lemmy.blahaj.zone
      link
      fedilink
      English
      4
      edit-2
      1 month ago

      The trick of retrofitting any battery powered device into a wired one is to remove the battery. No matter what, Li-ion batteries cannot sustain permanent power. Expensive adapters and new Androids can regulate power well, as can automations, but the best worry-free option is battery removal.

      Edit: I’ve just remembered Fairphone, they’re bossing the mobile repair ability front and have removable batteries like pre-2012. Could get one of those

    • @Dust0741@lemmy.worldOP
      link
      fedilink
      English
      51 month ago

      I don’t know. I think they are pretty good at managing battery, and have a new setting for maxing it out at 80% charge, but I don’t think I’d put it near anything expensive for years on end.

  • @Selfhoster1728@infosec.pub
    link
    fedilink
    English
    3
    edit-2
    1 month ago

    Just installed arch with chroot on my old rooted phone a week ago.

    Seeing this is great because it means there’s no need for complicated workarounds or even root access! Plus the distro runs natively and not with difficulties like with chroot :D

      • @Selfhoster1728@infosec.pub
        link
        fedilink
        English
        21 month ago

        You’re right actually it’s not native I don’t know what I’m on about 😅 Still it’s much easier to have a baked in terminal app than having to install proot on top of termux, hopefully it will have less of a performance impact than proot as well.

    • @catloaf@lemm.ee
      link
      fedilink
      English
      61 month ago

      Please no. I can’t grep that. (Nor ingest it to splunk for more powerful searching.)

      • @shortrounddev@lemmy.world
        link
        fedilink
        English
        11 month ago

        If its an application I run locally, I rarely grep logs (they’re small enough that I can just ctrl+f). If it’s something running in production with millions of lines of logs, then I agree