Professional Documents
Culture Documents
Mac Ubuntu Dual Boot
Mac Ubuntu Dual Boot
Note: This worked under OS X Leopard, it could work on Tiger but I haven't
tried that.
The site from where the idea was taken talked about installing Ubuntu on a
MacBook Air but it made sense and the installation seemed very easy and
straight forward. After trying the suggestion, it worked fine. The installation
was made on a system with OS X Leopard already installed and up to date.
Because of the nature of the installation, I think it could work on all MacBook
models and on all MacBook Pro models with Leopard installed.
6.
Select the 'free space' and click 'New Partition'. Set the size of
the partition in wich Ubuntu will be installed leaving the free
space for the swap partition if needed plus the free space that
you wrote down before. Set the formatting to occur at the end.
Format it as an 'ext3' type partition and set the 'Mount Point' to
'/'. Click OK. (Note: After finishing partitioning, the free space left by
BootCamp should be the same)
Note: This is for a MacBook Pro with OS X & Windows Vista allready
installed
3. Select the 2nd option, the one that says : "Install Ubuntu"
4. After the loading, on the install screen, select the O.S. Language
(English) and hit "Forward" button, then select your country location.
6. On the "Prepare Disk Space" menu, select the 1st option: "Guided
- Resize SCSI3 (0,1,0), Partition #3 (sda) and use Free Space", and
with your mouse select the desired partition size (I set mine to 80%
Windows Vista & 20% Ubuntu), and hit "Forward" button.
10. After the installation as finished, hit "Restart Now" button, it will
exit the installer and eject your CDROM, then press "Enter" key to
restart. After the reboot, select the Linux icon on rEFIt to boot into
Ubuntu.
11. Don't forget not to install the ATI accelerated graphics drivers,
that is auto-detected by Hardware Drivers application, we'll cover
the installation of the latest and official ATI drivers on the next
section.
7 - Get back to MacOS, install rEFIt, reboot and run the partition
manager of rEFIt, which should take care of every detail of booting
for each OS.
Video
The following only applies to the 1st and 2nd Generation MacBook
Pro models. If you are using a 3rd Generation MacBook Pro (Santa
Rosa), see MacBookPro SantaRosa Guide. You have 4 choices for the
video driver:
3. The most recent fglrx driver, ATI Proprietary, witch fully supports
3D acceleration, we'll cover the manual installation procedure ahead
4. The open source radeonhd driver, the current version does not
support 3D acceleration, that will also be covered the manual
installation procedure ahead
3.2. To install latest ATI driver (ATI 8.4 / FGLRX 8.47.6) with 3D
acceleration support do this:
cd ~/Desktop
mkdir ATI
cd ATI
sudo rm /usr/src/fglrx-kernel*.deb
DISABLED_MODULES="fglrx"
3.8. Verifying
fglrxinfo
Also see this guide that concerns video playback issues with
Compiz Fusion : http://wiki.compiz-fusion.org/VideoPlayback
Driver "ati"
with
Driver "radeonhd"
d. Reboot. You are now using the open source radeonhd driver.
Installation is simple:
a. Make sure you have not installed the fglrx (ATI proprietary) driver
(check under System -> Administration -> Hardware Drivers).
For 8.04:
Make sure you are installing version 1.2.1 or later and not the 1.1.0
(8.04) version found in the official repository. Else redo step 2.
Driver "vesa"
with
Driver "radeonhd"
Option "AccelMethod" "ShadowFB"
f. Reboot. You are now using the open source radeonhd driver.
Screen Colors
MacBook Pros can use a program called xcalib to emulate the screen
coloring calibration of OS X. This isn't available in the Ubuntu
repositories, so you'll have to download it and compile it.
sudo apt-get install libxxf86vm-dev libxext-dev
wget -c http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/
xcalib-source-0.8.tar.gz
tar -zxvf xcalib-source-0.8.tar.gz
cd xcalib-0.8/
make xcalib
sudo mv xcalib /usr/local/bin/
sudo chmod 755 /usr/local/bin/xcalib
Then, do an "ls /usr/local/etc" and note the name of the profile (for
the next step).
3. In Recording TAB -> Unmute all and set 'Capture' and 'Capture 1'
Volume to 95% and 'Mux' and 'Mux 1' to 50% of volume(higher
results on static)
Wireless
Using Subversion (be patient with the checkout, it may take a while):
At this point the driver is installed and should work and the internal
wifi will be enabled after reboot. Alternatively, you can skip the
reboot and use these commands to insert the driver into the
running kernel:
Finally, the MadWifi driver will prevent you from resuming after
suspend-to-ram. To fix this, edit /etc/default/acpi-support and
add the ath_pci driver to the MODULES variable, like so:
# ...
MODULES="ath_pci"
# ...
CPUs Temperature
modprobe coretemp
sensors -s
To install lm-sensors and sensors-applet type in terminal :
Right Click in the main panel menu and 'Add to Panel...' the
'Hardware Sensors Monitor', then right click on Hardware Sensors
Monitor applet and go to 'Preferences' > 'Sensors' and Enable >
'hddtemp' > '/dev/sda', and also Disable > 'libsensors' > temp2 to
temp11 .
sudo powertop
Keyboard Fixes
The MacBook Pro Keyboard doesn't have a Alt GR / Right Alt key, so
there is no way to type Third Level Keys, such as "@" and "[" (these
vary from country to country). Here is a solution:
Now you can use the Left Enter key (on the MacBook Pro keyboard)
as a Alt Gr Key to access these Third Level Keys.
Alternative: Select form System > Settings > Keyboard > Layout
> Model "MacBook Pro" and function keys should work. Also,
buttons F11 and F12 simulate 2nd and 3rd mouse buttons. Left
Enter simulates Alt Gr button.
Go to System > Preferences > Keyboard > Mouse Keys tab > and
enable "Allow to control the pointer using the keyboard"
Create a text file as ~/.xmodmap containing the following text
(Note: This sets Right Apple key as Right mouse click and Left Enter
Key as Alt Gr key)
xmodmap /home/fuz2y/.xmodmap
You can use xev in order to see the keycodes associated with each
key.
Alternative: Select form System > Settings > Keyboard > Layout
> Model "MacBook Pro" and function keys should work. Also,
buttons F11 and F12 simulate 2nd and 3rd mouse buttons. Left
Enter simulates Alt Gr button.
Function Keys
Pommed is a daemon to support extra keys on apple computers.
These include the brightness, eject, volume and others. Releases of
Pommed 1.8 or up fully support the MacBook and MacBook Pro
keyboards. It can be installed with this command:
You can check your pommed version number with this command:
pommed -v
The default behavior on Apple keyboards is to have the top row keys
primarily function as media keys (brightness, volume, etc), and have
the expected function keys (F1, F2, etc) accessible with using the fn
keys.
Change the value of fnmode to "2", and save. At any time, you can
change this value back to "1" to return to the default behavior.
Touchpad Fixes
Sections "InputDevice"
With :
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "10"
Option "RightEdge" "1200"
Option "TopEdge" "10"
Option "BottomEdge" "370"
Option "FingerLow" "10"
Option "FingerHigh" "20"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "SingleTapTimeout" "100"
Option "MaxDoubleTapTime" "180"
Option "LockedDrags" "off"
Option "MinSpeed" "1.10"
Option "MaxSpeed" "1.30"
Option "AccelFactor" "0.08"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "RTCornerButton" "0"
Option "RBCornerButton" "0"
Option "LTCornerButton" "0"
Option "LBCornerButton" "0"
Option "VertScrollDelta" "20"
Option "HorizScrollDelta" "50"
Option "HorizEdgeScroll" "0"
Option "VertEdgeScroll" "0"
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
Option "SHMConfig" "on"
EndSection
syndaemon -t -d
WebCam ( iSight )
#...
################################################################
###########
## Macintosh
##############################################################
################################################################
###########
## Windows
################################################################
And to apply:
sudo umount -a
sudo mount -a
The hfsplus drivers for Ubuntu cannot handle journaling, and thus
can't write to HFS+ partitions with journals, though they can still be
read. To allow writing, journaling must be disabled in OS X.
However, please note that this may increase the risk of filesystem
corruption, even in OS X itself. To disable journaling, use diskutil in
a terminal in OS X (this can also be done with the installation
media), replacing / for the desired volume if applicable:
sudo /usr/sbin/diskutil disableJournal /
With this change, the partition will be writable in Ubuntu, and will
automatically be mounted to allow writing. However, if the drivers
detect any filesystem corruption, writing will be disabled. This can
be remedied by either booting into OS X, which will attempt to
repair the damage, or (in hardy) running fsck.hfsplus, found in the
hfsprogs package in universe.
/etc/init.d/inputlirc start
/etc/init.d/inputlirc restart
Then go to > System > Preferences > Sessions , and add the
following to the Startup list by this order:
/usr/bin/irexec $HOME/.lircrc
/usr/bin/irxevent $HOME/.lircrc
To make it work on the startup you have to change the file access
mode so that the user can run it, but it still executes in root mode:
gedit ~/.lircrc
Desktop Tweaks
Bootsplash fix
I experienced a blank screen during booting and shutdown (with a
C2Duo-15"-MBP).
After searching the web and messing around with the vga=XXX
kernel parameter without success, I found the following procedure
to help:
Edit file
/etc/usplash.conf
and replace the resolution there with your display's actual resolution
(for the 15" this is 1440 by 900)
Happy Booting!