You are not logged in.

#1 2007-03-19 17:41:26

Nefer-Ra
Member
Registered: 2007-03-18
Posts: 39

Time settings problems

I installed WinXP, then Arch, configured all, except one thing. I had set my time in Arch to localtime and my timezone to Europe/Bucharest.
Now, something weird has happend. First of all ... Windows XP shows my current local time which is allready GMT + 2 in ... GMT + 2. So basicly now Windows shows GMT + 4!
I changed from localtime to UTC and Windows XP displays the correct time again. But ... on arch, the time is stubborn, remains at the same value. I cannot change it at all. How do I change this problem ... ?

Offline

#2 2007-03-19 19:04:53

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: Time settings problems

windows and linux use different methods to set time. windows interferes with the hardware clock if i rem right

one method for linux :
install ntpdate
find a working timeserver near you from  http://www.pool.ntp.org/
as root then run
ntpdate your.nearest.timeserver

Offline

#3 2007-03-19 19:18:56

Nefer-Ra
Member
Registered: 2007-03-18
Posts: 39

Re: Time settings problems

I think this problem is an Archer Bug right?

Offline

#4 2007-03-19 19:41:57

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: Time settings problems

no, its a Windows bug wink

Offline

#5 2007-03-19 21:03:22

Nefer-Ra
Member
Registered: 2007-03-18
Posts: 39

Re: Time settings problems

I cant find with pacman ntpdate ... is it not a package?

Eh ... source again!

Oh ... and it is a Arch Bug, it has some weird time-problems at startup! big_smile

Last edited by Nefer-Ra (2007-03-19 21:04:10)

Offline

#6 2007-03-19 21:34:05

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: Time settings problems

Let's use the rdate pkg as one example method (current repo):

1. Set the hardware clock to either UTC or localtime
2. Set your timezone properly
3.  Run '# date MMDDhhmm' to set the current system date/time
4. Type '# hwclock --systohc'  (localtime) to set the hardware clock*

* '# hwclock --systohc --utc' if using UTC

Sync the clock on boot (add to daemons in rc.conf):

#!/bin/bash
# /etc/rc.d/rdate

. /etc/rc.conf
. /etc/rc.d/functions

# Set this to the 'rdate' client path
#
RDATE_CMD='/usr/bin/rdate'



case "$1" in
    start)
        stat_busy "Updating System Time"
        if [ -x "$RDATE_CMD" ]; then
            "$RDATE_CMD" -s ntp0.cornell.edu
            stat_done
        else
            stat_fail
        fi
    ;;
    stop)
          /bin/true 
        ;; 
        *) 
           echo "usage: $0 {start|stop}" 
        ;; 
esac 
exit 0

/path/to/Truth

Offline

#7 2007-03-19 23:01:18

Nefer-Ra
Member
Registered: 2007-03-18
Posts: 39

Re: Time settings problems

McQueen wrote:

Let's use the rdate pkg as one example method (current repo):

1. Set the hardware clock to either UTC or localtime
2. Set your timezone properly
3.  Run '# date MMDDhhmm' to set the current system date/time
4. Type '# hwclock --systohc'  (localtime) to set the hardware clock*

* '# hwclock --systohc --utc' if using UTC

Sync the clock on boot (add to daemons in rc.conf):

#!/bin/bash
# /etc/rc.d/rdate

. /etc/rc.conf
. /etc/rc.d/functions

# Set this to the 'rdate' client path
#
RDATE_CMD='/usr/bin/rdate'



case "$1" in
    start)
        stat_busy "Updating System Time"
        if [ -x "$RDATE_CMD" ]; then
            "$RDATE_CMD" -s ntp0.cornell.edu
            stat_done
        else
            stat_fail
        fi
    ;;
    stop)
          /bin/true 
        ;; 
        *) 
           echo "usage: $0 {start|stop}" 
        ;; 
esac 
exit 0

Will one of this steps modify my BIOS clock?

Since my BIOS clock is OK, it displays the right time.

Last edited by Nefer-Ra (2007-03-19 23:02:07)

Offline

#8 2007-03-20 14:47:04

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: Time settings problems

I cant find with pacman ntpdate ... is it not a package?

Eh ... source again!

its part of the ntp package

http://www.archlinux.org/packages/4164/

Last edited by Kern (2007-03-20 14:47:33)

Offline

#9 2007-03-20 15:16:14

oli
Member
From: 127.0.0.1
Registered: 2006-02-07
Posts: 164
Website

Re: Time settings problems

Take openntpd (pacman -Sy ....) and just add it in rc.conf.

http://www.openntpd.org/index.html


Use UNIX or die.

Offline

Board footer

Powered by FluxBB