source: general/sysutils/gpm.xml@ eede1a3

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 eede1a3 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
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
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">
9 <!ENTITY gpm-md5sum "bf84143905a6a903dbd4d4b911a2a2b8">
10 <!ENTITY gpm-size "820 KB">
11 <!ENTITY gpm-buildsize "7.4 MB">
12 <!ENTITY gpm-time "0.1 SBU">
13]>
14
15<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
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
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>
42
43 &lfs101_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&gpm-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&gpm-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &gpm-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &gpm-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &gpm-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &gpm-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Required patch:
84 <ulink url="&patch-root;/gpm-&gpm-version;-consolidated-1.patch"/>
85 </para>
86 </listitem>
87 </itemizedlist>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/GPM"/></para>
91
92 </sect2>
93
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
112 <sect2 role="installation">
113 <title>Installation of GPM</title>
114
115 <para>
116 Install <application>GPM</application> by running
117 the following commands:
118 </para>
119
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;
123make</userinput></screen>
124
125 <para>
126 This package does not come with a test suite.
127 </para>
128
129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make install &amp;&amp;
134
135install-info --dir-file=/usr/share/info/dir \
136 /usr/share/info/gpm.info &amp;&amp;
137
138ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
139install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
140
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*} \
145 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
146
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <para>
153 <command>./autogen.sh</command>: This command creates the missing
154 <command>configure</command> script.
155 </para>
156
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>
162
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>
168
169 </sect2>
170
171 <sect2 role="configuration">
172 <title>Configuring GPM</title>
173
174 <sect3 id="gpm-init">
175 <title><phrase revision="sysv">Boot Script</phrase>
176 <phrase revision="systemd">Systemd Unit</phrase></title>
177
178 <indexterm zone="gpm gpm-init">
179 <primary sortas="f-gpm-init">gpm</primary>
180 </indexterm>
181
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>
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>
194
195<screen role="root"><userinput>make install-gpm</userinput></screen>
196
197 </sect3>
198
199 <sect3 id="gpm-config">
200 <title>Config Files</title>
201
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>
207
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>
214
215<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
216<literal># Begin /etc/sysconfig/mouse
217
218MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
219PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
220GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
221
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
233 <indexterm zone="gpm gpm-config" revision="sysv">
234 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
235 </indexterm>
236
237 </sect3>
238
239 <sect3>
240 <title>Configuration Information</title>
241
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>
246
247<screen revision="sysv"><literal>MDEVICE="/dev/input/mice"
248PROTOCOL="imps2"
249GPMOPTS=""</literal></screen>
250
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>
261
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
267 them by running the following commands as
268 the <systemitem class="username">root</systemitem> user:
269 </para>
270
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>
276
277 </sect3>
278
279 </sect2>
280
281 <sect2 role="content">
282 <title>Contents</title>
283
284 <segmentedlist>
285 <segtitle>Installed Programs</segtitle>
286 <segtitle>Installed Library</segtitle>
287 <segtitle>Installed Directory</segtitle>
288
289 <seglistitem>
290 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
291 gpm-root, hltest, mev, and mouse-test</seg>
292 <seg>libgpm.{so.a}</seg>
293 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
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>
305 <para>
306 is a security mechanism used to disable the paste buffer
307 </para>
308 <indexterm zone="gpm disable-paste">
309 <primary sortas="b-disable-paste">disable-paste</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="display-buttons">
315 <term><command>display-buttons</command></term>
316 <listitem>
317 <para>
318 is a simple program that reports the mouse buttons being
319 pressed and released
320 </para>
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>
330 <para>
331 is a simple program that reports the mouse coordinates
332 </para>
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>
342 <para>
343 is used to report the <application>GPM</application> library
344 and server versions
345 </para>
346 <indexterm zone="gpm get-versions">
347 <primary sortas="b-get-versions">get-versions</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="gpm-prog">
353 <term><command>gpm</command></term>
354 <listitem>
355 <para>
356 is a cut and paste utility and mouse server for virtual consoles
357 </para>
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>
367 <para>
368 is a default handler for <command>gpm</command>. It is used to
369 draw menus on the root window
370 </para>
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>
380 <para>
381 is a simple sample application using the high-level library, meant
382 to be read by programmers trying to use the high-level library
383 </para>
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>
393 <para>
394 is a program to report mouse events
395 </para>
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>
405 <para>
406 is a tool for determining the mouse type and device it's
407 attached to
408 </para>
409 <indexterm zone="gpm mouse-test">
410 <primary sortas="b-mouse-test">mouse-test</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
415 <varlistentry id="libgpm">
416 <term><filename class="libraryfile">libgpm.{so.a}</filename></term>
417 <listitem>
418 <para>
419 contains the API functions to access the
420 <application>GPM</application> daemon
421 </para>
422 <indexterm zone="gpm libgpm">
423 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
424 </indexterm>
425 </listitem>
426 </varlistentry>
427
428 </variablelist>
429
430 </sect2>
431
432</sect1>
Note: See TracBrowser for help on using the repository browser.