Getting the scroll wheel to work is relatively easy:
Open /etc/X11/xorg.conf with a text editor
Change the entries for the mouse section to use scroll:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2" # <- could also use "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZaxisMapping" "4 5" # <- This is for my MX510, may be different numbers for yours
Option "Buttons" "10"
Then save the file, exit X, and restart with 'startx'
To get the side buttons to work is a bit more tricky. I used some of this guide:
http://www.linux-gamers.net/modules/...p?articleid=46
But I had to recompile my kernel with evdev support which is rather tricky although the guides at top of forum are handy for this. Also I could not get xvkbd or xkeybinds to work and had to use imwheel, which you will need to google around for.