Amahi should be the ntp source for the local network.
Let the one system go out and find the time, then have all the clients look to it.
I think ntp can be controlled on the client with a dhcp option.
And whatabout SMB timeservices?
NET TIME \\hda set yes?
I think that takes an option set in the smb.conf file?
ntp service
Re: ntp service
good idea. one less thing to get traffic out.
i did a quick test adding
to my dhcpd conf file, released and renewed my lease and it did not work.
it's easy work:
- patch hdactl
- patch the installer to set it up as a service
- monitor it to make sure it does not go down
good idea about samba. i was not aware of that!
more later ...
(incidentally, we have some changes for the way we use monit to make it way more flexible and easier to add these, dosable individually, etc. ...)
i did a quick test adding
Code: Select all
option ntp-servers 192.168.1.10;
it's easy work:
- patch hdactl
- patch the installer to set it up as a service
- monitor it to make sure it does not go down
good idea about samba. i was not aware of that!
more later ...
(incidentally, we have some changes for the way we use monit to make it way more flexible and easier to add these, dosable individually, etc. ...)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
Re: ntp service
Three are a few steps on setting up hda to be an ntp server. I have a few systems here set up as servers, so I have notes on what to do. I am shutting down for now, and will post them later during the weekend.
Re: ntp service
Here is what you need to do to setup Amahi to be an ntp server to systems on its network.
First are changes to /etc/ntp.conf:
You have to remove restrictions for systems on the local net:
# Hosts on local network are less restricted.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Note this is the only change which is install specific.
And you have to enable the fake servers. Uncomment out them as follows:
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10
Next there is an addtion to /etc/sysconfig/ntpd:
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=yes
Now restart ntpd and you are a ntpd server for your network.
Finally there is making net time work as shown at: http://oreilly.com/catalog/samba/chapte ... 08_01.html
8.1.1.1 time server
If your Samba server has an accurate clock, or if it's a client of one of the Unix network time servers, you can instruct it to advertise itself as an SMB time server by setting the time server option as follows:
[global]
time service = yes
The client will still have to request the correct time with the following DOS command, substituting the Samba server name in at the appropriate point:
C:\NET TIME \\server /YES /SET
First are changes to /etc/ntp.conf:
You have to remove restrictions for systems on the local net:
# Hosts on local network are less restricted.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Note this is the only change which is install specific.
And you have to enable the fake servers. Uncomment out them as follows:
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10
Next there is an addtion to /etc/sysconfig/ntpd:
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=yes
Now restart ntpd and you are a ntpd server for your network.
Finally there is making net time work as shown at: http://oreilly.com/catalog/samba/chapte ... 08_01.html
8.1.1.1 time server
If your Samba server has an accurate clock, or if it's a client of one of the Unix network time servers, you can instruct it to advertise itself as an SMB time server by setting the time server option as follows:
[global]
time service = yes
The client will still have to request the correct time with the following DOS command, substituting the Samba server name in at the appropriate point:
C:\NET TIME \\server /YES /SET
Re: ntp service
oops, I see that you already have /etc/samba/smb.conf setup for time services....
Re: ntp service
shweet...
I'm going to try this ASAP
I'm going to try this ASAP
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Who is online
Users browsing this forum: No registered users and 42 guests