You can configure it using xinput.
This is always what I've done. it works a peach for every trackman I've ever used. It's the last, simplest step from the official ubuntu page.
then, whenever you login (or in a startup script),
Done. This tiny little scripts works much, much better than the official ~60mb windows installer IMHO :)
The way you're doing this isn't quite correct. .bashrc is executed when you start bash shell. Unless you're only using it from within a terminal emulator running within an X session, it will give you errors each time you log in or open a new terminal.
You may want to look at the solution I provided here
I tested this in 11.10 and it works very nicely. This selection is from "Ubuntuwiki"
Avoid using Hal for this release because it has known issues. Put the following into terminal, using gedit:
Then paste this into the file:
Make sure trackball.sh begins with
Add the following lines to
Edit $HOME/.Xmodmap using:
Log out and back in and viola!