source: general/sysutils/gpm/gpm-config.xml@ 8a0cee4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8a0cee4 was 8a0cee4, checked in by Larry Lawrence <larry@…>, 21 years ago

part I, II, III, IV

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

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<sect2>
2<title>Configuring gpm</title>
3
4<sect3><title>gpm init.d script</title>
5<para>The gpm init.d script can be created using the following
6commands: (This assumes that you have followed the LFS default of
7having your $rc_base set to <filename
8class="directory">/etc/rc.d</filename>)</para>
9<para><screen><userinput>cat &gt; /etc/rc.d/init.d/gpm &lt;&lt; "EOF"</userinput>
10#!/bin/sh
11# Begin $rc_base/init.d/gpm
12
13# Based on sysklogd script from LFS-3.1 and earlier.
14# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
15# GPM specific parts by Mark Hymers - markh@linuxfromscratch.org
16
17source /etc/sysconfig/rc
18source $rc_functions
19
20if [ -f /etc/sysconfig/mouse ]
21 then
22 source /etc/sysconfig/mouse
23fi
24
25if [ -z "$MDEVICE" ] || [ -z "$PROTOCOL" ]
26 then
27 echo "Please create an /etc/sysconfig/mouse file containing"
28 echo "MDEVICE and PROTOCOL values"
29 exit 1;
30fi
31
32case "$1" in
33 start)
34 echo "Starting gpm..."
35 loadproc gpm -m $MDEVICE -t $PROTOCOL
36 ;;
37
38 stop)
39 echo "Stopping gpm..."
40 killproc gpm
41 ;;
42
43 restart)
44 $0 stop
45 sleep 1
46 $0 start
47 ;;
48
49 status)
50 statusproc gpm
51 ;;
52
53 *)
54 echo "Usage: $0 {start|stop|restart|status}"
55 exit 1
56 ;;
57esac
58
59# End $rc_base/init.d/gpm
60<userinput>EOF
61chmod 755 /etc/rc.d/init.d/gpm</userinput></screen></para>
62
63<para>You then need to create symbolic links to this file in the relevant rc.d
64directories. For example:
65<screen><userinput>cd /etc/rc.d/init.d &amp;&amp;
66ln -sf ../init.d/gpm ../rc0.d/K10gpm &amp;&amp;
67ln -sf ../init.d/gpm ../rc1.d/K10gpm &amp;&amp;
68ln -sf ../init.d/gpm ../rc2.d/K10gpm &amp;&amp;
69ln -sf ../init.d/gpm ../rc3.d/S70gpm &amp;&amp;
70ln -sf ../init.d/gpm ../rc4.d/S70gpm &amp;&amp;
71ln -sf ../init.d/gpm ../rc5.d/S70gpm &amp;&amp;
72ln -sf ../init.d/gpm ../rc6.d/K10gpm</userinput></screen></para></sect3>
73
74<sect3><title>Config files</title>
75<para><userinput>/etc/sysconfig/mouse</userinput>
76This file contains the name of your mouse device and the protocol which
77it uses. To create this file, run the following:</para>
78
79<para><screen><userinput>cat &gt; /etc/sysconfig/mouse &lt;&lt; "EOF"</userinput>
80# start /etc/sysconfig/mouse
81MDEVICE=yourdevice
82PROTOCOL=yourprotocol
83# end /etc/sysconfig/mouse
84<userinput>EOF</userinput></screen></para>
85</sect3>
86
87<sect3><title>Configuration Information</title>
88
89<para>Examples of values to set MDEVICE and PROTOCOL to are</para>
90
91<para><screen>MDEVICE=/dev/psaux
92PROTOCOL=imps2</screen></para>
93
94<para>A list of which protocol values are known can be found by running
95<userinput>gpm -t -help</userinput>. Your MDEVICE setting depends on
96which type of mouse you have. For example,
97<filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
98COM1), <filename>/dev/input/mice</filename> is often used for USB mice
99and <filename>/dev/psaux</filename> for PS2 mice. It is normally
100thought not a good idea to link <filename>/dev/mouse</filename> to the relevant device, but
101instead to reference it directly.</para>
102
103</sect3>
104
105</sect2>
106
Note: See TracBrowser for help on using the repository browser.