home | lab | find me | science | publications | software | toolbox | site map
Installing Ubuntu 12.04 LTS in a Macbook Pro 8,1
- Insert the Ubuntu 12.04 LTS 64-bit installation CD, reboot and hold the 'alt' key.
- From the boot choice menu, select the CD icon that says "Windows".
- Choose live CD to try it out. Wireless won't work yet.
- Double-click the installer and get started. Will take about 30 minutes. I chose to erase completely MacOSX, not having any use for it.
- Once installed, reboot, remove the CD, and boot into Ubuntu 12.04 LTS. Notice that while booting a grey screen appears for about 30 seconds.
- To enable the wireless install the b43 driver, by doing:
- $ sudo apt-add-repository ppa:mpodroid/mactel
- $ sudo apt-get update
- $ sudo apt-get install b43-fwcutter firmware-b43-installer
...and then edit the file '/etc/modprobe.d/blacklist.conf' and add the line, at the end: blacklist ndiswrapper
...and then edit (create if not there) the file '/etc/pm/config.d/modules', and add the line: SUSPEND_MODULES="b43 bcma"
In the installer, I chose to have my entire home directory encrypted. If you do so, nobody can read your personal files without your password. Be sure to store the passphrase securely somewhere. If you lose the piece of paper with the passphrase and still have access to your laptop, use "$ ecryptfs-unwrap-passhrase" to print it (will ask for the 'passphrase' but it means your password).
There are a number of modifications you may want to do:
UPDATING to Ubuntu 14.04 Trusty Tahr:
- Upon completing the upgrade, internet seems not to work: the DNS setup for resolving internet addresses (e.g. google.com) to IPs (e.g. 123.456.789.10) is screwed up. You have to run "sudo dpkg-reconfigure resolvconf" to restore the /etc/resolv.conf file as a symlink, and then remove the /etc/resolv.conf.d/tail and re-add it as a symlink to /dev/null.
- Wireless fails to reconnect when resuming from suspend (in other words, waking up from sleep): open a terminal and type "sudo killall wpa_supplicant" and it will reconnect instantly. The wpa_supplicant restarts automatically upon killing it, restoring whatever is wrong with it. It's an authentication error of sorts. The easy solution is to create your own resume script under /etc/pm/sleep.d/, named e.g. "99_fix_wifi", containing essentially "killall wpa_supplicant" but wrapped like it says in the above link, under the answer by Joonas Harjum\auml;aki.
- Dropbox daemon fails to start. Do:
Will ask to enter your password and then re-download the appropriate binaries, and the issue will be fixed.
- cd /var/lib/dropbox
- sudo rm -rf .dropbox-list
- dropbox start -i
- Sleep and resume works only if you disable wake up from sleep, by issuing a command like: "echo XHC1 > /proc/acpi/wakeup" as root. To make it permanent, run 'echo "disabled" > "/sys/bus/pci/devices/0000:00:14.0/power/wakeup' as root. See this bug .
UPDATING to Ubuntu 16.04 Xenial Xerus:
Everything just works, had to do nothing at all beyond running the updater.
Last updated: 2016-04-24 15:58 New York time. Copyright Albert Cardona.