Ubuntu 14.04, how to set middle mouse emulation? (no taps, real buttons)
Solution 1:
In previous versions of Ubuntu I used to enable middle mouse emulation with gpointing-device-settings. The package exists for 14.04 as well, so I guess it still works:
sudo apt-get install gpointing-device-settings
gpointing-device-settings
Update 1: gpointing-device-settings crashes on 14.04. But I found a workaround to manually enable middle mouse emulation in dconf:
sudo apt-get install dconf-editor
dconf-editor
Navigate to /org/gnome/settings-daemon/peripherals/mouse and activate middle-button-enabled.
Update 2: None of the methods above are still valid for 16.04 LTS. But the first step from this official workaround helped. Note that the remaining steps of the guide might not be applicable.
Create the file /usr/share/X11/xorg.conf.d/middle-mouse-button.conf and insert
Section "InputClass"
Identifier "middle button emulation class"
MatchIsPointer "on"
Option "Emulate3Buttons" "on"
EndSection
Update 3: This changed again after Ubuntu uses Gnome again. For 17.10, 18.04 and so forth the setting can be applied using the Gnome Tweak Tool as described in this Q&A: Keyboard & Mouse -> Middle Click Paste
Solution 2:
Following up @jotrocken's answer, the configuration almost works. It should be:
Section "InputClass"
Identifier "middle button emulation class"
MatchIsPointer "on"
Option "Emulate3Buttons" "True"
EndSection
Then restart lightdm or other DM running on your system currently.