• 2 Posts
  • 124 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle
  • There’s nothing special, it can be replaced with any TOTP/HOTP implementation. In particular, oathtool is supplied in most distros (it has only command line interface, probably there are also some GUI tools in your repos). However it does not support JSON key format that is provided as QR code for mobile 2FA apps. You have to copy and paste values from it manually.

    However this will likely violate your employer’s security policy. The point of 2FA is that secret key is stored on a separate device, so that it cannot be stealed together with your password.

    I recommend to try other Android apps on your phone. I use FreeOTP+ and have no problems with font readability. Some of my collegues use AndOTP and like it.












  • bizdelnick@lemmy.mltoLinux@lemmy.mlIs anyone using awk?
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Yes, but for a very specific case. I used to write highly portable scripts that could be executed in different environments (various linux distros, including minimal containers, freebsd and even solaris 10). I couldn’t use bash, perl, python and even gawk. Only POSIX shell (I always tested my scripts with dash and ksh93, for solaris 10 compatibility - with its jsh), portable awk (tested with original-awk, gawk and mawk) and portable sed (better forget it if you need to support solaris).

    Before that I didn’t understand why should I need awk if I know perl. And awk really sucks. Once I had to replace a perl one-liner with an awk script of ~30 lines for portability.

    P.S. I never use awk just for print $1 as many do. It’s an overkill.




  • bizdelnick@lemmy.mltoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Brand does not matter. You will likely get in trouble with any new laptop model. Install the latest kernel, and probably most of them will be gone. But some can be fixed only after a year or so.

    My Dell with preinstalled Ubuntu had a fingerprint scanner not working, wifi chip losing connection and disabled “subwoofer” (lol). After a year or two of upgrading a distro everything works (well, I mapped subwoofer output in config and idk if this still needed or not).





  • bizdelnick@lemmy.mltoLinux@lemmy.mlMy First Regular Expressions
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    11 months ago

    GNU grep, the most widespread implementation, does not include egrep, fgrep and rgrep for years. Distributions (not all, but many) provide shell scripts that simply run grep with corresponding option for backward compatibility. You can learn this from official documentation.

    Also, my scripts are not full of bashisms, gnuisms, linuxisms and other -isms, I try to keep them portable unless it is really necessary to use some unportable command or syntax.