this post was submitted on 22 Jun 2023
40 points (97.6% liked)

Linux

47231 readers
786 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
40
Linux on Android (feddit.de)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

I'm currently messing around with Termux and trying to install Linux through AnLinux, Andronix and UserLAnd just for fun.

I have mixed success in AnLinux. I successfully installed and started Lubuntu but it was running pretty slowly. I wasn't able to replicate the install a while later. Also I totally failed to get ArchLinux running.

Now I'm trying Andronix. Wish me luck!

Do you have any experience running a Linux on your mobile?

top 34 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 1 year ago

I used to have various Linux setups on my Android phones. I experimented with different chroot setups and applications, settled on just generating my own chroot using debootstrap and mounting it with a script in the Terminal app. XServer XSDL for GUI. It worked, but it wasn't amazing.

These days I switched to proper Linux phone. Typing this on my PinePhonePro keyboard using postmarketOS. If you really want the best pocketable Linux experience you can get, this is by far the best. Might not be the best if you depend on Android apps, but my Android use case was mostly just browser and a few unimportant apps that have Linux alternatives.

[–] [email protected] 7 points 1 year ago (2 children)

I running GNU/Linux on my Phone natively. And I use Waydroid layer to run Android apps. So I kinda doing the opposite 😄

[–] [email protected] 6 points 1 year ago (2 children)

On which phone? How's the camera? What about banking apps ?

[–] [email protected] 2 points 1 year ago (1 children)

I have the same question about banking 2fa question too. It’s my main concern with Linux phones atm

[–] [email protected] 1 points 1 year ago

Banking apps work through Waydroid for me.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

It's PinePhone Pro. Camera works badly, but at the time of purchase, it did not work, so we are slowly getting there. Banking apps work through Waydroid.

It's not practical to use GNU/Linux on the phone, but fun 🙂

[–] [email protected] 2 points 1 year ago (1 children)

I always wandered what the battery life would be like on these devices

[–] [email protected] 1 points 1 year ago

The battery life is awful. But I bought the official clamshell keyboard for it that replaces the back cover and expands the battery capacity. With this accessory the battery life is good.

[–] [email protected] 4 points 1 year ago (1 children)

Termux by itself can be a good linux shell standin if you're used to working from a command line. I like using it for vim or emacs-nox more than I like any android text editor apps that I've tried. Plus, Midnight Commander is a top notch file manager.

[–] [email protected] 2 points 1 year ago (2 children)
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Neat! That could be very useful for everything that works well within the limitations of vnc.

Edit: I've tried this out! I loosely followed the guide on a Kindle Fire and I'm much more impressed with the results than I thought I would be. No Libreoffice in the default repository, but I'm impressed with the responsiveness while running Abiword in XFCE4. Initial impression is that the app selection is hit or miss relative to running full-bore linux on a desktop computer, but I'm still experimenting. Firefox installs and I was surprised to see that youtube videos were playable to an extent. Much less laggy than trying to run vnc between two separate devices. I'll probably keep this setup if for no other reason than to have a desktop version of firefox on my tablet.

[–] [email protected] 1 points 1 year ago (2 children)

You can also install a distro using proot-distro and connect to it with vnc. https://wiki.termux.com/wiki/PRoot

I'm trying Debian right now and it seems to work fine.

Cc @[email protected]

[–] [email protected] 1 points 1 year ago (1 children)

Getting the proot distro to output an x11 display to the vnc server seems to be a bit more challenging that I was hoping. If I can find a guide that helps me figure this out, I'll post a link here.

[–] [email protected] 1 points 1 year ago

I have Debian working. When I just installed xfce4 it didn't work. Some error about not contacting settings server. But I tried installing xfce4 with tasksel (also selected graphic environment) and then had no problem at all. I've not tried wit other desktops. Also tried with Ubuntu and it worked just installing xfce4 without using tasksel.

I changed the version to Debian Sid and I've had no problems yet. I'll update if things change.

[–] [email protected] 1 points 1 year ago

Imteresting. I'll give arch a try when I get a chance for a second data point.

[–] [email protected] 0 points 1 year ago (1 children)

@d4f0
@bismuthbob
Thank you for giving me more reasons to play with termux

[–] [email protected] 1 points 1 year ago

Just be sure to install it from the F-Droid store. My understanding is that the google play version is no longer updated.

[–] [email protected] 2 points 1 year ago

I used to do it on my tablet for a while trying to mess with building on Linux ARM, but it was never more than just playing around.

[–] [email protected] 2 points 1 year ago (1 children)

Do you have something to link about? I want to know more

[–] [email protected] 2 points 1 year ago

Just click on the app names in my post.

[–] [email protected] 2 points 1 year ago

Androinix is the most stable one, until you try to update anything or do anything related to permissions

[–] [email protected] 2 points 1 year ago (1 children)

it's lovely when things work... now F-Droid is not working on my version of Android. I 'm using android 13 😭

[–] [email protected] 7 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

thanks! at least Termux is working! I'm having fun with it

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I'm still running Xubuntu through LinuxDeploy. Have been doing that for years, and didn't want to change the app, so I hacked it a little to work fine with newer Ubuntu versions. It's going really good.

LinuxDeploy requires root and hasn't been updated in half a decade, but it's super stable and does everything I want. GUI runs through VNC, shell through Terminal Emulator. It's nice.

[–] [email protected] 1 points 1 year ago

I have Ubuntu running on andronix on my infinix note 12 g96. Ot runs really well. I use it for Libre office and vscode to do homework. There a few things that don't work tho. The patched version of vscode that andronix offers is ancient, a lot of extensions don't work. Your also limited to apps that are compatible with arm, I haven't been able to get box64 working, might try qemu for that some day

[–] [email protected] 0 points 1 year ago

Technically Android is already Linux. Linux is the kernel only. (queue stallman gnu meme here)

But I never had a great experience with termux. :(

[–] [email protected] 0 points 1 year ago (3 children)

Android uses Linux.

Before downvoting me consider that it’s factually true.

[–] [email protected] 3 points 1 year ago (1 children)

Yes, it uses the Linux kernel, but usually when people are talking about running Linux on their mobile they're talking about running GNU/Linux, which is way more free (as in freedom) than any android garbage is. For example it is impossible for me to run arbitrary POSIX compliant shell scripts on an android phone.

[–] [email protected] 2 points 1 year ago

Something something interject, something something modified GNU, something something Linux kernel

[–] [email protected] 3 points 1 year ago

Technically true, yes. Useful for the question being asked? Not so much.

[–] [email protected] 1 points 1 year ago

I'd just like to interject for a moment. What you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!