Re: Automatic Time setup
By: Denngray to All on Thu Nov 26 2015 21:34:21
Ok, I have my Synchronet 3.16c BBS setup on Ubuntu 14.04 on a VPS, If anything happens and I need to reset my server I have to manually set my time and date.
Does anyone know how to automate this process in Linux?
It sounds like you have an issue with your motherboard's battery to keep that lil' clock tickin?
Anyway, my advice would be to install 'ntpd' (network time protocol daemon), which should take care of bringing your system back to normal time pretty quick, depending on how you have it set up. On a debian system (including mint/whatever else uses .debs) you'll want to do apt-get install ntpd (or ntp if that doesn't work, I can't remember for certain but I think the 'd' is on the end as well). After that due to the fact that you've got a somewhat special issue where your clock always [presumably] zeros out when the system is reset or turned off, you'll want to 'man ntpd' and find out what you can put in the configuration file in order to A) make it step all the way to the right new time, instead of with small increments meant only to address minor drift, and B) make sure that it runs a check immediately when ntpd first loads up, so as to correct your clock problem as early as possible upon boot up.
If you need help with the configuration of (I think the file is) /etc/ntpd.conf, I'd be more than happy to help. Oh, on CentOS or any other RHEL version of linux, the command instead of apt-get would be yum install ntpd.
Hope this helps a little bit.
-D/K
---
Borg Burgers: We do it our way; your way is irrelevant.
■ Synchronet ■ Tinfoil Tetrahedron BBS
telnet://tinfoil.synchro.net