• This is a Wiki Page: You can log-in to edit this post

    E’ possibile regolare l’orologio del proprio PC attraverso internet. E’ sufficiente installare il pacchetto rdate. Una volta connessi ad internet date il seguente comando:

    rdate -s time.ien.it && hwclock –systohc

    E’ possibile anche farlo eseguire automaticamente alla connessione, è sufficiente creare uno script Bash:

    #!/bin/sh
    /usr/sbin/rdate -s time.ien.it && hwclock –systohc

    Salvatelo con un nome qualsiasi ad esempio ora.sh, rendetelo eseguibile :

    chmod +x ora.sh

    E copiatelo nella directory /etc/ppp/ip-ip.d/

    Da notare che molte distribuzioni allo shutdown effettuano giá la sincronizzazione del hwclock, quindi “&& hwclock –systohc” potrebbe essere superfluo. Se la macchina è un server inoltre, è opportuno eseguire giornalmente via cron la sincronizzazione, in quanto il reboot avviene o dovrebbe avvenire normalmente di rado. Se si installa il pacchetto anacron o un demon cron sufficientemente recente, che gestisce la stringa @reboot, l’uso di un cron file adatto si potrebbe considerare in alternativa soprattutto in una configurazione di connessione a internet via router.


    Similar Posts:

    This entry was posted on lunedì, novembre 13th, 2006 at 10:48 and is filed under Howto, Linux, Wiki. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 0 Comments

    Take a look at some of the responses we've had to this article.

  • Post a Comment

    Let us know what you thought.

  • Connect with Facebook

    Name:

    Email (required):

    Website:

    Message:

Switch to our mobile site