[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[20e3223] | 7 | <!ENTITY gpm-download-http " ">
|
---|
| 8 | <!ENTITY gpm-download-ftp "ftp://arcana.linux.it/pub/gpm/gpm-&gpm-version;.tar.bz2">
|
---|
| 9 | <!ENTITY gpm-md5sum "2c63e827d755527950d9d13fe3d87692">
|
---|
| 10 | <!ENTITY gpm-size "556 KB">
|
---|
| 11 | <!ENTITY gpm-buildsize "6.7 MB">
|
---|
| 12 | <!ENTITY gpm-time "0.09 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[5db3785e] | 15 | <sect1 id="gpm" xreflabel="GPM-&gpm-version;">
|
---|
[20e3223] | 16 | <?dbhtml filename="gpm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GPM-&gpm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gpm">
|
---|
| 26 | <primary sortas="a-GPM">GPM</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GPM</title>
|
---|
| 31 |
|
---|
[539ace5] | 32 | <para>The <application>GPM</application> (General Purpose Mouse
|
---|
| 33 | daemon) package contains a mouse server for the console and
|
---|
[20e3223] | 34 | <command>xterm</command>. It not only provides cut and paste support
|
---|
| 35 | generally, but its library component is used by various software such as
|
---|
[539ace5] | 36 | <application>Links</application> to provide mouse support to the application.
|
---|
| 37 | It is useful on desktops, especially if following (Beyond) Linux From Scratch
|
---|
| 38 | instructions; it's often much easier (and less error prone) to cut and paste
|
---|
[20e3223] | 39 | between two console windows than to type everything by hand!</para>
|
---|
| 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (HTTP): <ulink url="&gpm-download-http;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&gpm-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &gpm-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &gpm-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &gpm-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &gpm-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 64 | <itemizedlist spacing='compact'>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Recommended Patch: <ulink
|
---|
| 67 | url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Recommended Patch: <ulink
|
---|
| 71 | url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of GPM</title>
|
---|
| 79 |
|
---|
[539ace5] | 80 | <para>Install <application>GPM</application> by running
|
---|
[20e3223] | 81 | the following commands:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput>patch -Np1 -i ../gpm-&gpm-version;-segfault-1.patch &&
|
---|
[4f6275fd] | 84 | patch -Np1 -i ../gpm-&gpm-version;-silent-1.patch &&
|
---|
[74f79080] | 85 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
| 86 | LDFLAGS="-lm" make</userinput></screen>
|
---|
[d260aaf4] | 87 |
|
---|
[20e3223] | 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d260aaf4] | 89 |
|
---|
[20e3223] | 90 | <screen role="root"><userinput>make install &&
|
---|
| 91 | cp -v conf/gpm-root.conf /etc &&
|
---|
| 92 | ldconfig</userinput></screen>
|
---|
[52d29f7] | 93 |
|
---|
[20e3223] | 94 | </sect2>
|
---|
[014d11ad] | 95 |
|
---|
[20e3223] | 96 | <sect2 role="commands">
|
---|
| 97 | <title>Command Explanations</title>
|
---|
| 98 |
|
---|
[539ace5] | 99 | <para><command>LDFLAGS="-lm"</command>: The math library
|
---|
| 100 | must be linked with <command>gpm</command>, as ceil() is used in
|
---|
[20e3223] | 101 | some cursor scrolling logic.</para>
|
---|
[014d11ad] | 102 |
|
---|
[34f86ab] | 103 | <!-- <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
|
---|
| 104 | message to run the above command to create the proper library links.</para> -->
|
---|
[014d11ad] | 105 |
|
---|
[20e3223] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="configuration">
|
---|
| 109 | <title>Configuring GPM</title>
|
---|
| 110 |
|
---|
| 111 | <sect3 id="gpm-init">
|
---|
| 112 | <title>Boot Script</title>
|
---|
[52d29f7] | 113 |
|
---|
[20e3223] | 114 | <indexterm zone="gpm gpm-init">
|
---|
| 115 | <primary sortas="f-gpm-init">gpm</primary>
|
---|
| 116 | </indexterm>
|
---|
[014d11ad] | 117 |
|
---|
[539ace5] | 118 | <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
|
---|
[20e3223] | 119 | included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[09f7011] | 120 |
|
---|
[20e3223] | 121 | <screen role="root"><userinput>make install-gpm</userinput></screen>
|
---|
[014d11ad] | 122 |
|
---|
[20e3223] | 123 | </sect3>
|
---|
[014d11ad] | 124 |
|
---|
[20e3223] | 125 | <sect3 id="gpm-config">
|
---|
| 126 | <title>Config Files</title>
|
---|
[34f86ab] | 127 |
|
---|
[539ace5] | 128 | <para><filename>/etc/gpm-root.conf</filename> and
|
---|
| 129 | <filename>~/.gpm-root</filename>: The default and individual user
|
---|
[20e3223] | 130 | <command>gpm-root</command> configuration files.</para>
|
---|
[34f86ab] | 131 |
|
---|
[539ace5] | 132 | <para><filename>/etc/sysconfig/mouse</filename>:
|
---|
[20e3223] | 133 | This file contains the name of your mouse device and the protocol which
|
---|
[539ace5] | 134 | it uses. To create this file, run the following as the
|
---|
[343bcdb] | 135 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[014d11ad] | 136 |
|
---|
[20e3223] | 137 | <screen role="root"><userinput>cat > /etc/sysconfig/mouse << "EOF"
|
---|
| 138 | <literal># Begin /etc/sysconfig/mouse
|
---|
[014d11ad] | 139 |
|
---|
[004a8284] | 140 | MDEVICE="<replaceable>[yourdevice]</replaceable>"
|
---|
| 141 | PROTOCOL="<replaceable>[yourprotocol]</replaceable>"
|
---|
| 142 | GPMOPTS="<replaceable>[additional options]</replaceable>"
|
---|
[014d11ad] | 143 |
|
---|
[20e3223] | 144 | # End /etc/sysconfig/mouse</literal>
|
---|
| 145 | EOF</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | <indexterm zone="gpm gpm-config">
|
---|
| 148 | <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 |
|
---|
| 151 | <indexterm zone="gpm gpm-config">
|
---|
| 152 | <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 |
|
---|
| 155 | <indexterm zone="gpm gpm-config">
|
---|
| 156 | <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
|
---|
| 157 | </indexterm>
|
---|
[09f7011] | 158 |
|
---|
[20e3223] | 159 | </sect3>
|
---|
[014d11ad] | 160 |
|
---|
[20e3223] | 161 | <sect3>
|
---|
| 162 | <title>Configuration Information</title>
|
---|
[014d11ad] | 163 |
|
---|
[20e3223] | 164 | <para>Examples of values to set <envar>MDEVICE</envar>,
|
---|
| 165 | <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
|
---|
[014d11ad] | 166 |
|
---|
[20e3223] | 167 | <screen><literal>MDEVICE="/dev/psaux"
|
---|
[004a8284] | 168 | PROTOCOL="imps2"
|
---|
[20e3223] | 169 | GPMOPTS=""</literal></screen>
|
---|
| 170 |
|
---|
| 171 | <para>A list of which protocol values are known can be found by running
|
---|
[539ace5] | 172 | <command>gpm -t -help</command>. The <envar>MDEVICE</envar> setting
|
---|
[20e3223] | 173 | depends on which type of mouse you have. For example,
|
---|
| 174 | <filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
|
---|
| 175 | COM1), <filename>/dev/input/mice</filename> is often used for
|
---|
[539ace5] | 176 | USB mice and <filename>/dev/psaux</filename> for PS2
|
---|
| 177 | mice. <envar>GPMOPTS</envar> is the 'catch all' for any
|
---|
[20e3223] | 178 | additional options that are needed for your hardware.</para>
|
---|
| 179 |
|
---|
| 180 | </sect3>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | <sect2 role="content">
|
---|
| 185 | <title>Contents</title>
|
---|
| 186 |
|
---|
| 187 | <segmentedlist>
|
---|
| 188 | <segtitle>Installed Programs</segtitle>
|
---|
| 189 | <segtitle>Installed Libraries</segtitle>
|
---|
| 190 | <segtitle>Installed Directories</segtitle>
|
---|
| 191 |
|
---|
| 192 | <seglistitem>
|
---|
| 193 | <seg>disable-paste, gpm, gpm-root, hltest, mev, and mouse-test</seg>
|
---|
[2db2a0c4] | 194 | <seg>libgpm.[so.a]</seg>
|
---|
[20e3223] | 195 | <seg>None</seg>
|
---|
| 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
| 198 |
|
---|
| 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="disable-paste">
|
---|
| 205 | <term><command>disable-paste</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>is a security mechanism used to disable the paste buffer.</para>
|
---|
| 208 | <indexterm zone="gpm disable-paste">
|
---|
| 209 | <primary sortas="b-disable-paste">disable-paste</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="gpm-prog">
|
---|
| 215 | <term><command>gpm</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>is a cut and paste utility and mouse server for virtual consoles.</para>
|
---|
| 218 | <indexterm zone="gpm gpm-prog">
|
---|
| 219 | <primary sortas="b-gpm">gpm</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="gpm-root">
|
---|
| 225 | <term><command>gpm-root</command></term>
|
---|
| 226 | <listitem>
|
---|
[539ace5] | 227 | <para>is a default handler for <command>gpm</command>. It is used to
|
---|
[20e3223] | 228 | draw menus on the root window.</para>
|
---|
| 229 | <indexterm zone="gpm gpm-root">
|
---|
| 230 | <primary sortas="b-gpm-root">gpm-root</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="hltest">
|
---|
| 236 | <term><command>hltest</command></term>
|
---|
| 237 | <listitem>
|
---|
[539ace5] | 238 | <para>is a simple sample application using the high-level library,
|
---|
[20e3223] | 239 | meant to be read by programmers trying to use the high-level library.</para>
|
---|
| 240 | <indexterm zone="gpm hltest">
|
---|
| 241 | <primary sortas="b-hltest">hltest</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="mev">
|
---|
| 247 | <term><command>mev</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>is a program to report mouse events.</para>
|
---|
| 250 | <indexterm zone="gpm mev">
|
---|
| 251 | <primary sortas="b-mev">mev</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="mouse-test">
|
---|
| 257 | <term><command>mouse-test</command></term>
|
---|
| 258 | <listitem>
|
---|
[539ace5] | 259 | <para>is a tool for determining the mouse type and device it's
|
---|
[20e3223] | 260 | attached to.</para>
|
---|
| 261 | <indexterm zone="gpm mouse-test">
|
---|
| 262 | <primary sortas="b-mouse-test">mouse-test</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[2db2a0c4] | 267 | <varlistentry id="libgpm">
|
---|
| 268 | <term><filename class='libraryfile'>libgpm.[so.a]</filename></term>
|
---|
| 269 | <listitem>
|
---|
| 270 | <para>contains the API functions to access the
|
---|
| 271 | <application>GPM</application> daemon.</para>
|
---|
| 272 | <indexterm zone="gpm libgpm">
|
---|
| 273 | <primary sortas="c-libgpm">libgpm.[so,a]</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
[20e3223] | 278 | </variablelist>
|
---|
| 279 |
|
---|
| 280 | </sect2>
|
---|
[f45b1953] | 281 |
|
---|
| 282 | </sect1>
|
---|