source: general/sysutils/gpm.xml@ c2688a0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 c2688a0 was d260aaf4, checked in by Randy McMurchy <randy@…>, 19 years ago

Separated root installation commands in packages already indexed (first pass)

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

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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-size "556 KB">
10<!ENTITY gpm-buildsize "6.7 MB">
11<!ENTITY gpm-time "0.09 SBU">
12]>
13
14<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="gpm.html"?>
20<title><acronym>GPM</acronym>-&gpm-version;</title>
21<indexterm zone="gpm">
22<primary sortas="a-GPM">GPM</primary></indexterm>
23
24<sect2>
25<title>Introduction to <application><acronym>GPM</acronym></application></title>
26
27<para>The <application><acronym>GPM</acronym></application> (General
28Purpose Mouse daemon) package contains a mouse server for the console
29and <command>xterm</command>. It not only provides cut and paste support
30generally, but its library component is used by various software such as
31<application>Links</application> to provide mouse support to the
32application. It is useful on desktops, especially if following
33(Beyond) Linux From Scratch instructions; it's often much easier (and
34less error prone) to cut and paste between two console windows than to
35type everything by hand!</para>
36
37<sect3><title>Package information</title>
38<itemizedlist spacing='compact'>
39<listitem><para>Download (HTTP): <ulink
40url="&gpm-download-http;"/></para></listitem>
41<listitem><para>Download (FTP): <ulink
42url="&gpm-download-ftp;"/></para></listitem>
43<listitem><para>Download size: &gpm-size;</para></listitem>
44<listitem><para>Estimated disk space required:
45&gpm-buildsize;</para></listitem>
46<listitem><para>Estimated build time:
47&gpm-time;</para></listitem></itemizedlist>
48</sect3>
49
50<sect3><title>Additional downloads</title>
51<itemizedlist spacing='compact'>
52<listitem><para>Recommended Patch: <ulink
53url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para></listitem>
54<listitem><para>Recommended Patch: <ulink
55url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para></listitem>
56</itemizedlist>
57</sect3>
58
59</sect2>
60
61<sect2>
62<title>Installation of <application><acronym>GPM</acronym></application></title>
63
64<para>Install <application><acronym>GPM</acronym></application> by running
65the following commands:
66</para>
67
68<screen><userinput><command>patch -Np1 -i ../gpm-&gpm-version;-segfault-1.patch &amp;&amp;
69patch -Np1 -i ../gpm-&gpm-version;-silent-1.patch &amp;&amp;
70LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
71make</command></userinput></screen>
72
73<para>Now, as the root user:</para>
74
75<screen><userinput role='root'><command>make install &amp;&amp;
76cp conf/gpm-root.conf /etc &amp;&amp;
77ldconfig</command></userinput></screen>
78</sect2>
79
80<sect2>
81<title>Command explanations</title>
82
83<para><command>LDFLAGS="-lm"</command>: The math library
84must be linked with <command>gpm</command>, as ceil() is used in some cursor
85scrolling logic.</para>
86
87<!-- <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
88message to run the above command to create the proper library links.</para> -->
89
90</sect2>
91
92<sect2>
93<title>Configuring <application><acronym>GPM</acronym></application></title>
94
95<sect3 id="gpm-init"><title>gpm init.d script</title>
96<indexterm zone="gpm gpm-init">
97<primary sortas="f-gpm-init">gpm</primary></indexterm>
98
99<para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
100init script included in the
101<xref linkend="intro-important-bootscripts"/> package.</para>
102
103<screen><userinput role='root'><command>make install-gpm</command></userinput></screen>
104</sect3>
105
106<sect3 id="gpm-config"><title>Config files</title>
107
108<para><filename>/etc/gpm-root.conf</filename> and
109<filename>~/.gpm-root</filename>: The default and individual user
110<command>gpm-root</command> configuration files.</para>
111
112<para><filename>/etc/sysconfig/mouse</filename>:
113This file contains the name of your mouse device and the protocol which
114it uses. To create this file, run the following as the root user:</para>
115
116<screen><userinput role='root'><command>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"</command>
117# Begin /etc/sysconfig/mouse
118
119MDEVICE="<replaceable>[yourdevice]</replaceable>"
120PROTOCOL="<replaceable>[yourprotocol]</replaceable>"
121GPMOPTS="<replaceable>[additional options]</replaceable>"
122
123# End /etc/sysconfig/mouse
124<command>EOF</command></userinput></screen>
125
126<indexterm zone="gpm gpm-config">
127<primary sortas="e-AA.gpm-root">~/.gpm-root</primary></indexterm>
128<indexterm zone="gpm gpm-config">
129<primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary></indexterm>
130<indexterm zone="gpm gpm-config">
131<primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
132</indexterm>
133</sect3>
134
135<sect3><title>Configuration Information</title>
136
137<para>Examples of values to set <envar>MDEVICE</envar>,
138<envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
139
140<screen><userinput>MDEVICE="/dev/psaux"
141PROTOCOL="imps2"
142GPMOPTS=""</userinput></screen>
143
144<para>A list of which protocol values are known can be found by running
145<command>gpm -t -help</command>. The <envar>MDEVICE</envar> setting
146depends on which type of mouse you have. For example,
147<filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
148COM1), <filename>/dev/input/mice</filename> is often used for
149<acronym>USB</acronym> mice and <filename>/dev/psaux</filename> for PS2
150mice. <envar>GPMOPTS</envar> is the 'catch all' for any
151additional options that are needed for your hardware.</para>
152</sect3>
153
154</sect2>
155
156<sect2>
157<title>Contents</title>
158
159<segmentedlist>
160<segtitle>Installed Programs</segtitle>
161<seglistitem>
162<seg>disable-paste, gpm, gpm-root, hltest, mev and mouse-test</seg>
163</seglistitem>
164</segmentedlist>
165
166<variablelist>
167<bridgehead renderas="sect3">Short Descriptions</bridgehead>
168<?dbfo list-presentation="list"?>
169
170<varlistentry id="disable-paste">
171<term><command>disable-paste</command></term>
172<listitem><para>is a security mechanism used to disable the paste buffer.</para>
173<indexterm zone="gpm disable-paste">
174<primary sortas="b-disable-paste">disable-paste</primary></indexterm>
175</listitem>
176</varlistentry>
177
178<varlistentry id="gpm-prog">
179<term><command>gpm</command></term>
180<listitem><para>is a cut and paste utility and mouse server for virtual
181consoles.</para>
182<indexterm zone="gpm gpm-prog">
183<primary sortas="b-gpm">gpm</primary></indexterm>
184</listitem>
185</varlistentry>
186
187<varlistentry id="gpm-root">
188<term><command>gpm-root</command></term>
189<listitem><para>is a default handler for <command>gpm</command>. It is used to
190draw menus on the root window.</para>
191<indexterm zone="gpm gpm-root">
192<primary sortas="b-gpm-root">gpm-root</primary></indexterm>
193</listitem>
194</varlistentry>
195
196<varlistentry id="hltest">
197<term><command>hltest</command></term>
198<listitem><para>is a simple sample application using the high-level library,
199meant to be read by programmers trying to use the high-level library.</para>
200<indexterm zone="gpm hltest">
201<primary sortas="b-hltest">hltest</primary></indexterm>
202</listitem>
203</varlistentry>
204
205<varlistentry id="mev">
206<term><command>mev</command></term>
207<listitem><para>is a program to report mouse events.</para>
208<indexterm zone="gpm mev">
209<primary sortas="b-mev">mev</primary></indexterm>
210</listitem>
211</varlistentry>
212
213<varlistentry id="mouse-test">
214<term><command>mouse-test</command></term>
215<listitem><para>is a tool for determining the mouse type and device it's
216attached to.</para>
217<indexterm zone="gpm mouse-test">
218<primary sortas="b-mouse-test">mouse-test</primary></indexterm>
219</listitem>
220</varlistentry>
221</variablelist>
222
223</sect2>
224
225</sect1>
Note: See TracBrowser for help on using the repository browser.