Difference between revisions of "MacTel PlanetCCRMA"

From CCRMA Wiki
Jump to: navigation, search
(EasyLife)
 
(50 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
== Acquiring Fedora Media ==
 
== Acquiring Fedora Media ==
  
You can borrow Install DVD's from SysAdmin anytime.  You can also download your own to your Mac, by visiting [http://fedoraproject.org/en/get-fedora Fedora].  You can save a bunch of time and consternation by checking the media integrity right away.  Use the following command line to determine the SHA1SUM checksum (takes a few minutes).  Compare this output string to the one provided by Fedora [http://fedoraproject.org/en/verify].  Ignore the verify instructions on that page, they are for Linux, but you can find the checksums here: 'Install DVD/Rescue CD > i386'  The checksums strings should match exactly.  If not, you've got a corrupt download, and you'll have to try again.
+
You can borrow Install DVD's from SysAdmin anytime.  You can also download your own to your Mac, by visiting [http://fedoraproject.org/en/get-fedora Fedora].  Make sure to download the i386 version, not the x86_64 even though your Mac is 64bit.  Many programs have yet to be ported to 64bit.
 +
 
 +
You can save a bunch of time and consternation by checking the media integrity right away.  Use the following command line to determine the SHA1SUM checksum (takes a few minutes).   
  
 
<pre>openssl dgst -sha1 Fedora-9-i386-DVD.iso</pre>
 
<pre>openssl dgst -sha1 Fedora-9-i386-DVD.iso</pre>
  
Burn it to DVD with '''Disk Utility''': Images > Burn ...  Disk Utility can be found here: /Applications/Utilities/Disk Utility
+
Compare this output string to the one provided by Fedora [http://fedoraproject.org/en/verify]Ignore the verify instructions on that page, they are for Linux, but you can find the checksums here: 'Install DVD/Rescue CD > i386'  The checksums strings should match exactly.  If not, you've got a corrupt download, and you'll have to try again.  This doesn't happen often, but it's worth the extra few minutes.
  
 +
Burn your downloaded image (the '.iso' file) to DVD with '''Disk Utility''': Images > Burn ...  Disk Utility can be found here:  /Applications/Utilities/Disk Utility
  
==Prep the Mac, Start Fedora Installation==
+
==Prep the Mac (resizing and the bootloader)==
  
 
1. Update firmware (run software update or download latest OS from [http://www.apple.com/support/downloads Apple)]
 
1. Update firmware (run software update or download latest OS from [http://www.apple.com/support/downloads Apple)]
Line 30: Line 33:
 
2. Start OS X Disk Utility (Utilities menu): select top hard drive icon, click "Partition" tab.  
 
2. Start OS X Disk Utility (Utilities menu): select top hard drive icon, click "Partition" tab.  
  
<image>
 
  
You can now change the size of your Mac HD partition: select size, click "Apply", wait (can take some time).
+
[[Image:disk-utility-pre-resize.png]]
  
<image>
+
Here's what it looks like before you do anyting.
  
<image>
 
  
3. Custom install [http://refit.sourceforge.net/ rEFIt], making sure to select "rEFIt File System Drivers".
+
You can now reduce the size of your Mac HD partition by selecting the target size of your new smaller partition. I chose a size of 50GB for PlanetCCRMA.   You'll need at least 15GB for all PlanetCCRMA packages, plus some extra for your home directories.  The choice is up to you.  You have two options:  Enter the target size (total HD size - 30GB, for me) directly in the field:  'Volume Information > Size' '''or''' under 'Volume Scheme' drag the botton right corner of the box up until your desired size shows in:  'Volume Information > Size'.  Click "Apply", wait (can take some time).
  
<image>
 
  
Restart to check rEFIt install (might take 2 reboots, rEFIt screen shows before OSX boot).
+
[[Image:disk-utility-set-resize.png]]
  
4. Start installation of Fedora 8 (32-bit version from DVD -- get from CCRMA sys admin) -- restart and boot from DVD (select Linux penguin as option from rEFIt menu). Note: beware of trackpad sensitivity. This part takes about 30 minutes.
+
You can see here the space for your new installation at the bottom of the 'Volume Scheme.This is where Linux will go.
  
On DVD installer boot:
 
Select first option "Install or upgrade an existing system".
 
Skip disk check.
 
Fedora installation app starts.
 
Choose language and keyboard.
 
  
==Boot, Linux, & Swap Partitioning==
+
3. Install [http://refit.sourceforge.net/ rEFIt].  rEFIt install instructions [http://refit.sourceforge.net/doc/c1s1_install.html].  It's a pretty straight forward Mac install.
  
5. Partitioning:
+
Reboot to check rEFIt install (might take 2 reboots, we've found).  A nice looking rEFIt screen shows before OSX boot but after the Apple chime.
  
First dropdown menu: Create custom layout; click "Next".
+
This next part takes about 30 minutes.
New window: click on free partition box; click "New".  
+
  
Make 3 partitions:
+
== Install Fedora from DVD ==
  
1-Boot partition:
+
1. Make sure your Fedora disk is in the drive bay.
/boot mount point, ext3 filesystem, select 200MB fixed size; click "OK".
+
  
2-Linux partition:
+
2. Reboot.
/boot mount point, ext3 filesystem, select fixed size you want in MB (eg: 84000 = 84GB); click "OK".
+
  
3-Swap partition:
+
3. rEFIt will present you with a screen where you can select (with the arrow keys) the 'Linux penguin ('Tux') with the DVD' (rather than the apple) to boot from the Fedora install DVD.  The machine will boot from the DVD and you'll be presented with a Fedora Install screen.
swap filesystem, select fixed size (RAM size x 2); click "OK".
+
  
 +
4. Unfortunately, how to take screenshots during install on the Mac has eluded us, so we'll have to stick with text descriptions (this is too bad).
  
Click "Next", accept defaults for next few sections.
+
- at the first screen choose: '''Install or upgrade an existing system''', then press '''return/enter'''.  The Mac will boot into the Fedora Installer.
  
==Finish Fedora Install & Update, PlanetCCRMA-lization==
+
- Media Check: skip it if you are comfortable you have a good disk (say it's been used successfully before), or check the disk media by selecting '''OK''' then '''Test''' (takes about 10 minutes).  Select '''OK'''. The disk ejects.  Just reinsert it.  Give it time to spin up before you do anything (say 1 minute).  Select '''Continue'''.
  
6. Finish Fedora installation -- click "Next" to install Fedora.
+
===Fedora 9===
  
7. Reboot computer, choose Linux Penguin icon from rEFIt menu, boot into Linux, follow instructions to do system setup.
+
- the X server starts and we enter the installation screen in earnest. Click '''Next''' at the first screen.
  
8. Update Fedora: while plugged into Ethernet internet, in a terminal as root (su) type:  
+
- choose your language, '''Next'''
 +
 
 +
- choose your keyboard layout, '''Next'''
 +
 
 +
- 'Network Devices:' select 'Set the hostname: automatically via DHCP. Unless you know that you need to change something else here, just click '''Next'''.
 +
 
 +
- set your Time-Zone, '''Next'''
 +
 
 +
- enter a root password, '''Next'''
 +
 
 +
 +
(Note: you may start to see an annoying increase track-pad sensitivity.  hope they'll fix this soon.)
 +
 
 +
==Linux Partitioning==
 +
 
 +
This description assumes you are only dual booting Mac OS X and Fedora.
 +
 
 +
"Your boot partition ought to be a primary partition, not a logical partition. This will ease recovery in case of disaster, but it is not technically necessary." [http://tldp.org/HOWTO/Partition/requirements.html].  So, we don't really need a boot partition.
 +
 
 +
You'll need to make a minimum of 2 partitions, but a third for a <code>/home</code> directory may be wise, since it will be left alone when you need to upgrade, making upgrades easier.
 +
 
 +
- From the first drop-down menu: '''Create custom layout'''; click '''Next'''.
 +
 
 +
You can see a graphical layout of your hard drive.  There's a tiny partition at the left for EFI [http://www.uefi.org/about] of type <code>'''vfat'''</code>, then a large partition of type  <code>'''hfs+'''</code> which is your Mac OS X, and remaining '''Free''' space (for Linux).  In this space, we'll create additional partitions to accommodate: '<code>/</code>', '<code>swap</code>' and '<code>/home</code>'.
 +
 
 +
the '<code>/</code>' partition for PlanetCCRMA should be greater than about 15G.
 +
 
 +
the '<code>swap</code>' filesystem partition should be 2 x RAM up to 2GB, and an additional 1GB for each 1GB of RAM after that.  So for me, I have 4Gb RAM so I'll make a 6Gb swap.  The swap file system acts like physical memory, went RAM fills up.
 +
 
 +
the '<code>/home</code>' directory can be in yet another partition.  Since I have 30Gb of space, I'll give the remaining 9GB (30Bg-15Gb-6Gb) to <code>/home</code>.
 +
 
 +
- select the '''Free''' partition.  click '''New''' when you'll find the 'Add Partition' dialog box.  Select <code>swap</code> under 'File System Type.'  For 'Size (MB)' enter the size in megabytes for your <code>swap</code>.  Make sure 'Fixed Size' is checked, under 'Additional Size Options.' I entered 6000 for 6Gb.  Click, OK.
 +
 
 +
- select the '''Free''' partition, again.  click '''New''' when you'll find the 'Add Partition' dialog box. For 'Mount Point' select '<code>/</code>' from the drop-down menu.  'File System Type' is 'ext3.'  'Size (MB)' should be the size in megabytes for your system partition ('<code>/</code>' or 'slash').  Make sure 'Fixed Size' is checked, under 'Additional Size Options.' In this example I entered: 15000.  Click, OK.
 +
 
 +
- for the '<code>/home</code>' partition, select the '''Free''' partition, again.  click '''New''' when you'll find the 'Add Partition' dialog box. For 'Mount Point' select '<code>/home</code>' from the drop-down menu.  'File System Type' is 'ext3.'  This time, you want to choose 'Fill to maximum size' under 'Additional Size Options.'  Click, OK.  This will create a <code>/home</code> partition with the remaining space, for you to store documents and projects.
 +
 
 +
Note:  Nothing we've done so far in the installation has been written to disk.  When we finish the partitioning scheme, here, the installer will begin to write to disk: establishing partitions and file systems, then starts installing packages.  you can abort the installation here with no effect on your Mac.
 +
 
 +
- now at the main partitioning screen, click '''Next'''
 +
 
 +
- click, 'Write changes do disk.'
 +
 
 +
- Boot Loader screen: accept defaults, click '''Next'''.
 +
 
 +
- Package Installation screen: here you can select the packages you'd like to have installed from disk.  The defaults are fine, if you want to simplify the install.  Any packages not installed from disk can be installed later by several straight forward methods.  Or you can select 'Customize Now' and browse the selection of packages available on disk, and choose to install them.  We usually add '''emacs'''.  Click, '''Next'''.
 +
 
 +
the installation begins...  it takes about 20 minutes.
 +
 
 +
the disk ejects, click '''Reboot'''.
 +
 
 +
==First Boot==
 +
 
 +
Your Mac will chime, and the rEFIt screen will show, this time with an additional option: Tux.  Maybe you should boot into OS X to make sure things are OK.  Reboot again, and selet 'Tux' the penguin at the rEFIt screen.
 +
 
 +
Assuming you have no errors during boot, Fedora will walk you through several more configure screens called 'First Boot.'
 +
 
 +
- at the Welcome screen, click '''Forward'''
 +
 
 +
- click '''Forward''' at the License Information screen.
 +
 
 +
- create a user, yourself (your user account, this is different from the root account and should have a different password), click '''Forward'''.
 +
 
 +
- 'Date and Time' select the 'Network Time Protocol' tab, and click 'Enable Network Time Protocol.'  That'll keep your time sync'd.  click '''Forward'''.
 +
 
 +
- Send the 'Hardware Profile.'  It will lead to better support.  click, '''Finish'''.
 +
 
 +
you will be presented with a login screen.  At this point you are ready to follow the PlanetCCRMA installation instructions [http://ccrma.stanford.edu/planetccrma/software]. Having an external mouse helps with Fedora on the Mac.
 +
 
 +
 
 +
Tip:
 +
 
 +
From now on, every time you start up your computer rEFIt will give you the choice of operational system. If you don't make any choice within 20 seconds, rEFIt will boot automatically in OS X. In case you would like the default operational system to be Linux instead of OS X, all you have to do is to edit the refit.conf file that lives in your rEFIt folder in your OS X partition. Simply uncomment the last line of this file (the line that reads "#legacyfirst"; just delete the "#"). Also, if 20 seconds is too much or too little waiting time for you, you can change this value in the same refit.conf file (the "timeout" line).
 +
 
 +
==Update Fedora and PlanetCCRMA-lization==
 +
 
 +
Update Fedora: while plugged into Ethernet internet, in a terminal as root (su) type:  
  
 
<pre>
 
<pre>
Line 85: Line 153:
 
</pre>
 
</pre>
  
This can take two hours or more, depending on size & download speed.
+
This can take a long time, depending on size & download speed.  Reboot again after this extensive upgrade, to boot into a new kernel.
 +
 
 +
At this point you are ready to follow the PlanetCCRMA installation instructions [http://ccrma.stanford.edu/planetccrma/software]. Having an external mouse helps with Fedora on the Mac.
 +
 
 +
Soundcard detection via: System>Administration>Soundcard Detection.
  
 +
==EasyLife==
  
8. [http://ccrma.stanford.edu/planetccrma/software/installplaneteight.html PlanetCCRMA Fedora 8 installation]
+
Once you are done with the PlanetCCRMA-lization process, you might want to consider installing EasyLife on your Fedora system (http://easylifeproject.org). It's just a package that install and configures some software on your system in a "nice" way (especially recommended for new Linux users). Examples of what it adds automatically to your system: mp3 support, Flash player plugin, Skype, additional fonts Java plugin for Firefox, etc. You can of course choose which ones you will allow EasyLife to install or not.
  
9. Soundcard detection via: System>Administration>Soundcard Detection.
+
And here's another website that gives interesting tips on how adjusting your Macbook's touchpad in order to have right-click and middle-click: http://www.cenolan.com/2008/11/installing-fedora-10-macbook/ . It also gives instructions on how to get your built-in iSight camera to work.
  
 
==References==
 
==References==
  
[http://refit.sourceforge.net rEFit boot loader]
+
[http://refit.sourceforge.net rEFit boot loader]  What is EFI [http://www.uefi.org/about]?  Installation instructions [http://refit.sourceforge.net/doc/c1s1_install.html]
  
 
[http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp Triple Boot -- onmac.net]
 
[http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp Triple Boot -- onmac.net]

Latest revision as of 11:16, 5 June 2009

Installation instructions for a MacBook Pro

Main steps:

1) Backup your data.

2) Partition your OS X drive.

3) Install boot loader.

4) Install (& update) Linux, first adding boot, Linux, and swap partitions.

5) PlanetCCRMA-lize your Linux.

Acquiring Fedora Media

You can borrow Install DVD's from SysAdmin anytime. You can also download your own to your Mac, by visiting Fedora. Make sure to download the i386 version, not the x86_64 even though your Mac is 64bit. Many programs have yet to be ported to 64bit.

You can save a bunch of time and consternation by checking the media integrity right away. Use the following command line to determine the SHA1SUM checksum (takes a few minutes).

openssl dgst -sha1 Fedora-9-i386-DVD.iso

Compare this output string to the one provided by Fedora [1]. Ignore the verify instructions on that page, they are for Linux, but you can find the checksums here: 'Install DVD/Rescue CD > i386' The checksums strings should match exactly. If not, you've got a corrupt download, and you'll have to try again. This doesn't happen often, but it's worth the extra few minutes.

Burn your downloaded image (the '.iso' file) to DVD with Disk Utility: Images > Burn ... Disk Utility can be found here: /Applications/Utilities/Disk Utility

Prep the Mac (resizing and the bootloader)

1. Update firmware (run software update or download latest OS from Apple)

2. Plug into power source; connect to internet via Ethernet.

2. Start OS X Disk Utility (Utilities menu): select top hard drive icon, click "Partition" tab.


Disk-utility-pre-resize.png

Here's what it looks like before you do anyting.


You can now reduce the size of your Mac HD partition by selecting the target size of your new smaller partition. I chose a size of 50GB for PlanetCCRMA. You'll need at least 15GB for all PlanetCCRMA packages, plus some extra for your home directories. The choice is up to you. You have two options: Enter the target size (total HD size - 30GB, for me) directly in the field: 'Volume Information > Size' or under 'Volume Scheme' drag the botton right corner of the box up until your desired size shows in: 'Volume Information > Size'. Click "Apply", wait (can take some time).


Disk-utility-set-resize.png

You can see here the space for your new installation at the bottom of the 'Volume Scheme.' This is where Linux will go.


3. Install rEFIt. rEFIt install instructions [2]. It's a pretty straight forward Mac install.

Reboot to check rEFIt install (might take 2 reboots, we've found). A nice looking rEFIt screen shows before OSX boot but after the Apple chime.

This next part takes about 30 minutes.

Install Fedora from DVD

1. Make sure your Fedora disk is in the drive bay.

2. Reboot.

3. rEFIt will present you with a screen where you can select (with the arrow keys) the 'Linux penguin ('Tux') with the DVD' (rather than the apple) to boot from the Fedora install DVD. The machine will boot from the DVD and you'll be presented with a Fedora Install screen.

4. Unfortunately, how to take screenshots during install on the Mac has eluded us, so we'll have to stick with text descriptions (this is too bad).

- at the first screen choose: Install or upgrade an existing system, then press return/enter. The Mac will boot into the Fedora Installer.

- Media Check: skip it if you are comfortable you have a good disk (say it's been used successfully before), or check the disk media by selecting OK then Test (takes about 10 minutes). Select OK. The disk ejects. Just reinsert it. Give it time to spin up before you do anything (say 1 minute). Select Continue.

Fedora 9

- the X server starts and we enter the installation screen in earnest. Click Next at the first screen.

- choose your language, Next

- choose your keyboard layout, Next

- 'Network Devices:' select 'Set the hostname: automatically via DHCP. Unless you know that you need to change something else here, just click Next.

- set your Time-Zone, Next

- enter a root password, Next


(Note: you may start to see an annoying increase track-pad sensitivity. hope they'll fix this soon.)

Linux Partitioning

This description assumes you are only dual booting Mac OS X and Fedora.

"Your boot partition ought to be a primary partition, not a logical partition. This will ease recovery in case of disaster, but it is not technically necessary." [3]. So, we don't really need a boot partition.

You'll need to make a minimum of 2 partitions, but a third for a /home directory may be wise, since it will be left alone when you need to upgrade, making upgrades easier.

- From the first drop-down menu: Create custom layout; click Next.

You can see a graphical layout of your hard drive. There's a tiny partition at the left for EFI [4] of type vfat, then a large partition of type hfs+ which is your Mac OS X, and remaining Free space (for Linux). In this space, we'll create additional partitions to accommodate: '/', 'swap' and '/home'.

the '/' partition for PlanetCCRMA should be greater than about 15G.

the 'swap' filesystem partition should be 2 x RAM up to 2GB, and an additional 1GB for each 1GB of RAM after that. So for me, I have 4Gb RAM so I'll make a 6Gb swap. The swap file system acts like physical memory, went RAM fills up.

the '/home' directory can be in yet another partition. Since I have 30Gb of space, I'll give the remaining 9GB (30Bg-15Gb-6Gb) to /home.

- select the Free partition. click New when you'll find the 'Add Partition' dialog box. Select swap under 'File System Type.' For 'Size (MB)' enter the size in megabytes for your swap. Make sure 'Fixed Size' is checked, under 'Additional Size Options.' I entered 6000 for 6Gb. Click, OK.

- select the Free partition, again. click New when you'll find the 'Add Partition' dialog box. For 'Mount Point' select '/' from the drop-down menu. 'File System Type' is 'ext3.' 'Size (MB)' should be the size in megabytes for your system partition ('/' or 'slash'). Make sure 'Fixed Size' is checked, under 'Additional Size Options.' In this example I entered: 15000. Click, OK.

- for the '/home' partition, select the Free partition, again. click New when you'll find the 'Add Partition' dialog box. For 'Mount Point' select '/home' from the drop-down menu. 'File System Type' is 'ext3.' This time, you want to choose 'Fill to maximum size' under 'Additional Size Options.' Click, OK. This will create a /home partition with the remaining space, for you to store documents and projects.

Note: Nothing we've done so far in the installation has been written to disk. When we finish the partitioning scheme, here, the installer will begin to write to disk: establishing partitions and file systems, then starts installing packages. you can abort the installation here with no effect on your Mac.

- now at the main partitioning screen, click Next

- click, 'Write changes do disk.'

- Boot Loader screen: accept defaults, click Next.

- Package Installation screen: here you can select the packages you'd like to have installed from disk. The defaults are fine, if you want to simplify the install. Any packages not installed from disk can be installed later by several straight forward methods. Or you can select 'Customize Now' and browse the selection of packages available on disk, and choose to install them. We usually add emacs. Click, Next.

the installation begins... it takes about 20 minutes.

the disk ejects, click Reboot.

First Boot

Your Mac will chime, and the rEFIt screen will show, this time with an additional option: Tux. Maybe you should boot into OS X to make sure things are OK. Reboot again, and selet 'Tux' the penguin at the rEFIt screen.

Assuming you have no errors during boot, Fedora will walk you through several more configure screens called 'First Boot.'

- at the Welcome screen, click Forward

- click Forward at the License Information screen.

- create a user, yourself (your user account, this is different from the root account and should have a different password), click Forward.

- 'Date and Time' select the 'Network Time Protocol' tab, and click 'Enable Network Time Protocol.' That'll keep your time sync'd. click Forward.

- Send the 'Hardware Profile.' It will lead to better support. click, Finish.

you will be presented with a login screen. At this point you are ready to follow the PlanetCCRMA installation instructions [5]. Having an external mouse helps with Fedora on the Mac.


Tip:

From now on, every time you start up your computer rEFIt will give you the choice of operational system. If you don't make any choice within 20 seconds, rEFIt will boot automatically in OS X. In case you would like the default operational system to be Linux instead of OS X, all you have to do is to edit the refit.conf file that lives in your rEFIt folder in your OS X partition. Simply uncomment the last line of this file (the line that reads "#legacyfirst"; just delete the "#"). Also, if 20 seconds is too much or too little waiting time for you, you can change this value in the same refit.conf file (the "timeout" line).

Update Fedora and PlanetCCRMA-lization

Update Fedora: while plugged into Ethernet internet, in a terminal as root (su) type:

~> yum upgrade

This can take a long time, depending on size & download speed. Reboot again after this extensive upgrade, to boot into a new kernel.

At this point you are ready to follow the PlanetCCRMA installation instructions [6]. Having an external mouse helps with Fedora on the Mac.

Soundcard detection via: System>Administration>Soundcard Detection.

EasyLife

Once you are done with the PlanetCCRMA-lization process, you might want to consider installing EasyLife on your Fedora system (http://easylifeproject.org). It's just a package that install and configures some software on your system in a "nice" way (especially recommended for new Linux users). Examples of what it adds automatically to your system: mp3 support, Flash player plugin, Skype, additional fonts Java plugin for Firefox, etc. You can of course choose which ones you will allow EasyLife to install or not.

And here's another website that gives interesting tips on how adjusting your Macbook's touchpad in order to have right-click and middle-click: http://www.cenolan.com/2008/11/installing-fedora-10-macbook/ . It also gives instructions on how to get your built-in iSight camera to work.

References

rEFit boot loader What is EFI [7]? Installation instructions [8]

Triple Boot -- onmac.net

PlanetCCRMA

Fedora8 on MacBook Pro (Santa Rosa 3,1)

Dual Booting OS X and Fedora 8 on MacBook Pro

Madwifi ath5k wireless driver