Question: In Linux by default the middle mouse button (i.e. wheel) copies the selected text into the place of cursor.

This causes accidental pasting while I'm trying to scroll code / config files via the mouse - especially in Eclipse.

Any idea how to disable it?

*Update* :

The main problem is that I'm using FreeNX for remote terminal, and don't have the mouse section in my xorg.conf. I guess it's because FreeNX uses some sort of virtual mouse.

Is it possible to turn it off in FreeNX, or in Gnome windows manager?

Thanks.

Answer: 
found the answer here: <http://ubuntuforums.org/showthread.php?t=59730>

From the article:
Replace the emulate3button option in your xorg.conf file with this:

```
Option "ButtonMapping" "1 1 3 4 5"

```

This remaps the middle button into the left button, essentially turning the middle-click into a left-click.
Check your window manager preferences to see if there's an easy way to set Button 2 to something else. If that doesn't work, you can use xmodmap to map that button away.