Files and shell

Run a script you downloaded

Fix "permission denied" and "running scripts is disabled" when a script won't start.

Fill these in once
  1. Read it first
    Terminal
    cat setup.sh

    Only run scripts you understand or trust.

  2. Allow it to run
    Terminal
    chmod +x setup.sh
  3. If macOS blocked it as downloaded from the internet
    Terminal
    xattr -d com.apple.quarantine setup.sh

    Only needed if you see a warning about an unidentified developer.

  4. Run it
    Terminal
    ./setup.sh
  1. Read it first
    Terminal · Ubuntu / Debian
    cat setup.sh

    Only run scripts you understand or trust.

  2. Allow it to run
    Terminal · Ubuntu / Debian
    chmod +x setup.sh
  3. Run it
    Terminal · Ubuntu / Debian
    ./setup.sh
  1. Read it first
    PowerShell
    Get-Content .\setup.ps1

    Only run scripts you understand or trust.

  2. Allow your own and signed scripts to run (once per machine)
    PowerShell
    Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
  3. Unblock this file because it came from the internet
    PowerShell
    Unblock-File .\setup.ps1
  4. Run it
    PowerShell
    .\setup.ps1