source: general/sysutils/gpm.xml@ 87dd4d94

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 87dd4d94 was 9eb7ee7, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to bluez-5.50.
Update to libical-3.0.4.
Tags

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

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