Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an old computer and BIOS counts the time slower than real ;)

So, how can I set my OS to update the time automatically using the internet?

If it updated the time only during booting, it would be enough.

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You can set the time during system boot actually, and from the Debian Documentation they even specify it for use on hardware that doesn't keep track of time properly. I recommend using NTP though. You can set it up to connect to an NTP server. First install NTP though, using

$ sudo apt-get install ntp

Once it's installed, navigate to /etc/ntp.conf which you can edit using your favourite text edit. Say, gedit or nano.

$ sudo nano /etc/ntp.conf

I'm not sure if it needs sudo, but you can use it anyway.

You need to know an NTP server to set this. Modify your file to be like so:

 logfile /var/log/xntpd
 driftfile /var/lib/ntp/ntp.drift
 statsdir /var/log/ntpstats/

 statistics loopstats peerstats clockstats
 filegen loopstats file loopstats type day enable
 filegen peerstats file peerstats type day enable
 filegen clockstats file clockstats type day enable

 server ntp.somedomain.something
 server ntp.something.else

Replace the somedomain.something and something.else with NTP servers. You can find some hfrom the NTP server home.

share|improve this answer

Install ntp and made it run on runlevels 2,3,5. Then it will pull the date and time from well-known sources and will adjust your system gradually.

share|improve this answer
Ntp seems to be what i'm searching. But how can i set to runlevels 2,3,5 without gui tool? –  Miro Aug 14 '11 at 18:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.