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
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
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
SSH into my PC, from there pretty much anything is possible. Neovim works pretty well.
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
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.
I tend to do the opposite.
SSH into my phone.
Glad I'm not the only one, sometimes it's just easier to ssh than walk to wherever I left my phone lol
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:
Termux is awesome! I use it for a bunch of things:
Using termux for SSH as well. Haven't heard about croc before. Are there advantages over copying files with ssh (scp) for example?
croc is best to use the android app instead of croc in termux
You could install YouTube revanced by running one command
curl -sL "https://raw.githubusercontent.com/decipher3114/Revancify/main/install.sh" | bash
Meh already use revanced
also didn't know you could pipe text into lolcat like that
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)
oh that's cool
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
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.
Just as a tip: you can run every Add-on on Firefox nightly. You can add your own add-on collection and select from that. You have to go into dev mode though. Yo do taht by tapping the Firefox logo in the about section like 5-10 times. You have to have a Firefox account though. Or you could use my fairly small add-on list:
Username: 16700479 Name of the list: cookies
chroot into an ARM64 distribution is a must.
Do you mean like when you install kali nethunter in termux? Or are you referring to something else
No thats it. You can also install Fedora, some nice project I forked some while ago.
https://github.com/trytomakeyouprivate/Android-Tipps/blob/main/Termux/Fedora-setup
rsync
hourly chime
pull local weather from weather underground
integrate with tasker and klwp
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.
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.
@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.
Try installing Linux on it. Check out AnLinux. I'm running Debian with KDE on mine.
termux targets an extremely out of date sdk and is therefore quite insecure.
It targets that because those old "insecure" SDKs allows people to use their system as something that isn't a toy. Newer sdk versions refuse to run code that wasn't included in the apk
Im gonna be honest i really don't care about that. There is no sensitive data on my phone except maybe social media logins and i have a recent backup so🤷
Odd choice to use GrapheneOS if you don't care about security. More power to you, though.
Odd choice to use GrapheneOS if you don't care about security
Not really. People's threat models differ, some just want to escape Google's spyware without also requiring your device be a portable iron mountain. Some may also just want the additional control GrapheneOS provides for restricting permissions of apps, or their unique play store handling etc.
GrapheneOS has a ton of positives besides its security IMO.
For me it's just a little saddening that their secure focus conflicts with extending the life of mobile devices. Although really that's something that probably won't change unless we get a truly open source mobile platform, with firmware development out in the open.
Was more a privacy switch than a security switch
I trust you have your own threat model and know what's best for you, but in my opinion privacy necessitates security.
The long term support might make it worth using, even if you don't care about security/privacy
@SomeBoyo What "long term support"? Official GrapheneOS releases for a device end when the official Android support ends because they don't support hardware where the firmware is not updated anymore. Or did that change recently?
I'm referring to "... and a minimum 5 year guarantee from launch for full security updates and other improvements", from their FAQ.
@SomeBoyo Yeah that's the normal devices guarantee you also get with normal android on pixel devices. So in terms of longevity GrapheneOS doesn't offer any advantages. There are other advantages of course.
that's fair I suppose, I wasn't saying not to use it, just that it is worth noting. these strict security policies are what makes mobile platforms much more secure than desktop platforms. I typically use my phone for security sensitive tasks because of this, so I tend to care a lot more about this stuff. if you have any banking info or password managers stored on the device, be careful.
I'll admit, it is pretty unlikely anything to happen, though. always just better knowing.
Do newer SDK work on obsolete devices running Android 9/10?
@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.
Run nodejs off it
Can u wget in a site using termux? Do I need Root on my device?
Yes, wget is available, along with pretty much everything else you'd expect from a linux environment.
No, root isn't required.
Termux does not need root but it would give you more freedom.
And yes you can wget. Used it to download some files from termux