Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set a correct date at boot ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Orphee
n00b
n00b


Joined: 28 Jul 2002
Posts: 20
Location: France

PostPosted: Tue Aug 13, 2002 7:38 pm    Post subject: How to set a correct date at boot ? Reply with quote

Hi !
The date is always wrong, when I boot, although it is right with OS X...

I tried setting CLOCK= to the path to my local zone in /etc/rc.conf, or with CLOCK="local"
And clock is in the boot runlevel.

What is wrong ?

Thank you very much for your help.
(Gentoo 1.2 on ibook G3 600, 2001 edition)
Back to top
View user's profile Send private message
ct3
n00b
n00b


Joined: 16 Jul 2002
Posts: 5

PostPosted: Wed Aug 14, 2002 9:24 pm    Post subject: Reply with quote

There might be two reasons for that:
1- either your clock is set to UTC (local time) and your config believe it is set to local time (UTC)
2- or your /etc/zoneinfo symlink does not point to your correct local zone file.
The symptom for that is that each time you reboot from MacOS to Linux your clock is drifted by a fixed amount of hours.

Remedies:
1- check that /etc/zoneinfo points to the correct zone file (usr/share/zoneinfo/Europe/Zurich in my case)
2- try to change the CLOCK setting in /etc/rc.conf to either CLOCK="UTC" or CLOCK="local".

Hope this helps
Back to top
View user's profile Send private message
tanis
n00b
n00b


Joined: 11 Aug 2002
Posts: 6
Location: Germany

PostPosted: Wed Aug 14, 2002 11:07 pm    Post subject: clock setting for ppc Reply with quote

Hi,

i had the same problems (:

Solution:

First you boot the gentoo burn cdrom wich comes with a tiny date
command, lets call it busybox date.

To set the date right after your initial cdrom boot try this:

#date -s 2002.08.14-22:42:42

which means 14.08.2002 22:42:42 (don't panic)

Then you will install gentoo base system and so on :)

After that the system boots from your local disk.

First make the right settings in /etc/rc.conf for clock:
CLOCK="local"

then (reboot if you feel to do it)

After that you have (i had!) access to the evil gnu date command
which is strange (for me) to set the right time and date

#date --set='2002-08-14 22:42'
which sets the time and date to 22:42 and 14.08.2002

reboot and type 'date' again.

Hope that will help.
Back to top
View user's profile Send private message
tanis
n00b
n00b


Joined: 11 Aug 2002
Posts: 6
Location: Germany

PostPosted: Wed Aug 14, 2002 11:14 pm    Post subject: to tset the right timezone Reply with quote

Sorry i forget to say you must set the right timezone for your location :)

For me this command will do it:

#ln -sf /usr/share/zoneinfo/Europe/Berllin localtime

look in /usr/share/zoneinfo for for locatime symlink

(just reboot if you want to go sure)

and type date :)
Back to top
View user's profile Send private message
tanis
n00b
n00b


Joined: 11 Aug 2002
Posts: 6
Location: Germany

PostPosted: Wed Aug 14, 2002 11:17 pm    Post subject: localtime is in /etc Reply with quote

SORRY to much wine....

localtime stands in /etc

just what i did

#ln -sf /usr/share/zoneinfo/Europe/Berllin localtime
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum