在虚拟机中试用Ubuntu时发现不支持鼠标滚轮,不爽,上网查找解决方法如下:
Terminal中运行
sudo nano /etc/X11/xorg.conf
定位
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
[color=blue] Option "Emulate3Buttons" "true"
Option "ZAixsMapping" "4 5"[/color]
EndSection
增加2行
Option "Emulate3Buttons" "true"
Option "ZAixMapping" "4 5"
搞定!
Terminal中运行
sudo nano /etc/X11/xorg.conf
定位
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
[color=blue] Option "Emulate3Buttons" "true"
Option "ZAixsMapping" "4 5"[/color]
EndSection
增加2行
Option "Emulate3Buttons" "true"
Option "ZAixMapping" "4 5"
搞定!