source: general/sysutils/gpm.xml@ 480b859

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 480b859 was 480b859, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Fixed configuration instructions in

GPM. Thanks to Chris Staub.

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

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