source: general/sysutils/gpm.xml@ 201fca3d

gnome
Last change on this file since 201fca3d was 201fca3d, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added systemd notes to fcron gpm sysstat and udev-extras pages

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

  • Property mode set to 100644
File size: 12.4 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 &lfs75_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>Boot Script</title>
121
122 <indexterm zone="gpm gpm-init">
123 <primary sortas="f-gpm-init">gpm</primary>
124 </indexterm>
125
126 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
127 included in the <xref linkend="bootscripts"/> package.</para>
128
129<screen role="root"><userinput>make install-gpm</userinput></screen>
130
131 </sect3>
132
133 <sect3 id="gpm-init-systemd">
134 <title>Systemd Unit File</title>
135
136 <indexterm zone="gpm gpm-init-systemd">
137 <primary sortas="f-gpm-init">gpm</primary>
138 </indexterm>
139
140 <para>
141 Instead of using the classic boot script, systemd-units package provides native unit file.
142 Install the Systemd Unit included in the <xref linkend="systemd-units"/>
143 package using the following command as the <systemitem class="username">root</systemitem>
144 user:
145 </para>
146
147<screen role="root"><userinput>make install-gpm</userinput></screen>
148
149
150 <note>
151 <para>
152 Note that this service will start the daemon with "-m /dev/input/mice -t imps2" parameters
153 (Same as when using the options from "Configuration Information" section).
154 If any other options are needed, the file needs to be edited manually or overriden using
155 the systemd override system using the following command as the
156 <systemitem class="username">root</systemitem> user:
157 </para>
158 </note>
159
160<screen role="root"><userinput>
161
162mkdir -p /etc/systemd/system/gpm.service.d/
163echo "Exec=/usr/sbin/gpm -m <replaceable>&lt;yourdevice&gt;</replaceable> -t <replaceable>&lt;yourprotocol&gt;</replaceable>"&gt;
164/etc/systemd/system/gpm.service.d/50-custom.conf
165
166</userinput></screen>
167 </sect3>
168
169 <sect3 id="gpm-config">
170 <title>Config Files</title>
171
172 <para><filename>/etc/gpm-root.conf</filename> and
173 <filename>~/.gpm-root</filename>: The default and individual user
174 <command>gpm-root</command> configuration files.</para>
175
176 <para><filename>/etc/sysconfig/mouse</filename>:
177 This file contains the name of your mouse device and the protocol
178 it uses. To create this file, run the following as the
179 <systemitem class="username">root</systemitem> user:</para>
180
181<screen role="root"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
182<literal># Begin /etc/sysconfig/mouse
183
184MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
185PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
186GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
187
188# End /etc/sysconfig/mouse</literal>
189EOF</userinput></screen>
190
191 <indexterm zone="gpm gpm-config">
192 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
193 </indexterm>
194
195 <indexterm zone="gpm gpm-config">
196 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
197 </indexterm>
198
199 <indexterm zone="gpm gpm-config">
200 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
201 </indexterm>
202
203 </sect3>
204
205 <sect3>
206 <title>Configuration Information</title>
207
208 <para>Examples of values to set <envar>MDEVICE</envar>,
209 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
210
211<screen><literal>MDEVICE="/dev/psaux"
212PROTOCOL="imps2"
213GPMOPTS=""</literal></screen>
214
215 <para>A list of which protocol values are known can be found by running
216 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
217 The <envar>MDEVICE</envar> setting depends on which type of mouse you
218 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
219 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
220 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
221 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
222 are needed for your hardware.</para>
223
224 </sect3>
225
226 </sect2>
227
228 <sect2 role="content">
229 <title>Contents</title>
230
231 <segmentedlist>
232 <segtitle>Installed Programs</segtitle>
233 <segtitle>Installed Library</segtitle>
234 <segtitle>Installed Directory</segtitle>
235
236 <seglistitem>
237 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
238 gpm-root, hltest, mev, and mouse-test</seg>
239 <seg>libgpm.{so.a}</seg>
240 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
241 </seglistitem>
242 </segmentedlist>
243
244 <variablelist>
245 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
246 <?dbfo list-presentation="list"?>
247 <?dbhtml list-presentation="table"?>
248
249 <varlistentry id="disable-paste">
250 <term><command>disable-paste</command></term>
251 <listitem>
252 <para>is a security mechanism used to disable the paste buffer.</para>
253 <indexterm zone="gpm disable-paste">
254 <primary sortas="b-disable-paste">disable-paste</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="display-buttons">
260 <term><command>display-buttons</command></term>
261 <listitem>
262 <para>is a simple program that reports the mouse buttons being
263 pressed and released.</para>
264 <indexterm zone="gpm display-buttons">
265 <primary sortas="b-display-buttons">display-buttons</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="display-coords">
271 <term><command>display-coords</command></term>
272 <listitem>
273 <para>is a simple program that reports the mouse coordinates.</para>
274 <indexterm zone="gpm display-coords">
275 <primary sortas="b-display-coords">display-coords</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="get-versions">
281 <term><command>get-versions</command></term>
282 <listitem>
283 <para>is used to report the <application>GPM</application> library
284 and server versions.</para>
285 <indexterm zone="gpm get-versions">
286 <primary sortas="b-get-versions">get-versions</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="gpm-prog">
292 <term><command>gpm</command></term>
293 <listitem>
294 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
295 <indexterm zone="gpm gpm-prog">
296 <primary sortas="b-gpm">gpm</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="gpm-root">
302 <term><command>gpm-root</command></term>
303 <listitem>
304 <para>is a default handler for <command>gpm</command>. It is used to
305 draw menus on the root window.</para>
306 <indexterm zone="gpm gpm-root">
307 <primary sortas="b-gpm-root">gpm-root</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="hltest">
313 <term><command>hltest</command></term>
314 <listitem>
315 <para>is a simple sample application using the high-level library,
316 meant to be read by programmers trying to use the high-level library.</para>
317 <indexterm zone="gpm hltest">
318 <primary sortas="b-hltest">hltest</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="mev">
324 <term><command>mev</command></term>
325 <listitem>
326 <para>is a program to report mouse events.</para>
327 <indexterm zone="gpm mev">
328 <primary sortas="b-mev">mev</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="mouse-test">
334 <term><command>mouse-test</command></term>
335 <listitem>
336 <para>is a tool for determining the mouse type and device it's
337 attached to.</para>
338 <indexterm zone="gpm mouse-test">
339 <primary sortas="b-mouse-test">mouse-test</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="libgpm">
345 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
346 <listitem>
347 <para>contains the API functions to access the
348 <application>GPM</application> daemon.</para>
349 <indexterm zone="gpm libgpm">
350 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 </variablelist>
356
357 </sect2>
358
359</sect1>
Note: See TracBrowser for help on using the repository browser.