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