this post was submitted on 04 Sep 2023
327 points (96.1% liked)

Linux

48400 readers
695 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
 
top 50 comments
sorted by: hot top controversial new old
[–] zolax 44 points 1 year ago (3 children)

you could use Termux::API to get stats (battery percentage, notifications, calls, some other stuff) of your phone from your PC.

this video gives good examples

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

Here is an alternative Piped link(s): https://piped.video/watch?v=nltk2GuvEBY

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

load more comments (9 replies)
load more comments (2 replies)
[–] [email protected] 39 points 1 year ago (3 children)

SSH into my PC, from there pretty much anything is possible. Neovim works pretty well.

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

I personally use JuiceSSH for quick server management.

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

Oh you just gave me an idea. I have the old pc of my grandma wich i wanted to turn into a personal server for various use cases. With ssh i could control it from my phone

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

Self-hosting is really fun, but you could become obsessed and spend all your time on it!

Seriously though, check out these resources:

I personally self-host Plex, Navidrome, Audiobookshelf, Sonarr/Radarr/Prowlarr, qBittorrent and more.

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

I tend to do the opposite.
SSH into my phone.

load more comments (2 replies)
[–] [email protected] 36 points 1 year ago

Cowsay is a vital program. I've never understood why it isn't installed by default in every distro.

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

Compile llama.cpp, download a small GGML LLM model and you will have a quite intelligent assiatant running into your phone.

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

Would that actually be decent? Even 6b models feel way too rudimentary after experiencing 33+b models and/or chatgpt. I haven't tried those really scaled down and optimized models, though!

load more comments (2 replies)
load more comments (6 replies)
[–] [email protected] 22 points 1 year ago (7 children)

Termux is awesome! I use it for a bunch of things:

  • sshing into servers and my home when I'm out and about
  • using croc to transfer files
  • making videos I'm going to send people smaller with ffmpeg
  • downloading stuff with yt-dlp
  • giving myself access to the sandbox + /sdcard from other computers by running an ssh server
  • scripting phone stuff (like taking photos) with the api
  • running weechat locally, which I can then connect to with weechat android
  • using vim
  • probably a bunch of other things I'm forgetting
load more comments (7 replies)
[–] [email protected] 20 points 1 year ago

I basically use it to ssh to my server.

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

You could install YouTube revanced by running one command

curl -sL "https://raw.githubusercontent.com/decipher3114/Revancify/main/install.sh" | bash

load more comments (1 replies)
[–] [email protected] 16 points 1 year ago* (last edited 1 year ago) (2 children)

Termux yeah. I use it everyday. So here is a (long) list

  • Use ffmpeg to convert videos or even edit it(with current 6.x version, mediacoded hwaccel is availiable)

  • yt-dlp

  • Use vim and emacs, maybe code something

  • Integrate it with other plugin apps like Termux:API(lots of system apis), Termux:Boot, Termux:Float(floating terminal), Termux:Widget, even Termux:X11 For running gui apps

  • You can run gui apps with other X servers like XSDL

  • Compile and run programs that is not availiable for arm(Worst thing, but i still does it. Much hassle and error prone, but fine for smaller programs)

  • Use ssh to connect to other devices

  • Install x11-repo and thus install xfce and firefox desktop(for fun)

  • Install proot-distro and use distros like debian, arch, ubuntu, manjaro, void, fedora, etc. which is cli only by default but you can install any DE.(You can combine display server from XSDL)

  • Use git, clone a repo, make changes, use it or push commit, whatever you do with git

  • Use your normal standard linux commands to browse thru your filesystem and make changes

  • neofetch, cpufetch, rxfetch, htop, gotop, cmatrix and hollywood for lolz

  • tmux, byobu or gnu screen

  • Tar, gzip and all coreutils

  • cryptomining(DON'T do that)

  • Test your webpage locally (php -S localhost:port)

Ahem I wasted a lot of time making this list i think i have to go now lol

load more comments (2 replies)
[–] [email protected] 16 points 1 year ago (5 children)

I am thinking about setting up a local HTTP web server with something and HTTP proxy to share my VPN connection easily. But to be honest I am also kinda lazy. Ok, alot.
Maybe NGINX for web server and Privoxy for the proxy server. Or tinyproxy. I don't know to be honest. When I'll have too much extra time at school I can look into that.

Anyway, there's also ffmpeg. Pretty useful.
And since you can run GUI in it, noaa-apt for decoding APT imagery from the last NOAA satellites still broadcasting APT at 137MHz. (NOAA-15, 18 and 19. NOAA-15 currently has broken AVHRR scan motor, but it's not the first time.)

Lame screenshot from Termux desktop:

load more comments (5 replies)
[–] [email protected] 13 points 1 year ago* (last edited 1 year ago) (2 children)

Definitely try running a full Linux distro with it, it's pretty fun and a self-rewarding task, even if you don't end up actually doing anything with it. But you may still find it useful in some ways, for instance, you could run a full fledged desktop Firefox with support for ALL addons, use it to inspect and debug web pages etc.

And if you feel like it you could take it a step further and install Zink and Box86 to play Windows games.

[–] zolax 13 points 1 year ago (1 children)

also didn't know you could pipe text into lolcat like that

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

If you mean the ascii text that is just figlet piped into lolcat

figlet GrapheneOS | lolcat

And the other is just cowsay piped into lolcat

cowsay i did something | lolcat

You can pipe pretty much any terminal output into lolcat (although some things don't really play well with it)

load more comments (1 replies)
[–] [email protected] 11 points 1 year ago (1 children)
load more comments (1 replies)
[–] [email protected] 9 points 1 year ago (1 children)

chroot into an ARM64 distribution is a must.

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

Do you mean like when you install kali nethunter in termux? Or are you referring to something else

load more comments (2 replies)
[–] [email protected] 9 points 1 year ago* (last edited 1 year ago)

I ssh into my desktop and do a watch sensors while I'm gaming, sometimes. Then I can make sure temps are good without taking screen real estate with mangohud or similar.

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

Try to use my apkverify tool.

It may be broken or not work on some APKs, getting it running on Termux is kinda weird, but you could then use a better output of APKSigner to read signatures and verify APKs on first install.

Apksigner on its own was pretty useless for me, thats why it uses a workaround. Apks are zips, so it renames the file, decompresses and reads some file where the signer is actually mentioned with Name and all. Then it deletes it.

Iirc there was some bug with Termux and the unpack thing, because Android sucks I guess. On Linux it works fine.

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

rsync

hourly chime

pull local weather from weather underground

integrate with tasker and klwp

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

I'll just add that https://www.weather.gov/ is better to use since it's completely ad free and where almost all of the other weather websites pull their data from anyway (if you're in the US, that is).

load more comments (1 replies)
[–] [email protected] 7 points 1 year ago (4 children)

@SaltyIceteaMaker I installed miniflux, a rss reader, on it. Sadly android constantly kills the internet connecting when the screen turns off, so I can't use it as a server to access it from my other devices. I have tried everything I could find to prevent that from happening.

load more comments (4 replies)
[–] [email protected] 7 points 1 year ago

Try installing Linux on it. Check out AnLinux. I'm running Debian with KDE on mine.

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

host a Minecraft server for your friends

load more comments (1 replies)
[–] [email protected] 6 points 1 year ago

neovim, works amazingly well

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

@SaltyIceteaMaker I think you can use bash scripts and combine that with termux-widget addon to do some amazing stuff. I wrote a script around ytfzf to search and download YouTube videos using termux-dialog addon.

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

Run nodejs off it

load more comments
view more: next ›