source: general/sysutils/gpm.xml@ e403b61

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 e403b61 was e403b61, checked in by Xi Ruoyao <xry111@…>, 3 years ago

gpm: remove unneeded static library

  • Property mode set to 100644
File size: 13.8 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
[e403b61]138rm -fv /usr/lib/libgpm.a &amp;&amp;
[df9fb20]139ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
[8459178]140install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
[d691f65]141
[8459178]142install -v -m755 -d /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
143install -v -m644 doc/support/* \
144 /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
145install -v -m644 doc/{FAQ,HACK_GPM,README*} \
[d691f65]146 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
[52d29f7]147
[20e3223]148 </sect2>
[014d11ad]149
[d691f65]150 <sect2 role="commands">
[20e3223]151 <title>Command Explanations</title>
152
[b1532549]153 <para>
154 <command>./autogen.sh</command>: This command creates the missing
155 <command>configure</command> script.
156 </para>
[8459178]157
[b1532549]158 <para>
159 <command>install-info ...</command>: This package installs a
160 <filename class="extension">.info</filename> file, but does not update
161 the system <filename>dir</filename> file. This command makes the update.
162 </para>
[014d11ad]163
[b1532549]164 <para>
165 <command>ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
166 command is used to create (or update) the <filename
167 class="extension">.so</filename> symlink to the library.
168 </para>
[014d11ad]169
[d691f65]170 </sect2>
[20e3223]171
172 <sect2 role="configuration">
173 <title>Configuring GPM</title>
174
175 <sect3 id="gpm-init">
[1552ac8]176 <title><phrase revision="sysv">Boot Script</phrase>
177 <phrase revision="systemd">Systemd Unit</phrase></title>
[52d29f7]178
[20e3223]179 <indexterm zone="gpm gpm-init">
180 <primary sortas="f-gpm-init">gpm</primary>
181 </indexterm>
[014d11ad]182
[b1532549]183 <para revision="sysv">
184 Install the
185 <filename>/etc/rc.d/init.d/gpm</filename> init script included in the
186 <xref linkend="bootscripts"/> package.
187 </para>
[1552ac8]188
189 <para revision="systemd">
190 To start the <command>gpm</command> daemon at boot,
191 install the systemd unit from the <xref linkend="systemd-units"/>
192 package by running the following command as the
193 <systemitem class="username">root</systemitem> user:
194 </para>
[09f7011]195
[20e3223]196<screen role="root"><userinput>make install-gpm</userinput></screen>
[014d11ad]197
[20e3223]198 </sect3>
[014d11ad]199
[20e3223]200 <sect3 id="gpm-config">
201 <title>Config Files</title>
[34f86ab]202
[b1532549]203 <para>
204 <filename>/etc/gpm-root.conf</filename> and
205 <filename>~/.gpm-root</filename>: The default and individual user
206 <command>gpm-root</command> configuration files.
207 </para>
[34f86ab]208
[b1532549]209 <para revision="sysv">
210 <filename>/etc/sysconfig/mouse</filename>:
211 This file contains the name of your mouse device and the protocol
212 it uses. To create this file, run the following as the
213 <systemitem class="username">root</systemitem> user:
214 </para>
[014d11ad]215
[1552ac8]216<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
[20e3223]217<literal># Begin /etc/sysconfig/mouse
[014d11ad]218
[1039de3]219MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
220PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
221GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
[014d11ad]222
[20e3223]223# End /etc/sysconfig/mouse</literal>
224EOF</userinput></screen>
225
226 <indexterm zone="gpm gpm-config">
227 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
228 </indexterm>
229
230 <indexterm zone="gpm gpm-config">
231 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
232 </indexterm>
233
[1552ac8]234 <indexterm zone="gpm gpm-config" revision="sysv">
[20e3223]235 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
236 </indexterm>
[09f7011]237
[20e3223]238 </sect3>
[014d11ad]239
[20e3223]240 <sect3>
241 <title>Configuration Information</title>
[014d11ad]242
[b1532549]243 <para revision="sysv">
244 Examples of values to set <envar>MDEVICE</envar>,
245 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:
246 </para>
[014d11ad]247
[1552ac8]248<screen revision="sysv"><literal>MDEVICE="/dev/input/mice"
[004a8284]249PROTOCOL="imps2"
[20e3223]250GPMOPTS=""</literal></screen>
251
[b1532549]252 <para revision="sysv">
253 A list of which protocol values are known can be found by running
254 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
255 The <envar>MDEVICE</envar> setting depends on which type of mouse you
256 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
257 (on Windows this is COM1), <filename>/dev/input/mice</filename> is
258 often used for USB mice and <filename>/dev/psaux</filename> for PS2
259 mice. <envar>GPMOPTS</envar> is the 'catch all' for any additional
260 options that are needed for your hardware.
261 </para>
[20e3223]262
[1552ac8]263 <para revision="systemd">
264 <application>GPM</application> is by default started with
265 the following parameters:
266 <parameter>-m /dev/input/mice -t imps2</parameter>. If the
267 mentioned parameters don't suit your needs, you can override
[a0418e7]268 them by running the following commands as
[1552ac8]269 the <systemitem class="username">root</systemitem> user:
270 </para>
271
[78fb227]272<screen role="nodump" revision="systemd"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d &amp;&amp;
273cat &gt; /etc/systemd/system/gpm.service.d/99-user.conf &lt;&lt; EOF
274<literal>[Service]
275ExecStart=/usr/sbin/gpm <replaceable>&lt;list of parameters&gt;</replaceable>
276</literal>EOF</userinput></screen>
[1552ac8]277
[20e3223]278 </sect3>
279
280 </sect2>
281
282 <sect2 role="content">
283 <title>Contents</title>
284
285 <segmentedlist>
286 <segtitle>Installed Programs</segtitle>
[d284bee]287 <segtitle>Installed Library</segtitle>
288 <segtitle>Installed Directory</segtitle>
[20e3223]289
290 <seglistitem>
[9a9d63d4]291 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
292 gpm-root, hltest, mev, and mouse-test</seg>
[e403b61]293 <seg>libgpm.so</seg>
[d691f65]294 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
[20e3223]295 </seglistitem>
296 </segmentedlist>
297
298 <variablelist>
299 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
300 <?dbfo list-presentation="list"?>
301 <?dbhtml list-presentation="table"?>
302
303 <varlistentry id="disable-paste">
304 <term><command>disable-paste</command></term>
305 <listitem>
[b1532549]306 <para>
[4c24eb0a]307 is a security mechanism used to disable the paste buffer
[b1532549]308 </para>
[20e3223]309 <indexterm zone="gpm disable-paste">
310 <primary sortas="b-disable-paste">disable-paste</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
[9a9d63d4]315 <varlistentry id="display-buttons">
316 <term><command>display-buttons</command></term>
317 <listitem>
[b1532549]318 <para>
319 is a simple program that reports the mouse buttons being
[4c24eb0a]320 pressed and released
[b1532549]321 </para>
[9a9d63d4]322 <indexterm zone="gpm display-buttons">
323 <primary sortas="b-display-buttons">display-buttons</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="display-coords">
329 <term><command>display-coords</command></term>
330 <listitem>
[b1532549]331 <para>
[4c24eb0a]332 is a simple program that reports the mouse coordinates
[b1532549]333 </para>
[9a9d63d4]334 <indexterm zone="gpm display-coords">
335 <primary sortas="b-display-coords">display-coords</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="get-versions">
341 <term><command>get-versions</command></term>
342 <listitem>
[b1532549]343 <para>
344 is used to report the <application>GPM</application> library
[4c24eb0a]345 and server versions
[b1532549]346 </para>
[9a9d63d4]347 <indexterm zone="gpm get-versions">
348 <primary sortas="b-get-versions">get-versions</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
[20e3223]353 <varlistentry id="gpm-prog">
354 <term><command>gpm</command></term>
355 <listitem>
[b1532549]356 <para>
[4c24eb0a]357 is a cut and paste utility and mouse server for virtual consoles
[b1532549]358 </para>
[20e3223]359 <indexterm zone="gpm gpm-prog">
360 <primary sortas="b-gpm">gpm</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="gpm-root">
366 <term><command>gpm-root</command></term>
367 <listitem>
[b1532549]368 <para>
369 is a default handler for <command>gpm</command>. It is used to
[4c24eb0a]370 draw menus on the root window
[b1532549]371 </para>
[20e3223]372 <indexterm zone="gpm gpm-root">
373 <primary sortas="b-gpm-root">gpm-root</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="hltest">
379 <term><command>hltest</command></term>
380 <listitem>
[b1532549]381 <para>
382 is a simple sample application using the high-level library, meant
[4c24eb0a]383 to be read by programmers trying to use the high-level library
[b1532549]384 </para>
[20e3223]385 <indexterm zone="gpm hltest">
386 <primary sortas="b-hltest">hltest</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="mev">
392 <term><command>mev</command></term>
393 <listitem>
[b1532549]394 <para>
[4c24eb0a]395 is a program to report mouse events
[b1532549]396 </para>
[20e3223]397 <indexterm zone="gpm mev">
398 <primary sortas="b-mev">mev</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="mouse-test">
404 <term><command>mouse-test</command></term>
405 <listitem>
[b1532549]406 <para>
407 is a tool for determining the mouse type and device it's
[4c24eb0a]408 attached to
[b1532549]409 </para>
[20e3223]410 <indexterm zone="gpm mouse-test">
411 <primary sortas="b-mouse-test">mouse-test</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
[2db2a0c4]416 <varlistentry id="libgpm">
[e403b61]417 <term><filename class="libraryfile">libgpm.so</filename></term>
[2db2a0c4]418 <listitem>
[b1532549]419 <para>
420 contains the API functions to access the
[4c24eb0a]421 <application>GPM</application> daemon
[b1532549]422 </para>
[2db2a0c4]423 <indexterm zone="gpm libgpm">
[e403b61]424 <primary sortas="c-libgpm">libgpm.so</primary>
[2db2a0c4]425 </indexterm>
426 </listitem>
427 </varlistentry>
428
[20e3223]429 </variablelist>
430
431 </sect2>
[f45b1953]432
433</sect1>
Note: See TracBrowser for help on using the repository browser.