Sixaxis - Community Ubuntu Documentation
Using the Sixaxis as a Pointer Device
We first need to install the input-joystick drivers XServer needs, and then either configure HAL (for newer X versions) or add an InputDevice to xorg.conf (for older versions).
Driver Installation
The package xserver-xorg-input-joystick is required to use the Sixaxis as an input device without the use of a third party program. There are two installation methods for the package. The simpler method is to install via the repositories, but you may also compile your own copy of the drivers.
Note: if using Hardy Heron (8.04) you will need to compile the drivers yourself as one of the files needs to be modified.
Install from Repositories
Install the package xserver-xorg-input-joystick from the Ubuntu Repositories
$ sudo apt-get install xserver-xorg-input-joystick