Changeset 63f1942


Ignore:
Timestamp:
Jun 23, 2014, 8:42:03 PM (6 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, master, systemd
Children:
d34599a
Parents:
f99afd3
Message:

Added text about timesyncd

Location:
BOOK
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/introduction/common/changelog.xml

    rf99afd3 r63f1942  
    3838
    3939    <listitem>
     40      <para>23 June 2014</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[Chris] - Added info about systemd-timesyncd to network
     44          configuration section. Fixes ticket
     45          <ulink url="http://trac.cross-lfs.org/ticket/958">#958</ulink>.</para>
     46        </listitem>
     47      </itemizedlist>
     48    </listitem>
     49
     50    <listitem>
    4051      <para>20 June 2014</para>
    4152      <itemizedlist>
  • BOOK/network/common/systemd-network.xml

    rf99afd3 r63f1942  
    1111  <title>Networking Configuration with Systemd-networkd</title>
    1212
    13   <sect2 role="static">
    14     <title>Creating the Static Network Interface Configuration Files</title>
     13  <sect2 role="interface-config">
     14    <title>Network Interface Configuration</title>
    1515
    1616    <note><para>Udev may assign random Network Card Interface names
    1717    for some network cards such as enp2s1. If you are not sure what
    1818    your Network Card Interface name is, you can always run
    19     <command>ip l</command> after you have booted your system. It is important that the <envar>Name</envar> variable in  <filename>/etc/systemd/network</filename> contain the correct Network Card Interface name (e.g.
    20     <envar>Name=enp2s1</envar> or
     19    <command>ip l</command> after you have booted your system. It is important
     20    that the <envar>Name</envar> variable in
     21    <filename>/etc/systemd/network</filename> contain the correct Network Card
     22    Interface name (e.g. <envar>Name=enp2s1</envar> or
    2123    <envar>Name=eth0</envar>) or systemd will fail to bring
    2224    up your network interface.</para></note>
    2325
    24     <para><command>systemd-networkd</command> uses <filename>/etc/system/network</filename> for configuration files. Refer to systemd.network(5) and systemd.netdev(5). Configure a network interface with a config file. Adjust Name= as required:</para>
     26    <sect3 role="static">
     27      <title>Static Network Interface Configuration</title>
    2528
    26 <screen><userinput>cd /etc/systemd/network &amp;&amp;
     29      <para><command>systemd-networkd</command> uses
     30      <filename>/etc/system/network</filename> for configuration files. Refer
     31      to systemd.network(5) and systemd.netdev(5). Configure a network
     32      interface with a config file. Adjust Name= as required:</para>
     33
     34  <screen><userinput>cd /etc/systemd/network &amp;&amp;
    2735cat &gt; static.network &lt;&lt; "EOF"
    2836[Match]
     
    3442EOF</userinput></screen>
    3543
    36     <para os="var-ob">The values of these variables must be changed in every
    37     file to match the proper setup.</para>
     44      <para os="var-ob">The values of these variables must be changed in every
     45      file to match the proper setup.</para>
    3846
    39     <para os="var-i">The <envar>Name</envar> variable defines the interface
    40     name, for example, eth0. It is required for all network device configuration
    41     files.</para>
     47      <para os="var-i">The <envar>Name</envar> variable defines the interface
     48      name, for example, eth0. It is required for all network device
     49      configuration files.</para>
    4250
    43     <para>The <envar>Gateway</envar> variable should contain the default
    44     gateway IP address, if one is present. If not, then comment out the
    45     variable entirely.</para>
     51      <para>The <envar>Gateway</envar> variable should contain the default
     52      gateway IP address, if one is present. If not, then comment out the
     53      variable entirely.</para>
    4654
    47     <para>For more information see the <command>systemd.netdev</command> man page.</para>
     55      <para>For more information see the <command>systemd.netdev</command> man page.</para>
    4856
    49   </sect2>
     57    </sect3>
    5058
    51   <sect2 role="dhcp">
    52     <title>Connecting to a network with DHCP</title>
     59    <sect3 role="dhcp">
     60      <title>Connecting to a network with DHCP</title>
    5361
    54   <para><command>systemd-networkd</command> uses <filename>/etc/systemd/network</filename> for configuration files. Refer to <filename>systemd.network(5)</filename> and <filename>systemd.netdev(5)</filename>. Configure a network interface with a config file. Adjust Name= as required:</para>
     62    <para><command>systemd-networkd</command> uses
     63    <filename>/etc/systemd/network</filename> for configuration files. Refer
     64    to <filename>systemd.network(5)</filename> and
     65    <filename>systemd.netdev(5)</filename>. Configure a network interface
     66    with a config file. Adjust Name= as required:</para>
    5567
    5668<screen><userinput>cd /etc/systemd/network &amp;&amp;
     
    6375EOF</userinput></screen>
    6476
    65   <para><command>systemd-networkd</command> will automatically configure <filename>/run/systemd/network/resolv.conf</filename> when using DHCP. If you did not manually create <filename>/etc/resolv.conf</filename>, create a symlink:</para>
     77    <para><command>systemd-networkd</command> will automatically configure
     78    <filename>/run/systemd/network/resolv.conf</filename> when using DHCP.
     79    If you did not manually create <filename>/etc/resolv.conf</filename>,
     80    create a symlink:</para>
    6681
    6782<screen><userinput>ln -sv /run/systemd/network/resolv.conf /etc</userinput></screen>
     83
     84    </sect3>
     85
     86  </sect2>
     87
     88  <sect2 role="timesyncd">
     89    <title>Using Timesyncd</title>
     90
     91    <para>Systemd includes a simple NTP client daemon,
     92    <command>systemd-timesyncd</command>, though it is disabled by
     93    default. If you want to enable it, you will first need to add a required
     94    user and group:</para>
     95
     96<screen><userinput>groupadd -g &gid-systemd-timesync; systemd-timesync
     97useradd -g systemd-timesync -u &uid-systemd-timesync; -d /dev/null -s /bin/false systemd-timesync</userinput></screen>
     98
     99    <para>Then, actually enable <command>systemd-timesyncd</command> so that
     100    it will run on system boot:</para>
     101
     102<screen><userinput>systemctl enable systemd-timesyncd</userinput></screen>
     103
     104    <para>You can configure <command>systemd-timesyncd</command> by editing
     105    <filename>/etc/systemd/timesyncd.conf</filename>.</para>
    68106
    69107  <para>Continue to <xref linkend="chapter-bootable"/>.</para>
  • BOOK/users_groups.ent

    rf99afd3 r63f1942  
    1111<!ENTITY uid-mail "30">
    1212<!ENTITY uid-news "31">
     13<!ENTITY uid-systemd-timesync "41">
    1314<!ENTITY uid-operator "50">
    1415<!ENTITY uid-postmaster "51">
     
    4142<!ENTITY gid-news "31">
    4243<!ENTITY gid-wheel "39">
     44<!ENTITY gid-systemd-timesync "41">
    4345<!ENTITY gid-users "1000">
    4446<!ENTITY gid-nogroup "65533">
Note: See TracChangeset for help on using the changeset viewer.