Durante l'installazione avevo distrattamente indicato che l'ora del BIOS era indicata in UTC; quest'ora (visualizzabile col comando privilegiato "hwclock --show" viene letta e copiata da linux ad ogni avvio nell'ora di sistema, tramite lo script /etc/init.d/hwclock.sh.
Come conseguenza, l'ora del mio pc andava avanti di due ore rispetto a quella del BIOS e a quella di Windows. Per sistemare questa discrepanza va editato il file /etc/default/rcS (dato che contiene molte direttive interessanti lo riporto per intero):
Quote:
/etc/default/rcS
# delete files in /tmp during boot older than x days.
# '0' means always, -1 or 'infinite' disables the feature
TMPTIME=0
# spawn sulogin during boot, continue normal boot if not used in 30 seconds
SULOGIN=no
# do not allow users to log in until the boot has completed
DELAYLOGIN=no
# assume that the BIOS clock is set to UTC time (recommended)
#commentata da me:
#UTC=yes
#aggiunta da me:
UTC=no
# be more verbose during the boot process
VERBOSE=no
# automatically repair filesystems with inconsistencies during boot
FSCKFIX=no
# mount /run/lock as a tmpfs (separately from /run)
RAMLOCK=yes
# mount /run/shm as a tmpfs (separately from /run)
RAMSHM=yes
# mount /tmp as a tmpfs
RAMTMP=yes
|
Adesso ora del BIOS, ora di Linux e ora di Windows coincidono. Per ulteriori approfondimenti si vedano anche:
http://www.infodrom.org/Debian/doc/m...-sysadmin.html
http://www.linuxsa.org.au/tips/time.html
http://www.debian-administration.org/articles/213