2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-23 00:23:23 +08:00
|
|
|
<title>Configuring <application><acronym>GPM</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<sect3><title>gpm init.d script</title>
|
2004-03-22 15:42:22 +08:00
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
|
|
|
|
init script included in the
|
|
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-03-22 15:42:22 +08:00
|
|
|
<screen><userinput><command>make install-gpm</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-28 02:46:10 +08:00
|
|
|
</sect3>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
2003-04-23 11:10:26 +08:00
|
|
|
<para><filename>/etc/sysconfig/mouse</filename>
|
2002-07-08 04:28:42 +08:00
|
|
|
This file contains the name of your mouse device and the protocol which
|
|
|
|
it uses. To create this file, run the following:</para>
|
|
|
|
|
2003-09-21 09:38:00 +08:00
|
|
|
<screen><userinput><command>cat > /etc/sysconfig/mouse << "EOF"</command>
|
2004-02-16 08:52:10 +08:00
|
|
|
# Begin /etc/sysconfig/mouse
|
|
|
|
|
2003-09-28 02:46:10 +08:00
|
|
|
MDEVICE=<replaceable>[yourdevice]</replaceable>
|
|
|
|
PROTOCOL=<replaceable>[yourprotocol]</replaceable>
|
2004-02-16 08:52:10 +08:00
|
|
|
|
|
|
|
# End /etc/sysconfig/mouse
|
2003-09-21 09:38:00 +08:00
|
|
|
<command>EOF</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-09-21 09:38:00 +08:00
|
|
|
<para>Examples of values to set <envar>MDEVICE</envar> and
|
2004-06-04 03:15:16 +08:00
|
|
|
<envar>PROTOCOL</envar> to are:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-21 09:38:00 +08:00
|
|
|
<screen><userinput>MDEVICE=/dev/psaux
|
|
|
|
PROTOCOL=imps2</userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>A list of which protocol values are known can be found by running
|
2003-09-21 09:38:00 +08:00
|
|
|
<command>gpm -t -help</command>. Your <envar>MDEVICE</envar> setting depends on
|
2002-07-08 04:28:42 +08:00
|
|
|
which type of mouse you have. For example,
|
2003-04-10 06:30:49 +08:00
|
|
|
<filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
|
2003-09-21 09:38:00 +08:00
|
|
|
COM1), <filename>/dev/input/mice</filename> is often used for
|
|
|
|
<acronym>USB</acronym> mice
|
2004-06-04 03:15:16 +08:00
|
|
|
and <filename>/dev/psaux</filename> for PS2 mice.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|