For convenient using of pointing stick on windows I wrote JKScroller. I missed it on my ubuntu. So here is solution:
1. sudo apt-get install xbindkeys xbindkeys-config xmacro
2. xbindkeys --defaults > ~/.xbindkeysrc
3. edit your xbindkeysrc for your needs. Use xbindkeys-config for easy key binding.
my file looks like this:
"echo 'ButtonPress 4 ButtonRelease 4' | xmacroplay :0"
Mod4 + q | m:0x40 + c:24
"echo 'ButtonPress 5 ButtonRelease 5' | xmacroplay :0"
Mod4 + a | m:0x40 + c:38
"echo 'ButtonPress 2 ButtonRelease 2' | xmacroplay :0"
Mod4 + h | m:0x40 + c:43
"nautilus ~"
Mod4 + e | m:0x40 + c:26
ps. don't forget to put xbindkeys to session