Thanks to http://www.correlatedcontent.com/blog/bluetooth-keyboard-on-the-raspberry-pi/ for the details!
You only have to pair once - after the EZ-Key is paired to a computer it will auto-connect from then on
First up, you'll have to make sure you have Bluetooth v2.1 or greater on your computer. Many laptops have BT built in and unless its a really old machine (< 2008), the built in BT should be OK. If you do not have BT built in, you'll need a USB dongle such as this one
Step 0 Plug in BT Adapter
With the Raspberry Pi off, plug in the BT module and reboot.
Step 1 Update & Install Bluez
Make sure you have Internet connectivity on your Pi so you can install the following updates & software for Bluetooth control.All of the following must be typed into a Terminal window or Console or Command line.
sudo apt-get update sudo update-rc.d -f dbus defaults sudo apt-get install bluez python-gobject
hcitool devto see the bluetooth USB module
sudo nano /usr/bin/bluez-simple-agentTo edit the agent that manages BT pairing. Type Control-W to search for KeyboardDisplay
Step 2. Power the Bluefruit EZ-Key and Press the Pair Button
The title of this step is pretty much what you have to do. Remember that you have solder the 0.1" headers to the module or at least solder wires to the Vin and Ground connections. Connect Vin to 3 to 16VDC (5V is ideal) and ground to the ground power wire.The red LED will now blink at a steady once-a-second.
Step 3. Scan & Connect to Bluefruit Module
Now it's time to find the Bluefruit device. Run
hcitool scanto scan for devices. You may have to run it once or twice to see the Adafruit device pop up
We will now create a device for the keyboard. Type in
sudo bluez-simple-agent hci0 00:18:96:B0:04:82But changing it to the ID number you have
sudo bluez-test-device trusted 00:18:96:B0:04:82 yes(don't forget that yes at the end)
followed by
sudo bluez-test-device trusted 00:18:96:B0:04:82(no yes at the end)
You should see a 1 after the last command. If you get a 0 try again, check that you typed the #'s right.
sudo bluez-test-input connect 00:18:96:B0:04:82If you want to ever remove the pairing, type in
sudo bluez-test-device remove 00:18:96:B0:04:82Now you will notice the red LED on the module blink slower.