[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY gpm-download-http " ">
|
---|
| 8 | <!ENTITY gpm-download-ftp "ftp://arcana.linux.it/pub/gpm/gpm-&gpm-version;.tar.bz2">
|
---|
| 9 | <!ENTITY gpm-size "556 KB">
|
---|
| 10 | <!ENTITY gpm-buildsize "5.3 MB">
|
---|
| 11 | <!ENTITY gpm-time "0.09 SBU">
|
---|
| 12 |
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[de8804e] | 15 | <sect1 id="gpm" xreflabel="GPM-&gpm-version;">
|
---|
[7f72cbf] | 16 | <?dbhtml filename="gpm.html"?>
|
---|
[04a28bc] | 17 | <title><acronym>GPM</acronym>-&gpm-version;</title>
|
---|
[f45b1953] | 18 |
|
---|
[52d29f7] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application><acronym>GPM</acronym></application></title>
|
---|
| 21 |
|
---|
| 22 | <para>The <application><acronym>GPM</acronym></application> (General
|
---|
| 23 | Purpose Mouse daemon) package contains a mouse server for the console
|
---|
| 24 | and <command>xterm</command>. It not only provides cut and paste support
|
---|
| 25 | generally, but its library component is used by various software such as
|
---|
| 26 | <application>Links</application> to provide mouse support to the
|
---|
| 27 | application. It is useful on desktops, especially if following
|
---|
| 28 | (Beyond) Linux From Scratch instructions; it's often much easier (and
|
---|
| 29 | less error prone) to cut and paste between two console windows than to
|
---|
| 30 | type everything by hand!</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&gpm-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&gpm-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &gpm-size;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated Disk space required:
|
---|
| 40 | &gpm-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &gpm-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
| 45 | <sect3><title>Additional downloads</title>
|
---|
| 46 | <itemizedlist spacing='compact'>
|
---|
| 47 | <listitem><para>Recommended patch: <ulink
|
---|
| 48 | url="&patch-root;/gpm-1.20.1-segfault.patch"/></para></listitem>
|
---|
| 49 | <listitem><para>Recommended patch: <ulink
|
---|
| 50 | url="&patch-root;/gpm-1.20.1-silent.patch"/></para></listitem>
|
---|
| 51 | </itemizedlist>
|
---|
| 52 | </sect3>
|
---|
| 53 |
|
---|
| 54 | </sect2>
|
---|
| 55 |
|
---|
| 56 | <sect2>
|
---|
| 57 | <title>Installation of <application><acronym>GPM</acronym></application></title>
|
---|
| 58 |
|
---|
| 59 | <para>Install <application><acronym>GPM</acronym></application> by running the following commands:
|
---|
| 60 | </para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput><command>patch -Np1 -i ../gpm-1.20.1-segfault.patch &&
|
---|
| 63 | patch -Np1 -i ../gpm-1.20.1-silent.patch &&
|
---|
| 64 | LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
| 65 | make &&
|
---|
| 66 | make install &&
|
---|
| 67 | cp conf/gpm-root.conf /etc &&
|
---|
| 68 | ldconfig -n -l /usr/lib/libgpm.so.1.19.0</command></userinput></screen>
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2>
|
---|
| 72 | <title>Command explanations</title>
|
---|
| 73 |
|
---|
| 74 | <para><command>LDFLAGS="-lm"</command>: The math library
|
---|
| 75 | must be linked with <command>gpm</command>, as ceil() is used in some cursor
|
---|
| 76 | scrolling logic.</para>
|
---|
| 77 |
|
---|
| 78 | <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
|
---|
| 79 | message to run the above command to create the proper library links.</para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2>
|
---|
| 84 | <title>Configuring <application><acronym>GPM</acronym></application></title>
|
---|
| 85 |
|
---|
| 86 | <sect3><title>gpm init.d script</title>
|
---|
| 87 | <para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
|
---|
| 88 | init script included in the
|
---|
| 89 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput><command>make install-gpm</command></userinput></screen>
|
---|
| 92 |
|
---|
| 93 | </sect3>
|
---|
| 94 |
|
---|
| 95 | <sect3><title>Config files</title>
|
---|
| 96 | <para><filename>/etc/sysconfig/mouse</filename>
|
---|
| 97 | This file contains the name of your mouse device and the protocol which
|
---|
| 98 | it uses. To create this file, run the following:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput><command>cat > /etc/sysconfig/mouse << "EOF"</command>
|
---|
| 101 | # Begin /etc/sysconfig/mouse
|
---|
| 102 |
|
---|
[004a8284] | 103 | MDEVICE="<replaceable>[yourdevice]</replaceable>"
|
---|
| 104 | PROTOCOL="<replaceable>[yourprotocol]</replaceable>"
|
---|
| 105 | GPMOPTS="<replaceable>[additional options]</replaceable>"
|
---|
[52d29f7] | 106 |
|
---|
| 107 | # End /etc/sysconfig/mouse
|
---|
| 108 | <command>EOF</command></userinput></screen>
|
---|
| 109 | </sect3>
|
---|
| 110 |
|
---|
| 111 | <sect3><title>Configuration Information</title>
|
---|
| 112 |
|
---|
[004a8284] | 113 | <para>Examples of values to set <envar>MDEVICE</envar>,
|
---|
| 114 | <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
|
---|
[52d29f7] | 115 |
|
---|
[004a8284] | 116 | <screen><userinput>MDEVICE="/dev/psaux"
|
---|
| 117 | PROTOCOL="imps2"
|
---|
| 118 | GPMOPTS=""</userinput></screen>
|
---|
[52d29f7] | 119 |
|
---|
| 120 | <para>A list of which protocol values are known can be found by running
|
---|
[004a8284] | 121 | <command>gpm -t -help</command>. The <envar>MDEVICE</envar> setting
|
---|
| 122 | depends on which type of mouse you have. For example,
|
---|
[52d29f7] | 123 | <filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
|
---|
| 124 | COM1), <filename>/dev/input/mice</filename> is often used for
|
---|
[004a8284] | 125 | <acronym>USB</acronym> mice and <filename>/dev/psaux</filename> for PS2
|
---|
| 126 | mice. <envar>GPMOPTS</envar> is the 'catch all' for any
|
---|
| 127 | additional options that are needed for your hardware.</para>
|
---|
[52d29f7] | 128 |
|
---|
| 129 | </sect3>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2>
|
---|
| 134 | <title>Contents</title>
|
---|
| 135 |
|
---|
| 136 | <para>The <application><acronym>GPM</acronym></application> package contains
|
---|
| 137 | <command>gpm</command>,
|
---|
| 138 | <command>gpm-root</command>, <command>disable-paste</command>
|
---|
| 139 | and <command>mev</command>.</para>
|
---|
| 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2><title>Description</title>
|
---|
| 144 |
|
---|
| 145 | <sect3><title>gpm</title>
|
---|
| 146 | <para><command>gpm</command> is a cut and paste utility and mouse server for
|
---|
| 147 | virtual consoles.</para></sect3>
|
---|
| 148 |
|
---|
| 149 | <sect3><title>gpm-root</title>
|
---|
| 150 | <para><command>gpm-root</command> is a default handler for
|
---|
| 151 | <command>gpm</command>. It is used to draw menus on the
|
---|
| 152 | root window.</para></sect3>
|
---|
| 153 |
|
---|
| 154 | <sect3><title>disable-paste</title>
|
---|
| 155 | <para>No description available.</para></sect3>
|
---|
| 156 |
|
---|
| 157 | <sect3><title>mev</title>
|
---|
| 158 | <para><command>mev</command> is a program to report mouse events.</para></sect3>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
[f45b1953] | 161 |
|
---|
| 162 | </sect1>
|
---|