I was able to get my Apple Wireless Keyboard and Magic Trackpad(without multitouch) working using the following steps:
Packages & Tools
You only really need to install the 'bluetooth' package but, I used the following command to install some test tools and the GUI Bluetooth manager:
apt-get install bluetooth bluez-utils blueman
USB Dongle Detection
lsusb shows a new device. This is the output:
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd. Bluetooth Dongle (HCI Mode)
There will be other devices in the list, but that (or something very similar) is what you are looking for.
/etc/init.d/bluetooth status command shows whether Bluetooth is running.
Output should be:
Bluetooth is running
Switch your phone's Bluetooth to 'visible'. Then use the hcitool scan command to discover our devices initially:
hcitool scan showed the following output:
Scanning ... A0:75:91:01:02:03 Nexus S
Once you are able to see a device using
hcitool scan, start a GUI session.
LXDE Menu>Preferences>Bluetooth Manager, you will find the Blueman GUI Bluetooth manager.
From there, you can scan and pair bluetooth devices as expected in any GUI system.
and that is what worked for me. Original tutorial found here
EDIT: This apparently only works for using the apple setup in the GUI. Once GUI session is logged out, Apple keyboard ceases to function. That means this is at best a partial and non-practical solution.