this post was submitted on 25 Aug 2023
150 points (87.9% liked)

Asklemmy

42502 readers
1309 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

Don't say, hey android has Linux in it, yeah no, idc, I want to know how far we are from buying a Linux phone at a price point of 200 USD.

A Linux phone is one which is built completely on Linux, uses Linux apps and most important has a terminal.

I don't want a Linux Phone for privacy, although that's a great reason, but I want it for the freedom it provides me. Hell, I don't care if Android itself comes with a terminal and has similar features to Linux, I just want a Terminal which can install apps, where I can write commands and it will execute it. Complete Control on my phone and how it behaves is what I want.

I want to tell it when to sleep, when not to sleep, when to boot, when to edit a file and how, when to take a screenshot and what to do with it and where to save it, etc, etc. I hope you get the idea.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 50 points 10 months ago (15 children)

Yes. You have your pine phone. It's more expensive than you'd like. But if if and only if enough people adopt it. Prices will come down with time

Since you don't want anybody to tell you that Android is Linux, and you can do everything you want to do on Android with a custom ROM. I won't mention it

[–] [email protected] 8 points 10 months ago (14 children)

Android with a custom ROM. I won’t mention it

do you know of any projects which has good support (and reputation) which has something like a terminal in it? I mean, I just want a terminal.

Also, I will be happy to spend 500USD on a Linux phone just to support it, but I wanted to know how far they are. Thank you for your comment.

[–] [email protected] 30 points 10 months ago (2 children)

If you just want a terminal you can install termux from github right now. No need for a custom ROM. It will be fairly locked down but you can use almost all programs that there are for linux. I use yt-dlp in Termux to download youtube videos

[–] [email protected] 12 points 10 months ago (6 children)

I like you lol. btw, can I do stuff like control volume using Texmux? Like idk, switch on or off my wifi and turn off airplane mode and stuff

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

I'd guess not, at least without root, as Texmux is still an app and Android won't allow apps that much control over the phone.

[–] [email protected] 5 points 10 months ago (1 children)

I think this lack of real control via the terminal vs 'real' Linux is a key point.

[–] [email protected] 1 points 10 months ago

Root access is pretty easy to get. People don't reccomend it much anymore but I've had zero issues on a Pixel 7 aside that I can't use the phone's tap and pay feature. Bus passes and plane tickets still work.

[–] [email protected] 4 points 10 months ago

Termux API from FDroid?

[–] [email protected] 2 points 10 months ago

Pretty easily if you go a different route.

  • Download something like the Terminal Emulator app. This gives you access to the CLI on any Android phone. Now you can already control some things over CLI, basically anything you can control without root.
  • If you want more, root your phone. Now you can controll all of the things you mentioned from CLI
  • Install a full Linux in a chroot (you can use LinuxDeploy for that, which is outdated, but that only means you need to update the Linux environment like a regular Linux). Inside of that, you can mount your Android system. Now you have a full Linux that can do all usual Linux things, and also control your phone. This Linux can be either accessed via shell (through Terminal Emulator app) or via VNC to view it's GUI.

Now you have a full Linux inside Android that you can use as a full Linux, and that can control your phone from CLI.

If you are crazy enough, you might even get stuff like calling to work from inside Linux, but what's the point? You still got a full Android to do Android things with it.

Linux in a chroot is so much real Linux, that I managed to get FEX (x86/x64 emulator) to work inside it, and Wine on top of FEX, so now I can even run Windows x86/x64 programs on my phone.

[–] [email protected] 2 points 10 months ago

You can control volume using termux with termux-volume command nand wifi with termux-wifi* commands. Not sure about airplane mode but reboot is possible with adb only

[–] [email protected] 1 points 10 months ago

You need to use root or pass through some other access control mechanism to control network interfaces or audio devices on Linux too, Android's access control mechanism for those things just isn't built with shell scripting in mind because using a terminal on a phone is a pain...

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

You can also install Debian through Termux if you want Ivon Blog

Note: i recommend nano over vim in the tutorial, easier to use haha

[–] [email protected] 6 points 10 months ago

You can also install DE like XFCE into termux to run graphical programs. I use that for noaa-apt decoder.

load more comments (11 replies)
load more comments (11 replies)