David - I have run several different flavors of Linux on some on my machines and as I remember, they only supported the standard three mouse buttons, not the eight buttons that an MX510 comes with.
Which Linux are you running that supports 8 mouse buttons?
Diggs