- Download Debian ISO
- Modify the ISO to use persistence volume instead:
LANG=C sed 's/splash quiet/persistence /;s/quiet splash/persistence /' \
</debian-live-10.0.0-amd64-mate.iso \
>/debian-live-10.0.0-amd64-mate-persist.iso
-
Burn the ISO to USB with Etcher
-
Boot to the USB by restarting the MacBook and holding Option. Then, select "EFI Boot" and click enter.
-
Select the "Debian Live" option
-
Verify the device using
lsblk
. The USB should be something likesda
orsdb
etcsdX
-
Run to set a variable
$ usb=/dev/sda
- Create a new partition using the rest of the USB
$ sudo fdisk $usb <<< $(printf "n\np\n\n\n\nw")
- Verify the new partition using
lsblk
. It should be something likesda3
. - Format the partition and label it
$ sudo mkfs.ext4 -L persistence ${usb}3
- Create a mount point, mount the new partition there, and then create the configuration file to enable persistence. Finally, unmount the partition:
$ sudo mkdir -p /mnt/my_usb
$ sudo mount ${usb}3 /mnt/my_usb
$ echo "/ union" | sudo tee /mnt/my_usb/persistence.conf
$ sudo umount ${usb}3
$ reboot
Now the USB should have persistence.
Get the audio drivers
$ sudo apt install wget symlinks make gcc linux-headers-generic
$ git clone https://github.com/leifliddy/macbook12-audio-driver.git
$ cd macbook12-audio-driver/
$ sudo ./install.cirrus.driver.sh
$ reboot
Get the bluetooth drivers
$ sudo apt install wget make gcc linux-headers-generic
$ git clone https://github.com/leifliddy/macbook12-bluetooth-driver.git
$ cd macbook12-bluetooth-driver/
$ sudo ./install.bluetooth.sh
$ reboot
Edit Bluetooth config vi /etc/Bluetooth/main.conf
FastConnectable = true