To install IMWheel in Ubuntu
sudo apt-get install imwheel
Edit the IMWheel configuration file
sudo gedit /etc/X11/imwheel/imwheelrc
Add the following lines to existing content:
".*" None, Up, Alt_L|Left None, Down, Alt_L|Right "(null)" None, Up, Alt_L|Left None, Down, Alt_L|Right
Create a start-up script for IMWheel
sudo mkdir /home/login
sudo gedit /home/login/mouse
Insert the following lines into the new file
#!/bin/sh exec xmodmap -e "pointer = 1 2 3 6 7 4 5" & exec imwheel -k -b "67" & exec $REALSTARTUP
Grant this script to everyone
sudo chmod +x /home/login/mouse
Configures the script to run when the computer starts
Select 'System'> 'Preferences'> 'Sessions'
Click on the StartUp tab
Click Add, and then add: / home / login / mouse
Click OK, and then Close
A computer or xserver (Ctrl-Alt-BackSpace) restart is required to apply the changes.