Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml )  to Linux@lemmy.ml · 2 年前

any cool ideas what i could do with termux?

lemmy.ml

message-square
65
link
fedilink
231

any cool ideas what i could do with termux?

lemmy.ml

 ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml )  to Linux@lemmy.ml · 2 年前
message-square
65
link
fedilink
alert-triangle
You must log in or # to comment.
  •  zolax   ( @zolax@programming.dev ) 
    link
    fedilink
    arrow-up
    38
    ·
    2 年前

    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

    •  L'unico Dee   ( @lunicoDee@feddit.it ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Bugswriter is a chad, ha also built a script called tuxi that was really cool, but sadly now it’s deprecated

  •  lckdscl [they/them]   ( @lckdscl@whiskers.bim.boats ) 
    link
    fedilink
    English
    arrow-up
    29
    ·
    2 年前

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

    •  ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      13
      ·
      2 年前

      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

      •  JuvenoiaAgent   ( @JuvenoiaAgent@lemmy.ca ) 
        link
        fedilink
        arrow-up
        13
        ·
        2 年前

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

        Seriously though, check out these resources:

        • https://awesome-selfhosted.net/
        • !selfhosted@lemmy.world
        • https://reddit.com/r/selfhosted (Reddit, but still very active)

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

    •  u/lukmly013 💾 (lemmy.sdf.org)   ( @user224@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 年前

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

      •  CaptKoala   ( @CaptKoala@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 年前

        Glad I’m not the only one, sometimes it’s just easier to ssh than walk to wherever I left my phone lol

      •  L'unico Dee   ( @lunicoDee@feddit.it ) 
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        Back and forth

  •  Kevin   ( @kmacmartin@lemmy.ca ) 
    link
    fedilink
    arrow-up
    15
    ·
    2 年前

    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
    •  noddy   ( @noddy@beehaw.org ) 
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      Using termux for SSH as well. Haven’t heard about croc before. Are there advantages over copying files with ssh (scp) for example?

      •  Kevin   ( @kmacmartin@lemmy.ca ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        The main advantages for me are:

        1. You don’t need to swap ssh keys, which makes it great for setting up new systems I haven’t connected to everything else yet (or don’t plan to)
        2. It’s cross platform
        3. The devices don’t need to be on the same network (it NAT busts too)
    •  jason123santa   ( @jason123santa@lemmy.jasonsanta.xyz ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      croc is best to use the android app instead of croc in termux

      •  hottari   ( @hottari@lemmy.ml ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        Why install another app when croc is available from termux?

        •  Kevin   ( @kmacmartin@lemmy.ca ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          That’s pretty much where I’m at too, and I find it easier to get to the file(s) I want to send through the cli. No judgement to anyone who prefers the gui though!

  •  u/lukmly013 💾 (lemmy.sdf.org)   ( @user224@lemmy.sdf.org ) 
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 年前

    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:

  •  penquin   ( @penquin@lemm.ee ) 
    link
    fedilink
    arrow-up
    13
    ·
    2 年前

    You could install YouTube revanced by running one command

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

    •  ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Meh already use revanced

  •  mexicancartel   ( @mexicancartel@lemmy.dbzer0.com ) 
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 年前

    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

    •  ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      I actually am currently trying to ssh into my main pc and hopefully in the future into my server i started to setup today but i am struggling with the use of keys. Got any good tutorials you can recommend?

      •  mexicancartel   ( @mexicancartel@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 年前

        I found this from a search.

        I don’t usually use manual keys but uses password to connect to ssh servers. Like ssh -p port user@ip and it promts to trust it then you have to enter your password. I have barely set up ssh servers but have connected ssh servers many times

  •  zolax   ( @zolax@programming.dev ) 
    link
    fedilink
    arrow-up
    12
    ·
    2 年前

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

    •  ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      2 年前

      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)

      •  zolax   ( @zolax@programming.dev ) 
        link
        fedilink
        arrow-up
        4
        ·
        2 年前

        oh that’s cool

  •  d3Xt3r   ( @d3Xt3r@lemmy.nz ) M
    link
    fedilink
    arrow-up
    10
    ·
    2 年前

    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.

    •  mineapple   ( @mineapple@feddit.de ) 
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      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

    •  Pantherina   ( @Pantherina@feddit.de ) 
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      Fedora setup script

  •  NoName   ( @NoName@lemdro.id ) 
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    2 年前

    deleted by creator

    •  MarcDW   ( @marcdw@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Been awhile since I did that but it was really cool. An Xfce desktop from the phone onto my TV. Time to revisit that and play around some.

  •  SSUPII   ( @SSUPII@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    9
    ·
    2 年前

    chroot into an ARM64 distribution is a must.

    •  ☭SaltyIcetea☭   ( @SaltyIceteaMaker@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      7
      ·
      2 年前

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

      •  Pantherina   ( @Pantherina@feddit.de ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        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

        •  SSUPII   ( @SSUPII@sopuli.xyz ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          There is a project for Debian too, but I don’t have root so I did it in proot. Works, but I couldn’t manage to start a VNC server for the life of me due to a complete lack of proper permissions and the lack of an init system.

  •  MalReynolds   ( @MalReynolds@slrpnk.net ) 
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 年前

    rsync

    hourly chime

    pull local weather from weather underground

    integrate with tasker and klwp

  •  Mnmalst   ( @Mnmalst@kbin.social ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 年前

    @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.

    •  kionite231   ( @kionite231@lemmy.ca ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      If you just turn off the battery optimization for Termux It won’t happen.

      •  Mnmalst   ( @Mnmalst@kbin.social ) 
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        @kionite231 Was the first thing I tried. Termux even has a “wake lock” function but that also doesn’t seem to prevent it.

    •  poweruser   ( @poweruser@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Maybe an app like FakeStandby would work.

      If your device has an AMOLED screen it should be basically the same as having the screen turned off. You could just disable the screen timeout and use FakeStandby to turn off all the pixels without actually “turning off” the screen

      •  Mnmalst   ( @Mnmalst@kbin.social ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        @poweruser Sadly it doesn’t have an AMOLED screen (cheap samsung tablet) but as a last resort it might be worth a shot. Thanks

  •  Pantherina   ( @Pantherina@feddit.de ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 年前

    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.

  •  circuitfarmer   ( @circuitfarmer@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 年前

    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.

  •  RHOPKINS13   ( @RHOPKINS13@kbin.social ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 年前

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

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 98 users / day
  • 1K users / week
  • 2.41K users / month
  • 7.34K users / 6 months
  • 1.3K local subscribers
  • 60.3K subscribers
  • 7.3K Posts
  • 96.9K Comments
  • Modlog
  • mods:
  •  AgreeableLandscape   ( @AgreeableLandscape@lemmy.ml ) 
  •  nooter692   ( @nooter692@lemmy.ml ) 
  •  MarcellusDrum   ( @MarcellusDrum@lemmy.ml ) 
  •  Arthur Besse   ( @cypherpunks@lemmy.ml ) 
  •  Cyclohexane   ( @cyclohexane@lemmy.ml ) 
  •  d3Xt3r   ( @d3Xt3r@lemmy.nz ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code