• zolax@programming.dev
    link
    fedilink
    arrow-up
    44
    ·
    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

        • somedaysoon@lemmy.world
          link
          fedilink
          English
          arrow-up
          12
          arrow-down
          7
          ·
          edit-2
          1 year ago

          Can we stop with these useless fucking comments to bots? Don’t turn this place into reddit where the same dumb comments are parroted over and over.

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

            oh ok

            I do appreciate the fact that more private Piped links are provided instead of direct YouTube links (my bad btw), although direct ways of saying thank you (messaging developers, sending donations, providing feedback) would be more useful and productive

            thanks for the advice. I’m also not a fan of those type of comments too lol

            • somedaysoon@lemmy.world
              link
              fedilink
              English
              arrow-up
              9
              arrow-down
              1
              ·
              edit-2
              1 year ago

              I apologize for coming off so harsh… I’ve just been seeing these a lot and they really annoy me. Unfortunately you were the person that was at the end of those frustrations. I was out on a ride and was thinking about my message to you and regretted it, I should have been more kind in my messaging.

    • SolidGrue@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I use Termux:Boot, Termux:API, plus root to disable the green dot notification for location access. It’s a little cleaner than going through Tasker since the Secure Settings plugin isn’t maintained anymore.

    • L'unico Dee@feddit.it
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

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

  • ooterness@lemmy.world
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 year ago

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

  • acec@lemmy.world
    link
    fedilink
    arrow-up
    25
    arrow-down
    2
    ·
    1 year ago

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

    • bassomitron@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 year ago

      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!

      • gibson@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        They’re decent for text completion purposes, e.g. generating some corpspeak for an email, or generating some “wikipedia”-like text. You have to know how to write good prompts, don’t try to treat it like ChatGPT.

        For example if i want to know about the history of Puerto Rico I would put:

        “The history of puerto rico starts in about 480BC when”

  • Kevin@lemmy.ca
    link
    fedilink
    arrow-up
    22
    ·
    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.

        • 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!

    • noddy@beehaw.org
      link
      fedilink
      arrow-up
      3
      ·
      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)
  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 year ago

    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:

  • mexicancartel@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    16
    ·
    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

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    13
    ·
    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.

    • mineapple@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      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

    • SaltyIceteaMaker@lemmy.mlOP
      link
      fedilink
      arrow-up
      18
      ·
      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)

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

      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.

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

  • Pantherina@feddit.de
    link
    fedilink
    arrow-up
    8
    ·
    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.