source: general/sysutils/gpm.xml@ 6e13117a

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 6e13117a 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
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[9a9d63d4]7 <!ENTITY gpm-download-http "http://unix.schottelius.org/gpm/archives/gpm-&gpm-version;.tar.bz2">
8 <!ENTITY gpm-download-ftp " ">
[d691f65]9 <!ENTITY gpm-md5sum "6b534da16dc1b28ba828dea89e520f6f">
[9a9d63d4]10 <!ENTITY gpm-size "1.4 MB">
[d691f65]11 <!ENTITY gpm-buildsize "9 MB">
[fada515]12 <!ENTITY gpm-time "0.1 SBU">
[52d29f7]13]>
14
[5db3785e]15<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
[20e3223]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
[539ace5]32 <para>The <application>GPM</application> (General Purpose Mouse
33 daemon) package contains a mouse server for the console and
[20e3223]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
[539ace5]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
[20e3223]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
[9a9d63d4]63 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[20e3223]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>
[9a9d63d4]73 </itemizedlist> -->
[20e3223]74
[1039de3]75 <para condition="html" role="usernotes">User Notes:
[6c42d4e]76 <ulink url="&blfs-wiki;/GPM"/></para>
[1039de3]77
[20e3223]78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of GPM</title>
82
[539ace5]83 <para>Install <application>GPM</application> by running
[20e3223]84 the following commands:</para>
85
[9a9d63d4]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>
[d260aaf4]90
[20e3223]91 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[d260aaf4]92
[d691f65]93<screen role="root"><userinput>make install &amp;&amp;
[9a9d63d4]94
[cb098fac]95install-info --dir-file=/usr/share/info/dir \
[d691f65]96 /usr/share/info/gpm.info &amp;&amp;
[cb098fac]97
[d691f65]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
[f6333c2]101install -v -m755 -d /usr/share/doc/gpm-&gpm-version; &amp;&amp;
[d691f65]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>
[52d29f7]106
[20e3223]107 </sect2>
[014d11ad]108
[d691f65]109 <sect2 role="commands">
[20e3223]110 <title>Command Explanations</title>
111
[d691f65]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>
[014d11ad]115
[d691f65]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>
[014d11ad]119
[d691f65]120 </sect2>
[20e3223]121
122 <sect2 role="configuration">
123 <title>Configuring GPM</title>
124
125 <sect3 id="gpm-init">
126 <title>Boot Script</title>
[52d29f7]127
[20e3223]128 <indexterm zone="gpm gpm-init">
129 <primary sortas="f-gpm-init">gpm</primary>
130 </indexterm>
[014d11ad]131
[539ace5]132 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script
[5254d12]133 included in the <xref linkend="bootscripts"/> package.</para>
[09f7011]134
[20e3223]135<screen role="root"><userinput>make install-gpm</userinput></screen>
[014d11ad]136
[20e3223]137 </sect3>
[014d11ad]138
[20e3223]139 <sect3 id="gpm-config">
140 <title>Config Files</title>
[34f86ab]141
[539ace5]142 <para><filename>/etc/gpm-root.conf</filename> and
143 <filename>~/.gpm-root</filename>: The default and individual user
[20e3223]144 <command>gpm-root</command> configuration files.</para>
[34f86ab]145
[539ace5]146 <para><filename>/etc/sysconfig/mouse</filename>:
[20e3223]147 This file contains the name of your mouse device and the protocol which
[539ace5]148 it uses. To create this file, run the following as the
[343bcdb]149 <systemitem class="username">root</systemitem> user:</para>
[014d11ad]150
[20e3223]151<screen role="root"><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"
152<literal># Begin /etc/sysconfig/mouse
[014d11ad]153
[1039de3]154MDEVICE="<replaceable>&lt;yourdevice&gt;</replaceable>"
155PROTOCOL="<replaceable>&lt;yourprotocol&gt;</replaceable>"
156GPMOPTS="<replaceable>&lt;additional options&gt;</replaceable>"
[014d11ad]157
[20e3223]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>
[09f7011]172
[20e3223]173 </sect3>
[014d11ad]174
[20e3223]175 <sect3>
176 <title>Configuration Information</title>
[014d11ad]177
[20e3223]178 <para>Examples of values to set <envar>MDEVICE</envar>,
179 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
[014d11ad]180
[20e3223]181<screen><literal>MDEVICE="/dev/psaux"
[004a8284]182PROTOCOL="imps2"
[20e3223]183GPMOPTS=""</literal></screen>
184
185 <para>A list of which protocol values are known can be found by running
[480b859]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>
[20e3223]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>
[9a9d63d4]207 <seg>disable-paste, display-buttons, display-coords, get-versions, gpm,
208 gpm-root, hltest, mev, and mouse-test</seg>
[1039de3]209 <seg>libgpm.{so.a}</seg>
[d691f65]210 <seg>/usr/share/doc/gpm-&gpm-version;</seg>
[20e3223]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
[9a9d63d4]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
[20e3223]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>
[539ace5]274 <para>is a default handler for <command>gpm</command>. It is used to
[20e3223]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>
[539ace5]285 <para>is a simple sample application using the high-level library,
[20e3223]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>
[539ace5]306 <para>is a tool for determining the mouse type and device it's
[20e3223]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
[2db2a0c4]314 <varlistentry id="libgpm">
[1039de3]315 <term><filename class='libraryfile'>libgpm.{so.a}</filename></term>
[2db2a0c4]316 <listitem>
317 <para>contains the API functions to access the
318 <application>GPM</application> daemon.</para>
319 <indexterm zone="gpm libgpm">
[1039de3]320 <primary sortas="c-libgpm">libgpm.{so,a}</primary>
[2db2a0c4]321 </indexterm>
322 </listitem>
323 </varlistentry>
324
[20e3223]325 </variablelist>
326
327 </sect2>
[f45b1953]328
329</sect1>
Note: See TracBrowser for help on using the repository browser.