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. <artifactId>maven-compiler-plugin</artifactId>

    根据名字就可以看出来,就是控制编译环境的 <plugin>            <groupId>org.apache.maven.plugins</groupId&g ...

  2. 0-C相关01:NSlog函数介绍。

      NSlog()函数介绍: 首先:NSlog()函数是cocoa的框架中提供的一个方法: 下图中最上方是它在Xcode中的路径: : 同样都是输出函数.下边我们来看一下,在O-C中NSlog()和在 ...

  3. 如何让你的eclipse运行更快和eclipse常用快捷键

    方案来之网络,已自测... 原地址:戳进来 1.在eclipse启动的时候,它总是会搜索让其运行的jre,往往就是这个搜索过程让eclipse启动变慢了.(没设置时,等2-3s出现进度条,设置后直接出 ...

  4. WPF样式资源文件简单运用

    WPF通过资源来保存一些可以被重复利用的样式,下面的示例展示了简单的资源样式文件的使用: 一.xaml中定义资源及简单的引用 <Window.Resources > <!--wpf窗 ...

  5. 用linux的shell脚本把目录下面的所有文件的文件内容中的小写字母改成大写字母

    最近工作中,产品组的同事给出的数据里面都是小写字母 ,但是引擎组的同事要求他们拿到的从数据里面解析出的结构体里面存储的要都是大写结构,这让我们数据预处理组很尴尬啊,,所以在写了个这么样的脚本,在解析数 ...

  6. 从文章"避免复制与粘贴"到文章"Extract Method"的反思(2)

    好了.在上一篇里面讲了讲怎么把临时变量应该从函数里面剔除去.这个过程叫做从临时变量变成查询 那么接下来我们聊聊把代码提炼成函数,有叫做用函数对象取代函数 那么,问题来了:在函数中什么样的代码是需要被提 ...

  7. 常用webservice接口案例

    商业和贸易: 1.股票行情数据 WEB 服务(支持香港.深圳.上海基金.债券和股票:支持多股票同时查询) Endpoint: http://webservice.webxml.com.cn/WebSe ...

  8. MATLAB灰度图、中值滤波图

    x=imread(‘x.jpg’); x=rbg2gray(x);  %转成灰度图像 k=medfilt2(x);   %中值滤波,默认为3X3矩阵 figure, imshow(k); medfil ...

  9. webform的三级联动

    webform的三级联动 与winform一样,只不过需把DropDownList的AutoPostBack属性改为True. *简单日期的编写方法:用是三个DropDownList分别代表年月日,用 ...

  10. scala 安装

    http://www.scala-lang.org/download/install.html http://zh.scala-tour.com/#/hello-wolrd scala指南 To ru ...