Latest News:
*New 11.2 series Release:
2019-06-20: XigmaNAS 11.2.0.4.6766 - released!

*New 12.0 series Release:
2019-06-20: XigmaNAS 12.0.0.4.6766 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

NTPD setup

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
alexey123
Moderator
Moderator
Posts: 1568
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

NTPD setup

#1

Post by alexey123 » 13 Feb 2019 00:37

I made Xigmanas as Network Time server for my local network.

This is very simple

Xigmanas have binaries for run it, but not have configurator

In first I create folder for scripts and config, then I grab from jail files /etc/rc.d/ntpd and /etc/ntp.conf

I add to ntp.conf

Code: Select all

server time1.google.com iburst
server time2.google.com iburst
server time3.google.com iburst
server time4.google.com iburst

Code: Select all

restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
10.0.0.0/24 is my network
and

Code: Select all

logfile /var/log/ntp.log
Then I create startup script

Code: Select all

#!/bin/sh
# Start up switch for ntp daemon

ln -s /mnt/tank/app/ntp/ntp.conf /etc/ntp.conf
ln -s /mnt/tank/app/ntp/ntpd /etc/rc.d/ntpd


service ntpdate stop
rconf service disable ntpdate

rconf service enable ntpd
rconf attribute set ntpd_sync_on_start YES

service ntpd fetch
service ntpd start
Where /mnt/tank/app/ntp is path to homing ntp-folder

Define start script as postinit
That is all
Now I configure other computers receive time from Xigmanas IP.
As for me work perfect
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4915
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: NTPD setup

#2

Post by raulfg3 » 13 Feb 2019 07:25

is not the same that enable on SMB?:
2.jpg
You do not have the required permissions to view the files attached to this post.
12.0.0.4 - BETA (revision 6625)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes
Old Wiki

User avatar
alexey123
Moderator
Moderator
Posts: 1568
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: NTPD setup

#3

Post by alexey123 » 13 Feb 2019 09:43

No!
Built-in future work as client - Xigmanas check time at external server only.
ntpd workas daemon - it check external server and work as time server for LAN also.

Samba? may be it work as time of file create procedure.
In all case, you can check - scan ports at your NAS, port 123 must be open at fileserver

I make this future when I compile Xigmanas for raspberry pi3 - it not have cmos timer buitin

UPD
I add scan results for regular xigmanas server, used at my laboratory - Udp port 123 is closed
You do not have the required permissions to view the files attached to this post.
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

Post Reply

Return to “Scripts and shell tips”