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.
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:
- The Ubuntu 24.04 Desktop ISO image (LTS, the most stable)
- A USB drive of 4GB or more — 8GB recommended for the desktop version
- 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
- Launch balenaEtcher
- Select the downloaded Ubuntu 24.04 ISO file
- Select the USB drive
- 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 -y2. Enable the Firewall (UFW)
sudo apt install ufw # if it isn't installed
sudo ufw default deny incoming
sudo ufw default allow outgoingInstall 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 22I restricted SSH access to my home network only.
4. Open Ports for Web Services
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp5. Check and Apply the Firewall Status
sudo ufw status verbose
sudo ufw reloadNow 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.ioAfter 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 tzdataChoose 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
| Item | Pros | Cons |
|---|---|---|
| Stability | Freed from the end of macOS support on the Mac mini; stable operation on the latest Ubuntu | Higher power consumption than macOS (about 5.5W → 8W) |
| Performance | No unnecessary macOS runtime, so it feels like a snappier server in CPU and memory | CLI-based instead of the macOS UI, so it takes some getting used to |
| Security | Automatic updates and UFW for security settings | Services 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.