pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas
Linux on your Apple Mac | iLinux • View topic - Installation Ubuntu 10.10 on MBP 7,1 13 inch

Installation Ubuntu 10.10 on MBP 7,1 13 inch

Installation Ubuntu 10.10 on MBP 7,1 13 inch

Postby linuxopjemac » Thu Nov 04, 2010 2:16 pm

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:
Code: Select all
chmod -N ./Music/

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: Select all
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 permission 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 drive that has to be downloaded).

Once connected I ran:
Code: Select all
sudo add-apt-repository ppa:mactel-support && sudo apt-get update


After that I could install the proprietary hardware drives for the wireless hardware and the graphic hardware.

A variety of packages needed to be installed to make things work:
Code: Select all
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: Select all
sudo modprobe nvidia-bl
sudo modprobe coretemp


Coretemp needs to be added as a module to load at start, so
Code: Select all
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: Select all
sudo /usr/share/doc/libdvdread4/install-css.sh


You can rebood the Mac out of the box, but instead you have to make a small change to grup:

(note here I use vim, in other places I use vi, but use whatever editor you are comfortable with, gedit works great too!)
Code: Select all
sudo vim /etc/default/grub


and change:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"


Then run:
Code: Select all
sudo update-grub


To get the sound working, I added
Code: Select all
options snd-hda-intel model=mbp55

to the end of the alsa-base.conf file with:
Code: Select all
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: Select all
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: Select all
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: Select all
sudo cp /etc/pommed.conf /etc/pommed.conf.bak
sudo vim /etc/pommed.conf


After editing the file, restart pommed:
Code: Select all
sudo service pommed start


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.
linuxopjemac
Site Admin
 
Posts: 541
Joined: Tue Feb 02, 2010 8:48 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron
pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas