%general-entities; ]> $LastChangedBy: $ $Date: $ <acronym>GPM</acronym>-&gpm-version; Introduction to <application><acronym>GPM</acronym></application> 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! Package information Download (HTTP): Download (FTP): Download size: &gpm-size; Estimated Disk space required: &gpm-buildsize; Estimated build time: &gpm-time; Additional downloads Recommended Patch: Recommended Patch: Installation of <application><acronym>GPM</acronym></application> Install GPM by running the following commands: patch -Np1 -i ../gpm-&gpm-version;-segfault-1.patch && patch -Np1 -i ../gpm-&gpm-version;-silent-1.patch && LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc && make && make install && cp conf/gpm-root.conf /etc && ldconfig Command explanations LDFLAGS="-lm": The math library must be linked with gpm, as ceil() is used in some cursor scrolling logic. Configuring <application><acronym>GPM</acronym></application> gpm init.d script Install the /etc/rc.d/init.d/gpm init script included in the package. make install-gpm Config files /etc/gpm-root.conf and ~/.gpm-root: The default and individual user gpm-root configuration files. /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: cat > /etc/sysconfig/mouse << "EOF" # Begin /etc/sysconfig/mouse MDEVICE="[yourdevice]" PROTOCOL="[yourprotocol]" GPMOPTS="[additional options]" # End /etc/sysconfig/mouse EOF Configuration Information Examples of values to set MDEVICE, PROTOCOL, and GPMOPTS to are: MDEVICE="/dev/psaux" PROTOCOL="imps2" GPMOPTS="" A list of which protocol values are known can be found by running gpm -t -help. The MDEVICE 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. Contents The GPM package contains gpm, gpm-root, disable-paste, mev, mouse-test and hltest. Description gpm gpm is a cut and paste utility and mouse server for virtual consoles. gpm-root gpm-root is a default handler for gpm. It is used to draw menus on the root window. disable-paste disable-paste is a security mechanism used to disable the paste buffer. mev mev is a program to report mouse events. mouse-test mouse-test is a tool for determining the mouse type and device it's attached to. hltest hltest is a simple sample application using the high-level library, meant to be read by programmers trying to use the high-level library.