1. 65
  1. 10

    Ready to give it a shot? Make sure to update your macOS to version 12.3 or later, then just pull up a Terminal in macOS and paste in this command:

     curl https://alx.sh | sh
    

    Pay close attention to the messages the installer prints, especially at the end!

    Installing an operating system with curl | sh? Well, I’ve done riskier things to my machines before.

    1. 12

      at this point isn’t that essentially what home-brew is? :D

      1. 7

        How’s that different security-wise from downloading an ISO and running it at boot time?

        1. 4

          In general a shell script is easier to man in the middle.

          In this specific case since it is https you are right there is not much difference.

          Assuming most people will copy paste the command from a webbrowser into the terminal there is also the possibility of some css/unicode trickery

          1. 3

            You can verify the integrity of the ISO with a SHA and/or verifying signatures with the vendor’s public key. You could do this with the shell script by downloading it, verifying it, checking to ensure that it verifies the ISO it downloads, and then running it.

            Simply doing curl | sh skips all of this.

            1. 5

              curl verifies the script with the vendor’s public key too, that’s what https does.

              As far as I can tell, the big difference is the sh step gets to live in your running OS with the disks mounted, but that’s it.

              1. 1

                It also skips any passive vulnerability scans such as the known-exploit signature checks and virus scans that are common in browsers now. So if the site is compromised and they are providing file hashes that will validate their exploit script then a browser downloading the same script and/or ISO would have a chance of catching it.

              2. 2

                You can do easily do curl > file and verify to your hearts content. :)

                1. 2

                  Yeah, that’s why I’m always surprised to see websites instruct users to curl | sh when they could tell users to curl > file && sha256sum file cross-check the sum, and then sh file at least.

                  1. 9

                    I mean, if the script, the checksum, and the instructions to check the checksum are all served from the same https server, you don’t actually gain anything by checking the checksum.

                    1. 2

                      As the downloader you don’t gain anything directly but as the publisher it would require an attacker to change the content of the site, which is another opportunity for detection. Not anywhere near complete protection but an additional low cost security later.

          2. 7

            Maybe by the time I have both a studio and a display Alyssa will have got the GPUs to work (the amount she’s already got going is insane) :D

            1. 2

              Has anyone tried this? I’m thinking of installing it on my M1 MacBook Pro.

              1. 3

                I tried it on an M1 Air for 20 minutes and it was very smooth. Linux itself seems pretty good, but it’s Arch and KDE which I’m not too familiar with, so I switched back pretty quickly to macOS to get some work done. I’ll have another bash soon with a bit more time and patience.

              2. 0

                curl https://alx.sh | sh

                yeah that killed my interest