Ubuntu on Macbook Pro - Do You Want a Guide?

So I'm in sort of the same position as Mylegit, the poster of the Linux on Chromebook guide. I've only just started using Linux, but I'm learning and I want to share with you guys exactly what I'm learning.

I was looking around for guides on how to install the latest stable build of Ubuntu (14.10-utopic) alongside OSX Yosemite and the documentation was there, but none of them really had the whole process that worked for me. There were just so many different ways to do it and the amount of information was overwhelming (and not to mention, for the most part, outdated).

I'm bringing to the table a guide to put the latest builds of Ubuntu (14.10 and 14.04, I think the processes are similar) onto a Macbook Pro 11,1 (13" late 2013 Retina). More specifically, dual booting with OS X Yosemite on the same disk.

Let me know what you guys think or what you guys want

*** EDIT ***
Here's the guide


Dual Booting Ubuntu 14.10 (Utopic Unicorn) alongside OS X Yosemite


Preliminary Notes:
-You don't need rEFIt or rEFInd in order for this installation to work
-This installation was completed with the goal of dual booting from a Macbook Pro 11,1 (late 2013 Retina 13”). So OS X and Ubuntu live on the same disk.

There are a lot of guides explaining how to get Ubuntu dual booting with OS X, but none of them completely worked for me. It took a couple of hours of frustration and trial and error in order for me to get this to work. Not sure if I'm just dumb but if anyone else out there is having issues like I was, here's what I did to finally get things to work.

Major Steps:
1)Preparing the Macbook
2)Creating a bootable USB
3)Booting into trial Ubuntu through said USB
4)Installation
5)Post-Installation tweaks

Things You'll Need:
- USB Drive > 2GB
- Macbook(11,1?) with at least 25GB of free space


  • 1) Preparing the Macbook

This step is basically just resizing the disk that has OS X in your Macbook in order to fit Linux/Ubuntu.
-Start off by opening Disk Utility. Spotlight Search(Command+Space) is your friend
-Select your main drive/the drive you want Linux to be on and click on the Partition tab that should be on the right.
-DO NOT create a second partition. Just resize the graphical representation of the hard drive space until you have made a sufficient amount of free space (Apparently at least 25-30GB, but you can do more-this will be the whole allocated amount for Linux to live on
-Once you're done resizing, hit Partition on the bottom right and wait for Disk Utility to do its thing
-Done with HDD/SSD prepping


  • 2) Creating a bootable USB

Here you will make the drive from which you will launch the Linux installer
-First, download your version of Ubuntu. I used the 64-bit version of Ubuntu 14.10. (some guides will make you use command line to convert that .iso file to a .img but I didn't have to do that)
-Download the program Unetbootin link here - http://sourceforge.net/projects/unetbootin/
-Open it, select Diskimage and browse for the .iso file of Ubuntu that you downloaded earlier
-Keep “Space used to preserve files...” at 0
-At this point, you should have put in your USB Drive
-In Unetbootin, Set type to USB and set the Drive to the disk your USB is assigned to
-To find out what this disk is, open Terminal (use Spotlight Search) and type in:

diskutil list

-Look for the /dev/diskX that your drive is under (X being some number). I think you could also look at the identifier next to your USB. That would read something like diskXsY (X & Y being some numbers)
-Use that info to select the right USB device in UNetbootin and hit 'OK'
-UNetbootin will do everything by itself and when it is done it'll tell you that the disk won't be readable by Mac. This is fine, hit 'OK' again and close the program.
-Your Mac will probably try to remount the USB and it will give you the option to 'Initialize', 'Ignore', 'Eject'. Just choose 'Eject'. You won't need it in OS X anymore.
-Congrats, your bootable USB should be complete


  • 3)Booting into trial Ubuntu through said USB

-Keep the bootable USB in your Macbook and restart it
-Hold the 'alt/option' key while the Macbook is turning back on (when you hear the boot up sound) until you see different disks to boot from.
-Select the USB to boot from (should have an orange USB icon)
-Once you've booted into your USB, you should have a couple of options. Choose the one that lets you try Ubuntu before installing it.
-You should now be in the trial desktop of Ubuntu
-You'll also need to install the wifi drivers through terminal before starting the installation
-Open terminal (ctrl+alt+T) and type in

sudo apt-get install bcmwl-kernel-source

-You can also adjust Screen Scaling and Mouse Scrolling through the System Settings if it bothers you


  • 4)Installation

-Once you've got wifi running, you can go ahead and start the Ubuntu Installation from the Desktop
-Continue until you get to the Installation Type screen and select 'Something Else' (manual partitioning)
-Here, you should be able to see the free space that you had created earlier.
-You should be able to double-click it or right-click it to bring up an options menu
-At this menu, set the free space to be used as an ext3 filesystem and set the Mount Point to '/'
-Allow the free space to resize or format, select it again and then you can hit 'Install Now'
-The rest of the installation should be pretty self explanatory HOWEVER if you want to set the Macbook to automatically boot to Ubuntu DO NOT REBOOT AT THE END OF INSTALLATION
-Instead, close the installation and open Terminal
-Run the following code:

sudo apt-get install efibootmgr
sudo efibootmgr

-Pay attention to the codes that point to the mac os and ubuntu partition (Should be like 0000, 0080, 0081, etc.)
-Now you can set the boot order of partitions with

sudo efibootmgr -o XXXX,YYYY

XXXX being the code for the ubuntu partition and YYYY being the code for the mac partition
-Now you can reboot your system and Ubuntu 14.10 should be successfully installed


  • 5)Post-Installation tweaks

-Now, in your newly installed Ubuntu, you should tweak your system to work a little better through commands in the terminal.
-The official ubuntu documentation has some useful steps *** here ***
-Follow part '2. Configuration' of that article
-Besides that I also used *** this site *** after installation. Follow all the instructions there and you should have Ubuntu fully on your system!


  • Notes

-I am aware that the installation doesn't cover any swap space partition. This is something I'm currently trying to figure out how to add post-installation. If anybody has any pointers, please add
-Again, this is what worked for me. This might not be the clean cut way for everybody else, so lets iron this process out to something we can all understand and use

2 Likes

Nice idea. Not sure how many people here own macbooks, but I finally got round to triple booting osx, ubuntu 14.04 and windows 7 on a single ssd, and I can't agree more with how outdated most of the guides are. My first attempt screwed everything up so I had to reinstall from scratch.
If anyone actually cares:
Set as GUID and partitioned SSD into 4 parts (1 for each OS and 1 swap space at around half of ram, which was an 8gb swap space partition in my case)
Installed OSX on osx partition
Installed Windows on windows partition (formatted windows partition to ntfs format first)
Installed Ubuntu on ubuntu partition (manual settings to format ubuntu partition as ext4 and set as / and 8gb swap space partition as swap space)
Held down option key during boot
Booted into OSX
Installed REFInd boot manager
Added a nice theme to REFInd
The End

Best advice would be to create USB installers for each os to speed up the process.
It isn't as hard as it is time consuming.

A guide would be cool. If you want I can make your guide a wiki so others can add to it.

2 Likes

https://help.ubuntu.com/community/MacBookPro
There is a wiki here that goes over the versions compatible with each Macbook Pro model and the steps you need to take to get it running.

@Taco_Bell That would be cool, I'd appreciate that. I'll post my actual guide later on today.

Just let me know

@Kai Those wikis were the first things that I tried to do actually, but unfortunately they didn't work for me.

I'm not sure why but they just aren't complete guides on how to do it and a bunch of the steps are unclear, especially for someone who's trying to get Ubuntu for the first time.

@Taco_Bell wiki worthy?

Move it to the OP

done

There you go.

Posts like this have the potential to attract angry hipsters up from the depths of the Internet. Use caution

Thanks @Taco_Bell

Let em come lol

What about if we didn't want to dual boot and only run Linux on the Macbook Pro? Or is OSX still necessary on the drive even if we don't/won't use it much?

I tried to run the Mint 17.2 install from the USB and I can't the screen comes on with black and white strips across it.

I want to run just mint on it, not dual boot?

Does this work on El Capitan for you guys?

Can't say I've tried :/

Then Ill try today and let you know!

Thanks so much! I can confirm this works on El Capitan. Just one question, I installed Ubuntu but did you have any issues with your mouse moving too fast? In settings I tried to turn it down but that didn't help. Being a novice I have no clue what else to try or what packages to use so I hope you or someone came across this :) .

this is awesome, i have an old macbook pro that i haven't touched in years, so i will be doing this soon