source: general/sysutils/gpm.xml@ dd51538

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dd51538 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 13.7 KB
RevLine 
[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
[fd5ee81]7 <!ENTITY gpm-download-http "&sources-anduin-http;/gpm/gpm-&gpm-version;.tar.bz2">
8 <!ENTITY gpm-download-ftp "&sources-anduin-ftp;/gpm/gpm-&gpm-version;.tar.bz2">
[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 <date>$Date$</date>
20 </sect1info>
21
22 <title>GPM-&gpm-version;</title>
23
24 <indexterm zone="gpm">
25 <primary sortas="a-GPM">GPM</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to GPM</title>
30
[b1532549]31 <para>
32 The <application>GPM</application> (General Purpose Mouse daemon)
33 package contains a mouse server for the console and
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
36 <application>Links</application> to provide mouse support to the
37 application. It is useful on desktops, especially if following (Beyond)
38 Linux From Scratch instructions; it's often much easier (and less error
39 prone) to cut and paste between two console windows than to type
40 everything by hand!
41 </para>
[20e3223]42
[66d551c]43 &lfs101_checked;
[aafcfb8]44
[20e3223]45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
[b1532549]48 <para>
49 Download (HTTP): <ulink url="&gpm-download-http;"/>
50 </para>
[20e3223]51 </listitem>
52 <listitem>
[b1532549]53 <para>
54 Download (FTP): <ulink url="&gpm-download-ftp;"/>
55 </para>
[20e3223]56 </listitem>
57 <listitem>
[b1532549]58 <para>
59 Download MD5 sum: &gpm-md5sum;
60 </para>
[20e3223]61 </listitem>
62 <listitem>
[b1532549]63 <para>
64 Download size: &gpm-size;
65 </para>
[20e3223]66 </listitem>
67 <listitem>
[b1532549]68 <para>
69 Estimated disk space required: &gpm-buildsize;
70 </para>
[20e3223]71 </listitem>
72 <listitem>
[b1532549]73 <para>
74 Estimated build time: &gpm-time;
75 </para>
[20e3223]76 </listitem>
77 </itemizedlist>
78
[fabf04f7]79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Required patch:
[725343af]84 <ulink url="&patch-root;/gpm-&gpm-version;-consolidated-1.patch"/>
[fabf04f7]85 </para>
86 </listitem>
87 </itemizedlist>
88
[1039de3]89 <para condition="html" role="usernotes">User Notes:
[6c42d4e]90 <ulink url="&blfs-wiki;/GPM"/></para>
[1039de3]91
[20e3223]92 </sect2>
93
[a2bed70]94 <sect2 role="kernel" id='gpm-kernel'>
95 <title>Kernel Configuration</title>
96
97 <para>
98 Enable the following option in the kernel configuration and recompile the
99 kernel if necessary:
100 </para>
101
102<screen><literal>Device Drivers ---&gt;
103 Input device support ---&gt; [CONFIG_INPUT]
104 &lt;*/M&gt; Mouse interface [CONFIG_INPUT_MOUSEDEV]</literal></screen>
105
106 <indexterm zone="gpm gpm-kernel">
107 <primary sortas="d-gpm">gpm</primary>
108 </indexterm>
109
110 </sect2>
111
[20e3223]112 <sect2 role="installation">
113 <title>Installation of GPM</title>
114
[b1532549]115 <para>
116 Install <application>GPM</application> by running
117 the following commands:
118 </para>
[20e3223]119
[725343af]120<screen><userinput>patch -Np1 -i ../gpm-&gpm-version;-consolidated-1.patch &amp;&amp;
121./autogen.sh &amp;&amp;
122./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[9a9d63d4]123make</userinput></screen>
124
[b1532549]125 <para>
126 This package does not come with a test suite.
127 </para>
[d260aaf4]128
[b1532549]129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
[d260aaf4]132
[8459178]133<screen role="root"><userinput>make install &amp;&amp;
[9a9d63d4]134
[8459178]135install-info --dir-file=/usr/share/info/dir \
136 /usr/share/info/gpm.info &amp;&amp;
[cb098fac]137
[df9fb20]138ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
[8459178]139install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
[d691f65]140
[8459178]141install -v -m755 -d /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
142install -v -m644 doc/support/* \
143 /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
144install -v -m644 doc/{FAQ,HACK_GPM,README*} \
[d691f65]145 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
[52d29f7]146
[20e3223]147 </sect2>
[014d11ad]148
[d691f65]149 <sect2 role="commands">
[20e3223]150 <title>Command Explanations</title>
151
[b1532549]152 <para>
153 <command>./autogen.sh</command>: This command creates the missing
154 <command>configure</command> script.
155 </para>
[8459178]156
[b1532549]157 <para>
158 <command>install-info ...</command>: This package installs a
159 <filename class="extension">.info</filename> file, but does not update
160 the system <filename>dir</filename> file. This command makes the update.
161 </para>
[014d11ad]162
[b1532549]163 <para>
164 <command>ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
165 command is used to create (or update) the <filename
166 class="extension">.so</filename> symlink to the library.
167 </para>
[014d11ad]168
[d691f65]169 </sect2>
[20e3223]170
171 <sect2 role="configuration">
172 <title>Configuring GPM</title>
173
174 <sect3 id="gpm-init">
[1552ac8]175 <title><phrase revision="sysv">Boot Script</phrase>
176 <phrase revision="systemd">Systemd Unit</phrase></title>
[52d29f7]177
[20e3223]178 <indexterm zone="gpm gpm-init">
179 <primary sortas="f-gpm-init">gpm</primary>
180 </indexterm>
[014d11ad]181
[b1532549]182 <para revision="sysv">
183 Install the
184 <filename>/etc/rc.d/init.d/gpm</filename> init script included in the
185 <xref linkend="bootscripts"/> package.
186 </para>
[1552ac8]187
188 <para revision="systemd">
189 To start the <command>gpm</command> daemon at boot,
190 install the systemd unit from the <xref linkend="systemd-units"/>
191 package by running the following command as the
192 <systemitem class="username">root</systemitem> user:
193 </para>
[09f7011]194
[20e3223]195<screen role="root"><userinput>make install-gpm</userinput></screen>
[014d11ad]196
[20e3223]197 </sect3>
[014d11ad]198
[20e3223]199 <sect3 id="gpm-config">
200 <title>Config Files</title>
[34f86ab]201
[b1532549]202 <para>
203 <filename>/etc/gpm-root.conf</filename> and
204 <filename>~/.gpm-root</filename>: The default and individual user
205 <command>gpm-root</command> configuration files.
206 </para>
[34f86ab]207
[b1532549]208 <para revision="sysv">
209 <filename>/etc/sysconfig/mouse</filename>:
210 This file contains the name of your mouse device and the protocol
211 it uses. To create this file, run the following as the
212 <systemitem class="username">root</systemitem> user:
213 </para>
[014d11ad]214
[1552ac8]215<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
[20e3223]216<literal># Begin /etc/sysconfig/mouse
[014d11ad]217
[1039de3]218MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
219PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
220GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
[014d11ad]221
[20e3223]222# End /etc/sysconfig/mouse</literal>
223EOF</userinput></screen>
224
225 <indexterm zone="gpm gpm-config">
226 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
227 </indexterm>
228
229 <indexterm zone="gpm gpm-config">
230 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
231 </indexterm>
232
[1552ac8]233 <indexterm zone="gpm gpm-config" revision="sysv">
[20e3223]234 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
235 </indexterm>
[09f7011]236
[20e3223]237 </sect3>
[014d11ad]238
[20e3223]239 <sect3>
240 <title>Configuration Information</title>
[014d11ad]241
[b1532549]242 <para revision="sysv">
243 Examples of values to set <envar>MDEVICE</envar>,
244 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:
245 </para>
[014d11ad]246
[1552ac8]247<screen revision="sysv"><literal>MDEVICE="/dev/input/mice"
[004a8284]248PROTOCOL="imps2"
[20e3223]249GPMOPTS=""</literal></screen>
250
[b1532549]251 <para revision="sysv">
252 A list of which protocol values are known can be found by running
253 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
254 The <envar>MDEVICE</envar> setting depends on which type of mouse you
255 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
256 (on Windows this is COM1), <filename>/dev/input/mice</filename> is
257 often used for USB mice and <filename>/dev/psaux</filename> for PS2
258 mice. <envar>GPMOPTS</envar> is the 'catch all' for any additional
259 options that are needed for your hardware.
260 </para>
[20e3223]261
[1552ac8]262 <para revision="systemd">
263 <application>GPM</application> is by default started with
264 the following parameters:
265 <parameter>-m /dev/input/mice -t imps2</parameter>. If the
266 mentioned parameters don't suit your needs, you can override
[a0418e7]267 them by running the following commands as
[1552ac8]268 the <systemitem class="username">root</systemitem> user:
269 </para>
270
[78fb227]271<screen role="nodump" revision="systemd"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d &amp;&amp;
272cat &gt; /etc/systemd/system/gpm.service.d/99-user.conf &lt;&lt; EOF
273<literal>[Service]
274ExecStart=/usr/sbin/gpm <replaceable>&lt;list of parameters&gt;</replaceable>
275</literal>EOF</userinput></screen>
[1552ac8]276
[20e3223]277 </sect3>
278
279 </sect2>
280
281 <sect2 role="content">
282 <title>Contents</title>
283
284 <segmentedlist>
285 <segtitle>Installed Programs</segtitle>
[d284bee]286 <segtitle>Installed Library</segtitle>
287 <segtitle>Installed Directory</segtitle>
[20e3223]288
289 <seglistitem>
[9a9d63d4]290 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
291 gpm-root, hltest, mev, and mouse-test</seg>
[1039de3]292 <seg>libgpm.{so.a}</seg>
[d691f65]293 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
[20e3223]294 </seglistitem>
295 </segmentedlist>
296
297 <variablelist>
298 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
299 <?dbfo list-presentation="list"?>
300 <?dbhtml list-presentation="table"?>
301
302 <varlistentry id="disable-paste">
303 <term><command>disable-paste</command></term>
304 <listitem>
[b1532549]305 <para>
[4c24eb0a]306 is a security mechanism used to disable the paste buffer
[b1532549]307 </para>
[20e3223]308 <indexterm zone="gpm disable-paste">
309 <primary sortas="b-disable-paste">disable-paste</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
[9a9d63d4]314 <varlistentry id="display-buttons">
315 <term><command>display-buttons</command></term>
316 <listitem>
[b1532549]317 <para>
318 is a simple program that reports the mouse buttons being
[4c24eb0a]319 pressed and released
[b1532549]320 </para>
[9a9d63d4]321 <indexterm zone="gpm display-buttons">
322 <primary sortas="b-display-buttons">display-buttons</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="display-coords">
328 <term><command>display-coords</command></term>
329 <listitem>
[b1532549]330 <para>
[4c24eb0a]331 is a simple program that reports the mouse coordinates
[b1532549]332 </para>
[9a9d63d4]333 <indexterm zone="gpm display-coords">
334 <primary sortas="b-display-coords">display-coords</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="get-versions">
340 <term><command>get-versions</command></term>
341 <listitem>
[b1532549]342 <para>
343 is used to report the <application>GPM</application> library
[4c24eb0a]344 and server versions
[b1532549]345 </para>
[9a9d63d4]346 <indexterm zone="gpm get-versions">
347 <primary sortas="b-get-versions">get-versions</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
[20e3223]352 <varlistentry id="gpm-prog">
353 <term><command>gpm</command></term>
354 <listitem>
[b1532549]355 <para>
[4c24eb0a]356 is a cut and paste utility and mouse server for virtual consoles
[b1532549]357 </para>
[20e3223]358 <indexterm zone="gpm gpm-prog">
359 <primary sortas="b-gpm">gpm</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="gpm-root">
365 <term><command>gpm-root</command></term>
366 <listitem>
[b1532549]367 <para>
368 is a default handler for <command>gpm</command>. It is used to
[4c24eb0a]369 draw menus on the root window
[b1532549]370 </para>
[20e3223]371 <indexterm zone="gpm gpm-root">
372 <primary sortas="b-gpm-root">gpm-root</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="hltest">
378 <term><command>hltest</command></term>
379 <listitem>
[b1532549]380 <para>
381 is a simple sample application using the high-level library, meant
[4c24eb0a]382 to be read by programmers trying to use the high-level library
[b1532549]383 </para>
[20e3223]384 <indexterm zone="gpm hltest">
385 <primary sortas="b-hltest">hltest</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="mev">
391 <term><command>mev</command></term>
392 <listitem>
[b1532549]393 <para>
[4c24eb0a]394 is a program to report mouse events
[b1532549]395 </para>
[20e3223]396 <indexterm zone="gpm mev">
397 <primary sortas="b-mev">mev</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="mouse-test">
403 <term><command>mouse-test</command></term>
404 <listitem>
[b1532549]405 <para>
406 is a tool for determining the mouse type and device it's
[4c24eb0a]407 attached to
[b1532549]408 </para>
[20e3223]409 <indexterm zone="gpm mouse-test">
410 <primary sortas="b-mouse-test">mouse-test</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
[2db2a0c4]415 <varlistentry id="libgpm">
[4c24eb0a]416 <term><filename class="libraryfile">libgpm.{so.a}</filename></term>
[2db2a0c4]417 <listitem>
[b1532549]418 <para>
419 contains the API functions to access the
[4c24eb0a]420 <application>GPM</application> daemon
[b1532549]421 </para>
[2db2a0c4]422 <indexterm zone="gpm libgpm">
[1039de3]423 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
[2db2a0c4]424 </indexterm>
425 </listitem>
426 </varlistentry>
427
[20e3223]428 </variablelist>
429
430 </sect2>
[f45b1953]431
432</sect1>
Note: See TracBrowser for help on using the repository browser.