Linux and the new 12' Macbook? I decided to try to install Linux on the 2015 Macbook, and miraculously I've managed to actually boot the preview of Elementary OS from USB. Problem is, the keyboard and trackpad don't work at all, so I can't do anything.
2012-05-26
I love the new Ubuntu 12.04 Precise Pangolin. Unity - and the graphics drivers - have finally reached a stability that satisfies me and let me keep GNU/Linux as solo operating systems on my Macbook Pro 6,2.
What drives me crazy is the default keyboard mapping, surely not thought for who owns an Apple computer.
First, the Unity Launcher (a.k.a. Dash) default shortcut is the
key (or Win key). This key corresponds to the
key on Apple keyboards. Under Mac OS X, the combination
opens Spotlight, while
,
are for Copy&Paste.; That is, the
key is a supercharged
key.
I spent some time to search the best combinations to reproduce this behavior under Ubuntu. Here is what I managed to create:
I swapped the left
ctrl
and the left/right
keys. That is,
becomes
and
becomes
After the first modification, it becomes unconvenient to open Dash with the
ctrl
key. Therefore, I changed Unity Launcher key to
. This (sort of) emulates OS X behavior.
To implement the first tweak, create the file
with the following content:
Logout and login again. Congratulations, you have the swapped keys. Ubuntu should already take care to load the file automatically.
It is important to not manually load the .Xmodmap file. It may result in a double application of the mappings, resulting in a re-swap of the keys.
To achieve the second tweak, install the package
. Open it using the
command, or search for it in Dash.Find
and change it to
, using the Grab key combination button. It may be also shown as
.
You can now have a behavior similar to Mac OS X in Ubuntu 12.04. You can change the virtual desktop using
. You can cut, copy, and paste using
,
, and
. You can open the Unity launcher with
.
I hope that this little how-to can help frustrated Apple users who want to embrace GNU/Linux freedom.
I do not use a commenting system anymore, but I would be glad to read your comments and feedback. Feel free to contact me.
March 17, 2013 6:44 pm2 Comments[singlepic id=17 w=320 h=240 float=left]
Couple years ago I used to have a MacBook Pro with Core 2 Duo processor (2007 model). It was great back then, however as time passed after 3 years; I needed a laptop with higher resolution. So I bought a Sony with 1080 HD screen. It was a great decision, the performance wasn’t great perhaps due to the whole bunch of software it was running. Now I’m back with MacBook Pro Retina Display and it reminded me that I still have this old MacBook Pro lying around which I can virtually do anything with.
The good old 2007 MacBook Pro has been lying dormant for over 3 years! I decided to pop it open and plug it back into life. The machine still works, however unable to utilize the latest and greatest OSX, it would have been too slow if it was able to anyway. However this machine is still great, so I thought there has to be something that I can do with this thing. So yes, I’m planning to install Ubuntu 12.10 on it.
I’m sure there are a lot of other people with the same case as I am so here are a couple things that I have done to give this old mac a new purpose.
Before doing anything in this tutorial, please please please, backup your data first! I will not be held liable for any loss of data, etc.
The MacBook Pro came with 120GB HDD, this was not nearly enough if you want to put two OSes inside. Coincidentally I have already upgraded the Mac’s HDD few years back out of interest. It was a relatively easy process, you just have to be careful.
I followed the instruction on ifixit. Go ahead and look at the guide if you are interested.
500GB HDDs are so cheap these days and you can almost get it anywhere in store or online. Here are couple of examples to show you the current price:
NOTE: make sure you read the ifixit guide for the correct specification of the HDD. I use the Western Digital 500GB SATA myself but different MacBook may vary.
There are two ways you can install Ubuntu Linux on a Mac. That is full installation or dual booting between OSX and Ubuntu. Today we are going to show you how to install this dual booting style.
Note that in this guide we are using OSX Snow Leopard and Ubuntu 12.10.
Download the ubuntu ISO from http://www.ubuntu.com
To keep it safe, choose the 32-bit version. The Mac that I use for this tutorial only have 3GB of RAM anyway so 32-bit will work just fine. After the download has been completed, burn the ISO a CD or DVD.
Macs doesn’t use BIOS but EFI, installing rEFIt will allow your Mac to multiboot into different OS-es
This is the fun part.
You can now do whatever you need to do on Ubuntu. In my experience, using Ubuntu 12.10 on Macbook Pro Core 2 Duo works out of the box. Wireless and sound works flawlessly. The only thing that I needed to adjust was the trackpad, which can be done using Ubuntu’s “mouse and trackpad control panel” anyway.
[singlepic id=26 w=160 h=120 float=right]So, that was easy. I hope you can try this and have as much fun as I did. Again, don’t forget to backup your data before doing this. Anyway, this is an old mac too, so there’s no need to hold back.
Now you can install your development servers from source just like on any other Linux machines or turn this mac into a local server. The possibility is endless :D
Here are the couple of websites where I based my experiment on. I only took the relevant bit out of these as Ubuntu 12.10 is generally very compatible with the Mac.
http://lifehacker.com/5934942/how-to-dual-boot-linux-on-your-mac-and-take-back-your-powerhouse-apple-hardware
https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation#Single-Boot:_Ubuntu_Only
http://www.linuxbsdos.com/2011/05/04/manual-disk-partitioning-guide-for-ubuntu-11-04/
http://tech-devnet.blogspot.de/2012/05/running-ubuntu-1204-on-mac.html
Categorised in: Fun computing, General Computing, Ubuntu