source: general/sysutils/gpm.xml@ 78fb227

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.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 78fb227 was 78fb227, checked in by Pierre Labastie <pieere@…>, 5 years ago

make GPM systemd config example "nodump". Also files in xxx.service.d
directory need section headers

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21575 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.3 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 <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
32 <para>The <application>GPM</application> (General Purpose Mouse
33 daemon) 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 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
39 between two console windows than to type everything by hand!</para>
40
41 &lfs84_checked;
42
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
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing="compact">
67 <listitem>
68 <para>
69 Required patch:
70 <ulink url="&patch-root;/gpm-&gpm-version;-glibc_2.26-1.patch"/>
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/GPM"/></para>
77
78 </sect2>
79
80 <sect2 role="kernel" id='gpm-kernel'>
81 <title>Kernel Configuration</title>
82
83 <para>
84 Enable the following option in the kernel configuration and recompile the
85 kernel if necessary:
86 </para>
87
88<screen><literal>Device Drivers ---&gt;
89 Input device support ---&gt; [CONFIG_INPUT]
90 &lt;*/M&gt; Mouse interface [CONFIG_INPUT_MOUSEDEV]</literal></screen>
91
92 <indexterm zone="gpm gpm-kernel">
93 <primary sortas="d-gpm">gpm</primary>
94 </indexterm>
95
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of GPM</title>
100
101
102 <para>Install <application>GPM</application> by running
103 the following commands:</para>
104
105<screen><userinput>sed -i -e 's:&lt;gpm.h&gt;:"headers/gpm.h":' src/prog/{display-buttons,display-coords,get-versions}.c &amp;&amp;
106patch -Np1 -i ../gpm-&gpm-version;-glibc_2.26-1.patch &amp;&amp;
107./autogen.sh &amp;&amp;
108./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
109make</userinput></screen>
110
111 <para>This package does not come with a test suite.</para>
112
113 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen role="root"><userinput>make install &amp;&amp;
116
117install-info --dir-file=/usr/share/info/dir \
118 /usr/share/info/gpm.info &amp;&amp;
119
120ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
121install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
122
123install -v -m755 -d /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
124install -v -m644 doc/support/* \
125 /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
126install -v -m644 doc/{FAQ,HACK_GPM,README*} \
127 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
128
129 </sect2>
130
131 <sect2 role="commands">
132 <title>Command Explanations</title>
133
134 <para><command>./autogen.sh</command>: This command creates the missing
135 <command>configure</command> script.</para>
136
137 <para><command>install-info ...</command>: This package installs an
138 <filename class="extension">.info</filename> file, but does not update the
139 system <filename>dir</filename> file. This command makes the update.</para>
140
141 <para><command>ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
142 command is used to create (or update) the <filename class="extension">.so</filename>
143 symlink to the library.</para>
144
145 </sect2>
146
147 <sect2 role="configuration">
148 <title>Configuring GPM</title>
149
150 <sect3 id="gpm-init">
151 <title><phrase revision="sysv">Boot Script</phrase>
152 <phrase revision="systemd">Systemd Unit</phrase></title>
153
154 <indexterm zone="gpm gpm-init">
155 <primary sortas="f-gpm-init">gpm</primary>
156 </indexterm>
157
158 <para revision="sysv">Install the
159 <filename>/etc/rc.d/init.d/gpm</filename> init script included in the
160 <xref linkend="bootscripts"/> package.</para>
161
162 <para revision="systemd">
163 To start the <command>gpm</command> daemon at boot,
164 install the systemd unit from the <xref linkend="systemd-units"/>
165 package by running the following command as the
166 <systemitem class="username">root</systemitem> user:
167 </para>
168
169<screen role="root"><userinput>make install-gpm</userinput></screen>
170
171 </sect3>
172
173 <sect3 id="gpm-config">
174 <title>Config Files</title>
175
176 <para><filename>/etc/gpm-root.conf</filename> and
177 <filename>~/.gpm-root</filename>: The default and individual user
178 <command>gpm-root</command> configuration files.</para>
179
180 <para revision="sysv"><filename>/etc/sysconfig/mouse</filename>:
181 This file contains the name of your mouse device and the protocol
182 it uses. To create this file, run the following as the
183 <systemitem class="username">root</systemitem> user:</para>
184
185<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
186<literal># Begin /etc/sysconfig/mouse
187
188MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
189PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
190GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
191
192# End /etc/sysconfig/mouse</literal>
193EOF</userinput></screen>
194
195 <indexterm zone="gpm gpm-config">
196 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
197 </indexterm>
198
199 <indexterm zone="gpm gpm-config">
200 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
201 </indexterm>
202
203 <indexterm zone="gpm gpm-config" revision="sysv">
204 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
205 </indexterm>
206
207 </sect3>
208
209 <sect3>
210 <title>Configuration Information</title>
211
212 <para revision="sysv">Examples of values to set <envar>MDEVICE</envar>,
213 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
214
215<screen revision="sysv"><literal>MDEVICE="/dev/input/mice"
216PROTOCOL="imps2"
217GPMOPTS=""</literal></screen>
218
219 <para revision="sysv">A list of which protocol values are known can be
220 found by running
221 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
222 The <envar>MDEVICE</envar> setting depends on which type of mouse you
223 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
224 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
225 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
226 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
227 are needed for your hardware.</para>
228
229 <para revision="systemd">
230 <application>GPM</application> is by default started with
231 the following parameters:
232 <parameter>-m /dev/input/mice -t imps2</parameter>. If the
233 mentioned parameters don't suit your needs, you can override
234 them by running the following commands as
235 the <systemitem class="username">root</systemitem> user:
236 </para>
237
238<screen role="nodump" revision="systemd"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d &amp;&amp;
239cat &gt; /etc/systemd/system/gpm.service.d/99-user.conf &lt;&lt; EOF
240<literal>[Service]
241ExecStart=/usr/sbin/gpm <replaceable>&lt;list of parameters&gt;</replaceable>
242</literal>EOF</userinput></screen>
243
244 </sect3>
245
246 </sect2>
247
248 <sect2 role="content">
249 <title>Contents</title>
250
251 <segmentedlist>
252 <segtitle>Installed Programs</segtitle>
253 <segtitle>Installed Library</segtitle>
254 <segtitle>Installed Directory</segtitle>
255
256 <seglistitem>
257 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
258 gpm-root, hltest, mev, and mouse-test</seg>
259 <seg>libgpm.{so.a}</seg>
260 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
261 </seglistitem>
262 </segmentedlist>
263
264 <variablelist>
265 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
266 <?dbfo list-presentation="list"?>
267 <?dbhtml list-presentation="table"?>
268
269 <varlistentry id="disable-paste">
270 <term><command>disable-paste</command></term>
271 <listitem>
272 <para>is a security mechanism used to disable the paste buffer.</para>
273 <indexterm zone="gpm disable-paste">
274 <primary sortas="b-disable-paste">disable-paste</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="display-buttons">
280 <term><command>display-buttons</command></term>
281 <listitem>
282 <para>is a simple program that reports the mouse buttons being
283 pressed and released.</para>
284 <indexterm zone="gpm display-buttons">
285 <primary sortas="b-display-buttons">display-buttons</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="display-coords">
291 <term><command>display-coords</command></term>
292 <listitem>
293 <para>is a simple program that reports the mouse coordinates.</para>
294 <indexterm zone="gpm display-coords">
295 <primary sortas="b-display-coords">display-coords</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="get-versions">
301 <term><command>get-versions</command></term>
302 <listitem>
303 <para>is used to report the <application>GPM</application> library
304 and server versions.</para>
305 <indexterm zone="gpm get-versions">
306 <primary sortas="b-get-versions">get-versions</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="gpm-prog">
312 <term><command>gpm</command></term>
313 <listitem>
314 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
315 <indexterm zone="gpm gpm-prog">
316 <primary sortas="b-gpm">gpm</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="gpm-root">
322 <term><command>gpm-root</command></term>
323 <listitem>
324 <para>is a default handler for <command>gpm</command>. It is used to
325 draw menus on the root window.</para>
326 <indexterm zone="gpm gpm-root">
327 <primary sortas="b-gpm-root">gpm-root</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="hltest">
333 <term><command>hltest</command></term>
334 <listitem>
335 <para>is a simple sample application using the high-level library,
336 meant to be read by programmers trying to use the high-level library.</para>
337 <indexterm zone="gpm hltest">
338 <primary sortas="b-hltest">hltest</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="mev">
344 <term><command>mev</command></term>
345 <listitem>
346 <para>is a program to report mouse events.</para>
347 <indexterm zone="gpm mev">
348 <primary sortas="b-mev">mev</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="mouse-test">
354 <term><command>mouse-test</command></term>
355 <listitem>
356 <para>is a tool for determining the mouse type and device it's
357 attached to.</para>
358 <indexterm zone="gpm mouse-test">
359 <primary sortas="b-mouse-test">mouse-test</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="libgpm">
365 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
366 <listitem>
367 <para>contains the API functions to access the
368 <application>GPM</application> daemon.</para>
369 <indexterm zone="gpm libgpm">
370 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
375 </variablelist>
376
377 </sect2>
378
379</sect1>
Note: See TracBrowser for help on using the repository browser.