vendion

  • 7 Posts
  • 47 Comments
Joined 5 years ago
cake
Cake day: June 3rd, 2020

help-circle
  • Okay, hopefully someone here can point out where I am going wrong with setting up my dev shell the way I want. I am currently using direnv and nix-direnv to manage the dev shell, and I found this blog post which shows a way to start and stop MySQL/Mariadb but I am having some weird issues with it.

    Currently my flake looks like this:

    {
      description = "A basic flake with a shell";
      inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
      inputs.flake-utils.url = "github:numtide/flake-utils";
    
      outputs = { nixpkgs, flake-utils, ... }@inputs:
        flake-utils.lib.eachDefaultSystem (system:
          let
            pkgs = nixpkgs.legacyPackages.${system};
          in
          {
            devShells.default = pkgs.mkShell {
              packages = with pkgs; [
                bashInteractive
                php
              ];
    
              buildInputs = [ pkgs.mariadb ];
    
              shellHook = ''
              export MYSQL_BASEDIR=${pkgs.mariadb}
              export MYSQL_HOME=$PWD/.direnv/mysql
              export MYSQL_DATADIR=$MYSQL_HOME/data
              export MYSQL_UNIX_PORT=$MYSQL_HOME/mysql.sock
              export MYSQL_PID_FILE=$MYSQL_HOME/mysql.pid
              alias mysql='mysql -u root'
    
              if [[ ! -d $MYSQL_HOME ]]; then
                mariadb-install-db --auth-root-authentication-method=normal \
                  --datadir="$MYSQL_DATADIR" --basedir="$MYSQL_BASEDIR" \
                  --pid-file="$MYSQL_PID_FILE"
              fi
    
              mariadbd --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_PID_FILE \
                --socket=$MYSQL_UNIX_PORT --tmpdir='/tmp' 2>/dev/null &
              MYSQL_PID=$!
              '';
            };
          });
    }
    

    When I run it like this mariadbd starts just fine, but doesn’t get backgrounded dispite the & making that shell session useless which is not what I want as I have to spawn a second shell just to do anything.

    Even weirder is when I add the finish() function and the call to trap like in the blog post then mariadbd doesn’t start (or starts and immedently gets killed).






  • It’s nice to see that it’s finally out of the closed beta, but for me it seems to be lacking in a lot of ways. I make use of identies in BitWarden, have CC data there, and use their CLI app. Hopefully Proton plans to build on Pass to help out compete with other password managers quickly.

    Plus side another privacy focused security tool from someone who knows what they are doing is always welcome.












  • I never used DragonflyBSD, but the lack of https for image downloads and lack of a GPG signature file seems like a huge concern. Even more concerning is if this page is correct it looks like they may also default to http for their repos.

    All of these are easily fixable issues, getting a certificate from Let’s Encrypt or some other CA if they have the budget for it, creating a detached signature for their installer images before uploading it to their server(s). I don’t know any DragonflyBSD devs, so I would say reach out on their mailing list or open a bug in their issue tracker about these.

    The plus side is it looks like their ports tree is hosted on GitHub so it’s probably safe to say those are fetched in a secure way.


  • vendiontoFreeBSD*Permanently Deleted*
    link
    fedilink
    arrow-up
    2
    ·
    4 years ago

    I wouldn’t say there is a catch to the FreeBSD Journal, it is done as a free service by the FreeBSD Foundation as a way to help advance FreeBSD awareness and a way to help keep people up-to date with what is going on in FreeBSD world.

    While the FreeBSD Journal is now offered for free (this happened early last year) if you do like it, please consider donating to the FreeBSD Foundation which will help the foundation out in many ways.

    For more general BSD news there is also BSD Magazine which offers free issues as well as paid subscriptions that includes more issues and workshops and tutorials.




  • Even if they go with a new Thinkpad Lenovo (if you trust them) is working towards offering Thinkpads with your choice of either Ubuntu, RHEL, or Fedora preinstalled as well as upstreaming any driver modifications to the Linux kernel which is great if you ever need to reinstall the OS or decide to install a different distro on the machine 1.

    I have a P50 myself and love it, even though it’s a few years old now it is still running strong. Other than that I have a couple of friends that purchased a Dell that came with Ubuntu preinstalled and they seem like great machines. Due to their bulk I’m usually hesitant to recommend System76 machines unless you know what you are getting into.