source: general/sysutils/gpm.xml@ 9a9d63d4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 9a9d63d4 was 9a9d63d4, checked in by Randy McMurchy <randy@…>, 16 years ago

Updated to GPM-1.20.5

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

  • Property mode set to 100644
File size: 10.7 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://unix.schottelius.org/gpm/archives/gpm-&gpm-version;.tar.bz2">
8 <!ENTITY gpm-download-ftp " ">
9 <!ENTITY gpm-md5sum "e55473932e4052f3b74c730dfefe0d15">
10 <!ENTITY gpm-size "1.4 MB">
11 <!ENTITY gpm-buildsize "10 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 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&gpm-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&gpm-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &gpm-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &gpm-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &gpm-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &gpm-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
64 <itemizedlist spacing='compact'>
65 <listitem>
66 <para>Recommended Patch: <ulink
67 url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para>
68 </listitem>
69 <listitem>
70 <para>Recommended Patch: <ulink
71 url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para>
72 </listitem>
73 </itemizedlist> -->
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/GPM"/></para>
77
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of GPM</title>
82
83 <para>Install <application>GPM</application> by running
84 the following commands:</para>
85
86<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
87make</userinput></screen>
88
89 <para>This package does not come with a test suite.</para>
90
91 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
92
93<screen role="root"><userinput>make install &amp;&amp;
94
95ln -v -s libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
96install -v -m644 conf/gpm-root.conf /etc</userinput></screen>
97
98 </sect2>
99
100 <!-- <sect2 role="commands">
101 <title>Command Explanations</title>
102
103 <para><command>LDFLAGS="-lm"</command>: The math library
104 must be linked with <command>gpm</command>, as ceil() is used in
105 some cursor scrolling logic.</para>
106
107 <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
108message to run the above command to create the proper library links.</para>
109
110 </sect2> -->
111
112 <sect2 role="configuration">
113 <title>Configuring GPM</title>
114
115 <sect3 id="gpm-init">
116 <title>Boot Script</title>
117
118 <indexterm zone="gpm gpm-init">
119 <primary sortas="f-gpm-init">gpm</primary>
120 </indexterm>
121
122 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
123 included in the <xref linkend="bootscripts"/> package.</para>
124
125<screen role="root"><userinput>make install-gpm</userinput></screen>
126
127 </sect3>
128
129 <sect3 id="gpm-config">
130 <title>Config Files</title>
131
132 <para><filename>/etc/gpm-root.conf</filename> and
133 <filename>~/.gpm-root</filename>: The default and individual user
134 <command>gpm-root</command> configuration files.</para>
135
136 <para><filename>/etc/sysconfig/mouse</filename>:
137 This file contains the name of your mouse device and the protocol which
138 it uses. To create this file, run the following as the
139 <systemitem class="username">root</systemitem> user:</para>
140
141<screen role="root"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
142<literal># Begin /etc/sysconfig/mouse
143
144MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
145PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
146GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
147
148# End /etc/sysconfig/mouse</literal>
149EOF</userinput></screen>
150
151 <indexterm zone="gpm gpm-config">
152 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
153 </indexterm>
154
155 <indexterm zone="gpm gpm-config">
156 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
157 </indexterm>
158
159 <indexterm zone="gpm gpm-config">
160 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
161 </indexterm>
162
163 </sect3>
164
165 <sect3>
166 <title>Configuration Information</title>
167
168 <para>Examples of values to set <envar>MDEVICE</envar>,
169 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
170
171<screen><literal>MDEVICE="/dev/psaux"
172PROTOCOL="imps2"
173GPMOPTS=""</literal></screen>
174
175 <para>A list of which protocol values are known can be found by running
176 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
177 The <envar>MDEVICE</envar> setting depends on which type of mouse you
178 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
179 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
180 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
181 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
182 are needed for your hardware.</para>
183
184 </sect3>
185
186 </sect2>
187
188 <sect2 role="content">
189 <title>Contents</title>
190
191 <segmentedlist>
192 <segtitle>Installed Programs</segtitle>
193 <segtitle>Installed Libraries</segtitle>
194 <segtitle>Installed Directories</segtitle>
195
196 <seglistitem>
197 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
198 gpm-root, hltest, mev, and mouse-test</seg>
199 <seg>libgpm.{so.a}</seg>
200 <seg>None</seg>
201 </seglistitem>
202 </segmentedlist>
203
204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
208
209 <varlistentry id="disable-paste">
210 <term><command>disable-paste</command></term>
211 <listitem>
212 <para>is a security mechanism used to disable the paste buffer.</para>
213 <indexterm zone="gpm disable-paste">
214 <primary sortas="b-disable-paste">disable-paste</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="display-buttons">
220 <term><command>display-buttons</command></term>
221 <listitem>
222 <para>is a simple program that reports the mouse buttons being
223 pressed and released.</para>
224 <indexterm zone="gpm display-buttons">
225 <primary sortas="b-display-buttons">display-buttons</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="display-coords">
231 <term><command>display-coords</command></term>
232 <listitem>
233 <para>is a simple program that reports the mouse coordinates.</para>
234 <indexterm zone="gpm display-coords">
235 <primary sortas="b-display-coords">display-coords</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="get-versions">
241 <term><command>get-versions</command></term>
242 <listitem>
243 <para>is used to report the <application>GPM</application> library
244 and server versions.</para>
245 <indexterm zone="gpm get-versions">
246 <primary sortas="b-get-versions">get-versions</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="gpm-prog">
252 <term><command>gpm</command></term>
253 <listitem>
254 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
255 <indexterm zone="gpm gpm-prog">
256 <primary sortas="b-gpm">gpm</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="gpm-root">
262 <term><command>gpm-root</command></term>
263 <listitem>
264 <para>is a default handler for <command>gpm</command>. It is used to
265 draw menus on the root window.</para>
266 <indexterm zone="gpm gpm-root">
267 <primary sortas="b-gpm-root">gpm-root</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="hltest">
273 <term><command>hltest</command></term>
274 <listitem>
275 <para>is a simple sample application using the high-level library,
276 meant to be read by programmers trying to use the high-level library.</para>
277 <indexterm zone="gpm hltest">
278 <primary sortas="b-hltest">hltest</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="mev">
284 <term><command>mev</command></term>
285 <listitem>
286 <para>is a program to report mouse events.</para>
287 <indexterm zone="gpm mev">
288 <primary sortas="b-mev">mev</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="mouse-test">
294 <term><command>mouse-test</command></term>
295 <listitem>
296 <para>is a tool for determining the mouse type and device it's
297 attached to.</para>
298 <indexterm zone="gpm mouse-test">
299 <primary sortas="b-mouse-test">mouse-test</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="libgpm">
305 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
306 <listitem>
307 <para>contains the API functions to access the
308 <application>GPM</application> daemon.</para>
309 <indexterm zone="gpm libgpm">
310 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 </variablelist>
316
317 </sect2>
318
319</sect1>
Note: See TracBrowser for help on using the repository browser.