View previous topic :: View next topic |
Author |
Message |
Orphee n00b
Joined: 28 Jul 2002 Posts: 20 Location: France
|
Posted: Tue Aug 13, 2002 7:38 pm Post subject: How to set a correct date at boot ? |
|
|
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 |
|
|
ct3 n00b
Joined: 16 Jul 2002 Posts: 5
|
Posted: Wed Aug 14, 2002 9:24 pm Post subject: |
|
|
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 |
|
|
tanis n00b
Joined: 11 Aug 2002 Posts: 6 Location: Germany
|
Posted: Wed Aug 14, 2002 11:07 pm Post subject: clock setting for ppc |
|
|
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 |
|
|
tanis n00b
Joined: 11 Aug 2002 Posts: 6 Location: Germany
|
Posted: Wed Aug 14, 2002 11:14 pm Post subject: to tset the right timezone |
|
|
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 |
|
|
tanis n00b
Joined: 11 Aug 2002 Posts: 6 Location: Germany
|
Posted: Wed Aug 14, 2002 11:17 pm Post subject: localtime is in /etc |
|
|
SORRY to much wine....
localtime stands in /etc
just what i did
#ln -sf /usr/share/zoneinfo/Europe/Berllin localtime |
|
Back to top |
|
|
|