MacOSRMM-Script/README.md

56 lines
2.2 KiB
Markdown
Raw Normal View History

2023-07-26 21:45:02 +00:00
Instructions for installing the RMM agent on Mac computers without paying for codesigning.
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
<details>
<summary>Compile the agent yourself</summary>
<br>
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
`brew install golang`
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
`git clone https://github.com/amidaware/rmmagent.git`
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
`cd rmmagent`
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
If using Intel Mac:
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
`env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w"`
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
If using silicon Mac
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
`env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w"`
</details>
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
**OR**
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
<details>
<summary>Download the agent from here:</summary>
<br>
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
Intel Mac:
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
https://github.com/kylefmohr/MacOSRMM-Script/releases/download/v2.4.9/rmmagent-amd64-v2.4.9
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
Silicon Mac:
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
https://github.com/kylefmohr/MacOSRMM-Script/releases/download/v2.4.9/rmmagent-arm64-v2.4.9
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
</details>
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
---
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
Because we're not paying for codesigning, we'll get a scary warning the first time we run it. To workaround this, before installing the agent, open the file once by itself *while holding down the `Option` key*. Then click "Open" on the scary warning. Once you've done this, you can proceed to the installation.
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
## Installation Instructions:
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
- Go to the web portal for your TacticalRMM instance, and click `Agent` > `Install Agent`
- Select all the options you'd like, *but change macOS to Windows*, and select *manual* for installation method. The Arch section can be ignored.
<img width="625" alt="image" src="https://github.com/kylefmohr/MacOSRMM-Script/assets/6644803/9ce36c59-85ad-4816-8a61-0a069f26ec51">
2022-04-09 15:25:33 +00:00
2023-07-26 21:45:02 +00:00
- Then click "Show Manual Instructions", and copy beginning at `-m install` until the end. You should have something like: `-m install --api https://api.yourdomain.com --client-id 1 --site-id 1 --agent-type workstation --auth <RandomString> --rdp --ping --power`
- Open the terminal and run the downloaded agent *as sudo*, pasting the command line options you previously copied after the binary. Your command should look something like: `sudo rmmagent-amd64-v2.4.9 -m install --api https://api.yourdomain.com --client-id 1 --site-id 1 --agent-type workstation --auth <RandomString> --rdp --ping --power`
- If you get an error about how the file isn't executable, you may have to run `chmod +x <your rmmagent binary>`, then rerun the above command.
2023-07-26 21:45:02 +00:00
You should be good to go!