83
Termux is awesome (yiffit.net)
submitted 7 months ago* (last edited 7 months ago) by Xirup@yiffit.net to c/android@lemmy.world

With the Termux + PyPi repositories you can do basically the same as you would do in a normal Linux terminal and it's great.

I'm not a fan of having many apps on my phone and with Termux I can have yt-dlp, ffmpeg and even magick to do almost anything I want, it's just great and I don't know how Termux is not more popular, I hope more people will find sense in it and use it too if they see a use for it.

all 32 comments
sorted by: hot top controversial new old
[-] Rikj000@discuss.tchncs.de 16 points 7 months ago

I love Termux too,
but honestly I have little use-cases for it.

Back when I ran a server,
it was nice to be able to SSH into it through Termux from time to time to do some maintenance on the go.

Nowadays I still use Termux to ping/telnet devices sometimes, to see if they're reachable, also on the go.

But other then that,
I don't know what I'd use it for.

Since imo, most CLI stuff is way easier behind a laptop/desktop, due to having a larger screen available to you, for easier:

  • Copy/pasting/dialing in long commands
  • Reading of long/large command outputs
[-] Xirup@yiffit.net 7 points 7 months ago

I think the same, I doubt that Termux will ever replace the comfort of a terminal on a laptop or desktop PC, but for certain occasions it is very useful, like avoiding downloading full apps when I can install only one package that does the same thing, in the case of yt-dlp.

[-] mp3@lemmy.ca 4 points 7 months ago

I use it to download stuff using yt-dlp on the go with predefined output settings. I'll share my setup soon, it generates a notification with the file preview when downloading, and update the notification when the download is completed.

[-] ggnoredo@lemm.ee 1 points 7 months ago
[-] user224@lemmy.sdf.org 3 points 7 months ago

I use Vim in Termux, btw.

[-] bin_bash@lemmy.world 13 points 7 months ago

Not everyone is comfortable with terminal commands either on the phone or on the computer.

They don't know what they are missing, but this answers your question.

[-] Engywuck@lemm.ee 7 points 7 months ago

What bothers me a lot about termux is that it has hardcoded Google's DNS (try 'dig').

[-] Audalin@lemmy.world 4 points 7 months ago

Does it? I set its $PREFIX/etc/resolv.conf to Cloudflare and dig uses it fine.

[-] Engywuck@lemm.ee 3 points 7 months ago* (last edited 7 months ago)

Yup, it does. Not really a problem on my end, as I redirect port 53 in LAN and use DoH outside, but I still find it an odd choice not to rely on system DNS.

EDIT: https://github.com/termux/termux-app/issues/2020

[-] shotgun_crab@lemmy.world 4 points 7 months ago* (last edited 7 months ago)

It's fun using an old phone as a little server

[-] solrize@lemmy.world 4 points 7 months ago

I have been wondering if it's feasible to run a local https under termux and access it with the phone browser as a low rent alternative to writing an android app with a simple GUI. Does anyone do that?

[-] clearleaf@lemmy.world 3 points 7 months ago

I've run http servers from my phone to copy files from it. For fun I made CSS for the file list and added an "upload file" button. I never got the php max upload size setting to take effect though. And I never bothered with that cert crap. But you CAN run web servers. I found the php web server worked best.

[-] drawerair@lemmy.world 4 points 7 months ago* (last edited 7 months ago)

When I wanted to install Revanced extended on my Samsung a70, there were the easy way (which didn't involve Termux) and the kinda hard way (which involved Termux). I'm not an Android expert but I thought I would be able to follow a well-written process. So I chose the kinda hard way. It went well. I appreciated Termux.

[-] null@slrpnk.net 3 points 7 months ago

Termux is definitely very popular.

[-] solrize@lemmy.world 3 points 7 months ago

Main hassle for me is the special on screen keyboard plus the limited screen space. I may try a Bluetooth keyboard sometime. Also I'm a bit reluctant to have my servers' ssh credentials on my phone, but I have some thoughts about securing them.

[-] mp3@lemmy.ca 2 points 7 months ago

I exclusively use keyfile auth, so I'm not too worried about having that on my phone to access my home server.

[-] solrize@lemmy.world 1 points 7 months ago

I am hesitant to have the key file on my phone without a separate 2fa device.

[-] user224@lemmy.sdf.org 1 points 7 months ago

Why set up termux on your phone when you can just set up ssh server, and then ssh into your phone to set up the rest.

[-] solrize@lemmy.world 1 points 7 months ago

That might be worth thinking about. I'd have to configure my mom's firewall to allow it but that might be ok. It's some stupid Comcast router so I'll have to investigate. Thanks.

[-] Xirup@yiffit.net 1 points 7 months ago

What do you mean by special on screen keyboard? I usually just zoom out the screen (making a pinching gesture with the fingers) and that works for me.

[-] solrize@lemmy.world 1 points 7 months ago

It doesn't use the regular android keyboard, it has its own that is harder to operate.

[-] mp3@lemmy.ca 3 points 7 months ago

Mine uses the normal Android keyboard with an extra row of modifier keys (ie: Esc, Ctrl, etc) added by Termux above it that you often need in CLI.

[-] solrize@lemmy.world 2 points 7 months ago

Mine shows the standard keyboard bitmap, but swipe typing and predictive text don't work. I have to tap each character. It's tolerable for some things I guess. I should use it more.

[-] caseyweederman@lemmy.ca 2 points 7 months ago
[-] j4k3@lemmy.world 1 points 7 months ago
[-] Xirup@yiffit.net 4 points 7 months ago

Just install Python with pkg and then

python3 -m pip install --upgrade yt-dlp

[-] JackGreenEarth@lemm.ee 1 points 7 months ago

Have you got any LLMs working with it? That's my main outstanding gripe with Android.

[-] Xirup@yiffit.net 2 points 7 months ago

No but I haven't tried either, I guess it's not possible?

[-] user224@lemmy.sdf.org 1 points 7 months ago

Unfortunately, for some reason GNS3 doesn't work even though it's a Python pacakge. I can't open the server configuration due to some error.

But usually things do work.

this post was submitted on 18 Mar 2024
83 points (94.6% liked)

Android

27825 readers
299 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 1 year ago
MODERATORS