https://youtu.be/hKypVQuA7yk

Please and thank you

14 points
permalink
report
reply
1 point
*

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

Thank you!!!

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
4 points
*

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.

permalink
report
parent
reply
2 points

No problem. Only Pixel devices currently have this option. No idea about custom ROMs but wish you well on your research

permalink
report
parent
reply
1 point
*

Was broken last I checked - as in, would regularly just crash.

permalink
report
parent
reply
4 points
*

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.

permalink
report
reply
1 point

That makes sense much appreciated!! Do you think it would work for LineageOS too?

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
2 points

If you got root, running a Linux container under chroot is faster than proot so use that instead.

And if you want a full blown Linux distro then Ubuntu touch or postmarketos it is. Look into libhybris if you want your own distro on your phone

I had plans on testing a dualbooted Linux/Android setup by reflashing the boot partition every time I wanted to switch but haven’t done it yet

permalink
report
reply
1 point

Thank you!! Much appreciated

permalink
report
parent
reply
-1 points
*

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

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.9K

    Monthly active users

  • 7.6K

    Posts

  • 203K

    Comments