source: general/sysutils/gpm.xml@ f6333c2

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 f6333c2 was f6333c2, checked in by Randy McMurchy <randy@…>, 15 years ago

Fixed a typo in the GPM instructions, thanks to Ryan Isaacs for pointing it out

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

  • Property mode set to 100644
File size: 11.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://unix.schottelius.org/gpm/archives/gpm-&gpm-version;.tar.bz2">
8 <!ENTITY gpm-download-ftp " ">
9 <!ENTITY gpm-md5sum "6b534da16dc1b28ba828dea89e520f6f">
10 <!ENTITY gpm-size "1.4 MB">
11 <!ENTITY gpm-buildsize "9 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
95install-info --dir-file=/usr/share/info/dir \
96 /usr/share/info/gpm.info &amp;&amp;
97
98ln -v -s libgpm.so.2.1.0 /usr/lib/libgpm.so &amp;&amp;
99install -v -m644 conf/gpm-root.conf /etc &amp;&amp;
100
101install -v -m755 -d /usr/share/doc/gpm-&gpm-version; &amp;&amp;
102chmod -v 755 doc/{changes,support} &amp;&amp;
103chmod -v 644 doc/{changes/*,support/*,FAQ,HACK_GPM,README*} &amp;&amp;
104cp -v -R doc/{FAQ,HACK_GPM,README*,changes,support} \
105 /usr/share/doc/gpm-&gpm-version;</userinput></screen>
106
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
111
112 <para><command>install-info ...</command>: This package installs a
113 <filename class="extension">.info</filename> file, but does not update the
114 system <filename>dir</filename> file. This command makes the update.</para>
115
116 <para><command>ln -v -s libgpm.so.2.1.0 /usr/lib/libgpm.so</command>: This
117 command is used to create the <filename class="extension">.so</filename>
118 symlink to the library.</para>
119
120 </sect2>
121
122 <sect2 role="configuration">
123 <title>Configuring GPM</title>
124
125 <sect3 id="gpm-init">
126 <title>Boot Script</title>
127
128 <indexterm zone="gpm gpm-init">
129 <primary sortas="f-gpm-init">gpm</primary>
130 </indexterm>
131
132 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
133 included in the <xref linkend="bootscripts"/> package.</para>
134
135<screen role="root"><userinput>make install-gpm</userinput></screen>
136
137 </sect3>
138
139 <sect3 id="gpm-config">
140 <title>Config Files</title>
141
142 <para><filename>/etc/gpm-root.conf</filename> and
143 <filename>~/.gpm-root</filename>: The default and individual user
144 <command>gpm-root</command> configuration files.</para>
145
146 <para><filename>/etc/sysconfig/mouse</filename>:
147 This file contains the name of your mouse device and the protocol which
148 it uses. To create this file, run the following as the
149 <systemitem class="username">root</systemitem> user:</para>
150
151<screen role="root"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
152<literal># Begin /etc/sysconfig/mouse
153
154MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
155PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
156GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
157
158# End /etc/sysconfig/mouse</literal>
159EOF</userinput></screen>
160
161 <indexterm zone="gpm gpm-config">
162 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary>
163 </indexterm>
164
165 <indexterm zone="gpm gpm-config">
166 <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary>
167 </indexterm>
168
169 <indexterm zone="gpm gpm-config">
170 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
171 </indexterm>
172
173 </sect3>
174
175 <sect3>
176 <title>Configuration Information</title>
177
178 <para>Examples of values to set <envar>MDEVICE</envar>,
179 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
180
181<screen><literal>MDEVICE="/dev/psaux"
182PROTOCOL="imps2"
183GPMOPTS=""</literal></screen>
184
185 <para>A list of which protocol values are known can be found by running
186 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>.
187 The <envar>MDEVICE</envar> setting depends on which type of mouse you
188 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse
189 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often
190 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice.
191 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that
192 are needed for your hardware.</para>
193
194 </sect3>
195
196 </sect2>
197
198 <sect2 role="content">
199 <title>Contents</title>
200
201 <segmentedlist>
202 <segtitle>Installed Programs</segtitle>
203 <segtitle>Installed Libraries</segtitle>
204 <segtitle>Installed Directories</segtitle>
205
206 <seglistitem>
207 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
208 gpm-root, hltest, mev, and mouse-test</seg>
209 <seg>libgpm.{so.a}</seg>
210 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
211 </seglistitem>
212 </segmentedlist>
213
214 <variablelist>
215 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
216 <?dbfo list-presentation="list"?>
217 <?dbhtml list-presentation="table"?>
218
219 <varlistentry id="disable-paste">
220 <term><command>disable-paste</command></term>
221 <listitem>
222 <para>is a security mechanism used to disable the paste buffer.</para>
223 <indexterm zone="gpm disable-paste">
224 <primary sortas="b-disable-paste">disable-paste</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="display-buttons">
230 <term><command>display-buttons</command></term>
231 <listitem>
232 <para>is a simple program that reports the mouse buttons being
233 pressed and released.</para>
234 <indexterm zone="gpm display-buttons">
235 <primary sortas="b-display-buttons">display-buttons</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="display-coords">
241 <term><command>display-coords</command></term>
242 <listitem>
243 <para>is a simple program that reports the mouse coordinates.</para>
244 <indexterm zone="gpm display-coords">
245 <primary sortas="b-display-coords">display-coords</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="get-versions">
251 <term><command>get-versions</command></term>
252 <listitem>
253 <para>is used to report the <application>GPM</application> library
254 and server versions.</para>
255 <indexterm zone="gpm get-versions">
256 <primary sortas="b-get-versions">get-versions</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="gpm-prog">
262 <term><command>gpm</command></term>
263 <listitem>
264 <para>is a cut and paste utility and mouse server for virtual consoles.</para>
265 <indexterm zone="gpm gpm-prog">
266 <primary sortas="b-gpm">gpm</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="gpm-root">
272 <term><command>gpm-root</command></term>
273 <listitem>
274 <para>is a default handler for <command>gpm</command>. It is used to
275 draw menus on the root window.</para>
276 <indexterm zone="gpm gpm-root">
277 <primary sortas="b-gpm-root">gpm-root</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="hltest">
283 <term><command>hltest</command></term>
284 <listitem>
285 <para>is a simple sample application using the high-level library,
286 meant to be read by programmers trying to use the high-level library.</para>
287 <indexterm zone="gpm hltest">
288 <primary sortas="b-hltest">hltest</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="mev">
294 <term><command>mev</command></term>
295 <listitem>
296 <para>is a program to report mouse events.</para>
297 <indexterm zone="gpm mev">
298 <primary sortas="b-mev">mev</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="mouse-test">
304 <term><command>mouse-test</command></term>
305 <listitem>
306 <para>is a tool for determining the mouse type and device it's
307 attached to.</para>
308 <indexterm zone="gpm mouse-test">
309 <primary sortas="b-mouse-test">mouse-test</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="libgpm">
315 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
316 <listitem>
317 <para>contains the API functions to access the
318 <application>GPM</application> daemon.</para>
319 <indexterm zone="gpm libgpm">
320 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 </variablelist>
326
327 </sect2>
328
329</sect1>
Note: See TracBrowser for help on using the repository browser.