• atmorous@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      Updated my post I put wrong thing. Does it apply to LineageOS as well?

      But thanks for that too. That will help with other devices that run regular Android

      • testman@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        LineageOS 22.2 (on FP4) does not seem to have that option yet.
        At least, it is not listed in the developer options.
        You can find it if you tap on the search button within developer options (or just general settings, as that also includes results from developer options) and type “terminal” or “linux”.
        The (Experimental) Run Linux terminal on Android result shows up.
        But after you tap on that, you see that toggle is greyed out. Can’t be enabled.

        I am interested in getting that to work, so any help is appreciated.
        There is hopefully some ADB command or something that forcefully enables Linux environment.

        • dafta@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 day ago

          I updated to LineageOS 22.2 yesterday. It has the option, I enabled it and it works. I’m on a Pixel 8, tho. Might have something to do with it.

  • wiener234@feddit.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    First off all, it’s a legitimate way. He just goes through the install instructions from here (https://github.com/termux/termux-x11).

    The one thing I would do differently is choosing the right package for your architecture or going with the universal package instead of the arm64 package as he proposes.

    Lastly I want to add that that depending on what you want to do a graphical session is sometimes not necessary. Example: For tools like mov-cli for watching movie in the terminal, termux alone is enough, because they integrate with the android mpv app and don’t need a xorg session to display graphics.

      • testman@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        It does work, I have been using it for a long time now in context of my interest of using a phone as a PC.
        https://xdaforums.com/t/phone-as-a-pc.4633441/

        Thing is that with just termux, you get just the android/termux environment.
        There is a way to get more familiar Linux environments running on your phone by using proot from within termux.
        https://wiki.termux.com/wiki/PRoot
        For example, using that you can install ARM version of Manjaro, which is basically the same thing that you would run on Raspberry Pi.
        But everything in there runs a bit slower, because Proot is some layer that takes up a bit of performance.
        Benefit of that is that you can run some Linux software that is not found within Termux packages, but is available in the repositories of other distros. Libreoffice is one such example.

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    edit-2
    1 day ago

    Depends what you mean by “Linux” here.

    It’s probably not the kernel itself, so do you mean

    • a terminal e.g. a working shell where you can run commands e.g. ls | wc -l ?
    • headless containers, e.g. services like Immich accessed elsewhere?
    • a window manager e.g. KDE or Gnome?
    • a software with a visual interface, or GUI, e.g. GCompris?

    Based on that then one can answer if Termux is sufficient (or “legitimate”) or if something else is needed.

    PS: You can read some of my notes on termux on different Android devices at https://fabien.benetou.fr/Tools/Android