Differences between revisions 7 and 8
Revision 7 as of 2006-08-16 06:13:31
Size: 2954
Editor: MattKraai
Comment:
Revision 8 as of 2006-08-17 10:03:58
Size: 2954
Editor: MattKraai
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
Switch back to the first virtual console by pressing ctrl-option-F1 and select <Go back> in response to the "Install the GRUB boot loader to the master boot record". Choose "Install the LILO boot loader on a hard disk" from the main menu and choose /dev/sda3 for the LILO installation target. Switch back to the first virtual console by pressing ctrl-option-F1 and select <Go Back> in response to the "Install the GRUB boot loader to the master boot record". Choose "Install the LILO boot loader on a hard disk" from the main menu and choose /dev/sda3 for the LILO installation target.

This page describes how to install Debian on a MacBook Pro.

The first step is to install and run [http://www.apple.com/macosx/bootcamp/ Boot Camp]. You can skip the step that allows you to create a Macintosh Drivers CD. At the Start Windows XP Installation step, you should insert a Debian installation CD.

If you press return at the ISOLINUX prompt, the kernel may panic while enabling the IO-APIC IRQs ([http://bugs.debian.org/381719 bug 381719]). To avoid this, enter "install noapic" at the ISOLINUX prompt.

When you reach the "Install the GRUB boot loader on a hard disk" step, switch to the second virtual console by pressing ctrl-option-F2, press return to start the shell, and then enter

 chroot /target apt-get install refit
 /target/sbin/gptsync /dev/sda

and enter y at the prompt.

Switch back to the first virtual console by pressing ctrl-option-F1 and select <Go Back> in response to the "Install the GRUB boot loader to the master boot record". Choose "Install the LILO boot loader on a hard disk" from the main menu and choose /dev/sda3 for the LILO installation target.

X Windows System

To use the X Windows System, install the non-free fglrx-driver package and, in the Device section of /etc/X11/xorg.conf, change the driver from "ati" to "fglrx".

To set up the touchscreen, download [http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=4eff8d7a79d4da796f9689ce7665d8bd4327b75f;hp=c222ed13deab49de122ee3a57851a33045f58ef9 this patch], reconfigure the kernel to build the appletouch module, and build a new kernel ([http://bugs.debian.org/382298 bug 382298]).

Next, create /usr/local/sbin/rebind-touchpad with the following contents:

set -e
cd /sys/bus/usb/drivers/usbhid
for device in *-*; do
    if [ -e $device/interface ] \
       && [ "`cat $device/interface`" = Touchpad ]; then
        echo -n $device > unbind
        echo -n $device > ../appletouch/bind
    fi
done

Create /etc/modprobe.d/appletouch with the following contents:

install appletouch /sbin/modprobe --ignore-install appletouch $CMDLINE_OPTS && /usr/local/sbin/rebind-touchpad

Edit /etc/X11/xorg.conf and in the Module section, add the following line:

        Load "synaptics"

Replace the contents of the ?InputDevice section with the "Configured Mouse" identifier with the following:

        Identifier      "Configured Mouse"
        Driver          "synaptics"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "MinSpeed"              "1.0"
        Option          "MaxSpeed"              "1.0"

Once this is done, tapping the touchpad with two fingers should generate a middle-button click and tapping it with three fingers will generate a right-button click.