https://help.ubuntu.com/community/MacBookPro

Determine your hardware revision

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

From the GUI in OS X

Click on the Apple on 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 will be a string like "MacBookPro11,1".

From the Terminal in Ubuntu

... under Ubuntu, you can find out what model you have by typing at the terminal:

sudo dmidecode -s system-product-name

A terminal is opened by going to Applications -> Accessories -> Terminal.

It will tell you 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 you are looking for. If you haven't decided yet, what version you like to install, it is recommended to install the latest official LTS Ubuntu version. If no wiki article is available, ask for help in the support forum!

http://www.makeuseof.com/tag/install-linux-macbook-pro/

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 in BIOS and EFI modes, while the Mac image can only boot up in BIOS mode. This was done on purpose for some Macs, but we want to be able to boot it up in EFI mode.

Write to USB Drive

Next, grab a USB flash drive that is at least 2GB large – we’ll use this to boot up the Ubuntu installer on. To make this drive you can follow the official Ubuntu steps, or use the dedicated GUI tool for the job.

Resize Partitions

Once you’ve done that, you can get your MacBook Pro ready for the
installation. Open up the Disk Utility, click on your hard drive on the
left side, and then choose the Partitions tab. Resize the Mac partition
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 down the Options button from
when the screen blanks out for a second to when you see a screen with
various boot options. Choose the EFI option (the left one in case you
see two of 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 step after the
installer completes but before you restart the system.

Installer

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 have Internet access right now, and
it’ll detect the right driver to use whenever you boot up into your new
installation later on.

Once you come to the partitioning step, choose to “Do something else”.
Then, make sure that the small partition that’s ~128MB large is
recognized as an EFI boot partition (you can check by clicking on it and
choosing Options; additionally, that should be /dev/sda1). Next, you
can create an ext4 partition in the new space and have the path “/” be
mounted to it. You can also create multiple partitions here if you
prefer that and know what you’re doing.

Before you continue to the next step, make sure that the bootloader
installation location says /dev/sda1, as you want GRUB to be 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
do one more thing so that we’ll be able to use GRUB. Run the following
command: sudo apt-get install efibootmgr. This will temporarily install a configuration tool for EFI boot setups. Next, run sudo efibootmgr. This will print out the current boot configuration to your screen. In this, you should be able to see “ubuntu” and “Boot0000*”.
Currently, the EFI system will 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 be working!
However, there are a few tweaks that you can perform to have a better
experience.

Various Tweaks

First, you’ll need to make a quick change to a GRUB setting so that the SSD won’t occasionally freeze. Type sudo nano /etc/default/grub in a terminal, and then find the line with GRUB_CMDLINE_LINUX and change 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 sudo nano /etc/grub.d/40_custom into the terminal, which will open up a new file. In it, type this exactly:

menuentry "Mac OS X" {
exit
}

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

As you can see, everything is 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 will look
extremely tiny and it will make your life much more difficult if you
don’t change it to something you like.

You may also find that it’s difficult to grab the edges of a window for resizing. This can also be changed. Type sudo nano /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml into 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 big enough, you can also change those values to “6” instead.

Finally, if you experience any washed out colors, you can grab the
display color profile from Mac OS X and use it in Ubuntu. Mount your Mac
OS X drive and navigate to /Library/ColorSync/Profiles/Displays/Color LCD-xxxxxx.icc,
where xxxxxx is some random string (there should only be one file
anyways, 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 you saved in your home folder.

Conclusion

Congratulations! You now have 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 be applied to other Mac systems,
but each new release has its own pitfalls and advantages. 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 other great Linux distros that you can install to your Mac!

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

http://cberner.com/2014/04/20/installing-ubuntu-14-04-on-macbook-pro-retina/

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

I did an upgrade install of 13.10, so I skipped writing a blog post about it. However, I did a fresh install of 14.04 on my macbook pro (rMBP). It seems quite stable so far, 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 you download the 14.04 ISO though, for step 3.

2. Install Ubuntu

Note that the wifi won’t work (we’ll fix this in the next step), so don’t try to install updates during the installation process, 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
sudo dpkg -i "the package file you downloaded"

Alternatively, if you have a usb wifi card, you can use that and install the driver with this command:

1
sudo apt-get update && sudo apt-get install bcmwl-kernel-source

4. EFI Boot

To get the 2880×1800 native resolution, and the external display ports working you’ll need to convert GRUB to EFI mode. Follow these steps adapted from the Ubuntu UEFI page (note: as of this writing the PPA is missing the packages for trusty, so you’ll need to use the saucy packages instead):

  1. 1
    2
    sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
    sudo apt-get install -y boot-repair && boot-repair
  2. Click on “Advanced options”, go to the “GRUB location” tab.
  3. Make sure that “Separate /boot/efi partition” is checked, then click the “Apply” button, and follow the directions (you’ll be asked to remove and reinstall GRUB)
  4. Reboot. You’ll probably have several new options in rEFIt, select any of 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/efi/EFI (be VERY CAREFUL here, and don’t delete the APPLE directory)

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

5. NVIDIA Drivers

Now you’ll need to install the proprietary NVIDIA drivers, and configure Xorg:

  1. 1
    2
    3
    sudo apt-get install linux-headers-`uname -r`
    sudo apt-get install nvidia-current
    sudo nvidia-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
    sudo update-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 screen, try installing gfxCardStatus (version 2.2.1, not 2.3), and forcing the discrete graphics card from the dropdown menu of their toolbar icon. You may also need to run “sudo dpkg-reconfigure nvidia-current” after rebooting.

6. Brightness Controls

To make 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 from the AppleKeyboard guide:

1
2
3
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all
sudo reboot

Still Broken

  • Only the native resolution (2880×1800) is available, which means the text is rather small

macbook pro install ubuntu的更多相关文章

  1. MacBook Pro/Air 下使用 linux ubuntu 系统 波浪号“~”变成其他 符号 的完美解决办法

    打开终端,输入: sudo su - > /sys/module/hid_apple/parameters/iso_layout sudo su -需要root权限,所以使用前请注意已下载roo ...

  2. MacBook Pro查找已安装的python目录

    MacBook Pro上下载的python安装后,发现查找目录无从下手,如下则是给出解决方案. 1.可下载pip进行安装,安装完成后,打开终端,输入:pip 并回车,则看到pip安装成功 2.再次输入 ...

  3. MacBook Pro 入手一年了,到底香不香?

    最近又有小伙伴问到底值不值得入手一台 MacBook Pro,松哥自己在 2018 年 10 月份的时候入手了一台,到现在为止,也用了一年多了,今天就来和小伙伴们聊一聊使用感受,至于到底值不值,需要大 ...

  4. Python——MacBook Pro中安装pip

    1.系统已有python2和python3,如何检查MacBook Pro系统是否安装的有pip? 看到terminal的提示没有,有提示pip的,下面的提示,说明pip安装了. 要查看pip3是否安 ...

  5. fir.im Weekly - 除了新 MacBook Pro,近期值得关注的移动开发好资源

    最近,最引人瞩目的莫过于 Apple 产品发布会,MacBook Pro 的更新可能是四年来变化最大的一版.除了更轻.更薄.性能更好.电力更足之外,最大的变化是加入了Touch Bar,被定义为 Ma ...

  6. 2016款MACBOOK PRO触控条版 安装WIN10初体验 及 无奈退货记

    新的2016MBP终于发布了,作为把苹果电脑装WIN使用的人,等候很久之后,终于可以行动了. 黄山松 (Tom Huang) 发表于博客园http://www.cnblogs.com/tomview/ ...

  7. Macbook Pro 使用小记

    本周到手Macbook Pro,很激动.刚刚使用了几天,简单记下自己的感受.   Macbook Pro的硬件配置和做工真没得说,非常完美. 触控板很强大.很好用,鼠标可以基本不用了,但要稍微学习一下 ...

  8. Macbook Pro配置PHP开发环境

    Macbook Pro配置PHP开发环境 安装环境如下: Mac OS 10.10.1 Apache 2.4.9 PHP 5.5.14 MySQL 5.6.22 Apache配置 在Mac OS 10 ...

  9. 开发安卓应用之中兴手机与macbook pro 连接设定

    目标: 把中兴手机和macbook pro 连接在一起,实现真机调试安卓应用. 工具: 手机型号:zte v956 mac os: OS X 10 Eclipse: Android Developer ...

随机推荐

  1. JSP include HTML出现乱码

    解决方法:在项目的web.xml中加入下面语句:<jsp-config>     <jsp-property-group>     <description>    ...

  2. XML解析(转)

    非原创,转载自http://my.oschina.net/khakiloveyty/blog/396671 xml解析主要可以使用CData,libxml2以及NSXMLParser,以下对各个方法给 ...

  3. Win32中GDI+应用(二)--初始化与清理

    GDI+提供了GdiplusStartup和 GdiplusShutdown 函数来进行初始化和完成清理工作.你必须在调用其他的GDI+函数之前,调用GdiplusStartup函数,在完成GDI+工 ...

  4. 【BZOJ3527】【FFT】力

    [问题描述]给出n个数qi,给出Fj的定义如下:令Ei=Fi/qi.试求Ei.[输入格式]输入文件force.in包含一个整数n,接下来n行每行输入一个数,第i行表示qi.[输出格式]输出文件forc ...

  5. TCPIP通信

    最近在开发TCPIP通信,封装了3个类,望各位大神指点指点. using System; using System.Collections.Generic; using System.Text; us ...

  6. Oracle中Long类型的使用与不可使用

    ORA-01754 表只能包含一个LONG类型的列alter table 表名 add 字段名 long raw错误原因:数据表中同时建立了LONG RAW类型和LONG类型.------------ ...

  7. asp.net中的<%%>形式的详细用法实例讲解

    asp.net中的代码分离模式我们肯定都不陌生,C#(或者其它语言)写的代码一般不会和设计语言HTML混在一起,但是有的时候也避免不了,这时就会在UI页面里用<%%>来绑定显示.绑定变量数 ...

  8. ”ENV_IS_EMBEDDED“解惑以及相关的移植实验

    一.概述( ENV_IS_EMBEDDED的目的) 经典资料 认识     ENV_IS_EMBEDDED只有在CFG_ENV_IS_IN_FLASH或者CFG_ENV_IS_IN_NAND定义了才有 ...

  9. Hibernate中的多对多关系详解(3)​

    前面两节我们讲到了一对一的关系,一对多,多对一的关系,相对来说,是比较简单的,但有时,我们也会遇到多对多的关系,比如说:角色与权限的关系,就是典型的多对多的关系,因此,我有必要对这种关系详解,以便大家 ...

  10. websocket nodejs实例

    http://blog.sina.com.cn/s/blog_49cc837a0101aljs.html http://blog.sina.com.cn/s/blog_49cc837a0101a2q3 ...