GPM
Download Source: | ftp://arcana.linux.it/pub/gpm/gpm-1.20.1.tar.bz2 |
---|---|
Required Patch: | http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-segfault-1.patch |
Required Patch: | http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-silent-1.patch |
Contents
Dependencies
Non-Multilib
Compile the package:
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 && LDFLAGS="-lm" make
Install the package
make install && cp -v conf/gpm-root.conf /etc && ldconfig
Multilib
32Bit
Compile the package:
patch -Np1 -i ../gpm-1.20.1-segfault-1.patch && patch -Np1 -i ../gpm-1.20.1-silent-1.patch && CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc && LDFLAGS="-lm" make
Install the package
make install && ldconfig
N32
Compile the package:
patch -Np1 -i ../gpm-1.20.1-segfault-1.patch && patch -Np1 -i ../gpm-1.20.1-silent-1.patch && CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ --sysconfdir=/etc --libdir=/usr/lib32 && LDFLAGS="-lm" make
Install the package
make install && ldconfig
64Bit
Compile the package:
patch -Np1 -i ../gpm-1.20.1-segfault-1.patch && patch -Np1 -i ../gpm-1.20.1-silent-1.patch && CC="gcc ${BUILD64}" ./configure --prefix=/usr \ --sysconfdir=/etc --libdir=/usr/lib64 && LDFLAGS="-lm" make
Install the package
make install && cp -v conf/gpm-root.conf /etc && ldconfig
Configuring GPM
BootScript
Install the /etc/rc.d/init.d/gpm init script included in the blfs-bootscripts 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 as the root user:
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 -m [device] -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.