EDIT: THIS IS HOW YOU GET LATEST UBUNTU STUDIO WORKING ON A MAC / MACBOOK!
Installing Linux on a Macintosh is tricky because of two reasons:
1. Mac's don't use the same partitioning table as everyone else. They use GPT instead of MBR and in order to boot OS's other than MacOSX you need to setup a GPT/MBR hybrid partitioning table. If you will only run one OS on your computer then this is not a problem. rEFIt will help you with creating a hybrid table aswell as Apple's own BootCamp. Be aware that tools like Parted/GParted might destroy your partition table leaving you with a unbootable system.
2. Mac's don't have BIOS nor do they have UEFI (the new industry standard) but they instead use EFI and a BIOS-emulation mode. The Ubuntu Studio install DVD supports BIOS and UEFI but, probably because of a bug or something in Mac's EFI implementation, Mac's can't boot it. Regular Ubuntu have a specific Mac version sans UEFI which won't confuse your mac and let it boot in BIOS-emulation mode. Ubuntu Studio don't have this version which is the reason for this thread.
Install Ubuntu Studio:
Good things to have before you start:
- The rEFIt install CD
- Atleast one backup distro that you are sure boots on your Mac and includes Parted or GParted in case you screw up (I am using SystemRescueCD)
- A second computer in case you need to download another distro or something.
Now, download and burn Xubuntu. I used the "Alternate CD" 32-bit version so I'm not sure if the "Desktop CD" works. Put the CD in your drive, restart the computer and hold down the "alt" ("option" in mac-lingo) key. Choose the "Windows" CD. Install Xubuntu on your harddisk (probably prefereably the whole drive) and let it install GRUB if it's not already installed and you are planning on using just one OS. Restart the computer and you should now be running Xubuntu. If it doesnt boot, if you are having multiple OS's installed or if you have rEFIt installed you need to update your MBR-table via rEFIt's Partitioning tool. Hold down alt while starting the computer, eject the Xubuntu disc and insert the rEFIt cd, shutdown your mac (by holding the power button pressed for a few sec) and start it up again holding alt. Choose rEFIt and the partition tool and let it do its thing.
Once in Xubuntu, download and install Ubuntu Studio as per these instructions. Since you are running Xubuntu you don't have gedit but should instead use leafpad. Read the instructions carefully as it says again and again that you should modify /etc/udev/rules.d/65-permission-raw.rules and /etc/security/limits.conf while it also says that you shouldn't (which in this case is the correct thing to do: don't modify them!).
At the time of this writing there doesnt seem to be any realtime kernel available for Ubuntu 11.10. You need a real time kernel if you are planning on recording music. Therefore I needed to upgrade to 12.04 beta (everything with $ at the start of the line is a command you run in the Terminal):
I installed the realtime kernel from here:
$ update-manager -d
I guess this is an alternative:
$ sudo add-apt-repository ppa:abogani/realtime
$ sudo apt-get update
$ sudo apt-get install linux-realtime
Make sure you check whch kernel you are currently using:
$ sudo apt-get install linux-lowlatency
Setup Firewire sound
If you are using a Firewire soundboard like me you need to set the IRQ-priorities that you can read about here:
Change the line that says
$ sudo leafpad /etc/default/rtirq
RTIRQ_NAME_LIST="rtc snd usb i8042"
and save it.
RTIRQ_NAME_LIST="rtc ohci1394 snd usb i8042"
Fix alt - key
This is how you fix the "alt" - key not working on your non-US Mac ("third level" or AltGr - so you can type the at-sign @ for example) in Xfce / Xubuntu:
Choose your keyboard modell (mine was "MacBook/MacBook Pro (Intl)") and follow the instructions until you get to which key to use for AltGr in which case you choose "Alt, left".
$ sudo dpkg-reconfigure keyboard-configuration
Set CPU Frequency Scaling
Lastly you should set CPU Frequency Scaling to "performance" setting:
Change the line that reads:
$ sudo apt-get install cpufrequtils sysfsutils
$ gksudo leafpad /etc/init.d/ondemand
echo -n ondemand > $CPUFREQ
and restart your computer. Verify that the setting stuck with this command:
echo -n performance > $CPUFREQ
Install rEFIt boot menu
You need a partition of HFS+ type (maybe FAT32 will also work). Latest SystemRescueCD has the capability to create this for you in GParted or you can just do it in MacOSX or through the MacOSX install CD and Diskutil. I think a 20 MiB size should be enough but a little more dont hurt. Maybe you kept your "EFI System Partition" and that could probably also work. Make sure to name your partition, for example I named it just "EFI".
Now copy the "efi" - folder from the rEFIt archive to the root of the partition. Boot your MacOSX install-CD/DVD or MacOSX if you still have it installed, hit the terminal (Utilites-menu and Terminal on the install-CD) and run this command:
Make sure to substitute [Name of your partition] with the actual name of your EFI-partition. It might give you errors but just ignore them, seems to work anyway. This command tells the Mac-firmware to boot the rEFIt application when you start the computer. There are Linux - implementations of the "bless"-command but i couldnt make them work. Would be really nice if someone would tell me how to so you could take MacOSX completely out of the picture.
bless --folder="/Volumes/[Name of your EFI partition]/efi/refit" --file="/Volumes/[Name of your EFI partition]/efi/refit/refit.efi" --labelfile="/Volumes/[Name of you EFI partition]/efi/refit/refit.vollabel" --setBoot
Hope this helps anyone since it took me forever to get this to work!
I'm having trouble installing Ubuntu Studio on my MacBook 2.1. The same problem arises when trying to install regular amd64 iso on regular Ubuntu. Regular Ubuntu has a "+mac" version though that works for me. It's explained here:http://askubuntu.com/questions/37999...-mac-iso-image
Is there a similar version for Ubuntu Studio or can I build one?