What this guide covers
When you finish, brew works in the terminal and you have a software list you can restore on the next machine. You need: a working remote desktop connection and the password of your own Mac account.
Steps
Install the command line tools from the remote desktop first
Homebrew depends on the Xcode Command Line Tools. After you run
xcode-select --installin the terminal, macOS opens a graphical confirmation window. You have to click "Install" in the remote desktop view and wait for the download to finish. The window sometimes hides behind the terminal, so look for it if nothing seems to happen. A machine that already has the tools will say so, and you can go straight to the next step.Run the official install command
The Homebrew website is the authority for the command. At the moment it is:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"The script explains what it is about to do and then pauses for your confirmation. Partway through it asks for an administrator password. Type the password of your login account on this Mac, not the UU Remote verification code and not the RustDesk password. The terminal shows no characters while you type, which is normal. If pasting the password through the remote clipboard is unreliable, type it by hand.
Add brew to your shell environment
On Apple silicon machines Homebrew installs to
/opt/homebrew. After the install, follow the hint at the end of the script and write the shellenv line into your config file. The official installation docs give it in this form:echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"The install only counts as done when a new terminal window prints a version for
brew --version.Know which installs will ask for a password
The official docs say that installing an ordinary formula needs no elevated privileges, while some casks and system services still do. When a password prompt appears, check what it is actually installing. Command line tools, editors and browsers are fine. Do not install anything that takes over networking: VPN clients, system-wide proxies, tools that change DNS or routing, or tunneling tools. The network configuration of this machine is part of how the platform delivers it. Changing it can leave the machine unreachable, and it also breaks the terms of use.
Set an update routine, and do not upgrade in the middle of a long task
brew updateonly refreshes the package index.brew upgradeis what actually replaces programs. Do not upgrade casually while a build or an agent task is running, because a tool that gets swapped out mid-run may fail partway. Do it in a gap between tasks, then runbrew cleanupto remove old versions. The built-in storage of a rented machine cannot be expanded, and old packages take up a lot of space over time.Do not use brew to "clean up" things you do not recognize
The platform's management account, management profile and remote access components were not installed through Homebrew, so they do not show up in
brew list. Do not go into system directories and delete them by hand just because you cannot see them there. Uninstall only the packages you installed yourself. If you are not sure who installed a program, ask support first.Export a Brewfile as a record for switching machines and ending the rental
After the rental ends the machine is reclaimed and reinstalled, and only you know what was on it. Run
brew bundle dump --file=~/Brewfileto generate the list, and commit it to your own repository along with your other config. When you renew onto a different machine or rent again later,brew bundle --file=~/Brewfileinstalls the same set of software.
FAQ
The installer keeps saying the password is wrong. What should I do?
First confirm you are typing the current password of the Mac login account (the new one, if you changed it on day one). If it still fails, stop retrying. Follow the password instructions in the help center to reset the macOS password from the customer console, and install once that task has succeeded.
The install script downloads slowly or gets cut off. Can I switch to a mirror?
Download speed depends on the line and its load, so wait a while and retry first. Whether to use a mirror is your call, but do not install a proxy or change system network settings to speed things up.
I would rather not run a script. Is there a graphical installer?
Homebrew publishes a .pkg installer on its GitHub releases page (Apple silicon only). You can double-click it in the remote desktop and enter the administrator password when prompted, the same as with the script. See the official installation docs.
I have an admin account. Can I install anything I like?
You can install any software that is compatible with macOS, comes from a reliable source and is properly licensed. The exceptions are actions that remove platform management components, change the network configuration or require a shutdown. For those, contact Contact support first.
Related
- What to do on day one with a rented remote Mac mini
- Can I install Node, Homebrew and Docker on a rented Mac mini myself?
- How to set up zsh on a remote Mac mini: config files, prompt and history
- How to manage Node versions with nvm or fnm on a remote Mac mini
- How to check logs and disk space on a remote Mac mini
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support