null 2.0

Slackware Linux, Oracle, Programming

Category: slackware

Logitech MX Revolution configuration

1.) mouse information:
$ cat /proc/bus/input/devices
– look for output about Logitech mouse:
I: Bus=0003 Vendor=046d Product=c525 Version=0111
N: Name=”Logitech USB Receiver”
P: Phys=usb-0000:00:02.0-4/input0
S: Sysfs=/devices/pci0000:00/0000:00:02.0/usb2/2-4/2-4:1.0/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=17
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
B: MSC=10

2.) xorg.conf
– backup xorg.conf:
$ cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig
– edit xorg.conf:
$ nano /etc/X11/xorg.conf
– section “Module”:
Section “Module”

Load “evdev”
EndSection

– section “InputDevice”:
Section “InputDevice”
Identifier “Mouse0”
Driver “evdev”
Option “Device” “/dev/input/event2” #pazi kod promjene usb porta !!!
EndSection

event2 (bolded) is the same value as in handle line in mouse info – different for each usb port !
be careful with identifier, it has to be the same as in “ServerLayout” section (InputDevice “Mouse0” “CorePointer”)

Change the way free scroll toggles (default on middle mouse click):
– download revoco from http://goron.de/~froese/revoco/ – small handy program made by Froese
$ wget http://goron.de/~froese/revoco/revoco-0.5.tar.gz
$ tar xvfz revoco-0.5.tar.gz
$ cd revoco-0.5
$ make

– automatic free scroll toggle:
$ ./revoco auto=10
– manual, on search button:
$ ./revoco manual=6

Mouse button events and codes can be found using xev:
$ xev

Advertisements

ssh tunnel

ssh tunneling and using proxy
http://www.plenz.com/tunnel-everything

tunneling all ports with virtual intefaces (tun tun)
http://blog.crash-override.net/index.php/206