source: general/sysutils/gpm-systemd.xml@ 62ad5366

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 62ad5366 was 62ad5366, checked in by Krejzi <krejzi@…>, 10 years ago

More checks.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14008 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.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 "http://www.nico.schottelius.org/software/gpm/archives/gpm-&gpm-version;.tar.bz2">
8 <!ENTITY gpm-download-ftp " ">
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 &lfs76_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 <para condition="html" role="usernotes">User Notes:
66 <ulink url="&blfs-wiki;/GPM"/></para>
67
68 </sect2>
69
70 <sect2 role="installation">
71 <title>Installation of GPM</title>
72
73 <para>Install <application>GPM</application> by running
74 the following commands:</para>
75
76<screen><userinput>./autogen.sh &amp;&amp;
77./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
78make</userinput></screen>
79
80 <para>This package does not come with a test suite.</para>
81
82 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
83
84<screen role="root"><userinput>make install &amp;&amp;
85
86install-info --dir-file=/usr/share/info/dir \
87 /usr/share/info/gpm.info &amp;&amp;
88
89ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
90install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
91
92install -v -m755 -d /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
93install -v -m644 doc/support/* \
94 /usr/share/doc/gpm-&gpm-version;/support &amp;&amp;
95install -v -m644 doc/{FAQ,HACK_GPM,README*} \
96 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
97
98 </sect2>
99
100 <sect2 role="commands">
101 <title>Command Explanations</title>
102
103 <para><command>./autogen.sh</command>: This command creates the missing
104 <command>configure</command> script.</para>
105
106 <para><command>install-info ...</command>: This package installs an
107 <filename class="extension">.info</filename> file, but does not update the
108 system <filename>dir</filename> file. This command makes the update.</para>
109
110 <para><command>ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
111 command is used to create (or update) the <filename class="extension">.so</filename>
112 symlink to the library.</para>
113
114 </sect2>
115
116 <sect2 role="configuration">
117 <title>Configuring GPM</title>
118
119 <sect3 id="gpm-init">
120 <title>Systemd Units</title>
121
122 <indexterm zone="gpm gpm-init">
123 <primary sortas="f-gpm-init">gpm</primary>
124 </indexterm>
125
126 <para>
127 To start the <command>gpm</command> daemon at boot,
128 install the systemd unit from the <xref linkend="bootscripts"/>
129 package by running the following command as the
130 <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make install-gpm</userinput></screen>
134
135 </sect3>
136
137 <sect3 id="gpm-config">
138 <title>Config Files</title>
139
140 <para><filename>/etc/gpm-root.conf</filename> and
141 <filename>~/.gpm-root</filename>: The default and individual user
142 <command>gpm-root</command> configuration files.</para>
143
144 <indexterm zone="gpm gpm-config">
145 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
146 </indexterm>
147
148 <indexterm zone="gpm gpm-config">
149 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
150 </indexterm>
151
152 </sect3>
153
154 <sect3>
155 <title>Configuration Information</title>
156
157 <para>
158 <application>GPM</application> is by default started with
159 the following parameters:
160 <parameter>-m /dev/input/mice -t imps2</parameter>. If the
161 mentioned parameters don't suit your needs, you can override
162 them by running the following the following commands as
163 the <systemitem class="username">root</systemitem> user:
164 </para>
165
166<screen role="root"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d
167echo "ExecStart=/usr/sbin/gpm &lt;list of parameters&gt;" > /etc/systemd/system/gpm.service.d/99-user.conf</userinput></screen>
168
169 </sect3>
170
171 </sect2>
172
173 <sect2 role="content">
174 <title>Contents</title>
175
176 <segmentedlist>
177 <segtitle>Installed Programs</segtitle>
178 <segtitle>Installed Library</segtitle>
179 <segtitle>Installed Directory</segtitle>
180
181 <seglistitem>
182 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
183 gpm-root, hltest, mev, and mouse-test</seg>
184 <seg>libgpm.{so.a}</seg>
185 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
186 </seglistitem>
187 </segmentedlist>
188
189 <variablelist>
190 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
191 <?dbfo list-presentation="list"?>
192 <?dbhtml list-presentation="table"?>
193
194 <varlistentry id="disable-paste">
195 <term><command>disable-paste</command></term>
196 <listitem>
197 <para>is a security mechanism used to disable the paste buffer.</para>
198 <indexterm zone="gpm disable-paste">
199 <primary sortas="b-disable-paste">disable-paste</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="display-buttons">
205 <term><command>display-buttons</command></term>
206 <listitem>
207 <para>is a simple program that reports the mouse buttons being
208 pressed and released.</para>
209 <indexterm zone="gpm display-buttons">
210 <primary sortas="b-display-buttons">display-buttons</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="display-coords">
216 <term><command>display-coords</command></term>
217 <listitem>
218 <para>is a simple program that reports the mouse coordinates.</para>
219 <indexterm zone="gpm display-coords">
220 <primary sortas="b-display-coords">display-coords</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="get-versions">
226 <term><command>get-versions</command></term>
227 <listitem>
228 <para>is used to report the <application>GPM</application> library
229 and server versions.</para>
230 <indexterm zone="gpm get-versions">
231 <primary sortas="b-get-versions">get-versions</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="gpm-prog">
237 <term><command>gpm</command></term>
238 <listitem>
239 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
240 <indexterm zone="gpm gpm-prog">
241 <primary sortas="b-gpm">gpm</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="gpm-root">
247 <term><command>gpm-root</command></term>
248 <listitem>
249 <para>is a default handler for <command>gpm</command>. It is used to
250 draw menus on the root window.</para>
251 <indexterm zone="gpm gpm-root">
252 <primary sortas="b-gpm-root">gpm-root</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="hltest">
258 <term><command>hltest</command></term>
259 <listitem>
260 <para>is a simple sample application using the high-level library,
261 meant to be read by programmers trying to use the high-level library.</para>
262 <indexterm zone="gpm hltest">
263 <primary sortas="b-hltest">hltest</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="mev">
269 <term><command>mev</command></term>
270 <listitem>
271 <para>is a program to report mouse events.</para>
272 <indexterm zone="gpm mev">
273 <primary sortas="b-mev">mev</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="mouse-test">
279 <term><command>mouse-test</command></term>
280 <listitem>
281 <para>is a tool for determining the mouse type and device it's
282 attached to.</para>
283 <indexterm zone="gpm mouse-test">
284 <primary sortas="b-mouse-test">mouse-test</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="libgpm">
290 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
291 <listitem>
292 <para>contains the API functions to access the
293 <application>GPM</application> daemon.</para>
294 <indexterm zone="gpm libgpm">
295 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 </variablelist>
301
302 </sect2>
303
304</sect1>
Note: See TracBrowser for help on using the repository browser.