Installing Ubuntu 24.04 on an Old 2014 Mac mini and Turning It into a Home Server

My experience installing Ubuntu 24.04 on an old 2014 Mac mini that couldn't run Docker, and converting it into a Linux home server — the whole process from making a bootable USB to security settings and installing Docker.

Installing Ubuntu 24.04 on a 2014 Mac mini home server

I reformatted my Mac mini… and Docker wouldn't install on macOS Monterey?!

After completely resetting the Mac mini with a fresh start in mind, I tried to install Docker and found it impossible to install.
Docker Desktop officially states it runs on macOS 13 or later, but since I had been running Docker on this same Mac mini before the reset, I was firmly convinced it would install again.

When I started researching, there weren't many reports of Docker failing to install on Monterey (12.x). I probably could have searched my way to a fix, but I was already a bit uneasy that the 2014 Mac mini only supports up to macOS Monterey, particularly when it came to security updates and compatibility with the latest software.

So after a few days of thinking it over, I decided: let's install Ubuntu myself.

🚀 What I Needed to Install Ubuntu

At first I considered making the bootable USB with just the Mac's built-in terminal dd command, but to reduce complexity and the chance of mistakes I chose a GUI tool.

I needed three things:

  1. The Ubuntu 24.04 Desktop ISO image (LTS, the most stable)
  2. A USB drive of 4GB or more — 8GB recommended for the desktop version
  3. A utility to make a bootable USB
    • The macOS terminal works too, but
    • I installed balenaEtcher and did it easily through a GUI

🧱 Making the Bootable USB

  1. Launch balenaEtcher
  2. Select the downloaded Ubuntu 24.04 ISO file
  3. Select the USB drive
  4. Click Flash → writing and verification complete

Then plug the USB into the Mac mini and start it while holding down the Option (⌥) key after powering on. Boot options appear, and I chose the Ubuntu USB.


🛠 Things to Remember During the Ubuntu Install

  • Language and keyboard layout: choosing Korean and the Dubeolsik layout (or your own language and layout) prevents input errors
  • Wi-Fi setup: in case an internet connection is needed during installation
  • Disk partitions:
    • Erasing the whole disk is fine,
    • but if you want to separate directories like Home/Docker as I did, a custom partition setup is also possible
  • Creating a user account: turn off automatic login and set a password for security
  • There's also an option asking whether to install an SSH server; choosing "yes" makes remote access easier later

After installation and a reboot, you go straight to a login prompt without any message like "Welcome to your mini Linux server." That was quietly pleasant.


🧯 Basic Security Settings Right After Logging In (in the Terminal)

1. Update and Upgrade the System

sudo apt update
sudo apt upgrade -y

2. Enable the Firewall (UFW)

sudo apt install ufw          # if it isn't installed
sudo ufw default deny incoming
sudo ufw default allow outgoing

Install Ubuntu's firewall, UFW (it's usually already installed), and block all incoming traffic by default.

3. SSH Security

sudo ufw allow from <my MacBook IP>/24 to any port 22

I restricted SSH access to my home network only.

4. Open Ports for Web Services

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

5. Check and Apply the Firewall Status

sudo ufw status verbose
sudo ufw reload

Now any outside access other than the basic ports is blocked, while SSH and web services are safely open.


🐳 Installing the Latest Docker

How to install the latest Docker CE on Ubuntu:

sudo apt install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
  https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io

After installing, I checked that it worked properly with docker --version and docker ps.


🕰 Setting the Server's System Time to Korea Standard Time (KST)

sudo dpkg-reconfigure tzdata

Choose Asia / Seoul (or your own region) and the server time is set accordingly. It makes log timestamps convenient too.


✅ Now Ready to Install the Ghost Blog

  • Ubuntu 24.04
  • Security updates applied
  • UFW firewall configured and ports allowed
  • Latest Docker installed
  • Time zone changed to Korea time

The next step is to actually install and run the Ghost blog using docker-compose and the like.

🌟 Pros and Cons

ItemProsCons
StabilityFreed from the end of macOS support on the Mac mini; stable operation on the latest UbuntuHigher power consumption than macOS (about 5.5W → 8W)
PerformanceNo unnecessary macOS runtime, so it feels like a snappier server in CPU and memoryCLI-based instead of the macOS UI, so it takes some getting used to
SecurityAutomatic updates and UFW for security settingsServices other than SSH need additional configuration

🧭 What's Next?

At last, I have an environment where I can install a Ghost blog myself with Docker.
In the next post, I'll cover the setup of Ghost + MySQL + Nginx + SSL with Docker Compose step by step.
Now, just typing docker compose up -d at the terminal will actually bring up a working blog.