On Debian 7.x (Wheezy), I'm using the Logitech Trackman Marble. Mine has product number P/N 810-000767, a fantastic and long-lasting device. It has two small up/down buttons above the normal left/right buttons
I wanted these working under Linux, and give them the PageUp/PageDown function. I went the imwheel route, which involves the following steps:
1) Install imwheel with:
$ sudo apt-get install imwheel
2) Edit the file /etc/X11/imwheel/startup.conf to enable imwheel when you log into KDE. Find the line that starts with IMWHEEL_START, and set it to 1.
3) Edit the file /etc/X11/imwheel/imwheelrc and at the bottom, add the following lines:
".*" , Thumb1, Page_Down , Thumb2, Page_Up
4) Logout and log into KDE again
The Logitech Trackman Marble trackball.