MacBook Pro Install Ubuntu

Source: Internet
Author: User
Tags nvidia support macbook


Determine your hardware revision

To determine which version/generation of the MacBook Pro you have multiple options:

From the GUI in OS X

Click on the Apple in the top left > ' about this Mac ' > ' more Info ... ' > ' Overview ' > ' System report ... ' > "Hardware" in Left-Hand panel > "Hardware Overview" in Right-hand panel > "Model Identifier". This is a string like "macbookpro11,1".

From the Terminal in Ubuntu

... under Ubuntu, you can find out which model you had by typing at the terminal:

sudo dmidecode-s system-product-name

A terminal is opened by going to applications accessories.

It'll tell you the something like macbookpro4,1 for example.

MacBook Pro Hardware Models

Now go to the Mactelsupportteam's wiki and choose the link to your model in the list.

MacBook Hardware Revisions and Ubuntu version-specific wikis

Now choose the link to the wiki of your hardware revision and the Ubuntu version is looking for. If you haven ' t decided yet, what version do you like to install, it's recommended to install the latest official LTS Ubu NTU version. If no Wiki article is available, ask for help on the support forum!

  • Macbookpro 1, 2:

    • Didn ' t find any.
  • Macbookpro 2,1 2, 2:

    • Didn ' t find any.
  • Macbookpro 3, 1:

    • Ubuntu 14.04 (trusty Tahr)

  • Macbookpro 4, 1:

  • Macbookpro 5,1 5, 2:

  • Macbookpro 5, 3:

    • Ubuntu 12.04 (precise pangolin)

  • Macbookpro 5, 4:

  • Macbookpro 5, 5:

    • Ubuntu 12.04 (precise pangolin)

  • Macbookpro 6, 2:

    • Ubuntu 12.04 (precise pangolin)

  • Macbookpro 7, 1:

    • Ubuntu 14.04 (trusty Tahr)

  • Macbookpro 8,1 8,2 8, 3:

    • Ubuntu 14.04 (Trust Tahr)

  • Macbookpro 9, 2:

    • Ubuntu 14.10 (Utopic Unicorn)

    • Ubuntu 12.04 (precise pangolin)

  • Macbookpro 10, 1:

    • Ubuntu 12.04 (precise pangolin)

  • Macbookpro 10, 2:

  • Macbookpro 11, 1:

    • Ubuntu 14.04 (trusty Tahr)

    • Ubuntu 14.10 (Utopic Unicorn)

First, you'll want to get a copy of the Ubuntu desktop ISO image. Be sure to choose the 64-bit desktop flavor, and not the image made for Macs. The regular image can boot up on BIOS and EFI modes, while the MAC image can is only boot-in BIOS mode. This is done with purpose for some Macs, but we want to is able to boot it up in EFI mode.

Write to USB Drive

Next, grab a USB flash drive, which is at least 2GB large–we ' ll with this to boot up the Ubuntu installer on. The follow the official Ubuntu steps, or use the dedicated GUI tool for the job.

Resize partitions

Once you've done this, you can get your MacBook Pro ready for the installation. Open up the Disk Utility, click on your hard drive in the left side, and then choose the Partitions tab. Resize the Mac PA Rtition to whatever size you ' d like it to Be-we ' ll use the newly created free space to install Ubuntu.

Boot up Ubuntu Image

After that's completed, plug in the USB flash drive you prepared and restart your MacBook Pro. Be sure-to-hold-the Options button from when the blanks-a-second-to-when-you-see-a-screen with various Boot options. Choose the EFI option (the left one in case you see both of the them) to boot up your Ubuntu USB flash drive.

When prompted to choose between "try Ubuntu" and "Install Ubuntu", choose "Try Ubuntu" because we'll need to perform a STE p after the installer completes and before you restart the system.


Once the Ubuntu desktop loads, start the installer and go through it normally until you reach the partitioning step. If You cannot access WiFi, it ' s because Ubuntu currently doesn ' t recognize your WiFi chipset. Don ' t worry–we don ' t need to has Internet access right now, and it's ll detect the right driver to use whenever you boot Up to your new installation later on.

Once come to the partitioning step, choose to "do something else". Then, make sure this small partition that's ~128MB large is recognized as a EFI boot partition (you can check by clic King on it and choosing Options; Additionally, that should be/dev/sda1). Next, you can create a EXT4 partition in the new space and has the path "/" being mounted to it. You can also the Create multiple partitions here if you prefer that and know what do you ' re doing.

Before continue to the next step, make sure, and the bootloader installation location says/dev/sda1, as you want GRUB To is installed into that partition. Then, finish off the installation like normal.

EFI Boot Fix

When the installer completes, don ' t restart just yet! We still need to does one more thing so we'll be able to use GRUB. Run the following command: sudo apt-get install efibootmgr . This would temporarily install a configuration tool for EFI boot setups. Next, run sudo efibootmgr . This is the print out of the current boot configuration to your. In this, you should is able to see "Ubuntu" and "boot0000*". Currently, the EFI system would point to boot0080*, which skips GRUB and goes directly to Mac OS x. To fix this, run the command sudo efibootmgr -o 0,80 . Now you can restart!

congratulations! Your Ubuntu installation should now being working! However, there is a few tweaks the can perform to has a better experience.

Various Tweaks

First, you'll need a quick change to a GRUB setting so, the SSD won ' t occasionally freeze. Type sudo nano /etc/default/grub in a terminal, "and then" find the line with and change GRUB_CMDLINE_LINUX it to GRUB_CMDLINE_LINUX="libata.force=noncq" . Hit Ctrl+x to save, and Y then Enter to confirm. Then, you'll want to type into sudo nano /etc/grub.d/40_custom the terminal, which would open up a new file. In it, type this exactly:

menuentry "Mac OS X" {

This would allow your to boot into your MAC OS X installation (the 32-bit and 64-bit entries in GRUB does not work). Do the same thing to save and exit, then type on for the sudo update-grub changes to go into effect. Finally, restart your system for good measure.

As you can see, everything are ridiculously small on the Retina display. To fix this, System settings–> Display and change the scaling factor to something larger. On the Retina screen, everything'll look extremely tiny and it'll make your life much more difficult if you don ' t Chan GE it to something.

Also find that it's difficult to grab the edges of a window for resizing. This can also is changed. Type into sudo nano /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml a terminal, and then change these values appropriately:

<distance name="left_width" value="4"/>
<distance name="right_width" value="4"/>
<distance name="bottom_height" value="4"/>

If that's not the big enough, you can also the change those values to "6" instead.

Finally, if you experience any washed out colors, you can grab the display color profiles from Mac OS X and use it in Ubunt U. Mount your Mac OS X drive /Library/ColorSync/Profiles/Displays/Color LCD-xxxxxx.icc and navigate to, where xxxxxx are some random string (there should only be one file Anyw Ays, but this string gets randomized). Copy it into your Ubuntu home folder, and then go to System settings–> Color and choose ADD New profile and choose the Profile your saved in your home folder.


congratulations! You are now having a great working Linux installation on your MacBook Pro retina! Feel free to make additional tweaks to make Ubuntu feel more like home. I ' m sure that these instructions can is applied to the other MAC systems, but each new release have its own pitfalls and advant Ages. If you use a different machine, it's a good idea-to-look-up some documentation first, such as this for Ubuntu.

Additionally, feel free to check out the other great Linux distros so can install to your mac!

Installed Linux on a Mac? What problems do you encounter and how do you solve it? Let us know in the comments!

Installing Ubuntu 14.04 on Macbook Pro Retina (10,1)

I did the upgrade install of 13.10, so I skipped writing a blog post about it. However, I did a fresh the install of 14.04 on my MacBook Pro (RMBP). It seems quite stable and is mostly the same as 13.10 and 13.04.

Improved from 13.04
    1. Better nvidia Support (no more need to set kernel options)

Now for the directions!

1. Preparation

Just Follow steps 1 through 3 in my first guide, to get rEFIt installed and prepare to install Ubuntu. Make sure your download the 14.04 ISO though for step 3.

2. Install Ubuntu

Note that the Wi-Fi won ' t work (we'll fix this on the next step), so don ' t try to install updates during the installation P Rocess, unless you have a separate USB WiFi dongle or Ethernet. Also, at the end of the installer, after the dialog asking you to restart, you'll probably get a black screen. Just Press SPACEBAR and it should reboot.

3. Install Wifi Drivers

Wifi doesn ' t work out of the box, so from another computer (or your OSX install) download the driver and its dependencies (dkms, Libc6-dev, Linux-libc-dev), then copy them "All" to a "flash drive" and "boot back" into Ubuntu. Install each with:

1 sudodpkg -i "the package file you downloaded"

Alternatively, if you have a USB Wi-Fi card, you can use that and install the driver with this command:

1 sudoapt-get update && sudo apt-get installbcmwl-kernel-source
4. EFI Boot

To get the 2880x1800 native resolution, and the external display ports working "ll need to convert GRUB to EFI mode. Follow these steps adapted from the Ubuntu UEFI page (Note:as of this writing the PPA are missing the packages for trusty, So you'll need to use the saucy packages instead):

  1. 12 sudoadd-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get updatesudo apt-get install-y boot-repair && boot-repair
  2. Click on the ' Advanced options ', go to the ' GRUB Location ' tab.
  3. Make sure this "Separate/boot/efi partition" is checked, then click on the "Apply" button, and follow the directions (you ll be asked to remove and reinstall GRUB)
  4. Reboot. You ' ll probably has several new options in REFIt, select any of the them to boot up
  5. (optional) If you want to remove some of the extra rEFIt options, just delete the directories you don ' t want From/boot/ef I/efi (be VERY careful here, and don ' t delete the APPLE directory)

Note:after changing to EFI, you could get a blank screen for several seconds during boot-up.

5. NVIDIA Drivers

Now your ' ll need to install the proprietary NVIDIA drivers, and configure Xorg:

  1. 123 sudoapt-get install linux-headers-`uname -r`sudo apt-get install nvidia-currentsudonvidia-xconfig
  2. Edit/etc/x11/xorg.conf and add to the Device section:
    1 Option "UseDPLib" "off"
  3. Edit/etc/default/grub and add "i915.lvds_channel_mode=2 i915.modeset=0 i915.lvds_use_ssc=0″to GRUB_CMDLINE_LINUX _default inside The double-quotes between the words "quiet splash". Then run:
    1 sudoupdate-grub
  4. Reboot and you should see the Nvidia logo during boot
  5. (optional) If you don't see the NVIDIA logo or get a blank screens, try installing Gfxcardstatus (version 2.2.1, not 2.3), and forcing The discrete graphics card from the dropdown menu of their toolbar icon. Also need to run ' sudo dpkg-reconfigure nvidia-current ' after rebooting.
6. Brightness Controls

To do the brightness buttons work, add this to/etc/init.d/rc.local:

1 setpci -v -H1 -s 00:01.00 BRIDGE_CONTROL=0
7. Other Configuration (optional)

If you ' re like me and want the F1-F12 keys to behave as function keys, and not special keys then just follow these steps f Rom The Applekeyboard guide:

123 echooptions hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.confsudo update-initramfs -u -k allsudoreboot
Still broken
    • Only the native resolution (2880x1800) are available, which means the text is rather small

MacBook Pro Install Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.