[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[93ab9d5] | 7 | <!ENTITY gpm-download-http "http://www.nico.schottelius.org/software/gpm/archives/gpm-&gpm-version;.tar.bz2">
|
---|
[9a9d63d4] | 8 | <!ENTITY gpm-download-ftp " ">
|
---|
[6d2cc23] | 9 | <!ENTITY gpm-md5sum "bf84143905a6a903dbd4d4b911a2a2b8">
|
---|
| 10 | <!ENTITY gpm-size "820 KB">
|
---|
| 11 | <!ENTITY gpm-buildsize "7.4 MB">
|
---|
[fada515] | 12 | <!ENTITY gpm-time "0.1 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 |
|
---|
[96ed758] | 41 | &lfs77_checked;
|
---|
[aafcfb8] | 42 |
|
---|
[20e3223] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&gpm-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&gpm-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &gpm-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &gpm-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &gpm-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &gpm-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[1039de3] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 66 | <ulink url="&blfs-wiki;/GPM"/></para>
|
---|
[1039de3] | 67 |
|
---|
[20e3223] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of GPM</title>
|
---|
| 72 |
|
---|
[539ace5] | 73 | <para>Install <application>GPM</application> by running
|
---|
[20e3223] | 74 | the following commands:</para>
|
---|
| 75 |
|
---|
[8459178] | 76 | <screen><userinput>./autogen.sh &&
|
---|
| 77 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[9a9d63d4] | 78 | make</userinput></screen>
|
---|
| 79 |
|
---|
| 80 | <para>This package does not come with a test suite.</para>
|
---|
[d260aaf4] | 81 |
|
---|
[20e3223] | 82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d260aaf4] | 83 |
|
---|
[8459178] | 84 | <screen role="root"><userinput>make install &&
|
---|
[9a9d63d4] | 85 |
|
---|
[8459178] | 86 | install-info --dir-file=/usr/share/info/dir \
|
---|
| 87 | /usr/share/info/gpm.info &&
|
---|
[cb098fac] | 88 |
|
---|
[df9fb20] | 89 | ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &&
|
---|
[8459178] | 90 | install -v -m644 conf/gpm-root.conf /etc &&
|
---|
[d691f65] | 91 |
|
---|
[8459178] | 92 | install -v -m755 -d /usr/share/doc/gpm-&gpm-version;/support &&
|
---|
| 93 | install -v -m644 doc/support/* \
|
---|
| 94 | /usr/share/doc/gpm-&gpm-version;/support &&
|
---|
| 95 | install -v -m644 doc/{FAQ,HACK_GPM,README*} \
|
---|
[d691f65] | 96 | /usr/share/doc/gpm-&gpm-version;</userinput></screen>
|
---|
[52d29f7] | 97 |
|
---|
[20e3223] | 98 | </sect2>
|
---|
[014d11ad] | 99 |
|
---|
[d691f65] | 100 | <sect2 role="commands">
|
---|
[20e3223] | 101 | <title>Command Explanations</title>
|
---|
| 102 |
|
---|
[8459178] | 103 | <para><command>./autogen.sh</command>: This command creates the missing
|
---|
| 104 | <command>configure</command> script.</para>
|
---|
| 105 |
|
---|
[6d2cc23] | 106 | <para><command>install-info ...</command>: This package installs an
|
---|
[d691f65] | 107 | <filename class="extension">.info</filename> file, but does not update the
|
---|
| 108 | system <filename>dir</filename> file. This command makes the update.</para>
|
---|
[014d11ad] | 109 |
|
---|
[6d2cc23] | 110 | <para><command>ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
|
---|
| 111 | command is used to create (or update) the <filename class="extension">.so</filename>
|
---|
[d691f65] | 112 | symlink to the library.</para>
|
---|
[014d11ad] | 113 |
|
---|
[d691f65] | 114 | </sect2>
|
---|
[20e3223] | 115 |
|
---|
| 116 | <sect2 role="configuration">
|
---|
| 117 | <title>Configuring GPM</title>
|
---|
| 118 |
|
---|
| 119 | <sect3 id="gpm-init">
|
---|
| 120 | <title>Boot Script</title>
|
---|
[52d29f7] | 121 |
|
---|
[20e3223] | 122 | <indexterm zone="gpm gpm-init">
|
---|
| 123 | <primary sortas="f-gpm-init">gpm</primary>
|
---|
| 124 | </indexterm>
|
---|
[014d11ad] | 125 |
|
---|
[539ace5] | 126 | <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
|
---|
[5254d12] | 127 | included in the <xref linkend="bootscripts"/> package.</para>
|
---|
[09f7011] | 128 |
|
---|
[20e3223] | 129 | <screen role="root"><userinput>make install-gpm</userinput></screen>
|
---|
[014d11ad] | 130 |
|
---|
[20e3223] | 131 | </sect3>
|
---|
[014d11ad] | 132 |
|
---|
[20e3223] | 133 | <sect3 id="gpm-config">
|
---|
| 134 | <title>Config Files</title>
|
---|
[34f86ab] | 135 |
|
---|
[539ace5] | 136 | <para><filename>/etc/gpm-root.conf</filename> and
|
---|
| 137 | <filename>~/.gpm-root</filename>: The default and individual user
|
---|
[20e3223] | 138 | <command>gpm-root</command> configuration files.</para>
|
---|
[34f86ab] | 139 |
|
---|
[539ace5] | 140 | <para><filename>/etc/sysconfig/mouse</filename>:
|
---|
[8459178] | 141 | This file contains the name of your mouse device and the protocol
|
---|
[539ace5] | 142 | it uses. To create this file, run the following as the
|
---|
[343bcdb] | 143 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[014d11ad] | 144 |
|
---|
[20e3223] | 145 | <screen role="root"><userinput>cat > /etc/sysconfig/mouse << "EOF"
|
---|
| 146 | <literal># Begin /etc/sysconfig/mouse
|
---|
[014d11ad] | 147 |
|
---|
[1039de3] | 148 | MDEVICE="<replaceable><yourdevice></replaceable>"
|
---|
| 149 | PROTOCOL="<replaceable><yourprotocol></replaceable>"
|
---|
| 150 | GPMOPTS="<replaceable><additional options></replaceable>"
|
---|
[014d11ad] | 151 |
|
---|
[20e3223] | 152 | # End /etc/sysconfig/mouse</literal>
|
---|
| 153 | EOF</userinput></screen>
|
---|
| 154 |
|
---|
| 155 | <indexterm zone="gpm gpm-config">
|
---|
| 156 | <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 |
|
---|
| 159 | <indexterm zone="gpm gpm-config">
|
---|
| 160 | <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 |
|
---|
| 163 | <indexterm zone="gpm gpm-config">
|
---|
| 164 | <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
|
---|
| 165 | </indexterm>
|
---|
[09f7011] | 166 |
|
---|
[20e3223] | 167 | </sect3>
|
---|
[014d11ad] | 168 |
|
---|
[20e3223] | 169 | <sect3>
|
---|
| 170 | <title>Configuration Information</title>
|
---|
[014d11ad] | 171 |
|
---|
[20e3223] | 172 | <para>Examples of values to set <envar>MDEVICE</envar>,
|
---|
| 173 | <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
|
---|
[014d11ad] | 174 |
|
---|
[96ed758] | 175 | <screen><literal>MDEVICE="/dev/input/mice"
|
---|
[004a8284] | 176 | PROTOCOL="imps2"
|
---|
[20e3223] | 177 | GPMOPTS=""</literal></screen>
|
---|
| 178 |
|
---|
| 179 | <para>A list of which protocol values are known can be found by running
|
---|
[480b859] | 180 | <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
|
---|
| 181 | The <envar>MDEVICE</envar> setting depends on which type of mouse you
|
---|
| 182 | have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
|
---|
| 183 | (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
|
---|
| 184 | used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
|
---|
| 185 | <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
|
---|
| 186 | are needed for your hardware.</para>
|
---|
[20e3223] | 187 |
|
---|
| 188 | </sect3>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 197 | <segtitle>Installed Library</segtitle>
|
---|
| 198 | <segtitle>Installed Directory</segtitle>
|
---|
[20e3223] | 199 |
|
---|
| 200 | <seglistitem>
|
---|
[9a9d63d4] | 201 | <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
|
---|
| 202 | gpm-root, hltest, mev, and mouse-test</seg>
|
---|
[1039de3] | 203 | <seg>libgpm.{so.a}</seg>
|
---|
[d691f65] | 204 | <seg>/usr/share/doc/gpm-&gpm-version;</seg>
|
---|
[20e3223] | 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
| 211 | <?dbhtml list-presentation="table"?>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="disable-paste">
|
---|
| 214 | <term><command>disable-paste</command></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>is a security mechanism used to disable the paste buffer.</para>
|
---|
| 217 | <indexterm zone="gpm disable-paste">
|
---|
| 218 | <primary sortas="b-disable-paste">disable-paste</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
[9a9d63d4] | 223 | <varlistentry id="display-buttons">
|
---|
| 224 | <term><command>display-buttons</command></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>is a simple program that reports the mouse buttons being
|
---|
| 227 | pressed and released.</para>
|
---|
| 228 | <indexterm zone="gpm display-buttons">
|
---|
| 229 | <primary sortas="b-display-buttons">display-buttons</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="display-coords">
|
---|
| 235 | <term><command>display-coords</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>is a simple program that reports the mouse coordinates.</para>
|
---|
| 238 | <indexterm zone="gpm display-coords">
|
---|
| 239 | <primary sortas="b-display-coords">display-coords</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="get-versions">
|
---|
| 245 | <term><command>get-versions</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>is used to report the <application>GPM</application> library
|
---|
| 248 | and server versions.</para>
|
---|
| 249 | <indexterm zone="gpm get-versions">
|
---|
| 250 | <primary sortas="b-get-versions">get-versions</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
[20e3223] | 255 | <varlistentry id="gpm-prog">
|
---|
| 256 | <term><command>gpm</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>is a cut and paste utility and mouse server for virtual consoles.</para>
|
---|
| 259 | <indexterm zone="gpm gpm-prog">
|
---|
| 260 | <primary sortas="b-gpm">gpm</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
| 265 | <varlistentry id="gpm-root">
|
---|
| 266 | <term><command>gpm-root</command></term>
|
---|
| 267 | <listitem>
|
---|
[539ace5] | 268 | <para>is a default handler for <command>gpm</command>. It is used to
|
---|
[20e3223] | 269 | draw menus on the root window.</para>
|
---|
| 270 | <indexterm zone="gpm gpm-root">
|
---|
| 271 | <primary sortas="b-gpm-root">gpm-root</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="hltest">
|
---|
| 277 | <term><command>hltest</command></term>
|
---|
| 278 | <listitem>
|
---|
[539ace5] | 279 | <para>is a simple sample application using the high-level library,
|
---|
[20e3223] | 280 | meant to be read by programmers trying to use the high-level library.</para>
|
---|
| 281 | <indexterm zone="gpm hltest">
|
---|
| 282 | <primary sortas="b-hltest">hltest</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="mev">
|
---|
| 288 | <term><command>mev</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>is a program to report mouse events.</para>
|
---|
| 291 | <indexterm zone="gpm mev">
|
---|
| 292 | <primary sortas="b-mev">mev</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="mouse-test">
|
---|
| 298 | <term><command>mouse-test</command></term>
|
---|
| 299 | <listitem>
|
---|
[539ace5] | 300 | <para>is a tool for determining the mouse type and device it's
|
---|
[20e3223] | 301 | attached to.</para>
|
---|
| 302 | <indexterm zone="gpm mouse-test">
|
---|
| 303 | <primary sortas="b-mouse-test">mouse-test</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
[2db2a0c4] | 308 | <varlistentry id="libgpm">
|
---|
[1039de3] | 309 | <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
|
---|
[2db2a0c4] | 310 | <listitem>
|
---|
| 311 | <para>contains the API functions to access the
|
---|
| 312 | <application>GPM</application> daemon.</para>
|
---|
| 313 | <indexterm zone="gpm libgpm">
|
---|
[1039de3] | 314 | <primary sortas="c-libgpm">libgpm.{so,a}</primary>
|
---|
[2db2a0c4] | 315 | </indexterm>
|
---|
| 316 | </listitem>
|
---|
| 317 | </varlistentry>
|
---|
| 318 |
|
---|
[20e3223] | 319 | </variablelist>
|
---|
| 320 |
|
---|
| 321 | </sect2>
|
---|
[f45b1953] | 322 |
|
---|
| 323 | </sect1>
|
---|