Apple MacBook Pro A1297 (Feb 2011)
In OSX, clicking on the Apple (on the top left), then "About this Mac",
"More Info...", you can see the hardware generation number 8,3 in the "Model Identifier" row: "MacBookPro8,3". The Apple "order number" is MC725LL/A. More specs.
Some issues with using the Apple MacBook Pro A1297.
- The MAC address of the Wireless card is not printed on the case of
the unit. But the Apple OSX operating system (installed by default on
the unit) requires a network connection, before it will allow itself to
be used initially. This makes it awkward to determine the unit's MAC
address until after the initial setup (which was presumably done using a
wired network connection instead).
- The unit boots a 64-bit kernel by default. The trouble is,
some very commonly used business software hasn't been updated to include
the 64-bit kernel extensions necessary to work with a 64-bit kernel
(e.g. the Cisco VPN), yet Apple make no mention of this quirk in their
release notes.
- There is no Apple support for providing a "middle click"
(button 2), which is often used in GNU/Linux (e.g. as "paste"). This can
apparently only be accomplished using third-party software (see below).
- There is no full-duplex audio hardware device (there is no
audio device which is capable of simultaneous playback and recording).
Recording musicians would benefit from such a device, as it would make
it possible to use Ardour without needing to connect an external
Firewire audio interface (but not the Tascam FW-1082,
which does NOT work because it apparently needs power over Firewire and
the Mac Book Pro Firewire port does not provide any power, unlike the
Firewire ports in an iMac).
CPU
Memory
- 8GB (4GBx2), can be upgraded to 16GB (8GBx2). The memory type is
PC3-10600 DDR3 1333 MHz SO-DIMM 204 pin CL9, and CL11 will work too with
no noticeable difference.
Using 32-bit kernel extensions
To use 32-bit kernel extensions, need to hold down the 3 and 2
keys simultaneously while booting (to select the 32-bit kernel, instead
of the default 64-bit kernel). Only the 32-bit kernel has support for
the following:
Acting as NFS client to Ubuntu 15.04 NFS server
The default version of NFS mount that OSX Yosemite 10.10.3 uses is still
NFS version 3 by default. On an Ubuntu 15.04 server, this means that
you'll need to start rpc.statd as follows, otherwise you'll see hanging problems and long delays when using OSX as the NFS client.
service statd start
You should then see it running, e.g.:
statd 6315 1 0 21:52 ? 00:00:00 rpc.statd -L
In the past, /etc/default/nfs-common used to contain an option USE_STATD that could be set to yes to get the system to start rpc.statd
when the system boots, but this has since been removed (in the name of
progress) apparently because systemd (the new boot manager) doesn't like
parameters like this. I'm currently booting my Ubuntu 15.04 using the
old Upstart because otherwise ZFS on linux doesn't work properly to
mount the pool on reboot, so perhaps there's a way to get systemd
to start statd but I'm not investigating any further. It seems pretty
bad that such a common NFS client as OSX Yosemite would no longer work
by default with the NFS server in Ubuntu 15.04 without users having to
figure out to start rpc.statd by themselves. Perhaps rpc.statd
is no longer needed in NFS version 4, but from my experiments, passing
the following flag manually on the command line while mounting the NFS
filesystem from OSX (and checking afterwards the version of the NFS
mount using nfsstat -m command), my OSX client also failed
to work properly and the kernel got hung, to the point where the system
would not reboot and I was forced to manually power off the laptop.
Quite a bad behavior.
-o vers=4
Middle Click (button 2)
Thanks to Clem, the middle click (button 2) is possible, see here.
Keyboard Quirks
- The
Home, End, PgUp and PgDown keys are missing, but you can use instead:
-
Fn Left Arrow key as the Home key
-
Fn Right Arrow as the End key
-
Fn Up Arrow as the PgUp key
-
Fn Down Arrow as the PgDown key
-
Fn Enter as the Insert key (this is often used for Shift Insert to paste in Linux, so the equivalent would be Shift Fn Enter on the Apple keyboard).
- The
delete key actually sends a Backspace event, whereas Fn delete sends a Delete event (you can check this using xev).
- The
fn key occupies the position usually reserved for the Control key: here, the DoubleCommand utility (which is an extension to System Preferences, not an Application) can help, as it can be confugured so that the fn key acts the same as a control key by checking the setting Function Key acts as Control Key. Unfortunately, enabing fn as a control key messes up the fn delete behavior (delete the character on the right, instead of on the left), so it's best to also check the Shift-Delete acts as Forward Delete. To apply the settings, press the Activate button.
- The
Play/Pause key (which is used by the free Cog music player) will unfortunately also launch the dreaded Apple iTunes program, even if you have no interest in using iTunes.
Apple OSX quirks
When you go into System Preferences -> Sharing and enable Remote Login, instead of abbreviating it to "ssh username@198.35.175.205", it says:
To log on to this computer remotely, type "ssh username@dhcp-4lp9-4lp10-east-198.35.175.205.hqdhcp.mycorp.com".
Ubuntu in VirtualBox
In case you need to stop the OSX menu bar for the VirtualBox application
from constantly popping up by accident whenever you're instead trying
to get to the Gnome Menu bar at the top of the screen, see here.
After installing the PresentYourApps tool, choose "Remove Menu Bar And
Dock" for all "VirtualBox VM" windows. Note that this window name only
appears after you have launched the Ubuntu VM, and it must be
re-done each time you launch the VM, which is a bit awkward if you
usually launch your Ubuntu VM directly into fullscreen mode.
Ubuntu on raw Apple hardware
Ubuntu on Apple MacBook Pro is described here. For the 8,3 hardware generation, I tried to install using the usual Ubuntu 11.04 images, but none of them find the media (despite having just booted from it, surprisingly).
Instead, I performed a network install, as follows:
- Partition your internal drive as usual using BootCamp from within OSX.
- Boot from the net-install for Ubuntu (not from the traditional installation media).
- Install as usual, but since you have only one partition
(created by BootCamp), don't allocate any swap space. Just give the
entire partition to root.
- When the installation gets to the end, choose
/dev/sda3 as the destination for GRUB. You can see that this is the correct location by pressing Ctrl Alt F2 and looking where the /target filesystem is mounted by the installer.
- Note: You don't need to install rEFIt into your OSX, you can use it directly by booting it from CD, see rEFIt. But you don't really need to run rEFIt at all for a basic OSX and Ubuntu dual-boot setup. Instead, you can just hold down the
Option key when starting up: a menu will come up offering the choice of Windows (which is actually Ubuntu).
- In Ubuntu, currently, the trackpad can be configured (a little) using
gnome-mouse-properties and clicking the Touchpad tab. For example, two-finger scrolling can be enabled.
- The wired network and the Intel HD-3000 graphics work immediately.
- The display and keyboard backlight brightness can also be adjusted.
- Overall, quite usable.
- Beware: the screen began flickering (even in OSX) after
running Ubuntu for a few hours. This was while using the default Intel
HD 3000 driver, not the proprietary ATI
fglrx driver. The flickering behavior persisted afterwards in OSX for quite a while (scary!).
Update: Ubuntu 14.04 on MacBook Pro A1297
Ubuntu 14.04 works a lot better now on the MacBook Pro A1297. Warning:
don't upgrade to Ubuntu 14.10 on this machine, you'll likely run into this bug (no graphical login after reboot).
It took quite a long time to update to Ubuntu 14.04, all the way from
Ubuntu 11.04, almost two days over DSL! The process is described on
Ubuntu's EOLUpgrades page and on this page.
I subsequently upgraded the Mac Book Pro's memory from 8GB to 16GB, but
then Ubuntu 14.04 no longer recognized the keyboard and trackpad. It
seems that by disconnecting the battery (which was required to install
the memory upgrade) some NVRAM setting got lost, and none of my Ubuntu
installations would recognize the keyboard and trackpad. I ended up
having to reinstall Ubuntu 14.04.02 from the desktop ISO (the install
works fine now, and it can be done using the live CD). I also had to
install rEFInd (using OSX) to get Ubuntu to boot properly and recognize
the keyboard and trackpad. Note: I tried an upgrade to Ubuntu 14.10, but
to my surprise Xorg stopped working (no graphical login, see this
bug), and I had to reinstall 14.04.02. I haven't found any launchpad
bug explaining what's going on here, but this seems like quite a bad
thing to happen for an upgrade.
Overall, Ubuntu 14.04 feels even better than OSX Snow Leopard, which is getting pretty old.
The wireless card is natively supported by the kernel, but you'll need
to install the firmware package using the following commands.
apt-get install firmware-b43-installer
apt-get install b43-fwcutter
To enable the three-finger presses to act as middle-click ("paste"), do the following
synclient ClickFinger3=2
synclient TapButton3=2
You can also use amarok to manage your iPod nano 7th gen, rather than struggle with iTunes since Ubuntu 14.04 has support for Apple's hfsplus
filesystem that's used on the more recent iPod (or a better approach is
to use a Windows machine to restore the iPod so that is uses the exfat filesystem instead, which is likely to be more widely supported).
sudo apt-get install amarok
The Wacom Intuos4 works using this
workaround. The Intuos4 pen pressure works in inkscape after disabling
the overlay scrollbar feature before launching the program, as follows.
export LIBOVERLAY_SCROLLBAR=0
inkscape
I found that vpnc no longer works in Ubuntu 14.04 whereas it worked fine in 12.04. You may be able to use openconnect instead if you're connecting to a Cisco AnyConnect VPN gateway. OpenConnect is much simpler to configure and use than vpnc, see here.
OpenConnect is a client for Cisco's current AnyConnect VPN product,
which is replacing their older IPSec-based VPN (which was supported by vpnc). To use OpenConnect in KDE involves installing these packages:
sudo apt-get install plasma-nm
sudo apt-get install network-manager
sudo apt-get install network-manager-openconnect
/usr/bin/kde-nm-connection-editor
Compiz Quirks
- A new Compiz quirk in Ubuntu Natty (11.04): when you change
System -> Preferences -> Windows -> Titlebar Action to "Maximize Vertically", it maximizes the window both vertically and
horizontally when you double-click on the window's title bar, instead
of just maximizing it vertically. You can work around the problem using this idea, by assigning a keyboard shortcut using the gnome-keybinding-properties program (by navigating to its Window Management subsection to find the Maximize Window Vertically action and assigning a keyboard shortcut for it). Don't enable the endearing Wobbly Windows
plugin if using this workaround, as they don't work well together in
VirtualBox: for example, a vertically-maximized xterm will move, gradually "walking" entirely off the screen, all by itself!