Here is a step-by-step guide to install Arch Linux on a 2012 Mac Mini. This guide assumes you're familiar with the Arch Linux installation process and provides clear steps tailored to your hardware configuration.
- Download the Arch Linux ISO from the official website.
- Create a bootable USB drive using the ISO.
- Insert the USB stick into the Mac Mini and power it on. Hold the Option key to access the boot menu.
- Select the Arch Linux boot option.
Partition | Size | Mount Point | File System |
---|---|---|---|
/dev/sda1 | 512 MB | /boot/efi | vfat |
/dev/sda2 | 50 GB | / | ext4 |
/dev/sda3 | 200 GB | /home | ext4 |
/dev/sda4 | 8 GB | swap | swap |
-
Start
cfdisk
to partition the disk:cfdisk /dev/sda
-
Create the EFI partition (1GB):
- Select the unallocated space, create a new partition of 1GB, and set the type to
EFI System
(typeef00
).
- Select the unallocated space, create a new partition of 1GB, and set the type to
-
Create the Root partition (50GB):
- Select the remaining space and create a partition of 50GB. Set the type to
Linux filesystem
(type8300
).
- Select the remaining space and create a partition of 50GB. Set the type to
-
Create the Home partition (155.47GB):
- Create a partition of 155.47GB for
/home
.
- Create a partition of 155.47GB for
-
Create the Swap partition (32GB):
- Create a 32GB partition and set the type to
Linux swap
(type8200
).
- Create a 32GB partition and set the type to
-
Format the EFI partition:
mkfs.fat -F32 /dev/sda1
-
Format the Root partition:
mkfs.ext4 /dev/sda2
-
Format the Home partition:
mkfs.ext4 /dev/sda3
-
Format the Swap partition:
mkswap /dev/sda4
-
Enable Swap:
swapon /dev/sda4
-
Mount the Root partition:
mount /dev/sda2 /mnt
-
Create and mount the Home partition:
mkdir /mnt/home mount /dev/sda3 /mnt/home
-
Mount the EFI partition:
mkdir /mnt/boot mount /dev/sda1 /mnt/boot
-
Install the base system:
pacstrap /mnt base linux linux-firmware nano
-
Generate
fstab
:genfstab -U /mnt >> /mnt/etc/fstab
-
Change root into the installed system:
arch-chroot /mnt
-
Set the time zone to New York City (adjust if needed):
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime hwclock --systohc
-
Uncomment the
en_US.UTF-8
locale in/etc/locale.gen
:nano /etc/locale.gen # Uncomment en_US.UTF-8 UTF-8
-
Generate locales:
locale-gen
-
Set the system locale:
echo LANG=en_US.UTF-8 > /etc/locale.conf
-
Set the hostname:
echo "linux" > /etc/hostname
-
Configure
/etc/hosts
:nano /etc/hosts
Add the following lines:
127.0.0.1 localhost ::1 localhost 127.0.1.1 linux.localdomain linux
-
Install the GRUB bootloader:
pacman -S grub efibootmgr
-
Install GRUB to the EFI partition:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --recheck
-
Generate the GRUB configuration:
grub-mkconfig -o /boot/grub/grub.cfg
-
Install
NetworkManager
and enable DHCP:pacman -S networkmanager
-
Enable and start
NetworkManager
:systemctl enable NetworkManager systemctl start NetworkManager
-
Install Broadcom WiFi drivers (if applicable):
pacman -Sy broadcom-wl modprobe wl
To enable the multilib repository, uncomment the [multilib]
section in /etc/pacman.conf
:
nano /etc/pacman.conf
Scroll down and un-comment the [multilib]
repo:
[multilib]
Include = /etc/pacman.d/mirrorlist
-
Create a new user (replace
sayem
with your username):useradd -m -g users -G wheel,storage,power,lp,network,audio,video,optical -s /bin/bash sayem passwd sayem
-
Install
sudo
:pacman -Sy sudo
-
Allow the user to use
sudo
by editing the sudoers file:visudo
Uncomment the line:
%wheel ALL=(ALL) ALL
For Intel graphics on your Mac Mini, install the appropriate drivers:
pacman -S xf86-video-intel mesa
-
Install GNOME and GNOME extras:
pacman -S gnome gnome-extra gdm
-
Enable and start GDM (GNOME Display Manager):
systemctl enable gdm
-
Install
base-devel
andgit
if not already installed:pacman -S --needed base-devel git
-
Clone and build
yay
(AUR helper):cd /home/sayem git clone https://aur.archlinux.org/yay.git cd yay makepkg -si
-
Exit chroot and unmount partitions:
exit umount -R /mnt reboot
-
Remove the USB stick, and the Mac Mini should boot into Arch Linux with GNOME.
- Install additional software with
pacman
oryay
for productivity, media, etc. - Configure hardware (Wi-Fi, touchpad, etc.) using
pacman
or AUR packages.
This installation guide should provide a solid Arch Linux setup on your 2012 Mac Mini with a graphical environment.