This article will go through the basic steps required to have a working Wiimote in Linux for general use. It won't go into much detail for some steps as there are many guides already written for some parts already.
The most important piece required is Bluetooth, this must already be configured and running without the help of this guide. This should be simple enough with any guide found on the internet. The 'cwiid' package must be installed from the community repository. This package contains all libraries and programs required for basic use of the Wiimote. Lastly you will need a Wiimote, this can include (although are not required) the Nunchuk and Classic Control attachments.
cwiid is incredibly easy to get running on any system with working Bluetooth support. Once it has been installed from the community repository you should make sure your Wiimote is detected by your Bluetooth system:
(press the 1 and 2 buttons on your Wiimote) $ hcitool scan Scanning ... <MAC address> Nintendo RVL-CNT-01
Once your Wiimote has been detected you can test if it's working by running the command 'wmgui' and testing out various buttons and sensors through that interface.