https://news.itsfoss.com/google-android-linux-terminal-rollout/
Within developer options natively now
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
https://news.itsfoss.com/google-android-linux-terminal-rollout/
Within developer options natively now
Was broken last I checked - as in, would regularly just crash.
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!!!
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.
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.
No problem. Only Pixel devices currently have this option. No idea about custom ROMs but wish you well on your research
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.
That makes sense much appreciated!! Do you think it would work for LineageOS too?
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.
Depends what you mean by "Linux" here.
It's probably not the kernel itself, so do you mean
ls | wc -l
?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