Compare commits
No commits in common. "95a43f2c8b68c2621c5bcdb94d59c1ed364db6c6" and "f59507647980cb316a8ebe0ffad33380c56c6360" have entirely different histories.
95a43f2c8b
...
f595076479
4 changed files with 1 additions and 45 deletions
|
@ -1,42 +0,0 @@
|
||||||
add_packages({ "ntpsec" })
|
|
||||||
|
|
||||||
-- In the ntpsec-doc package, open in browser:
|
|
||||||
-- file:///usr/share/doc/ntpsec/quick.html
|
|
||||||
-- file:///usr/share/doc/ntpsec/NTS-QuickStart.html
|
|
||||||
|
|
||||||
add_file("/etc/ntp.conf", [[
|
|
||||||
driftfile /var/lib/ntp/ntp.drift
|
|
||||||
|
|
||||||
restrict default kod limited nomodify nopeer noquery
|
|
||||||
restrict 127.0.0.1
|
|
||||||
restrict ::1
|
|
||||||
|
|
||||||
# https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d
|
|
||||||
|
|
||||||
server time.cloudflare.com nts iburst
|
|
||||||
server nts.ntp.se nts iburst
|
|
||||||
|
|
||||||
# https://nts.time.nl/
|
|
||||||
server ntppool1.time.nl nts iburst
|
|
||||||
server ntppool2.time.nl nts iburst
|
|
||||||
|
|
||||||
# https://system76.com/time/
|
|
||||||
server paris.time.system76.com nts iburst
|
|
||||||
server brazil.time.system76.com nts iburst
|
|
||||||
|
|
||||||
# https://www.netnod.se/netnod-time/how-to-use-nts
|
|
||||||
server sth1.nts.netnod.se nts iburst
|
|
||||||
server sth2.nts.netnod.se nts iburst
|
|
||||||
|
|
||||||
# https://ntp.br/guia/linux/
|
|
||||||
server a.st1.ntp.br nts iburst
|
|
||||||
server b.st1.ntp.br nts iburst
|
|
||||||
server c.st1.ntp.br nts iburst
|
|
||||||
server d.st1.ntp.br nts iburst
|
|
||||||
server gps.ntp.br nts iburst
|
|
||||||
|
|
||||||
]])
|
|
||||||
|
|
||||||
modules.runit.add_service("ntpsec", [[#!/bin/sh
|
|
||||||
exec ntpd --nice --nofork --panicgate
|
|
||||||
]])
|
|
|
@ -26,7 +26,6 @@ exec logger -p daemon.info -t {{name}}]], params))
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
add_executable(run_script_path, script)
|
add_executable(run_script_path, script)
|
||||||
-- Activar servicio
|
|
||||||
add_symlink("/etc/runit/runsvdir/default/"..name, "/etc/sv/"..name)
|
add_symlink("/etc/runit/runsvdir/default/"..name, "/etc/sv/"..name)
|
||||||
add_symlink(
|
add_symlink(
|
||||||
t("/etc/sv/{{name}}/supervise", params),
|
t("/etc/sv/{{name}}/supervise", params),
|
||||||
|
|
2
qemu.sh
2
qemu.sh
|
@ -6,7 +6,7 @@ if test "$NOGRAPHIC" = true; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fallocate --length 1G tmp.ext4
|
fallocate --length 1G tmp.ext4
|
||||||
mkfs.ext4 -F tmp.ext4
|
mkfs.ext4 tmp.ext4
|
||||||
|
|
||||||
sudo chown root:$(id -u) -R boot/ && sudo chmod g+rw -R boot/
|
sudo chown root:$(id -u) -R boot/ && sudo chmod g+rw -R boot/
|
||||||
qemu-system-x86_64 -enable-kvm -m 2048 \
|
qemu-system-x86_64 -enable-kvm -m 2048 \
|
||||||
|
|
|
@ -47,7 +47,6 @@ module "runit"
|
||||||
module "socklog"
|
module "socklog"
|
||||||
module "hostname"
|
module "hostname"
|
||||||
module "dhcpcd"
|
module "dhcpcd"
|
||||||
module "ntpsec"
|
|
||||||
module "nginx"
|
module "nginx"
|
||||||
|
|
||||||
print("=> Installing and upgrading packages...")
|
print("=> Installing and upgrading packages...")
|
||||||
|
|
Loading…
Reference in a new issue