source: general/sysutils/gpm-systemd.xml@ a70b5e46

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

Convert gpm to systemd.

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

  • Property mode set to 100644
File size: 10.3 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
[93ab9d5]7 <!ENTITY gpm-download-http "http://www.nico.schottelius.org/software/gpm/archives/gpm-&gpm-version;.tar.bz2">
[9a9d63d4]8 <!ENTITY gpm-download-ftp " ">
[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
[41b674d]41 &lfs75_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
[1039de3]65 <para condition="html" role="usernotes">User Notes:
[6c42d4e]66 <ulink url="&blfs-wiki;/GPM"/></para>
[1039de3]67
[20e3223]68 </sect2>
69
70 <sect2 role="installation">
71 <title>Installation of GPM</title>
72
[539ace5]73 <para>Install <application>GPM</application> by running
[20e3223]74 the following commands:</para>
75
[8459178]76<screen><userinput>./autogen.sh &amp;&amp;
77./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[9a9d63d4]78make</userinput></screen>
79
80 <para>This package does not come with a test suite.</para>
[d260aaf4]81
[20e3223]82 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[d260aaf4]83
[8459178]84<screen role="root"><userinput>make install &amp;&amp;
[9a9d63d4]85
[8459178]86install-info --dir-file=/usr/share/info/dir \
87 /usr/share/info/gpm.info &amp;&amp;
[cb098fac]88
[df9fb20]89ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
[8459178]90install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
[d691f65]91
[8459178]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*} \
[d691f65]96 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
[52d29f7]97
[20e3223]98 </sect2>
[014d11ad]99
[d691f65]100 <sect2 role="commands">
[20e3223]101 <title>Command Explanations</title>
102
[8459178]103 <para><command>./autogen.sh</command>: This command creates the missing
104 <command>configure</command> script.</para>
105
[6d2cc23]106 <para><command>install-info ...</command>: This package installs an
[d691f65]107 <filename class="extension">.info</filename> file, but does not update the
108 system <filename>dir</filename> file. This command makes the update.</para>
[014d11ad]109
[6d2cc23]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>
[d691f65]112 symlink to the library.</para>
[014d11ad]113
[d691f65]114 </sect2>
[20e3223]115
116 <sect2 role="configuration">
117 <title>Configuring GPM</title>
118
119 <sect3 id="gpm-init">
[d3a4bcb]120 <title>Systemd Units</title>
[52d29f7]121
[20e3223]122 <indexterm zone="gpm gpm-init">
123 <primary sortas="f-gpm-init">gpm</primary>
124 </indexterm>
[014d11ad]125
[d3a4bcb]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>
[09f7011]132
[20e3223]133<screen role="root"><userinput>make install-gpm</userinput></screen>
[014d11ad]134
[20e3223]135 </sect3>
[014d11ad]136
[20e3223]137 <sect3 id="gpm-config">
138 <title>Config Files</title>
[34f86ab]139
[539ace5]140 <para><filename>/etc/gpm-root.conf</filename> and
141 <filename>~/.gpm-root</filename>: The default and individual user
[20e3223]142 <command>gpm-root</command> configuration files.</para>
[34f86ab]143
[20e3223]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>
[014d11ad]153
[20e3223]154 <sect3>
155 <title>Configuration Information</title>
[014d11ad]156
[d3a4bcb]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>
[20e3223]168
169 </sect3>
170
171 </sect2>
172
173 <sect2 role="content">
174 <title>Contents</title>
175
176 <segmentedlist>
177 <segtitle>Installed Programs</segtitle>
[d284bee]178 <segtitle>Installed Library</segtitle>
179 <segtitle>Installed Directory</segtitle>
[20e3223]180
181 <seglistitem>
[9a9d63d4]182 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
183 gpm-root, hltest, mev, and mouse-test</seg>
[1039de3]184 <seg>libgpm.{so.a}</seg>
[d691f65]185 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
[20e3223]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
[9a9d63d4]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
[20e3223]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>
[539ace5]249 <para>is a default handler for <command>gpm</command>. It is used to
[20e3223]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>
[539ace5]260 <para>is a simple sample application using the high-level library,
[20e3223]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>
[539ace5]281 <para>is a tool for determining the mouse type and device it's
[20e3223]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
[2db2a0c4]289 <varlistentry id="libgpm">
[1039de3]290 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
[2db2a0c4]291 <listitem>
292 <para>contains the API functions to access the
293 <application>GPM</application> daemon.</para>
294 <indexterm zone="gpm libgpm">
[1039de3]295 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
[2db2a0c4]296 </indexterm>
297 </listitem>
298 </varlistentry>
299
[20e3223]300 </variablelist>
301
302 </sect2>
[f45b1953]303
304</sect1>
Note: See TracBrowser for help on using the repository browser.