source: general/sysutils/gpm.xml@ 992c9e7

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 992c9e7 was 2a7cafa, checked in by Ken Moffat <ken@…>, 17 months ago

Tags

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