Skip to content

Instantly share code, notes, and snippets.

@astoycos
Last active November 8, 2022 16:49
Show Gist options
  • Select an option

  • Save astoycos/5ef85e6f96d32a4387e9881c1bc923fe to your computer and use it in GitHub Desktop.

Select an option

Save astoycos/5ef85e6f96d32a4387e9881c1bc923fe to your computer and use it in GitHub Desktop.
Mac-M1-Errors
astoycos@astoycos-mac ~ % sudo ./apex-installer.sh -i
WARNING -- This script will install software on your system. It will:
* Install Homebrew (brew) if not already installed.
* Install wireguard-tools with brew.
* Download the apex agent and install it to /usr/local/sbin/apex
Continue? (y/n): y
[ ACTION ] Wireguard is not installed. Installing WireGuard...
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
[ FAILED ] ] WireGuard installation failed.
astoycos@astoycos-mac ~ % ./apex-installer.sh -i
WARNING -- This script will install software on your system. It will:
* Install Homebrew (brew) if not already installed.
* Install wireguard-tools with brew.
* Download the apex agent and install it to /usr/local/sbin/apex
Continue? (y/n): y
[ ACTION ] Wireguard is not installed. Installing WireGuard...
==> Installing dependencies for wireguard-tools: bash and wireguard-go
==> Installing wireguard-tools dependency: bash
🍺 /opt/homebrew/Cellar/bash/5.2.9: 162 files, 12.4MB
==> Installing wireguard-tools dependency: wireguard-go
🍺 /opt/homebrew/Cellar/wireguard-go/0.0.20220316: 5 files, 3.6MB
==> Installing wireguard-tools
🍺 /opt/homebrew/Cellar/wireguard-tools/1.0.20210914: 10 files, 166.9KB
[ PASSED ] WireGuard is installed successfully.
wireguard-tools v1.0.20210914 - https://git.zx2c4.com/wireguard-tools/
[ ACTION ] Installing Apex...
curl: (23) Failure writing output to destination
chmod: /usr/local/sbin/apex: No such file or directory
[ PASSED ] Apex is installed successfully.
astoycos@astoycos-mac sbin % sudo ./apex http://34.202.236.147:8080
Your device must be registered with Apex Controller.
Your one-time code is: OEDE-XSVN
Please open the following URL in your browser and enter your one-time code:
http://34.202.236.147:8080/auth/realms/controller/device
Authentication succeeded.
FATA[0075] unable to create the wireguard config directory [/usr/local/etc/wireguard/]: failed to create the directory /usr/local/etc/wireguard/: mkdir /usr/local/etc/wireguard/: no such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment