How to run Linux on Apple Mac hardware
Overview
This article describes the different ways to use Apple hardware to run Linux instead of Apple’s MacOS operating system.
NOTE: Content here are my personal opinions, and not intended to represent any employer (past or present). “PROTIP:” here highlight information I haven’t seen elsewhere on the internet because it is hard-won, little-know but significant facts based on my personal research and experience.
Upgrade hard drive
Consider replacing older magnetic hard drive with a larger solid-state (SSD) one that runs faster and is more reliable.
Ethernet cable & adapter
Get an Ethernet cable and cable-to-USB adapter to connect to your router.
Linux may not work immediately after installation because it may not have the drivers for your WiFi card.
Create a bootable USB drive
VIDEO: To create a bootable USB drive
-
Buy a physical USB drive with at least 8GB of storage.
-
On a Windows machine, download and install Rufus
https://rufus.ie/en/
-
Download the ISO file for the Linux distribution you want to install:
Setup multi-book
https://www.rodsbooks.com/refind/
Flavors of Linux
-
Ubuntu is closest to macOS in terms of look and feel. But some consider it bloated.
https://ubuntu.com/download/desktop or server
-
Nobara Linux (Fedora) is a lightweight version of Ubuntu. VIDEO:
https://www.novaralinux.com/
-
Linux Mint VIDEO is based on Ubuntu but is more lightweight. VIDEO:
https://linuxmint.com/download.php
-
VIDEO: Elementary OS is based on Ubuntu but is more lightweight.
-
Debian.
VIDEO: Use nala (fast poarallel downloads) instead of apt for package management.
- VIDEO: Tails OS is Free Software and based on Debian GNU/Linux that resides in a USB drive or DVD independently of the computer’s original operating system so as to leave no trace on the computer being used. It aims at preserving privacy and anonymity, and helps you to use the Internet anonymously and circumvent censorship; all connections to the Internet are forced to go through the Tor network; use state-of-the-art cryptographic tools to encrypt your files, emails, and instant messaging.
-
QuebesOS uses virtualization to isolate programs from each other.
- EndeavorOS
- AWS Linux 2
- Fedora
- Arch Linux
- Open SUSE
- Red Hat Enterprise Linux (RHEL) is a commercial product.
- VIDEO: Vanilla uses their apx installer
- KDE Neon Plasma
- Whonix works through Tor.
- Quebes
- Kali is based on ATT Unix and the Debian-derived GNU/Linux distribution
NOTE: CentOS is no longer supported by Red Hat.
To Dual Boot or Not to Dual Boot
Those who don’t plan to ever use macOS again can completely replace it with Linux. That way, none of your storage is used up by its system files.
But since Linux writes over the macOS Recovery partition, back it up to an external drive before installing Linux, in case you change your mind, it’s difficult and time-consuming to restore macOS again in the future. PROTIP: The $49.99 Carbon Copy Cloner 6 (https://bombich.com/) backs up your macOS Recovery partition. See https://www.makeuseof.com/tag/delete-repair-mac-recovery-partition/
With a dual boot system, both macOS and Linux are installed on your Mac. You can just hold Option while your computer boots up to choose which operating system to use. The main difference between a dual boot system and a virtual machine is that you can only use one OS at a time while dual-booting, but you get better performance.
Virtualization and emulation utilities
- VMWare Fusion is a commercial product that runs as a macOS app.
UTM
UTM is a virtual machine app for macOS that can run a variety of operating systems including Linux. It is free to download and use,
There is a paid-for version on the Mac App Store that includes some additional features.
UTM uses the popular QEMU system emulator securely in a sandboxed environment to protect your data from viruses and malware in the emulated operating system.
References
-
https://www.hellotech.com/guide/for/how-to-install-linux-on-mac
-
https://www.makeuseof.com/tag/install-linux-macbook-pro/
More on OSX
This is one of a series on Mac OSX:
- MacOS Setup step-by-step, with automation
- MacOS Hardware and accessories
- MacOS dotfiles for System Preferences setup automation
- MacOS Boot-up
- MacOS Keyboard tricks
- MacOS Terminal Tips and Tricks
- Text editors and IDEs on MacOS
- MacOS Xcode.app and CommandTools (gcc)
- MacOS Command-line utilities
- Applications on MacOS
- 1password on MacOS
- Manage Disk Space on MacOS
- Screen capture on MacOS
- MacOS iPhone integration
- Linux and Windows on Apple MacOS
- Packer create Vagrant Windows image
- Python on MacOS
- Maven on MacOS
- Ruby on MacOS
- Node on MacOS installation
- Java on MacOS
- Scala ecosystem