source: general/sysutils/gpm.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

  • Property mode set to 100644
File size: 10.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY gpm-download-http " ">
20 <!ENTITY gpm-download-ftp "ftp://arcana.linux.it/pub/gpm/gpm-&gpm-version;.tar.bz2">
21 <!ENTITY gpm-md5sum "2c63e827d755527950d9d13fe3d87692">
22 <!ENTITY gpm-size "556 KB">
23 <!ENTITY gpm-buildsize "6.7 MB">
24 <!ENTITY gpm-time "0.1 SBU">
25]>
26
27<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
28 <?dbhtml filename="gpm.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 <keywordset>
34 <keyword role="package">gpm-&gpm-version;.tar</keyword>
35 <keyword role="ftpdir">gpm</keyword>
36 </keywordset>
37 </sect1info>
38
39 <title>GPM-&gpm-version;</title>
40
41 <indexterm zone="gpm">
42 <primary sortas="a-GPM">GPM</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to GPM</title>
47
48 <para>The <application>GPM</application> (General Purpose Mouse
49 daemon) package contains a mouse server for the console and
50 <command>xterm</command>. It not only provides cut and paste support
51 generally, but its library component is used by various software such as
52 <application>Links</application> to provide mouse support to the application.
53 It is useful on desktops, especially if following (Beyond) Linux From Scratch
54 instructions; it's often much easier (and less error prone) to cut and paste
55 between two console windows than to type everything by hand!</para>
56
57 <bridgehead renderas="sect3">Package Information</bridgehead>
58 <itemizedlist spacing="compact">
59 <listitem>
60 <para>Download (HTTP): <ulink url="&gpm-download-http;"/></para>
61 </listitem>
62 <listitem>
63 <para>Download (FTP): <ulink url="&gpm-download-ftp;"/></para>
64 </listitem>
65 <listitem>
66 <para>Download MD5 sum: &gpm-md5sum;</para>
67 </listitem>
68 <listitem>
69 <para>Download size: &gpm-size;</para>
70 </listitem>
71 <listitem>
72 <para>Estimated disk space required: &gpm-buildsize;</para>
73 </listitem>
74 <listitem>
75 <para>Estimated build time: &gpm-time;</para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing='compact'>
81 <listitem>
82 <para>Recommended Patch: <ulink
83 url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para>
84 </listitem>
85 <listitem>
86 <para>Recommended Patch: <ulink
87 url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para>
88 </listitem>
89 </itemizedlist>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/GPM"/></para>
93
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of GPM</title>
98
99 <para>Install <application>GPM</application> by running
100 the following commands:</para>
101
102<screen><userinput>patch -Np1 -i ../gpm-&gpm-version;-segfault-1.patch &amp;&amp;
103patch -Np1 -i ../gpm-&gpm-version;-silent-1.patch &amp;&amp;
104./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
105LDFLAGS="-lm" make</userinput></screen>
106
107 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
108
109<screen role="root"><userinput>make install &amp;&amp;
110cp -v conf/gpm-root.conf /etc &amp;&amp;
111ldconfig</userinput></screen>
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para><command>LDFLAGS="-lm"</command>: The math library
119 must be linked with <command>gpm</command>, as ceil() is used in
120 some cursor scrolling logic.</para>
121
122<!-- <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
123message to run the above command to create the proper library links.</para> -->
124
125 </sect2>
126
127 <sect2 role="configuration">
128 <title>Configuring GPM</title>
129
130 <sect3 id="gpm-init">
131 <title>Boot Script</title>
132
133 <indexterm zone="gpm gpm-init">
134 <primary sortas="f-gpm-init">gpm</primary>
135 </indexterm>
136
137 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
138 included in the <xref linkend="bootscripts"/> package.</para>
139
140<screen role="root"><userinput>make install-gpm</userinput></screen>
141
142 </sect3>
143
144 <sect3 id="gpm-config">
145 <title>Config Files</title>
146
147 <para><filename>/etc/gpm-root.conf</filename> and
148 <filename>~/.gpm-root</filename>: The default and individual user
149 <command>gpm-root</command> configuration files.</para>
150
151 <para><filename>/etc/sysconfig/mouse</filename>:
152 This file contains the name of your mouse device and the protocol which
153 it uses. To create this file, run the following as the
154 <systemitem class="username">root</systemitem> user:</para>
155
156<screen role="root"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
157<literal># Begin /etc/sysconfig/mouse
158
159MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
160PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
161GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
162
163# End /etc/sysconfig/mouse</literal>
164EOF</userinput></screen>
165
166 <indexterm zone="gpm gpm-config">
167 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
168 </indexterm>
169
170 <indexterm zone="gpm gpm-config">
171 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
172 </indexterm>
173
174 <indexterm zone="gpm gpm-config">
175 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
176 </indexterm>
177
178 </sect3>
179
180 <sect3>
181 <title>Configuration Information</title>
182
183 <para>Examples of values to set <envar>MDEVICE</envar>,
184 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
185
186<screen><literal>MDEVICE="/dev/psaux"
187PROTOCOL="imps2"
188GPMOPTS=""</literal></screen>
189
190 <para>A list of which protocol values are known can be found by running
191 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
192 The <envar>MDEVICE</envar> setting depends on which type of mouse you
193 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
194 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
195 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
196 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
197 are needed for your hardware.</para>
198
199 </sect3>
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Programs</segtitle>
208 <segtitle>Installed Libraries</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>disable-paste, gpm, gpm-root, hltest, mev, and mouse-test</seg>
213 <seg>libgpm.{so.a}</seg>
214 <seg>None</seg>
215 </seglistitem>
216 </segmentedlist>
217
218 <variablelist>
219 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
220 <?dbfo list-presentation="list"?>
221 <?dbhtml list-presentation="table"?>
222
223 <varlistentry id="disable-paste">
224 <term><command>disable-paste</command></term>
225 <listitem>
226 <para>is a security mechanism used to disable the paste buffer.</para>
227 <indexterm zone="gpm disable-paste">
228 <primary sortas="b-disable-paste">disable-paste</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="gpm-prog">
234 <term><command>gpm</command></term>
235 <listitem>
236 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
237 <indexterm zone="gpm gpm-prog">
238 <primary sortas="b-gpm">gpm</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="gpm-root">
244 <term><command>gpm-root</command></term>
245 <listitem>
246 <para>is a default handler for <command>gpm</command>. It is used to
247 draw menus on the root window.</para>
248 <indexterm zone="gpm gpm-root">
249 <primary sortas="b-gpm-root">gpm-root</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="hltest">
255 <term><command>hltest</command></term>
256 <listitem>
257 <para>is a simple sample application using the high-level library,
258 meant to be read by programmers trying to use the high-level library.</para>
259 <indexterm zone="gpm hltest">
260 <primary sortas="b-hltest">hltest</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="mev">
266 <term><command>mev</command></term>
267 <listitem>
268 <para>is a program to report mouse events.</para>
269 <indexterm zone="gpm mev">
270 <primary sortas="b-mev">mev</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="mouse-test">
276 <term><command>mouse-test</command></term>
277 <listitem>
278 <para>is a tool for determining the mouse type and device it's
279 attached to.</para>
280 <indexterm zone="gpm mouse-test">
281 <primary sortas="b-mouse-test">mouse-test</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="libgpm">
287 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
288 <listitem>
289 <para>contains the API functions to access the
290 <application>GPM</application> daemon.</para>
291 <indexterm zone="gpm libgpm">
292 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 </variablelist>
298
299 </sect2>
300
301</sect1>
Note: See TracBrowser for help on using the repository browser.