source: general/sysutils/gpm.xml@ d260aaf4

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 d260aaf4 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
RevLine 
[52d29f7]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">
[34f86ab]10<!ENTITY gpm-buildsize "6.7 MB">
[52d29f7]11<!ENTITY gpm-time "0.09 SBU">
12]>
13
[5db3785e]14<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
[a0f03b0]15<sect1info>
[5cd0959d]16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
[a0f03b0]18</sect1info>
[7f72cbf]19<?dbhtml filename="gpm.html"?>
[04a28bc]20<title><acronym>GPM</acronym>-&gpm-version;</title>
[5db3785e]21<indexterm zone="gpm">
22<primary sortas="a-GPM">GPM</primary></indexterm>
[f45b1953]23
[52d29f7]24<sect2>
25<title>Introduction to <application><acronym>GPM</acronym></application></title>
[014d11ad]26
[52d29f7]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>
[014d11ad]36
[52d29f7]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>
[518538f]44<listitem><para>Estimated disk space required:
[52d29f7]45&gpm-buildsize;</para></listitem>
46<listitem><para>Estimated build time:
47&gpm-time;</para></listitem></itemizedlist>
48</sect3>
[014d11ad]49
[52d29f7]50<sect3><title>Additional downloads</title>
51<itemizedlist spacing='compact'>
[07b157f4]52<listitem><para>Recommended Patch: <ulink
[4f6275fd]53url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para></listitem>
[07b157f4]54<listitem><para>Recommended Patch: <ulink
[4f6275fd]55url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para></listitem>
[52d29f7]56</itemizedlist>
57</sect3>
[014d11ad]58
[52d29f7]59</sect2>
60
61<sect2>
62<title>Installation of <application><acronym>GPM</acronym></application></title>
[014d11ad]63
64<para>Install <application><acronym>GPM</acronym></application> by running
65the following commands:
[52d29f7]66</para>
[014d11ad]67
[4f6275fd]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;
[52d29f7]70LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[d260aaf4]71make</command></userinput></screen>
72
73<para>Now, as the root user:</para>
74
75<screen><userinput role='root'><command>make install &amp;&amp;
[3eb080ce]76cp conf/gpm-root.conf /etc &amp;&amp;
77ldconfig</command></userinput></screen>
[52d29f7]78</sect2>
79
80<sect2>
81<title>Command explanations</title>
[014d11ad]82
83<para><command>LDFLAGS="-lm"</command>: The math library
84must be linked with <command>gpm</command>, as ceil() is used in some cursor
[52d29f7]85scrolling logic.</para>
[014d11ad]86
[34f86ab]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> -->
[014d11ad]89
[52d29f7]90</sect2>
91
92<sect2>
93<title>Configuring <application><acronym>GPM</acronym></application></title>
[014d11ad]94
[09f7011]95<sect3 id="gpm-init"><title>gpm init.d script</title>
[5db3785e]96<indexterm zone="gpm gpm-init">
[6a2bce2]97<primary sortas="f-gpm-init">gpm</primary></indexterm>
[09f7011]98
[52d29f7]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>
[014d11ad]102
[d260aaf4]103<screen><userinput role='root'><command>make install-gpm</command></userinput></screen>
[52d29f7]104</sect3>
[014d11ad]105
[09f7011]106<sect3 id="gpm-config"><title>Config files</title>
[34f86ab]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>:
[52d29f7]113This file contains the name of your mouse device and the protocol which
[d260aaf4]114it uses. To create this file, run the following as the root user:</para>
[014d11ad]115
[d260aaf4]116<screen><userinput role='root'><command>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"</command>
[52d29f7]117# Begin /etc/sysconfig/mouse
[014d11ad]118
[004a8284]119MDEVICE="<replaceable>[yourdevice]</replaceable>"
120PROTOCOL="<replaceable>[yourprotocol]</replaceable>"
121GPMOPTS="<replaceable>[additional options]</replaceable>"
[014d11ad]122
[52d29f7]123# End /etc/sysconfig/mouse
124<command>EOF</command></userinput></screen>
[09f7011]125
[5db3785e]126<indexterm zone="gpm gpm-config">
[09f7011]127<primary sortas="e-AA.gpm-root">~/.gpm-root</primary></indexterm>
[5db3785e]128<indexterm zone="gpm gpm-config">
[09f7011]129<primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary></indexterm>
[5db3785e]130<indexterm zone="gpm gpm-config">
[6a2bce2]131<primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>
[09f7011]132</indexterm>
[52d29f7]133</sect3>
[014d11ad]134
[52d29f7]135<sect3><title>Configuration Information</title>
[014d11ad]136
[004a8284]137<para>Examples of values to set <envar>MDEVICE</envar>,
138<envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
[014d11ad]139
[004a8284]140<screen><userinput>MDEVICE="/dev/psaux"
141PROTOCOL="imps2"
142GPMOPTS=""</userinput></screen>
[014d11ad]143
[52d29f7]144<para>A list of which protocol values are known can be found by running
[004a8284]145<command>gpm -t -help</command>. The <envar>MDEVICE</envar> setting
146depends on which type of mouse you have. For example,
[52d29f7]147<filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
148COM1), <filename>/dev/input/mice</filename> is often used for
[004a8284]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>
[52d29f7]152</sect3>
[014d11ad]153
[52d29f7]154</sect2>
155
156<sect2>
157<title>Contents</title>
[014d11ad]158
[09f7011]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>
[5db3785e]173<indexterm zone="gpm disable-paste">
[09f7011]174<primary sortas="b-disable-paste">disable-paste</primary></indexterm>
175</listitem>
176</varlistentry>
177
[5db3785e]178<varlistentry id="gpm-prog">
[09f7011]179<term><command>gpm</command></term>
180<listitem><para>is a cut and paste utility and mouse server for virtual
181consoles.</para>
[5db3785e]182<indexterm zone="gpm gpm-prog">
[09f7011]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>
[5db3785e]191<indexterm zone="gpm gpm-root">
[09f7011]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>
[5db3785e]200<indexterm zone="gpm hltest">
[09f7011]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>
[5db3785e]208<indexterm zone="gpm mev">
[09f7011]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>
[5db3785e]217<indexterm zone="gpm mouse-test">
[09f7011]218<primary sortas="b-mouse-test">mouse-test</primary></indexterm>
219</listitem>
220</varlistentry>
221</variablelist>
[34f86ab]222
[52d29f7]223</sect2>
[f45b1953]224
225</sect1>
Note: See TracBrowser for help on using the repository browser.