t2linux / T2-Ubuntu

Ubuntu for T2 Macs
581 stars 51 forks source link
apple-t2 keyboard linux macbooks mbp-ubuntu touchbar ubuntu

T2-Ubuntu

The ISOs from this repo should allow you to install Ubuntu without using an external keyboard or mouse on a T2 Mac.

CI

If this repo helped you in any way, consider inviting a coffee to the people in the credits, link.

Ubuntu ISO with Apple T2 patches built-in. Now we also support kubuntu thanks to @lemmyg!

Apple T2 drivers are integrated with this iso.

This repo is a rework of the great work done by @mikeeq. It originally was @marcosfad's mbp-ubuntu repo and has been transferred to t2linux.

Kernel is being used from - https://github.com/t2linux/T2-Debian-and-Ubuntu-Kernel

Using additional patches to support T2 Macs - https://github.com/t2linux/linux-t2-patches

Bootloader is configure correctly out of the box. No workaround needed.

Installation

  1. Reduce the size of the mac partition in MacOS
  2. Download ISO file from releases.
  3. Copy it to a USB using dd (or gdd if installed over brew):
    diskutil list # found which number has the USB
    diskutil umountDisk /dev/diskX
    sudo gdd bs=4M if=ubuntu-20.04-5.6.10-mbp.iso of=/dev/diskX conv=fdatasync status=progress
  4. Boot in Recovery mode and allow booting unknown OS
  5. Restart and immediately press the option key until the Logo come up
  6. Select "EFI Boot" (the third option was the one that worked for me)
  7. Launch Ubuntu Live
  8. Use Ubiquity to install (just click on it)
  9. Select the options that work for you and use for the partition the following setup:
    • Leave the efi boot as preselected by the installer, unless you require a separate efi partition.
    • Add a ext4 partition and monted as /.
    • Swap and other partitions are optional.
  10. Run the installer.
  11. Shutdown and remove the USB Drive.
  12. Start again using the option key. Select the new efi boot.
  13. Enjoy.

Configuration

MISC

Activate Grub Menu

For the people who want to have a menu, they can modify /etc/default/grub with the following changes:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10

and then: sudo update-grub

Update to newer kernels

Follow this guide.

Know issues

Not working (Following the mikeeq/mbp-fedora)

Known issues

Docs

Ubuntu

Github

Credits