Changes between Version 11 and Version 12 of ubuntu


Ignore:
Timestamp:
12/13/2018 08:46:38 PM (6 years ago)
Author:
Tim Harvey
Comment:

added RTC details

Legend:

Unmodified
Added
Removed
Modified
  • ubuntu

    v11 v12  
    258258
    259259[=#time]
    260 == Network Time Configuration
     260== Network Time Protocol (NTP) Configuration
    261261Network Time can set your system time based on network time servers:
    262262 * bionic:
     
    267267{{{#!bash
    268268apt-get install ntp
     269}}}
     270
     271
     272[=#rtc]
     273== Real Time Clock (RTC) Configuration
     274System Time can be set from a Real Time Clock such as the DS1672 that the Gateworks System Controller emulates but this does not seem to work on modern Ubuntu out of the box. While the {{{util-linux}}} package that provides {{{hwclock}}} installs a service {{{/etc/init.d/hwclock.sh}}} it won't run because {{{systemd}}} is installed and the service is masked.
     275
     276You can work around this by installing a hwclock.service:
     277{{{#!bash
     278cat << EOF > /etc/systemd/system/hwclock.service
     279[Unit]
     280Description=Hardware clock synchronization
     281[Service]
     282Type=oneshot
     283ExecStart=/sbin/hwclock --hctosys --utc --adjfile=/etc/adjtime
     284ExecStop=/sbin/hwclock --systohc --utc --adjfile=/etc/adjtime
     285[Install]
     286WantedBy=multi-user.target
     287EOF
     288systemctl enable hwclock
    269289}}}
    270290