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