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.
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
Once it's installed, navigate to /etc/ntp.conf which you can edit using your favourite text edit. Say, gedit or nano.
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:
Replace the somedomain.something and something.else with NTP servers. You can find some hfrom the NTP server home.
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.