Home » Linux

Linux: aggiornamento data/ora e impostazione fuso orario

9 aprile 2008 2.756 views 3 Comments

Capita a molti ancora di non sapere come aggiornare la data/ora del proprio server linux e di impostare il fuso orario su Rome correttamente.

Bene, possiamo inserire in /etc/rc.local oppure in un cron questi comandi:

rdate -s time.ucla.edu
hwclock –systohc
ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime

3 Comments »

  • upnews.it said:

    Linux: aggiornamento data/ora e impostazione fuso orario | blog.morphey.org…

    Linux: aggiornamento data/ora e impostazione fuso orario…

  • Gabriele said:

    Grazie mille per il suggerimento!!!!! Ho notato che alcune volte però il sistema si resetta con l’orario originario. Sai se ci sono degli script che possono restaurarlo in automatico ???

  • morphey (author) said:

    Ciao,

    puoi mettere un cron di questo tipo:

    50 * * * * rdate -s time.ucla.edu ; hwclock –systohc

    In questo modo, ogni 50 minuti, l’ora verra’ automaticamente aggiornata.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.