• mexicancartel@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    1 year ago

    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

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      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@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        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

  • Kevin@lemmy.ca
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    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
    • ouch@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Does croc relay pass only metadata about the client addresses, or is the data itself sent via the relay?

      • Kevin@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        As far as I know the relay just NAT busts, after that it’s encrypted p2p.

    • noddy@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

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

      • Kevin@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        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)
        • Kevin@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          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!

  • zolax@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    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

      • MarcDW@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Oops, sorry. 😬

        TEL

        If one decides to mess with it, some notes. Last release was awhile back. I don’t use Android 12/13 so no idea how well it works there.

        Tel and Tel:API have same package names as Termux and Termux:API. Meaning there should be no trace of Termux on system before trying.

        Not really battery friendly when using the default status info up top.

        Powerful command line environment. Recommend that one is familiar / comfortable with the CLI.

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    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.

  • circuitfarmer@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    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.

    • Illiterate Domine@infosec.pub
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yes, wget is available, along with pretty much everything else you’d expect from a linux environment.

      No, root isn’t required.

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      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

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      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)

  • zwekihoyy@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    termux targets an extremely out of date sdk and is therefore quite insecure.

    • original_ish_name@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      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

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      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🤷

  • WuTang @lemmy.ninja
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    2
    ·
    1 year ago

    can you make a phone call, sms or even photo with GrapheneOS? :)

    terminal comes at the 10th place in my wish list for a linux or freeOfGoogle phone.

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      All of the above. Phone call, sms photo video. Everything. You can also just install corresponding apps from the playstore or any other store. It’s basically stock android but with more granular control over permissions, and with sandboxed google services