gpm mouse daemon installation instructions

J_Man jeremy at linux-phreak.net
Sun Jul 22 00:01:47 PDT 2001


gpm - general purpose mouse (console mouse daemon)
version - 1.19.3
download location - ftp://ftp.systemy.it/pub/develop/gpm-1.19.3.tar.gz
patch location:  http://www.linux-phreak.net/blfs-patch/gpm-1.19.3.diff.bz2

installation:
tar zxf gpm-1.19.3.tar.gz &&
bunzip2 gpm-1.19.3.diff.bz2 &&
cd gpm-1.19.3 &&
patch -p1 < ../gpm-1.19.3.diff &&
./configure --prefix=/usr &&
make &&
make install

Adding to boot-scripts:

cat >> /etc/init.d/gpm << "EOF"
#!/bin/sh
# Begin /etc/init.d/gpm

#
# Include the functions declared in the /etc/init.d/functions file
#

source /etc/init.d/functions

case "$1" in
        start)
                echo -n "Starting gpm mouse daemon..."
                loadproc gpm -t imps2
                ;;

        stop)
                echo -n "Stopping gpm mouse daemon..."
                killproc gpm
                ;;

        restart)
                $0 stop
                /usr/bin/sleep 1
                $0 start
                ;;

        status)
                statusproc gpm
                ;;

        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;

esac

# End /etc/init.d/
EOF
cd /etc/rc3.d
ln -s ../init.d/gpm S201gpm
cd ../rc4.d
ln -s ../init.d/gpm S201gpm
cd ../rc5.d
ln -s ../init.d/gpm S201gpm

You also need to create the /dev/mouse device as a symlink to the actual
mouse device (such as psaux)

ln -s /dev/psaux /dev/mouse




More information about the blfs-book mailing list