VectorLinux
September 30, 2014, 01:32:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: automatically starting ntp.conf (SOLVED)  (Read 1817 times)
sledgehammer
Vectorian
****
Posts: 1424



« on: June 27, 2012, 07:00:30 pm »

My computer's time drifts and after a week or six I am 5 minutes or so off.  I think I have /etc/ntp.conf configured OK but don't know how  to  start ntp.conf to try to correct this problem.   Nor what to add at the end of rc.local to start ntp automatically on boot.  Or even if I am on the right path here.  I think I used to do something in vasm>services, but don't see that now.  

Any suggestions?  I don't need perfect time, but would like to stop the drifting.  



« Last Edit: June 29, 2012, 09:44:26 am by sledgehammer » Logged

VL7.0 xfce4 Samsung RF511
M0E-lnx
Administrator
Vectorian
*****
Posts: 3180



« Reply #1 on: June 28, 2012, 03:29:11 am »

I have been able to control the clock on virtual machines using this guide
 https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon

For some reason our ntp package does not come with a working default configuration, but that guide will work.


Just dont focus on the daemon stuff.  Focus on the .conf contents and the "using whithout a daemon " section.  It has what you need to have in rc.local for the time to be fixed on boot.

Hth
Logged

retired1af
Packager
Vectorian
****
Posts: 1263



« Reply #2 on: June 28, 2012, 12:01:08 pm »

Any suggestions?  I don't need perfect time, but would like to stop the drifting. 

This normally indicates your motherboard battery is weakening and thinking of dying. Might want to replace it.
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
hata_ph
Packager
Vectorian
****
Posts: 3257


-- Just being myself --


« Reply #3 on: June 29, 2012, 06:02:25 am »

1. copy this file https://projects.archlinux.org/svntogit/packages.git/tree/trunk/ntpd?h=packages/ntp to your /etc/rc.d/init.d
2. chmod 755 /etc/rc.d/init.d/ntpd
3. chown root:root /etc/rc.d/init.d/ntpd
4. after that you should be able to configure it under vasm>services
Logged
sledgehammer
Vectorian
****
Posts: 1424



« Reply #4 on: June 29, 2012, 09:43:50 am »

Thanks guys!

ntpd now shows in vasm and I have it running in level 4.

John
Logged

VL7.0 xfce4 Samsung RF511
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!