Skip to content

Commit 37bf200

Browse files
committed
feat: add Chrony
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
1 parent 79270fc commit 37bf200

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

docs/apps.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,69 @@
11
# Apps
22

3+
## [Chrony][1]
4+
5+
### Server
6+
7+
```shell
8+
sudo apt install chrony
9+
sudo service chrony restart
10+
```
11+
12+
```apacheconf
13+
# /etc/chrony/chrony.conf
14+
confdir /etc/chrony/conf.d
15+
pool 2.debian.pool.ntp.org iburst
16+
sourcedir /run/chrony-dhcp
17+
sourcedir /etc/chrony/sources.d
18+
keyfile /etc/chrony/chrony.keys
19+
driftfile /var/lib/chrony/chrony.drift
20+
ntsdumpdir /var/lib/chrony
21+
logdir /var/log/chrony
22+
maxupdateskew 100.0
23+
rtcsync
24+
makestep 1 3
25+
leapsectz right/UTC
26+
allow 192.168.1.0/24
27+
authselectmode ignore
28+
manual
29+
```
30+
31+
### Client
32+
33+
```shell
34+
sudo apt install chrony
35+
sudo service chrony restart
36+
# Check that server is running
37+
sudo chronyc sources -v -a
38+
sudo chronyc clients
39+
sudo chronyc ntpdata <Server IP>
40+
# Check that port 123 is running
41+
nc -zvu <Server IP> 123
42+
chronyc activity
43+
chronyc tracking
44+
```
45+
46+
```apacheconf
47+
# /etc/chrony/chrony.conf
48+
server 192.168.1.198 iburst trust
49+
authselectmode ignore
50+
confdir /etc/chrony/conf.d
51+
pool ntp.ubuntu.com iburst maxsources 4
52+
pool 0.ubuntu.pool.ntp.org iburst maxsources 1
53+
pool 1.ubuntu.pool.ntp.org iburst maxsources 1
54+
pool 2.ubuntu.pool.ntp.org iburst maxsources 2
55+
sourcedir /run/chrony-dhcp
56+
sourcedir /etc/chrony/sources.d
57+
keyfile /etc/chrony/chrony.keys
58+
driftfile /var/lib/chrony/chrony.drift
59+
ntsdumpdir /var/lib/chrony
60+
logdir /var/log/chrony
61+
maxupdateskew 100.0
62+
rtcsync
63+
makestep 1 3
64+
leapsectz right/UTC
65+
```
66+
367
## Ubuntu
468

569
```shell
@@ -103,3 +167,5 @@ pwsh
103167
```shell
104168
pip install mkdocs-material mkdocs-minify-plugin
105169
```
170+
171+
[1]: <https://ubuntu.com/server/docs/how-to-serve-the-network-time-protocol-with-chrony>

0 commit comments

Comments
 (0)