Ubuntu on the Mac Pro
Last year I bought a Mac Pro to replace my aging Linux PC. It was a pretty significant upgrade, from a HyperThreaded 2.5Ghz Pentium 4 to a dual-processor, quad-core 3Ghz Xeon with 8G of RAM. Leopard is nice but I wanted to try and get Ubuntu running on it.
Here's the setup, I have 4 drives:
- 750G - Leopard
- 200G - Windows
- 750G - Backups
- 750G - To be Ubuntu
Here are the basic steps I followed:
- Install refit
- Install from LiveCD (7.10)
- Select manual Manual Partition and from the advanced options, choose hd3,0. I setup my disk with one ext3 partition and 1 swap partition.
- After install, boot the linux disk from the refit menu
- Grub will get to stage 1.5, you will see the menu but be unable to start the system, it will complain about unknown partition type
- hit 'c'
Here's a transcript of my tinkering with grub to find the right drive with my initrd and kernel on it so I could boot my fancy Apple-branded Linux machine.
grub> root (hd<TAB>showed a bunch of drives with various partitions but most importantly showed that hd0,0 had the Linux partition I was looking for. Even though with the ubuntu installer, we told it to use hd3, here we use hd0. the boot manager has shuffled the order of the drives. Telling the ubuntu installer to use hd0,0 will only result in an unbootable disk.
grub> root (hd0,0) grub> kernel /boot/vmlinuz<TAB>will show you some vmlinuz files. typically just the one ubuntu installed. pick it.
grub> kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sdd1 ro grub> initrd /boot/initrd.img-2.6.22-14-generic grub> boot
Now your system will boot. Edit your /boot/grub/menu.lst to point the root (hd0,0)
Now reboot and you will be in Ubuntu. Your wifi adapter won't work. Follow these steps to enable ndiswrapper to use the windows drivers.
I used a usb thumb drive to move the windows drivers zip file between my laptop and desktop.
Once you have networking up, don't forget to enable ssh so you can login in case you screw up your X config.
Edit /etc/apt/sources.list to include what you might want.
I have an ATI Radeon X1950 Pro video card. To get it working, I simply installed Envy which downloaded the right drivers and installed them for me.
But it didn't span monitors, they were just clones so I ran aticonfig (which Envy installed for me)
aticonfig --initial=dual-head --overlay-on=1
And we were good to go.
Banshee imported all my music from my iPod after converting it's database from an iTunes format it didn't recognize.
Using hibernate left the Mac's wifi adapter in a weird state. Rebooting it didn't help but booting into OS X and back into Linux corrected the wifi card.
The fan speed still isn't quite right, various fans will become louder and softer at odd intervals. I will try monkeying with lm-sensors later.
I have nice smooth fonts by running Emacs 23 from Alexandre Vassalotti's repo and the Inconsolata font for programming.
Overall, it's a great Linux machine and maybe one day it won't be so much trouble to get running. Hopefully my instructions will help you get it up and running.
# — 11 February, 2008