I did a reinstall of Ubuntu on my new Mac yesterday and thought I would document the process for anyone who may benefit.
From within MacOSX, I installed rEFIt, boot menu manager/loader from their source forge site:
http://refit.sourceforge.net/#download
Still in MacOSX, I used disk utility to shrink my MacOS partition and make two new partitions, one for swap (1gb) and one for Ubuntu (50gb in my case).
Instructions for this are located here:
http://lifehacker.com/5531037/how-to...-camp-required
Still while inside MacOSX you need to identify folders in your home directory that you want to access from within Linux and remove the ACL properties of the directory, such as:
From within your home directory:
The -N option is not in our Linux man pages as it is ACL specific, but can be found in Apple and Sun man pages. -N strips ACL permissions from the file or directory so applied.
Additionally, you may want read permissions to some of your files on the Mac:
Code:
chmod -R 755 ./Music/
This changes your Music folder and all subfolders and files to be world readable. Since I do not plan disabling journaling on the MacOS side, I am not going for write access to the Mac partition, hence the 755 permissions.
With the partions created, ACLs removed and permissions sorted, I booted on the current Maverick 32 bit install disk and setup the Mac as is generally described here:
https://help.ubuntu.com/community/MacBookPro7-1/Lucid
and
https://help.ubuntu.com/community/Ma...ro7-1/Maverick
Upon first boot, the first thing to do was connect it to a wired network (the wireless hardware needs a driver that has to be downloaded).
Once connected I ran:
Code:
sudo add-apt-repository ppa:mactel-support && sudo apt-get update
After that I installed the proprietary hardware drivers for the wireless hardware and the graphic hardware.
A variety of packages needed to be installed to make things work:
Code:
sudo apt-get install nvidia-bl-dkms macfanctld v86d applemc-dkms applesmc-dkms nvidia-bl-dkms pommed bcm5974-dkms xserver-xorg-input-synaptics ubuntu-restricted-extras git-core libdbus-1-dev libconfuse-dev libaudiofile-dev libasound-dev libpci-dev libdbus-glib-1-dev libglade2-dev libgtk2.0-dev libx11-dev libxext-dev libxpm-dev
New modules were installed with:
Code:
sudo modprobe nvidia-bl
sudo modprobe coretemp
Coretemp needs to be added as a module to load at start, so
Code:
sudo vi /etc/modules
and add coretemp to the end of the file.
To make DVD playback work, I used the new shell script:
Code:
sudo /usr/share/doc/libdvdread4/install-css.sh
You can't reboot the Mac out of the box, but instead you have to make a small change to grub:
(note here I use vim, in other places I use vi, but use whatever editor you are comfortable with, gedit works great too!)
Code:
sudo vim /etc/default/grub
and change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"
Then run:
To get the sound working, I added
Code:
options snd-hda-intel model=mbp55
to the end of the alsa-base.conf file with:
Code:
sudo vi /etc/modprobe.d/alsa-base.conf
Reboot then run alsamixer and select the front speakers, press "M" to unmute then arrow up to max out the volume.
To make the Mac keyboard items work, you need the latest pommed:
Code:
git clone git://git.debian.org/git/pommed/pommed.git
cd pommed
make
Once you have the new pommed binary, you can install it in place of the one you have with:
Code:
sudo service pommed stop
sudo cp pommed/pommed /usr/sbin/pommed
sudo service pommed start
Then you can edit the pommed.conf file and add the pommed configuration linked to above:
Code:
sudo cp /etc/pommed.conf /etc/pommed.conf.bak
sudo vim /etc/pommed.conf
After editing the file, restart pommed:
Code:
sudo service pommed stop
sudo service pommed start
After working with system a bit I noticed the mic input volume was low, so I installed the pulse audio manager:
Code:
sudo apt-get install paman
Run it with paman and select your analog input, and put the percentage at about 250%.
I also grew tired of the red led coming out of the speaker jack and muted the S/PDIF via alsamixer.
As a full time Ubuntu user, I am happy with the outcome, but have two complaints...one the sound quality on the laptop under Linux is so poor to make it almost moot to get sound working (I still boot into MacOSX to play music), two the install on this latest Mac hardware is a bit more complex than it should be.
All in all the new MacBookPros are very nice and getting Ubuntu on one and working well makes them even better. Tonight I will try some external speakers and see if that changes things.
Bookmarks