Introduction to GPM
The GPM (General Purpose Mouse
daemon) package contains a mouse server for the console and
xterm. It not only
provides cut and paste support generally, but its library component
is used by various software such as Links to provide mouse support to the
application. It is useful on desktops, especially if following
(Beyond) Linux From Scratch instructions; it's often much easier
(and less error prone) to cut and paste between two console windows
than to type everything by hand!
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/GPM
Installation of GPM
Install GPM by running the
patch -Np1 -i ../gpm-1.20.1-segfault-1.patch &&
patch -Np1 -i ../gpm-1.20.1-silent-1.patch &&
./configure --prefix=/usr --sysconfdir=/etc &&
Now, as the
make install &&
cp -v conf/gpm-root.conf /etc &&
math library must be linked with gpm, as ceil() is used in some
cursor scrolling logic.
~/.gpm-root: The default and individual user
/etc/sysconfig/mouse: This file
contains the name of your mouse device and the protocol which it
uses. To create this file, run the following as the
cat > /etc/sysconfig/mouse << "EOF"
# Begin /etc/sysconfig/mouse
# End /etc/sysconfig/mouse
Examples of values to set
GPMOPTS to are:
A list of which protocol values are known can be found by running
setting depends on which type of mouse you have. For example,
/dev/ttyS0 for a serial mouse (on
Windows this is COM1),
/dev/input/mice is often used for USB mice and
/dev/psaux for PS2 mice.
GPMOPTS is the 'catch all' for any
additional options that are needed for your hardware.
disable-paste, gpm, gpm-root, hltest,
mev, and mouse-test
is a security mechanism used to disable the paste buffer.
is a cut and paste utility and mouse server for virtual
is a default handler for gpm. It is used to draw
menus on the root window.
is a simple sample application using the high-level
library, meant to be read by programmers trying to use
the high-level library.
is a program to report mouse events.
is a tool for determining the mouse type and device it's
contains the API functions to access the GPM daemon.
Last updated on 2007-07-14 18:27:07 -0500