I recently installed Linux on my MacBook and I am starting to migrate my applications and data little by little to Linux. This post is an explanation on how I did it, what worked, and what didn't.
I found the blog post Linux for Old Macs: Which Distro to Choose? a good place to start and get ideas on what distros I should consider. I started the process with Linux Mint and eventually I settled on Linux Debian, but the process was almost the same in both cases and they worked equally good on my machine. The decision to stay with Debian was mostly because I wanted to try a base Linux system rather than a derivative (Linux Mint derives from Ubuntu which derives from Debian).

The particular Linux distro that I installed is Debian GNU/Linux 13 (trixie). The process to install Debian is similar to other distros:
With these steps your computer will boot with the Linux distro running from the USB drive and from there you'll get the an option to install it on your disk.
I found the instructions on the Linux Mint site a bit more straightforward than the ones on the Debian site. But they are both good places to start.
I am using Linux on my Mac with dual boot, that is, I have both operating systems installed on my Mac and I can boot the computer into either one of them.
To use dual boot I had to create a new partition on the Mac disk to house Linux. This was realively easy because the macOS Disk Utility has an option to resize the macOS partition and free up space for me to create a new partition that I will eventaully use for Linux. My MacBook has a 250 GB SSD disk of which 90 GB where free. What I did was to resize the Mac partition to use only 200 GB leaving 50 GB as "unassigned" and only 40 GB free for Mac (as opossed to the initial 90 GB).
When I installed Linux I chose to perform the installation on this unassigned area. That was a bit tricky because (1) creating a new partition is not something that I do often, in fact, I cannot remember the last time I messed up with disk partitions! and (2) because if I am not careful I could overwrite the Mac partition and who knows what happens then.
Once you have booted your Mac into Linux from the USB drive there is an option to Install Linux on the machine. The process is relative straightfoward since it asks for basic information, things like language, time zone, name and password for the initial account and such.
There is one step that you need to pay attention to, though. At one point the installation will ask you where you want to install Linux on the disk, and this is the tricky part. For dual boot to work you want to install it on the unassigned section of the disk while leaving the macOS partition alone. In my case the unassigned portion was the 50 GB that I alluded to before.
You have to create two new partitions on this unassigned portion of the disk, one will be a boot partition and another will be the Linux partition (Ext4). I found the instructions in Install Ubuntu on Mac - Dual Boot very useful and comprehensive for this part, but for me this step was by far the most stressful of the process. The instructions in that post are for Ubuntu and the screenshots are very accurate for Linux Mint. The process in Linux Debian was similar but the screen looks quite different.
Once I have installed Linux I removed the USB drive and rebooted the machine. By default my machine now boots into Linux Debian. This is what hostnamectl displays on my MacBook running Linux Debian:
Static hostname: hector-debian
Icon name: computer-laptop
Chassis: laptop 💻
Operating System: Debian GNU/Linux 13 (trixie)
Kernel: Linux 6.12.118+deb13-amd64
Architecture: x86-64
Hardware Vendor: Apple Inc.
Hardware Model: MacBook10,1
Firmware Version: 529.140.2.0.0
Firmware Date: Sun 2024-06-23
Firmware Age: 2y 5month 1w 1d
Notice that the Hardware Model is "MacBook10" and the Operating System is "Debian GNU/Linux".
If I want to boot into the Mac partition I have to press the Option key (⌥) on the Mac while the machine is booting. This allows the boot process to ask me which partition I want to boot into. The boot options are bit cryptic: one says "EFI boot" and the other says "Machintosh HD". To boot into Mac I select the "Machintosh HD" and "EFI boot" is the one that boots into Linux.
To be sure things were working as expected and restarted my machine several times and booted into each of the operating systems back and forth.
One of the things that worked for me during this process was to plan to install and re-install Linux on my machine multiple times. On one hand I knew I was not going to get right the first time many of the options and configurations available for Linux and, on the other hand I wanted to be able to try different things on my installation just for the heck of it and not be worried that I left the machine in an inconsistent state.
In total I installed Linux Mint three times on my Mac and then I switched to Linux Debian and did it twice again. But this allowed me to test different configurations (e.g. Cinnamon vs GNOME, X11 vs Wayland), change a bunch of settings (e.g. encrypting the home folder), and run a bunch of obscure commands to test things that were not working right after the intallation (more on this later).
At the end, when I did the last installation I was pretty comfortable with what I wanted and how to do it. I don't think everybody will need to do five installations to get it right, but if this is your first time, plan that you will need to do it more than once.
One of the nice things was that after the first installation I didn't have to create new partitions, I could just tell the installer to reuse the ones that I created the first time. This was great because it reduced the chances of messing up the Mac partition accidentally and therefore was less stressful.
It is incredible how well most things worked out of the box in both Linux Mint and Debian. I have heard about people having problems with WiFi but mine worked right away. Screen resolution, mouse, and keyboard also worked perfectly straight out of the box.
I didn't install Linux because macOS was slow or buggy, but it is nice that Linux performs so well in a MacBook that is 10 years old.
I am using Linux Debian with Wayland and GNOME and the look and feel is pretty modern and snappy. I feel Linux Debian slightly snappier than Linux Mint but this is entirely subjective, I don't have any benchmarks or numbers to prove it.
$ echo $XDG_SESSION_TYPE wayland $ echo $XDG_CURRENT_DESKTOP GNOME
Battery life is also really good. I recently replaced the battery in this Mac and I am glad to see that it's paying off regardless of the operating system that run.
One the things that I wanted in a Linux distro was one that worked out of the box and didn't need many customizations, and both Mint and Debian, have proved to be good choices in this regard.
I assigned CAPS LOCK as my compose key so that I can use it to enter international characters like ñ or á since the option of keeping the letter pressed to get other characters that works on Mac does not work on Linux.
I am still not sure if I want to configure my key bindings to mimic what I am used on the Mac, for example I really miss how the Command key (⌘) works on the Mac and it seems to be such a wasted key on Linux. There are many scripts and tools that you can use to configure the Linux key bindings to mimic Mac's key bindings but they seem way to convoluted or intrusive.
If I do make changes I am probably going to stick with ideas that the post Mac-Style Keyboard Shortcuts on Ubuntu (GNOME + Wayland) proposes, they seem to be very specific and easy to revert. For example to bind the Command (⌘) key to copy ⌘+C and paste ⌘+V similar to the way it does on Mac all I have to do it issue the following commands:
$ gsettings get org.gnome.desktop.input-sources xkb-options @as [] $ gsettings set org.gnome.desktop.input-sources xkb-options "['altwin:ctrl_win']" $ gsettings get org.gnome.desktop.input-sources xkb-options ['altwin:ctrl_win']
This won't make ⌘+C and ⌘+V work on the Terminal, though.
In Linux Mint I had to configure Command+TAB (⌘+TAB) cycle through the running applications like it does on Mac. I did this via System Settings + Keyboard + Shortcuts + General + Cycle through open windows and select CTRL + TAB (notice that I selected CTRL+TAB but because of the gsettings change aforementioned it acts as ⌘+TAB). In Linux Debian this worked out of the box for me and I didn't have to configure anything.
Encrypting my home folder in Linux Mint was quite simple, just check a box when creating the account during the installation process and that's it. On Debian however I had to run a few commands on my own to do it.
1. Create new admin account
2. Log out
3. Log in as the new admin
4. Install the ecryptfs dependencies (notice that it's spelled "ecrypt" not "encrypt" )
sudo apt-get install ecryptfs-utils rsync lsof sudo modprobe ecryptfs
5. Add a line to /etc/modules-load.d/modules.conf with the text ecryptfs
6. Make sure the module is loaded with lsmod | grep ecryptfs
7. Encrypt my home folder with ecryptfs-migrate-home -u hector
8. Log out from the admin account (but do NOT reboot)
9. Log back in my normal account (hector)
Not rocket science but certainly much more complicated that Linux Mint's approach (i.e. check a checkbox).
Although many things worked out of the box once I booted into Linux there are few things that I have not been able to get to work at all on my Mac hardware. I have these problems on both Linux Mint and Linux Debian.
Sound works fine through the earphone output, but the built-in speakers just don't work for me. This seems to be a well-known problem and after trying many of the solutions available on the web I gave up. I really don't use the audio that much anyway and the earphone audio works fine.
$ lspci | grep -i audio 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
The built-in camera is another thing that does not work on my Mac running Linux. Again, another well-know problem and one I gave up trying to fix after a few failed attempts.
$ lspci -nn | grep Camera 03:00.0 Multimedia controller [0480]: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
The option to Suspend my laptop and then resume it (e.g. when closing and opening the lid) does not quite work well. A lot of people seem to have this problem and in some instances the problem seems to be hardware related. In my case I am positive the issue is a software issue since I can resume the laptop after suspend, but then it fails to reload properly my Linux environment (even the main panel to launch apps does not quite load well) or the running applications. This one is a bummer, I really miss being able to just close and open the lid without having to worry about powering off or on.
I did learn that Hibernate is not enabled out of the box in Linux and that setting it up requires messing with the boot settings so I decided not to enable it either, at least not for now.
One of the reasons I repeated the installation process so many times is because I went as far as trying some of the solutions that I found on the web to fix the audio and video problems that I have. Some of these solutions involved running cryptic commands and downloading code from outside the Mint and Debian official packages. None of them actually fixed my issues and even if they had, I would have not felt comfortable living with a Linux installation that has been customized in such a hacky way. But I am glad I tried them and I learned a lot in the process.
Although I have been a Mac user for many years (since 2011) most of the software that I use is also available for Linux so the transition has been relatively easy for me. In fact both, Libre Office and FireFox, come already preinstalled on Mint and Debian.
Most of the programming tools that I use like Go, Gram editor, and the LiteXL editor are available on Linux and in some instances are easier to install than it was on Mac.
I have not decided how I am going to manage my Photo Library or Music Library. My Music Library is less of a concern since I rarely play music on my laptop, but I do like the Photos app on the Mac and I'll need to decide if I keep my photos on the Mac partition or if find a replacement tool on Linux.
AirDrop is one the things that I won't have available to share between my iPhone and my laptop when I am booted into the Linux partition but I recently learn about LocalSend which does the same thing but without AirDrop, plus it's open source and a thing of beauty.
Installing Linux on my MacBook has been a very productive experience and I am very happy with the result.
Overall I felt that Linux Debian has required a bit more knowledge on my part than Linux Mint did to use and configure but I am prety happy with how it's working. I would recommend either of them if you are thinking of trying them out.