Changeset 52e5650b for general/sysutils/gpm-systemd.xml
- Timestamp:
- 10/26/2014 06:08:49 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- da3d42d
- Parents:
- d5169f16
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/gpm-systemd.xml
rd5169f16 r52e5650b 118 118 119 119 <sect3 id="gpm-init"> 120 <title> Boot Script</title>120 <title>Systemd Units</title> 121 121 122 122 <indexterm zone="gpm gpm-init"> … … 124 124 </indexterm> 125 125 126 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script 127 included in the <xref linkend="bootscripts"/> package.</para> 126 <para> 127 To start the <command>gpm</command> daemon at boot, 128 install the systemd unit from the <xref linkend="bootscripts"/> 129 package by running the following command as the 130 <systemitem class="username">root</systemitem> user: 131 </para> 128 132 129 133 <screen role="root"><userinput>make install-gpm</userinput></screen> … … 138 142 <command>gpm-root</command> configuration files.</para> 139 143 140 <para><filename>/etc/sysconfig/mouse</filename>:141 This file contains the name of your mouse device and the protocol142 it uses. To create this file, run the following as the143 <systemitem class="username">root</systemitem> user:</para>144 145 <screen role="root"><userinput>cat > /etc/sysconfig/mouse << "EOF"146 <literal># Begin /etc/sysconfig/mouse147 148 MDEVICE="<replaceable><yourdevice></replaceable>"149 PROTOCOL="<replaceable><yourprotocol></replaceable>"150 GPMOPTS="<replaceable><additional options></replaceable>"151 152 # End /etc/sysconfig/mouse</literal>153 EOF</userinput></screen>154 155 144 <indexterm zone="gpm gpm-config"> 156 145 <primary sortas="e-AA.gpm-root">~/.gpm-root</primary> … … 161 150 </indexterm> 162 151 163 <indexterm zone="gpm gpm-config">164 <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary>165 </indexterm>166 167 152 </sect3> 168 153 … … 170 155 <title>Configuration Information</title> 171 156 172 <para>Examples of values to set <envar>MDEVICE</envar>, 173 <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para> 174 175 <screen><literal>MDEVICE="/dev/psaux" 176 PROTOCOL="imps2" 177 GPMOPTS=""</literal></screen> 178 179 <para>A list of which protocol values are known can be found by running 180 <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>. 181 The <envar>MDEVICE</envar> setting depends on which type of mouse you 182 have. For example, <filename>/dev/ttyS0</filename> for a serial mouse 183 (on Windows this is COM1), <filename>/dev/input/mice</filename> is often 184 used for USB mice and <filename>/dev/psaux</filename> for PS2 mice. 185 <envar>GPMOPTS</envar> is the 'catch all' for any additional options that 186 are needed for your hardware.</para> 157 <para> 158 <application>GPM</application> is by default started with 159 the following parameters: 160 <parameter>-m /dev/input/mice -t imps2</parameter>. If the 161 mentioned parameters don't suit your needs, you can override 162 them by running the following the following commands as 163 the <systemitem class="username">root</systemitem> user: 164 </para> 165 166 <screen role="root"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d 167 echo "ExecStart=/usr/sbin/gpm <list of parameters>" > /etc/systemd/system/gpm.service.d/99-user.conf</userinput></screen> 187 168 188 169 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.