Author: dj Date: Tue Jun 7 19:22:10 2016 New Revision: 17457 Log: [Systemd merge] - gpm, sysstat, udisks, udisks2, upower to finish Chapter 12
Modified: trunk/BOOK/general/sysutils/gpm.xml trunk/BOOK/general/sysutils/sysstat.xml trunk/BOOK/general/sysutils/systemd.xml trunk/BOOK/general/sysutils/udisks.xml trunk/BOOK/general/sysutils/udisks2.xml trunk/BOOK/general/sysutils/upower.xml Modified: trunk/BOOK/general/sysutils/gpm.xml ============================================================================== --- trunk/BOOK/general/sysutils/gpm.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/gpm.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -117,15 +117,23 @@ <title>Configuring GPM</title> <sect3 id="gpm-init"> - <title>Boot Script</title> + <title><phrase revision="sysv">Boot Script</phrase> + <phrase revision="systemd">Systemd Unit</phrase></title> <indexterm zone="gpm gpm-init"> <primary sortas="f-gpm-init">gpm</primary> </indexterm> - <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> init script - included in the <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> package.</para> + <para revision="sysv">Install the + <filename>/etc/rc.d/init.d/gpm</filename> init script included in the + <xref linkend="bootscripts"/> package.</para> + + <para revision="systemd"> + To start the <command>gpm</command> daemon at boot, + install the systemd unit from the <xref linkend="systemd-units"/> + package by running the following command as the + <systemitem class="username">root</systemitem> user: + </para> <screen role="root"><userinput>make install-gpm</userinput></screen> @@ -138,12 +146,12 @@ <filename>~/.gpm-root</filename>: The default and individual user <command>gpm-root</command> configuration files.</para> - <para><filename>/etc/sysconfig/mouse</filename>: + <para revision="sysv"><filename>/etc/sysconfig/mouse</filename>: This file contains the name of your mouse device and the protocol it uses. To create this file, run the following as the <systemitem class="username">root</systemitem> user:</para> -<screen role="root"><userinput>cat > /etc/sysconfig/mouse << "EOF" +<screen role="root" revision="sysv"><userinput>cat > /etc/sysconfig/mouse << "EOF" <literal># Begin /etc/sysconfig/mouse MDEVICE="<replaceable><yourdevice></replaceable>" @@ -161,7 +169,7 @@ <primary sortas="e-etc-gpm-root.conf">/etc/gpm-root.conf</primary> </indexterm> - <indexterm zone="gpm gpm-config"> + <indexterm zone="gpm gpm-config" revision="sysv"> <primary sortas="e-etc-sysconfig-mouse">/etc/sysconfig/mouse</primary> </indexterm> @@ -170,14 +178,15 @@ <sect3> <title>Configuration Information</title> - <para>Examples of values to set <envar>MDEVICE</envar>, + <para revision="sysv">Examples of values to set <envar>MDEVICE</envar>, <envar>PROTOCOL</envar>, and <envar>GPMOPTS</envar> to are:</para> -<screen><literal>MDEVICE="/dev/input/mice" +<screen revision="sysv"><literal>MDEVICE="/dev/input/mice" PROTOCOL="imps2" GPMOPTS=""</literal></screen> - <para>A list of which protocol values are known can be found by running + <para revision="sysv">A list of which protocol values are known can be + found by running <command>gpm -m <replaceable>[device]</replaceable> -t -help</command>. The <envar>MDEVICE</envar> setting depends on which type of mouse you have. For example, <filename>/dev/ttyS0</filename> for a serial mouse @@ -186,6 +195,18 @@ <envar>GPMOPTS</envar> is the 'catch all' for any additional options that are needed for your hardware.</para> + <para revision="systemd"> + <application>GPM</application> is by default started with + the following parameters: + <parameter>-m /dev/input/mice -t imps2</parameter>. If the + mentioned parameters don't suit your needs, you can override + them by running the following the following commands as + the <systemitem class="username">root</systemitem> user: + </para> + +<screen role="root" revision="systemd"><userinput>install -v -dm755 /etc/systemd/system/gpm.service.d +echo "ExecStart=/usr/sbin/gpm <list of parameters>" > /etc/systemd/system/gpm.service.d/99-user.conf</userinput></screen> + </sect3> </sect2> Modified: trunk/BOOK/general/sysutils/sysstat.xml ============================================================================== --- trunk/BOOK/general/sysutils/sysstat.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/sysstat.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -89,6 +89,13 @@ <screen role="root"><userinput>make install</userinput></screen> + <para revision="systemd"> + Install the systemd unit by running the following command as the + <systemitem class="username">root</systemitem> user: + </para> + +<screen role="root" revision="systemd"><userinput>install -v -m644 sysstat.service /lib/systemd/system/sysstat.service</userinput></screen> + </sect2> <sect2 role="commands"> @@ -173,15 +180,22 @@ <primary sortas="f-sysstat">sysstat</primary> </indexterm> - <para>At system startup, a LINUX RESTART message must be inserted in the - daily data file to reinitialize the kernel counters. This can be - automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename> - init script included in the <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> - package using the following command as the + <para revision="sysv">At system startup, a LINUX RESTART message must be + inserted in the daily data file to reinitialize the kernel counters. This + can be automated by installing the + <filename>/etc/rc.d/init.d/sysstat</filename> init script included in the + <xref linkend="bootscripts"/> package using the following command as the + <systemitem class="username">root</systemitem> user:</para> + +<screen role="root" revision="sysv"><userinput>make install-sysstat</userinput></screen> + + <para revision="systemd">At system startup, a LINUX RESTART message must + be inserted in the daily data file to reinitialize the kernel counters. + This can be automated by enabling the previously installed systemd unit + by running the following command as the <systemitem class="username">root</systemitem> user:</para> -<screen role="root"><userinput>make install-sysstat</userinput></screen> +<screen role="root" revision="systemd"><userinput>systemctl enable sysstat</userinput></screen> </sect3> Modified: trunk/BOOK/general/sysutils/systemd.xml ============================================================================== --- trunk/BOOK/general/sysutils/systemd.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/systemd.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -137,7 +137,7 @@ devices:</para> <screen><userinput>sed -e 's@DRI and frame buffer@DRI@' \ - -e '/SUBSYTEM==\"graphics\", KERNEL==\"fb\*\"/d' \ + -e '/SUBSYSTEM==\"graphics\", KERNEL==\"fb\*\"/d' \ -i src/login/70-uaccess.rules</userinput></screen> <para> Modified: trunk/BOOK/general/sysutils/udisks.xml ============================================================================== --- trunk/BOOK/general/sysutils/udisks.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/udisks.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -84,6 +84,11 @@ <xref linkend="sg3_utils"/> </para> + <bridgehead renderas="sect4" revision="systemd">Recommended</bridgehead> + <para role="recommended" revision="systemd"> + <xref linkend="systemd"/> + </para> + <bridgehead renderas="sect4">Optional</bridgehead> <para role="optional"> <xref linkend="gtk-doc"/>, Modified: trunk/BOOK/general/sysutils/udisks2.xml ============================================================================== --- trunk/BOOK/general/sysutils/udisks2.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/udisks2.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -81,6 +81,11 @@ <xref linkend="polkit"/> </para> + <bridgehead renderas="sect4" revision="systemd">Recommended</bridgehead> + <para role="recommended" revision="systemd"> + <xref linkend="systemd"/> + </para> + <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead> <para role="optional"> <xref linkend="gobject-introspection"/> @@ -190,6 +195,20 @@ </indexterm> </listitem> </varlistentry> + + <varlistentry id="umountudisks2" revision="systemd"> + <term><command>umount.udisks2</command></term> + <listitem> + <para> + is a command-line program used to unmount file systems + that have been mounted by the + <application>UDisks</application> daemon. + </para> + <indexterm zone="udisks2 umountudisks2"> + <primary sortas="b-umount.udisks2">umountudisks2</primary> + </indexterm> + </listitem> + </varlistentry> <varlistentry id="libudisks2"> <term><filename class="libraryfile">libudisks2.so</filename></term> Modified: trunk/BOOK/general/sysutils/upower.xml ============================================================================== --- trunk/BOOK/general/sysutils/upower.xml Tue Jun 7 14:56:46 2016 (r17456) +++ trunk/BOOK/general/sysutils/upower.xml Tue Jun 7 19:22:10 2016 (r17457) @@ -147,6 +147,7 @@ <sect2 role="configuration"> <title>Configuring your kernel for UPower</title> +<!-- FIXME: Update for systemd xref for gnome-power-manager after it goes in --> <para> To use the command <command>upower -w</command> for information about processor wakeups (this command is used by <ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/">gnome-power-manager</ulink>) @@ -155,18 +156,37 @@ menu and selecting 'Collect kernel timers statistics'. </para> + <sect3 id="upower-init" revision="systemd"> + <title>Systemd Unit</title> + + <para> + To start the <command>upowerd</command> daemon at boot, + enable the previously installed systemd unit by + running the following command as the + <systemitem class="username">root</systemitem> user: + </para> + + <indexterm zone="upower upower-init"> + <primary sortas="f-upower">upower</primary> + </indexterm> + +<screen role="root"><userinput>systemctl enable upower</userinput></screen> + + </sect3> + </sect2> + <sect2 role="content"> <title>Contents</title> <segmentedlist> - <segtitle>Installed Program</segtitle> + <segtitle>Installed Program<phrase revision="systemd">s</phrase></segtitle> <segtitle>Installed Libraries</segtitle> <segtitle>Installed Directories</segtitle> <seglistitem> <seg> - upower + upower<phrase revision="systemd"> and upowerd</phrase> </seg> <seg> libupower-glib.so @@ -195,6 +215,19 @@ </indexterm> </listitem> </varlistentry> + + <varlistentry id="upowerd" revision="systemd"> + <term><command>upowerd</command></term> + <listitem> + <para> + is the <application>UPower</application> Daemon. It provides the + org.freedesktop.UPower service on the system message bus. + </para> + <indexterm zone="upower upowerd"> + <primary sortas="b-upowerd">upowerd</primary> + </indexterm> + </listitem> + </varlistentry> <varlistentry id="libupower-glib"> <term><filename class="libraryfile">libupower-glib.so</filename></term> -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page