Tutorial Suggestion: How to install Linux (Ubuntu/Fedora) on MacBook Pro?

Hello Itsfoss

Your tutorials are really valuable, but I couldnā€™t find the following kind of tutorialā€¦ really, as a fact there is few information about the web.

  • How to install Linux (Ubuntu/Fedora) in an old MacBookPro?
  • How to install Linux (Ubuntu/Fedora) in an old MacBookPro (as dual boot)?

My main interest is the first scenario

I have an old MacBook Pro (mid2012) and is impossible do an upgrade to the latest macOS, therefore I bought a new SSD to replace the current HDD, but I want install Linux.

As a record, I know how to install, as fact I already did do installations of Ubuntu on Toshiba and HP, by changing the HD and doing a straight installation of Linux (no dual boot) in these laptops. Accessing the BIOS, using GParted and the .iso file of the Linux distribution.

How to accomplish the same goal for a MackBookPro? It covering many points of important consideration:

(1) How to access the Bios to change the boot order?

(2) Does GParted work with MacBook Pro?
I use this software only to create a unique partition, the rest is handled by the Linux installer itself, it creates its own internal partitions. I use this software only to create a unique partition, the rest is handled by the Linux installer itself, it creates its own internal partitions. I use both tools for HD management, the former to prepare the HD to be used by the latter, it to let create and handle the partitions as need it - by demand - for the installation process itself.

(3) How to configure correctly the MacBookProā€™s keyboard? For example does not exist the Home/End keys. How is interpreted the ā€œfnā€, ā€œcontrolā€, ā€œoptionā€ and ā€œcommandā€ keys in Linux?

I use VirtualBox 6.1.x on this Mac, but sadly its support ends in December 2023. Therefore, because my current MacBook Pro has a decent state, I want use the hardware but with Linux.

Pls, consider to create this long and detailed tutorial.

Thanks for your understanding.

Welcome to Itā€™s FOSS, @Manuel_Jordan! I donā€™t have any specific Ubuntu on Mac experience but I do know the Command or ā€˜Apple Keyā€™ is treated as the Windows (aka Super) key on a regular keyboard.

Iā€™ve read about a few people running Ubuntu on that generation Macbook pretty much without a hitch. Iā€™m confident youā€™ll be able to do it. I just donā€™t know the specifics. :sunglasses:

If youā€™re swapping the HDD for new drive: Physically install the new drive and boot from your thumb drive with Ubuntu on it by holding the option key at boot. Let Ubuntu use the whole disk and you should be good to go.

2 Likes

Itā€™s really easy and you donā€™t need to do anything special with the grub or boot order etc.
Switch your Mac off
Put the usb key with Linux into the usb port
Or if doing it from a cd dvd insert that
Restart your Mac holding down the C key
The Mac will make the usual start up sounds then ask which you would like to boot from with a suitable image on screen
Select the usb
And then wait for Linux to boot up after that itā€™s install as normal
Warning some Macā€™s although 64 bit in that year donā€™t want to start Linux and you may have to go with a 32 bit versionā€¦ I cannot fully remember why but itā€™s something to do with the screen driver display. I did my Mac with Debian first then did not like it so went to mint LMDE
If you then decide to have a dual boot
Start Linux on your Mac as above using the C key to boot from the usb
Select install and then install side by side from the selection offered that will do the resize of the partition automatically

2 Likes

Look up RFEfind I think itā€™s calledā€¦

Apple adopted UEFI a long time before it became an industry standardā€¦

I installed Xubuntu 16 on an ancient white iMac (iMac 2,1 - coreduo - i.e. before ā€œcore2duoā€) - I used RFEfind (sic - my spelling might be out) to dual boot between OS X and Xubuntu (but Xubuntu was installed on a thumb drive)ā€¦ Havenā€™t even powered it up for 2-3-4 years or somethingā€¦

Someone else on here has install Linux on a more recent MacBook than yoursā€¦

Iā€™m not about to install Linux on either my MacBooks - theyā€™re M1 - so itā€™s not straightforward (Linux Torvalds does it - i.e. he does kernel compiles on Linux, on an M1 ā€œApple Siliconā€) - Iā€™m perfectly happy with POSIX compliance in Darwin / MacOS and a native UNIX shell environmentā€¦

1 Like

Thanks for the suggestion @Manuel_Jordan

I can surely create a tutorial on itā€¦ in fact, I had a draft video on it more than a year agoā€¦ donā€™t remember why I never finished itā€¦

There was specific keys to press to access the bootā€¦
For partitions, the disk utility in mac worked fine as far as I remember

Iā€™ll revisit this topic next week (when I get hold of the MacBook air again)

2 Likes

Huge thanks to all for the quick, polite and detailed feedback, by order of your replies:

Welcome to Itā€™s FOSS, @Manuel_Jordan

Thank you :slight_smile:

I donā€™t have any specific Ubuntu on Mac experience but I do know the Command or ā€˜Apple Keyā€™ is treated as the Windows (aka Super) key on a regular keyboard

Interesting, I donā€™t remember that feature when I use VirtualBox ā€¦ time to check it :slight_smile:

If youā€™re swapping the HDD for new drive: Physically install the new drive and boot from your thumb drive with Ubuntu on it by holding the option key at boot. Let Ubuntu use the whole disk and you should be good to go

Thanks for the ā€œoptionā€ key indication.

Restart your Mac holding down the C key

Do you mean the ā€œCommandā€ key?

Warning some Macā€™s although 64 bit in that year donā€™t want to start Linux and you may have to go with a 32 bit versionā€¦ I cannot fully remember why but itā€™s something to do with the screen driver display. I did my Mac with Debian first then did not like it so went to mint LMDE

Interesting this situation, I never imagined this potential issue, I had this situation with an old Acer of 32 bits ā€¦ with 2GB or RAM. In that case was installed Linux Peppermint of 32 bits of course. In this case the hardware by itself is based on 32 bits.

Look up RFEfind I think itā€™s calledā€¦
Apple adopted UEFI a long time before it became an industry standard

Good point, but anyway, if is used the ā€œoptionā€ or ā€œCā€ key I am assuming that the BIOS or UEFI is loaded in peace ā€¦ Am I correct, right?

I installed Xubuntu 16 on an ancient white iMac (iMac 2,1 - coreduo - i.e. before ā€œcore2duoā€) - I used RFEfind (sic - my spelling might be out) to dual boot between OS X and Xubuntu (but Xubuntu was installed on a thumb drive)ā€¦

I am assuming because the kernel available is newer, should be not arise any issue ā€¦ of course, one thing is install and other is run the OS itself

Havenā€™t even powered it up for 2-3-4 years or somethingā€¦

Not sure If I understood correctly, did you mean that the OS was not upgraded in 2/3/4 years?

Someone else on here has install Linux on a more recent MacBook than yoursā€¦

I am assuming based on 2015 (common scenario in the web too)

Iā€™m not about to install Linux on either my MacBooks - theyā€™re M1 - so itā€™s not straightforward (Linux Torvalds does it - i.e. he does kernel compiles on Linux, on an M1 ā€œApple Siliconā€) - Iā€™m perfectly happy with POSIX compliance in Darwin / MacOS and a native UNIX shell environmentā€¦

It is the good news for me, because our macs manufactured about minor/equals than 2015 are based on Intel yet

Thanks for the suggestion @Manuel_Jordan

Youā€™re welcome, because I usually read mostly your tutorials among other pages, I thought in this page as first option

I can surely create a tutorial on itā€¦ in fact, I had a draft video on it more than a year agoā€¦ donā€™t remember why I never finished itā€¦

Sounds great ā€¦ about the video, is there an official YouTube channel? I follow this page through twitter. Some times I wrote some comments through that network ā€¦ but I donā€™t remember nothing about videos ā€¦ consider to do some announces about that in Twitter too

There was specific keys to press to access the bootā€¦

Consider to cover it in the tutorial ā€¦

For partitions, the disk utility in mac worked fine as far as I remember

It for dual boot purposes.

Iā€™ll revisit this topic next week (when I get hold of the MacBook air again)

Take all the time you need. In the Apple world, surprises could be hidden ā€¦ it is the other reason of had requested this tutorial.

Extra Question

  • Does Linux (Fedora/Ubuntu) recognize the Mini DisplayPort ? it to let me use a secondary monitor, yes I have the Mini DisplayPort to VGA Adapter and works currently for macOS as expected. But for Linux?
1 Like

No the letter C key at boot allows you to select the drive to boot to. Originally it was C as in cd and they never envisaged usb as an option
The keys on the Mac such as n for network boot etc there is a whole list of them.
As far as I know Linux does not work on new Macā€™s with M1 processor yet but I am sure it will come shortly.

Yes your Mac will see both screens no matter what connection but you may find you have to choose which is primary and if you want the screens to be both the same or just an enlarged one screen itā€™s in control panel and displays. Works the same in laptops with external screens.

On updates if not used . You are not forced to upgrade to a new release unless you want to and you do it when you want.
I currently have a client on Linux mint 14 who has never done a update never done any changes never gets new software, he is happy just looking at email and the web ā€¦ Think the real reason is he forgot his password and is not willing to let me update or reinstall the system to sort it, will not pay as long as it works why fix it. So 2 or 3 years is nothing I am thinking 8 perhaps more

Thanks for the reply Paul

Yes your Mac will see both screens no matter what connection

What screens? Do you mean about either BIOS or UEFI right? But just one of them, right?

but you may find you have to choose which is primary and if you want the screens to be both the same or just an enlarged one screen itā€™s in control panel and displays

Pls, expand the idea, is not clear ā€¦ I want have the complete picture

On updates if not used . You are not forced to upgrade to a new release unless you want to and you do it when you want.

Agree, but the main reasons to decide to get an upgrade are about bug fixes and security update

Interesting the scenario of your client ā€¦ but if is for custom/personal use has sense ā€¦ otherwise is a risk

Linus Torvalds himself, is using Linux, on an M2 Mac (i.e. Apple Silicon arm64)ā€¦ He does kernel builds on thereā€¦

Iā€™m guessing itā€™s not very straightforward, but Iā€™m agnostic about Linux VS UNIX, and quite happy with ZSH on MacOSā€¦ I do run a few aarch64/arm64 qemu Linux VMs via UTMā€¦

I think @callpaul.eu was referring to the extra question posted about mini display port.

Sheila

Thanks Sheila

I think @callpaul.eu was referring to the extra question posted about mini display port.

Now has sense.

Yes display port, sorry cut my link