All code tagged stuff is to be performed either from a CLI session or by SSH'ing into your XBMC box.
First you need to install the correct eventclient and bluez:
Code:
sudo apt-get install xbmc-eventclients-wiiremote bluez
After these packages are installed, try connecting the wiiremote to xbmc:
Then press the 1 and 2 buttons on the wiiremote at the same time. The blue LEDs on the bottom of the remote should start to blink as it tries to synchronize. After a bit XBMC should recognize the remote and synch with it. You'll know the wiiremote is connected with XBMC when the first and last LEDs on the bottom are lit, leaving the middle two unlit.
After you've tested the connection, you can make the backend (XBMC launching xbmc-wiiremote) by adding the command to /etc/rc.local. To do this, open up the file /etc/rc.local in something like vi and add the following:
Make sure the last line in rc.local is "exit 0" sans quotes.