source: general/sysutils/gpm.xml@ 02912d44

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 02912d44 was 3eb080ce, checked in by Randy McMurchy <randy@…>, 20 years ago

Re-added ldconfig to GPM instructions without parameters

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

  • Property mode set to 100644
File size: 6.1 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]>
14
[de8804e]15<sect1 id="gpm" xreflabel="GPM-&gpm-version;">
[7f72cbf]16<?dbhtml filename="gpm.html"?>
[04a28bc]17<title><acronym>GPM</acronym>-&gpm-version;</title>
[f45b1953]18
[52d29f7]19<sect2>
20<title>Introduction to <application><acronym>GPM</acronym></application></title>
[014d11ad]21
[52d29f7]22<para>The <application><acronym>GPM</acronym></application> (General
23Purpose Mouse daemon) package contains a mouse server for the console
24and <command>xterm</command>. It not only provides cut and paste support
25generally, but its library component is used by various software such as
26<application>Links</application> to provide mouse support to the
27application. It is useful on desktops, especially if following
28(Beyond) Linux From Scratch instructions; it's often much easier (and
29less error prone) to cut and paste between two console windows than to
30type everything by hand!</para>
[014d11ad]31
[52d29f7]32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP): <ulink
35url="&gpm-download-http;"/></para></listitem>
36<listitem><para>Download (FTP): <ulink
37url="&gpm-download-ftp;"/></para></listitem>
38<listitem><para>Download size: &gpm-size;</para></listitem>
39<listitem><para>Estimated Disk space required:
40&gpm-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&gpm-time;</para></listitem></itemizedlist>
43</sect3>
[014d11ad]44
[52d29f7]45<sect3><title>Additional downloads</title>
46<itemizedlist spacing='compact'>
[07b157f4]47<listitem><para>Recommended Patch: <ulink
[4f6275fd]48url="&patch-root;/gpm-&gpm-version;-segfault-1.patch"/></para></listitem>
[07b157f4]49<listitem><para>Recommended Patch: <ulink
[4f6275fd]50url="&patch-root;/gpm-&gpm-version;-silent-1.patch"/></para></listitem>
[52d29f7]51</itemizedlist>
52</sect3>
[014d11ad]53
[52d29f7]54</sect2>
55
56<sect2>
57<title>Installation of <application><acronym>GPM</acronym></application></title>
[014d11ad]58
59<para>Install <application><acronym>GPM</acronym></application> by running
60the following commands:
[52d29f7]61</para>
[014d11ad]62
[4f6275fd]63<screen><userinput><command>patch -Np1 -i ../gpm-&gpm-version;-segfault-1.patch &amp;&amp;
64patch -Np1 -i ../gpm-&gpm-version;-silent-1.patch &amp;&amp;
[52d29f7]65LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
66make &amp;&amp;
67make install &amp;&amp;
[3eb080ce]68cp conf/gpm-root.conf /etc &amp;&amp;
69ldconfig</command></userinput></screen>
[52d29f7]70</sect2>
71
72<sect2>
73<title>Command explanations</title>
[014d11ad]74
75<para><command>LDFLAGS="-lm"</command>: The math library
76must be linked with <command>gpm</command>, as ceil() is used in some cursor
[52d29f7]77scrolling logic.</para>
[014d11ad]78
[34f86ab]79<!-- <para><command>ldconfig -n -l </command>: During installation, gpm outputs a
80message to run the above command to create the proper library links.</para> -->
[014d11ad]81
[52d29f7]82</sect2>
83
84<sect2>
85<title>Configuring <application><acronym>GPM</acronym></application></title>
[014d11ad]86
[52d29f7]87<sect3><title>gpm init.d script</title>
88<para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
89init script included in the
90<xref linkend="intro-important-bootscripts"/> package.</para>
[014d11ad]91
[52d29f7]92<screen><userinput><command>make install-gpm</command></userinput></screen>
[014d11ad]93
[52d29f7]94</sect3>
[014d11ad]95
[52d29f7]96<sect3><title>Config files</title>
[34f86ab]97
98<para><filename>/etc/gpm-root.conf</filename> and
99<filename>~/.gpm-root</filename>: The default and individual user
100<command>gpm-root</command> configuration files.</para>
101
102<para><filename>/etc/sysconfig/mouse</filename>:
[52d29f7]103This file contains the name of your mouse device and the protocol which
104it uses. To create this file, run the following:</para>
[014d11ad]105
[52d29f7]106<screen><userinput><command>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"</command>
107# Begin /etc/sysconfig/mouse
[014d11ad]108
[004a8284]109MDEVICE="<replaceable>[yourdevice]</replaceable>"
110PROTOCOL="<replaceable>[yourprotocol]</replaceable>"
111GPMOPTS="<replaceable>[additional options]</replaceable>"
[014d11ad]112
[52d29f7]113# End /etc/sysconfig/mouse
114<command>EOF</command></userinput></screen>
115</sect3>
[014d11ad]116
[52d29f7]117<sect3><title>Configuration Information</title>
[014d11ad]118
[004a8284]119<para>Examples of values to set <envar>MDEVICE</envar>,
120<envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para>
[014d11ad]121
[004a8284]122<screen><userinput>MDEVICE="/dev/psaux"
123PROTOCOL="imps2"
124GPMOPTS=""</userinput></screen>
[014d11ad]125
[52d29f7]126<para>A list of which protocol values are known can be found by running
[004a8284]127<command>gpm -t -help</command>. The <envar>MDEVICE</envar> setting
128depends on which type of mouse you have. For example,
[52d29f7]129<filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
130COM1), <filename>/dev/input/mice</filename> is often used for
[004a8284]131<acronym>USB</acronym> mice and <filename>/dev/psaux</filename> for PS2
132mice. <envar>GPMOPTS</envar> is the 'catch all' for any
133additional options that are needed for your hardware.</para>
[014d11ad]134
[52d29f7]135</sect3>
[014d11ad]136
[52d29f7]137</sect2>
138
139<sect2>
140<title>Contents</title>
[014d11ad]141
[52d29f7]142<para>The <application><acronym>GPM</acronym></application> package contains
[014d11ad]143<command>gpm</command>, <command>gpm-root</command>,
[34f86ab]144<command>disable-paste</command>, <command>mev</command>,
145<command>mouse-test</command> and <command>hltest</command>.</para>
[014d11ad]146
[52d29f7]147</sect2>
[014d11ad]148
[52d29f7]149<sect2><title>Description</title>
[014d11ad]150
[52d29f7]151<sect3><title>gpm</title>
152<para><command>gpm</command> is a cut and paste utility and mouse server for
153virtual consoles.</para></sect3>
[014d11ad]154
[52d29f7]155<sect3><title>gpm-root</title>
156<para><command>gpm-root</command> is a default handler for
157<command>gpm</command>. It is used to draw menus on the
158root window.</para></sect3>
[014d11ad]159
[52d29f7]160<sect3><title>disable-paste</title>
[34f86ab]161<para><command>disable-paste</command> is a security mechanism used to disable
162the paste buffer.</para></sect3>
[014d11ad]163
[52d29f7]164<sect3><title>mev</title>
165<para><command>mev</command> is a program to report mouse events.</para></sect3>
[014d11ad]166
[34f86ab]167<sect3><title>mouse-test</title>
168<para><command>mouse-test</command> is a tool for determining the mouse type
169and device it's attached to.</para></sect3>
170
171<sect3><title>hltest</title>
172<para><command>hltest</command> is a simple sample application using the
173high-level library, meant to be read by programmers trying to use the
174high-level library.</para></sect3>
175
[52d29f7]176</sect2>
[f45b1953]177
178</sect1>
Note: See TracBrowser for help on using the repository browser.