this post was submitted on 22 Apr 2025
17 points (87.0% liked)

Linux

53372 readers
643 users here 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.

Rules

Related Communities

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

founded 5 years ago
MODERATORS
 

https://youtu.be/hKypVQuA7yk

Please and thank you

top 10 comments
sorted by: hot top controversial new old
[–] theupsanddownsof@lemmy.world 13 points 9 hours ago (2 children)
[–] lily33@lemm.ee 1 points 6 hours ago* (last edited 6 hours ago)

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

[–] atmorous@lemmy.world 1 points 8 hours ago* (last edited 8 hours ago) (2 children)

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!!!

[–] testman@lemmy.ml 1 points 7 hours ago (1 children)

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 2 points 5 hours ago* (last edited 5 hours 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.

[–] theupsanddownsof@lemmy.world 1 points 8 hours ago

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

[–] wiener234@feddit.org 4 points 9 hours ago* (last edited 9 hours ago) (1 children)

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.

[–] atmorous@lemmy.world 1 points 8 hours ago (1 children)

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

[–] testman@lemmy.ml 2 points 7 hours 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 -1 points 6 hours ago* (last edited 6 hours 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