1 | <sect2>
|
---|
2 | <title>Configuring <application><acronym>GPM</acronym></application></title>
|
---|
3 |
|
---|
4 | <sect3><title>gpm init.d script</title>
|
---|
5 | <para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
|
---|
6 | init script included in the
|
---|
7 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
8 |
|
---|
9 | <screen><userinput><command>make install-gpm</command></userinput></screen>
|
---|
10 |
|
---|
11 | </sect3>
|
---|
12 |
|
---|
13 | <sect3><title>Config files</title>
|
---|
14 | <para><filename>/etc/sysconfig/mouse</filename>
|
---|
15 | This file contains the name of your mouse device and the protocol which
|
---|
16 | it uses. To create this file, run the following:</para>
|
---|
17 |
|
---|
18 | <screen><userinput><command>cat > /etc/sysconfig/mouse << "EOF"</command>
|
---|
19 | # Begin /etc/sysconfig/mouse
|
---|
20 |
|
---|
21 | MDEVICE=<replaceable>[yourdevice]</replaceable>
|
---|
22 | PROTOCOL=<replaceable>[yourprotocol]</replaceable>
|
---|
23 |
|
---|
24 | # End /etc/sysconfig/mouse
|
---|
25 | <command>EOF</command></userinput></screen>
|
---|
26 | </sect3>
|
---|
27 |
|
---|
28 | <sect3><title>Configuration Information</title>
|
---|
29 |
|
---|
30 | <para>Examples of values to set <envar>MDEVICE</envar> and
|
---|
31 | <envar>PROTOCOL</envar> to are</para>
|
---|
32 |
|
---|
33 | <screen><userinput>MDEVICE=/dev/psaux
|
---|
34 | PROTOCOL=imps2</userinput></screen>
|
---|
35 |
|
---|
36 | <para>A list of which protocol values are known can be found by running
|
---|
37 | <command>gpm -t -help</command>. Your <envar>MDEVICE</envar> setting depends on
|
---|
38 | which type of mouse you have. For example,
|
---|
39 | <filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
|
---|
40 | COM1), <filename>/dev/input/mice</filename> is often used for
|
---|
41 | <acronym>USB</acronym> mice
|
---|
42 | and <filename>/dev/psaux</filename> for PS2 mice. It is normally
|
---|
43 | thought not a good idea to link <filename>/dev/mouse</filename> to the relevant device, but
|
---|
44 | instead to reference it directly.</para>
|
---|
45 |
|
---|
46 | </sect3>
|
---|
47 |
|
---|
48 | </sect2>
|
---|