roman

@hi@romanzolotarev.com


homehttps://romanzolotarev.com
8 ★ 1 ↺
Fred de CLX boosted

[?]roman » 🌐
@hi@romanzolotarev.com

i was wrong about / user interface...

it has the best user interface: command line interface ❤️

  • i can ssh into a phone
  • i can rsync whatever i want
  • i can replace all the apps with just a script :)

    ...
    6 ★ 1 ↺
    Fred de CLX boosted

    [?]roman » 🌐
    @hi@romanzolotarev.com

    install termux app

    pkg update
    pkg upgrade
    pkg install openssh
    pkg install termux-services
    sv-enable sshd
    done

    ...

    [?]Mr Taps » 🌐
    @kristapsdz@bsd.network

    @hi It was "pkg install openssh" for my termux/grapheneos btw.

      ...
      0 ★ 0 ↺

      [?]roman » 🌐
      @hi@romanzolotarev.com

      thanks, corrected

        [?]mirabilos » 🔓
        @mirabilos@toot.mirbsd.org

        @hi termux annoyingly used GNU bash by default, when there’s a perfectly serviceable mksh already in the base AOSP

        ...
        2 ★ 0 ↺

        [?]roman » 🔓
        @hi@romanzolotarev.com

        i'm okay with bash, but is there a way to switch to ksh in termux?

          ...

          [?]Justine Smithies [She / Her] » 🔓
          @justine@snac.smithies.me.uk

          loksh/stable 7.8 aarch64
          A Linux port of OpenBSD's ksh
          CC: @mirabilos@toot.mirbsd.org

            ...
            2 ★ 0 ↺

            [?]roman » 🔓
            @hi@romanzolotarev.com

            thank you Justine!

              ...

              [?]Jack » 🔓
              @knapjack@snac.gruntle.cc

              @hi@romanzolotarev.com @mirabilos@toot.mirbsd.org Just out of curiosity, is it out of preference or is there something you do repeatedly that bash does not interpret the same way?

                ...

                [?]mirabilos » 🔓
                @mirabilos@toot.mirbsd.org

                @knapjack @hi just out of curiosity, why do you use the nōn-standard shell GNU bash, which is copyleft and slow, instead of the Korn shell, whose main variant is literally POSIX shell’s father and extremely fast and whose other variant is copycentre licenced, very small and still 3x as fast as GNU bash (and in the subvariant I maintain, much closer to POSIX, too, while having tons of useful extensions, some of which have even been adopted by bash/zsh viceque versa)?

                  ...

                  [?]Jack » 🔓
                  @knapjack@snac.gruntle.cc

                  @mirabilos@toot.mirbsd.org @hi@romanzolotarev.com Oh, that's easy. The first shell I was introduced to was csh on NeXTSTEP, then ash on NetBSD, but at the time I was just navigating, not really scripting. By the time I started to script I was on machines running Linux or BeOS where bash was the default, and later greatly influenced by a co-worker who believed in the value of using the default on whatever platform you were on, so here I am.

                  Some rc in there, too. And technically I started scripting in DCL, but that only got me in trouble. 😁

                  But, for instance, PowerShell has several *sh-isms that work similarly but not identically, so I catch myself stubbing my toe when I'm in PowerShell and not using the native commands. When I'm scripting I either care which shell I'm in or I try to be as portable as possible. Conversely, day-to-day one-liners, I find that it's rare that I'm stubbing my toe on the syntax or features of some other shell. But if I were, changing my default shell would be the first thing I'd do.

                  I am not promoting bash here, just genuinely curious if you're like, "OMG, my fingers cannot unlearn ________ and I use that feature continuously," or more, "F the GPL." Hoping it's the former and I get to learn something new.

                    ...

                    [?]mirabilos » 🔓
                    @mirabilos@toot.mirbsd.org

                    @knapjack @hi in my case… I develop mksh because I like to program in shell ;-) and OpenBSD ksh was a much nicer base than GNU bash, especially wrt. what I could add portability-wise and that it also works well statically linked and fits the bootfloppies better. That my users tell me it’s 3× as fast in their workloads on average is a nice bonus.

                    But, basically, I pose it as an ash/dash and posh/loksh replacement. There are use cases for GNU bash, and I know people who use mksh as scripting shell instead of their interactive shell (though, in their case, the latter is usually zsh or, recently, fish).

                    And mksh is /system/bin/sh on Android, after all, so it’s the standard :þ

                    (Funnily enough, I went COMMAND.COM → GNU bash → OpenBSD ksh which then evolved into mksh.)

                      ...

                      [?]Jack » 🔓
                      @knapjack@snac.gruntle.cc

                      @mirabilos@toot.mirbsd.org @hi@romanzolotarev.com I started following you because I read someone writing enthusiastically about mksh and thought about making it my default on Void.

                      Somedays I really care and some days I'm like, whatever, just give me a browser and a shell and some kind of flat surface, maybe some carbs.

                        ...

                        [?]mirabilos » 🔓
                        @mirabilos@toot.mirbsd.org

                        @knapjack @hi hm, I don’t see you listed as following, nor a follow request from you?

                          ...

                          [?]Jack » 🔓
                          @knapjack@snac.gruntle.cc

                          Bah. I moved my snac instance to a subdomain when I moved off of Cloudflare and screwed some stuff up. I should have set up a second instance. Pretty sure I lost all my followers except the recent ones, and now it looks like the following relationships are messed up as well.

                          Screenshot showing mirabilos' profile via Phanpy and my following status.

                          Alt...Screenshot showing mirabilos' profile via Phanpy and my following status.

                            ...

                            [?]mirabilos » 🔓
                            @mirabilos@toot.mirbsd.org

                            @knapjack by “move” you mean you just changed it in the config? Not an AP Move?

                            Then, yes, no wonder it does not work.

                            That’s going to be a hard thing to recover from. (Thankfully, you did not re-use an existing domain with a fresh instance, as someone else did, because we now cannot even see each other’s posts at all.) Perhaps unfollowing and re-following everyone individually will work? (Mention this in your profile bio before you do that, so people will know, and will also know they possibly have to re-follow you.)

                            ...

                            [?]Jack » 🔓
                            @knapjack@snac.gruntle.cc

                            I did basically all of the above but with a single instance. So, if you finger without the subdomain it points to the new one, etc., but the move announcement didn't work right because it says you can't alias back to yourself. I did re-follow everyone in bulk and messages are going back and forth, but yeah, without some fresh plumbing to handle all the aliasing I think it's just borked.

                            I thought about moving to a big instance, maybe Vivaldi's, while I sort it all out and move back.

                              1 ★ 0 ↺

                              [?]roman » 🔓
                              @hi@romanzolotarev.com

                              usually i use default shell everywhere:
                              • ksh for bsd and
                              • zsh for macos (used to use bash before macos switched)
                              for scripts like ssg i target /bin/sh for better portability

                              i wanted to try ksh in termux to run tests for my scripts, but looks like it's not too much faster than running everything on remote openbsd host...

                                History