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. C++专题 - 面向对象总结

    1.         什么是类?什么是对象?对象与类的关系是什么? 答:类就是相同的数据和相同的一组对象的集合,即类是对具有相同数据结构和相同操作的一类对象的描述: 对象是描述其属性的数据以及对这些数 ...

  2. ASP.NET配置KindEditor文本编辑器-图文实例

    1.什么是KindEditor KindEditor 是一套开源的在线HTML编辑器,主要用于让用户在网站上获得所见即所得编辑效果,开发人员可以用 KindEditor 把传统的多行文本输入框(tex ...

  3. Mysql 操作手册

    mysql操作手册 版本:5.6.16mysql linux安装基本步骤:#rpm -e --nodeps mysql-lib-5.1.*#rpm -ivh mysql-server#rpm -ivh ...

  4. ubuntu 14.04安装amd omega 驱动

    驱动共分4部分: fglrx_14.501-0ubuntu1_amd64_UB_14.01.deb      52.0MB fglrx-core_14.501-0ubuntu1_amd64_UB_14 ...

  5. CentOS6.5 编译安装lnmp环境

    参考:http://54im.com/tag/libmcrypt http://www.educity.cn/linux/1240338.html 设置防火墙,并开启3306 80端口:vi /etc ...

  6. canonical 标签介绍

    rel=”canonical” 这个标签已经推出很久了,canonical 是 Google.雅虎.微软等搜索引擎一起推出的一个标签,它的主要作用是用来解决由于网址形式不同内容相同而造成的内容重复问题 ...

  7. android sdk api的层次结构

    一.系统级:android.accounts android.app     1.OS 相关         android.os         android.os.storage         ...

  8. phpcms v9使用GET调用指定id文章内容、页面数据方法

    不知道大家有没有相同的体会?在使用Phpcms V9建站调用数据的时候,基础的数据用默认的模板的调用语句就好了,但复杂不常见的数据怎么调用呢?我们技术可能会研究半天,怀着探索的精神不断尝试.孜孜不倦. ...

  9. css3:user-select属性

    一.user-select简介 这是在css3 UI规范中新增的一个功能,用来控制内容的可选择性 二.user-select:值 auto——默认值,用户可以选中元素中的内容 none——用户不能选择 ...

  10. apache pdfbox

    转 http://www.blogjava.net/sxyx2008/archive/2010/07/23/326890.html 轻松使用apache pdfbox将pdf文件生成图 近期在项目中使 ...