个人工具

UbuntuHelp:Intel iMac

来自Ubuntu中文

Wikibot讨论 | 贡献2008年5月9日 (五) 19:05的版本 (新页面: {{From|https://help.ubuntu.com/community/Intel_iMac}} {{Languages|UbuntuHelp:Intel_iMac}} == This is a work in progress. Please contribute == Older information is available in these pages...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

This is a work in progress. Please contribute

Older information is available in these pages: UbuntuWiki:iMacIntel UbuntuHelp:iMacCoreDuo

Introduction

This is intended to be an installation guide for Intel iMac users, as well as a reference for getting various hardware working. At this time, there are 3 major variations of the Intel iMac.

  1. White iMac with Intel Graphics
  2. White iMac with ATI Graphics
  3. Aluminum iMacs (ATI Graphics)

Note about Uninstalling

If you decide to partition your hard drive and install Ubuntu, please note that resizing your OS X partition to reuse the empty space is not easily done. If you would like to just test out Ubuntu, try using a Virtual Machine such as VirtualBox.

How to install Ubuntu on an Intel iMac

This guide will help you through all the steps necessary for installing Ubuntu on an iMac. This guide was written while Gutsy Gibbon (7.10) was current, with Hardy Heron on the way. However, there should not be too much derivation for any current version of Ubuntu. For any Mac, I would always recommend using the most recent version of Ubuntu that is available since as time passes, more fixes for Mac nuisances are incorporated into the releases.

Triple Booting

This guide will assume that you want to dual-boot OS X with Ubuntu. It is recommended that you keep an install of OS X, even if you do not plan to use it in order to install firmware updates in the future that may be required for your Mac to operate properly. There are many other guides available for Triple (and more) booting with various operating systems. Whether they are for a Macbook, Macbook Pro, or whatever, the partitioning and initial installation process of Ubuntu in the same. The Macbook Pro Wiki Page has an excellent how to for triple-booting. Note that although it mentions Vista, the process should be the same to install Windows XP.

Basic instructions

Here I present my preferred method of installation

  1. If you have an iMac from before Bootcamp existed, make sure that you have the needed firmware updates to dual boot. Update the firmware to the latest version. If you prefer, you may use the standard "Software Update".
  2. Get your Ubuntu Live CD ready. The Live CD should work, but if you have trouble, try the Alternate Install CD. If you have a Core2 Duo Mac (as oppossed to the Core Duo), it is capable of using the AMD64 (64bit) CD otherwise you have to use the standard version. There is a lot of information about the good/bad of a 64bit install. You can find information about which to choose here.
  3. It is highly recommended that you install rEFIt]. rEFIt is a user friendly interface to the Mac EFI that will cause a boot menu (to select between OS X/Ubuntu) to appear on every boot. You can make Ubuntu boot by default by uncommenting the 'legacyfirst' option and change the menu timeout in the "refit.conf" file (described on the above website).
  4. At this point you need to make room for Ubuntu by shrinking the OS X partition. This can be done with various tools:
  • In OS X Leopard (10.5.x), the Disk Utility is able to 'add' a partition to the durrent disk without completely repartitioning the hard drive. To use this method, start Disk Utility, (Applications > Utilities) Select the Hard drive to partition, and click the '+' button to add a partition. You can then resize the partition to suit the amount of space you would like to use for Ubuntu. Don't worry about the partition format (Mac OSX, UFS, etc), we will be reformatting the partition later.
  • gParted can shrink your OS X partition as well, but it is not able to "grow" or increase the size of a partition once it have been resized.
  • OS X has a commandline tool for resizing your partitions. See the AdvancedMethods Section of this guide to use this tool.
  1. Hold down "C" to boot from the CD.
  2. You should get a boot menu to select the type of boot you would like. Choose to start Ubuntu (NOTE: On Hardy, you can start the LiveCD, or you can choose to start the installer, choose to start the live environment).
  3. Once you get to the desktop, start gParted: System > Administration > Partition Editor
  • It should be plainly visible that there is an EFI partition at the beginning of the disk, followed by the HFS+ (OS X) partition, and lastly, the new partition you created.
  • Select the last partition and delete it. Make sure to click the Apply button to actually remove the partition. This will leave you with free space to install to. Exit gParted.
  • Once back to the desktop, double-click in the install icon to start the installer. When prompted, choose to install to the "largest, continuous free space". This will allow the installer to create a root and swap partition for you. If you would like to have more control over the partitioning, you can choose to "manually partition". See the AdvancedMethods section for tips.

Get you hardware working

Graphics / Video

WiFi / Airport

The WiFi card in all the iMac machines is a variant of the Broadcom 4328. This card is unfortunately not supported by ANY linux drivers. However, you can use a utility called ndiswrapper and an appropriate Windows XP driver to get the card working in Ubuntu. This Windows XP Driver can be found on your Leopard Install DVD (which would normally be used with bootcamp) and in the older BootCamp driver CDs. Additionally, there are some compatible drivers available from Dell.

Extras

Compiz

Working with other OSs

Advanced Methods

Partitioning with the commandline

Let's say you want to resize your OS X partition to 200GB and create a new 200GB Linux partition. Open a terminal and type:
sudo diskutil resizeVolume disk0s2 200G Linux Linux 200G
This is the actual tool that Boot Camp would use to resize the partition as well.

Manual Partitioning Tips

The emulated MBR/BIOS compatibility is limited to 4 partitions. This really just means that legacy bootloaders need to reside in those first four partitions (and in the case of windows, everything it needs to access has to be in the first four partitions).