Setting up a new Mac Mini as a Headless server for AI work on Golden Gate 27.X

A headless Mac mini is a Mac mini which does not have a screen, keyboard, or mouse physically attached to it. Instead, you access it remotely from another device like a laptop, phone or tablet. The Mac Mini continues running whatever jobs you have it and then you connect in to check on progress as necessary.

The first few steps need to be done with a screen, keyboard and mouse attached. After that, everything can be done remotely.

Initial Setup

Connect you Mac to power, keyboard and mouse and run the basic setup. As soon as you can, get the Mac to download any updates.

Enable Autologin and Disable Filevault

This step should only be done if you are setting the Mac Mini up in a secuire location like your home. It should not be done if the Mac Mini will be in a shared space like an office where anyone can get acccess to it.

  1. Go to System Settings -> Privacy & Security -> FileVault and turn off FileVault

2. Go to System Setting -> Users & Groups -> Select Automatically log in as and select your user

From now on, you can remove the screen, keyboard and mouse and do everything remotely.

Disable Power Saving / Sleep Mode

As the Mac Mini will be running 24/7, it should never go to sleep.

Go to System Settings -> Energy and select the following

  • Low Power Mode set to Off
  • Prevent automatic sleeping when the display is off set to On
  • Wake for network access set to On
  • Start up when power is connect set to Always

HDMI Dummy Plugs

HDMI Dummy plugs are no longer needed. The Mac Mini will operate just fine without one.

Screen Sharing

All recent version of MacOS ship with screen sharing built in, it just needs to be turned on.

  1. System Settings -> General -> Sharing -> Screen Sharing and set Screen Sharing to On.

SSH Networking (Optional Step)

An optional extra step is to enable SSH access. SSH can be useful for those who know Linux or familiar with the terminal

  1. System Settings -> General -> Sharing -> Remote Login and set Remote Login to On.

Optional Software Installs

XCode

Xcode is Apple’s official integrated development environment (IDE) used to create, test, and distribute apps for iPhone, Mac, iPad, Apple Watch, and Apple Vision Pro.

From the terminal, run the command xcode-select –install

Then confirm the install from the GUI and accept the license

Homebrew

Homebrew is a free and open-source package manager designed to simplify the installation, updating, and management of software on macOS and Linux systems. The official page is located at: https://brew.sh/

To install Homebew, run the command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

It will ask for your system password, it is safe to put it in. However you will not see any characters on the screen as you type in your password

After that, run the following command to agree to the Xcode license

sudo xcodebuild -license accept

Again, it will ask for your Mac password, it is safe to put it in.

Close the terminal and re-open it and then run the following commands

brew update
brew upgrade
brew cleanup

This will then update all the homebrew software

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.