The How-To is here.
and here is all the info
Step 1: download xwii from here.
Step 2: right click on the file click extract here. Copy the file into your home directory. Rename the file to
Step 3: Open a terminal window and
sudo apt-get install build-essential libbluetooth-dev libxtst-dev
Step 4: Again in the terminal window:
sudo apt-get install libsdl1.2-dev
Step 5: In terminal:
Step 6: In terminal:
Step 7: Your terminal should still be in the xwii folder. If it isn't
Step 8: run it. There are several profiles to choose from. I am using the classic controller for this example. You need to have your bluetooth adapter plugged in and the wiimote in front of you. As soon as you hit enter after this command you need to press the 1 & 2 button on the main wii remote to connect it.
Hopefully that works. put a cursor in a text field you should get a response. You will need to map your buttons to those of the wiimote with what ever emulator you are using, In zsnes you have to go to config>input and then click on a and hit the a button on your classic controller. Up down left right and start should all be set already.
Step 9: Creat a custom launcher so you don't have to use the terminal every time. EDIT: I have had issues with this. I think a bash script will have to be written for this.
until then just use this code to run it in the terminal:
cd ~/xwii && ./xwii profiles/classic.xwii
thanks to fatalglory and para.