Live CD/DVD Tips: Difference between revisions

From MediaWiki
Jump to navigationJump to search
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Quick Way To Startup: Network Time Protocol (NTP) Services ==
== Quick Way To Startup: Network Time Protocol (NTP) Services ==


Here is a quick way to start up '''NTP''' services at a shell prompt. Just type in the "'''lntpd'''" bash alias. Further one liner "'''aliases'''" can be found in the '''NST''' "'''README'''" file or type in the "'''nstusage'''" bash function.
The following demonstrates how to enable the '''NTP''' service at boot time and start the '''NTP''' service at a shell prompt.
 
Example:
 
<div class="screen">
  <div class="screenTitle">''Managing The:'' "ntpd" Service</div>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl enable ntpd.service</div>
  <pre class="computerOutput">
ln -s '/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
</pre>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl start ntpd.service</div>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span>ntpq -pn</div>
  <pre class="computerOutput">
    remote          refid      st t when poll reach  delay  offset  jitter
==============================================================================
88.198.18.245  6.146.224.0      3 u    5  64    1  113.915  68.354  0.002
24.123.214.97  129.6.15.29      2 u    4  64    1  73.682  38.248  0.002
62.112.194.64  193.67.79.202    2 u    3  64    1  128.611  -19.668  0.002
</pre>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span></div>
</div>
 
Alternatively, you can use the '''chronyd''' service for time synchronization. The following example enables and starts the '''chronyd''' service:
 
<div class="screen">
  <div class="screenTitle">''Managing The:'' "cronyd" Service</div>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl enable chronyd.service</div>
  <pre class="computerOutput">
ln -s '/lib/systemd/system/chronyd.service' '/etc/systemd/system/multi-user.target.wants/chronyd.service'
</pre>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl start chronyd.service</div>
  <div class="userInput"><span class="prompt">[root@probe ~]# </span></div>
</div>
 
The '''NST''' Web User Interface provides many web pages with additional information and tools to manage time related services. From the main '''NST WUI''' menu bar, select: ''System | Time Management''.
<!--
<span style="font-size: 90%;">'''''Note:''''' Computer screen output using CSS (see [[MediaWiki:Common.css]]):</span>


--[[User:Rwh|Rwh]] 14:20, 25 February 2007 (EST)
--[[User:Rwh|Rwh]] 14:20, 25 February 2007 (EST)
-->

Latest revision as of 08:54, 7 December 2012

Quick Way To Startup: Network Time Protocol (NTP) Services

The following demonstrates how to enable the NTP service at boot time and start the NTP service at a shell prompt.

Example:

Managing The: "ntpd" Service
[root@probe ~]# systemctl enable ntpd.service
ln -s '/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
[root@probe ~]# systemctl start ntpd.service
[root@probe ~]# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 88.198.18.245   6.146.224.0      3 u    5   64    1  113.915   68.354   0.002
 24.123.214.97   129.6.15.29      2 u    4   64    1   73.682   38.248   0.002
 62.112.194.64   193.67.79.202    2 u    3   64    1  128.611  -19.668   0.002
[root@probe ~]#

Alternatively, you can use the chronyd service for time synchronization. The following example enables and starts the chronyd service:

Managing The: "cronyd" Service
[root@probe ~]# systemctl enable chronyd.service
ln -s '/lib/systemd/system/chronyd.service' '/etc/systemd/system/multi-user.target.wants/chronyd.service'
[root@probe ~]# systemctl start chronyd.service
[root@probe ~]#

The NST Web User Interface provides many web pages with additional information and tools to manage time related services. From the main NST WUI menu bar, select: System | Time Management.