• vvv@programming.dev
    link
    fedilink
    English
    arrow-up
    18
    ·
    8 months ago

    The value proposition of old or used android phones as SBCs is insane! You’ve probably got some in your drawers, or can at worst buy some carrier locked ones for 30$. You get a device with better compute than a raspberry pi, with a screen, cameras, speakers, flashlight and battery attached!

    Personally, I use them to run and monitor my 3d printers.

      • RBG@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        Yeah, if they are old enough those might be removable? Then again, from that time period they might be slower than RPis…

    • Handles@leminal.space
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Do you have good resources, advice or experiences to share for somebody wanting to set their old Androids to work?

      • vvv@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        I don’t have a particular guide at the tip of my fingers, but I can share some recommendations based on my experience:

        • prefer a phone with USB-c if you plan on connecting USB things to it. the otg adapters for micro-b are kinda hit and miss when it comes to keeping the phone connected to power as well.
        • look out for clearances of those carrier locked prepaid phones from physical stores, you can get nice devices for nearly nothing
        • whatever you’re running on the phone, make sure it starts at startup, so you don’t need to go launching everything if you reboot for some reason
        • if the phone is"mission critical" e.g. random restart while in the middle of a print is unacceptable, turn off all the automatic updates and such.
        • a VNC server has been helpful, to remotely poke at the phone if I’m too lazy to go do it physically
        • get something that’ll keep the screen off the phone on. I’ve encountered reduced performance regardless of what battery optimizations I’ve turned off without doing that but YMMV depending on ROM.

        I fully expect the screen thing and the batteries bring in there constantly charging to kill the phones I’m using eventually, but it’s something I expect and accept. my octoprint phones have been fine so far, for a bit over a year 🤷‍♂️

  • nutbutter@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    17
    ·
    8 months ago

    I’ve tried hosting an nginx server. It is fun, but I wouldn’t rely on it for production use cases.

    I’ve also seen some people run docker on their android devices.

  • owatnext@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    8 months ago

    I’ve worry about the battery, being plugged in for ages, without some sort of additional BMS like AccA.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    8 months ago

    Looks like their website is hosted on a low-powered Android as well… at least it doesn’t load at all here. Edit: now it worked

    That said: I tried it before and while it does work it ended up being too limited and annoying. I am planning to try again with a device that has basic PostmarketOS support though. Not enough to be usable as a phone, but as a server it might work if I can get the network over USB work reliably.

  • maiskanzler@feddit.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    8 months ago

    If only modern kernels weren’t a problem. I wish you could just install new OSs like on PC.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    8 months 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
    IP Internet Protocol
    NAS Network-Attached Storage
    RPi Raspberry Pi brand of SBC
    SBC Single-Board Computer
    VNC Virtual Network Computing for remote desktop access
    nginx Popular HTTP server

    6 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

    [Thread #619 for this sub, first seen 21st Mar 2024, 23:55] [FAQ] [Full list] [Contact] [Source code]

  • Paragone@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    8 months ago

    I am trying to lear basic HTML/CSS/JavaScript ( again, last learned HTML back in the 1990’s, am using “JavaScript: The Good Parts” & other books ),

    & have discovered that you can have, on the same phone/tablet, Termux/Nginx running,

    you have to feed /data/data/com.termux/files/usr/etc/nginx/nginx.conf the root-dir you want it to use

    ( which is actually in a proot-distro install, down below

    /data/data/llcom.termux/files/usr/var/lib/proot-distro/installed-rootfs/ … )

    … and then you can have your browser hit

    http://localhost:8080/

    and it’ll grab index.html.


    Notice that that is http, NOT httpS.

    None of the browsers I’ve tried can get the default connection to localhost, because they all default to https, & nginx isn’t serving https.

    That wasted an entire fscking day, to discover.


    Now learning can begin!