Re: [gentoo-user] whos got the time?
i dont have that in my rc.conf file anymore, if i remember correctly it got changed to something in /etc/conf.d with my last emerge world and It's in /etc/conf.d/clock -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Friday 21 January 2005 23:53, Nick Smith wrote: [EMAIL PROTECTED] ~ $ date Fri Jan 21 16:43:56 EST 2005 [EMAIL PROTECTED] ~ $ su Password: laptux nick # date Fri Jan 21 16:44:01 EST 2005 they are both in sync together, just both out of sync with the real time, my flux clock says its 9:44, I never used flux. So I can't help you there. Still, it would be interesting to know which time was right. If none of them, what was the correct time when you did it? my localtime is linked to: localtime - /usr/share/zoneinfo/US/Eastern, and i doubt its a battery issue, cause i have 4 gentoo boxes going and they all have different times, none correct, this is the only one i have messed with ntp on, i want to make sure i can get it working before i do it on the other machines. what servers are people using in their ntpd.conf? i have: Right, this isn't a battery issue. server pool.ntp.org is there an EST server i should be using? what other settings should i have in that file? i have: You can use any NTP server. Of course, it make sense to use one close to you. Best would be to use your ISP's NPT server. Just ask them. If they won't tell you launch nslookup. Inside nslookup, you do: set type=any ntp.your.isp.domain driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 This looks right. Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
You can use any NTP server. Of course, it make sense to use one close to you. Best would be to use your ISP's NPT server. Just ask them. If they won't tell you launch nslookup. Inside nslookup, you do: set type=any ntp.your.isp.domain nslookup? bash-2.05b# nslookup bash: nslookup: command not found Where is this found? Thanks Kirby Walborn -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Saturday 22 January 2005 15:35, Sarpy Sam wrote: You can use any NTP server. Of course, it make sense to use one close to you. Best would be to use your ISP's NPT server. Just ask them. If they won't tell you launch nslookup. Inside nslookup, you do: set type=any ntp.your.isp.domain nslookup? bash-2.05b# nslookup bash: nslookup: command not found Hmm... No nslookup in gentoo. No dig either or so it seems. :-( Alright, use net-dns/dnsquery. Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
Uwe Thiem wrote: On Saturday 22 January 2005 15:35, Sarpy Sam wrote: You can use any NTP server. Of course, it make sense to use one close to you. Best would be to use your ISP's NPT server. Just ask them. If they won't tell you launch nslookup. Inside nslookup, you do: set type=any ntp.your.isp.domain nslookup? bash-2.05b# nslookup bash: nslookup: command not found Hmm... No nslookup in gentoo. No dig either or so it seems. :-( People have asked about dig before; iirc it's part of the bind package. Maybe nslookup is there too? Holly Alright, use net-dns/dnsquery. Uwe -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
Hi, dig and nslookup are in net-dns/bind-tools. HTH, Chris On 22 Jan 2005, at 15:05, Uwe Thiem wrote: On Saturday 22 January 2005 15:35, Sarpy Sam wrote: You can use any NTP server. Of course, it make sense to use one close to you. Best would be to use your ISP's NPT server. Just ask them. If they won't tell you launch nslookup. Inside nslookup, you do: set type=any ntp.your.isp.domain nslookup? bash-2.05b# nslookup bash: nslookup: command not found Hmm... No nslookup in gentoo. No dig either or so it seems. :-( Alright, use net-dns/dnsquery. Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list -- Chris Boot [EMAIL PROTECTED] http://www.bootc.net/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Friday 21 January 2005 04:18, Mike Noble wrote: fire-eyes wrote: | I'd set up a cronjob for ntpdate, every 49 minutes or something like | that. I'd strongly suspect your CMOS battery. As for fluxbox's time | showing different, I've no idea what that's all about. Don't really know much about flux, but does it have a timezone setting which is probably set to the wrong time zone. As for the time being off by by an hour after 30 minutes, really does sound like a MB battery issue. I would start by replacing the battery in the MB. I don't think this is good advice. Unless you manually read the hardware clock and write to the system clock using hwclock, the system doesn't touch the hardware clock but once during bootup. I suspect messed up timezone settings. Could it be that the system and users are on different timezones? Do a date as root and as one or two different users and watch not only the time itself but also what it says about timezones. Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
Am 21. Jan 2005 um 02:57 Uhr schrieb Nick Smith: i just installed ntp, ran it, and my EST time was right on track, 30 mins later, its almost an hour off Sounds like you made the mistake of running ntpdate or ntp-client, which merely sets the time once, then leaves the local clock to do whatever it pleases. Instead, use ntpd - it'll take quite a while until it trusts some server, but then it'll watch the clock continously and compensate the drift. However, if your clock drifts by 1 h in 30 min, then something is badly wrong - maybe a hardware issue, or inaproppriate kernel options. I'm not sure if ntpd can handle such large amounts of drift. Regarding hardware and the CMOS battery: The kernel has a time counter which is initialized from the CMOS battery during boot, and written back to the CMOS clock during shutdown. While the system is runnning, another timer generates periodic interrupts, which are used to increment the kernel's time counter. In other words, an empty CMOS battery should affect your system only while it is down. I'd recommend setting the CMOS clock to UTC, not localtime. and on top of that, my clock in flux says 1:56am and the date command states its 9:54pm, No idea on that one, I'd trust date rather than fluxbox though. this is one thing ive never been able to do, and that is keep good time in gentoo... Well, for me Gentoo is the first distro where I could achieve good timekeeping, without any unusual effort. SuSE, for example, kept messing up the DST switch. Sebastian -- Sebastian Flothow [EMAIL PROTECTED] Because it reverses the logical flow of conversation. Why is top posting frowned upon? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Fri, 2005-01-21 at 12:44 +0200, Uwe Thiem wrote: On Friday 21 January 2005 04:18, Mike Noble wrote: fire-eyes wrote: | I'd set up a cronjob for ntpdate, every 49 minutes or something like | that. I'd strongly suspect your CMOS battery. As for fluxbox's time | showing different, I've no idea what that's all about. Don't really know much about flux, but does it have a timezone setting which is probably set to the wrong time zone. As for the time being off by by an hour after 30 minutes, really does sound like a MB battery issue. I would start by replacing the battery in the MB. I don't think this is good advice. Unless you manually read the hardware clock and write to the system clock using hwclock, the system doesn't touch the hardware clock but once during bootup. I suspect messed up timezone settings. Could it be that the system and users are on different timezones? Do a date as root and as one or two different users and watch not only the time itself but also what it says about timezones. [EMAIL PROTECTED] ~ $ date Fri Jan 21 16:43:56 EST 2005 [EMAIL PROTECTED] ~ $ su Password: laptux nick # date Fri Jan 21 16:44:01 EST 2005 they are both in sync together, just both out of sync with the real time, my flux clock says its 9:44, my localtime is linked to: localtime - /usr/share/zoneinfo/US/Eastern, and i doubt its a battery issue, cause i have 4 gentoo boxes going and they all have different times, none correct, this is the only one i have messed with ntp on, i want to make sure i can get it working before i do it on the other machines. what servers are people using in their ntpd.conf? i have: server pool.ntp.org is there an EST server i should be using? what other settings should i have in that file? i have: driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 thanks for the help Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Fri, 2005-01-21 at 16:11 +0100, Sebastian Flothow wrote: Regarding hardware and the CMOS battery: The kernel has a time counter which is initialized from the CMOS battery during boot, and written back to the CMOS clock during shutdown. While the system is runnning, another timer generates periodic interrupts, which are used to increment the kernel's time counter. In other words, an empty CMOS battery should affect your system only while it is down. I can verify this. The battery of my MB is completely dead. Everytime I boot my computer I have to redo all the bios settings. Once my gentoo system is booted though, the time remains correct the whole time it is on. john -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Smith wrote: | On Fri, 2005-01-21 at 12:44 +0200, Uwe Thiem wrote: | | | [EMAIL PROTECTED] ~ $ date | Fri Jan 21 16:43:56 EST 2005 | [EMAIL PROTECTED] ~ $ su | Password: | laptux nick # date | Fri Jan 21 16:44:01 EST 2005 | | they are both in sync together, just both out of sync with the real | time, my flux clock says its 9:44, | | my localtime is linked to: | localtime - /usr/share/zoneinfo/US/Eastern, | | and i doubt its a battery issue, cause i have 4 gentoo boxes going and | they all have different times, none correct, this is the only one i have | messed with ntp on, i want to make sure i can get it working before i do | it on the other machines. what servers are people using in their | ntpd.conf? i have: | | server pool.ntp.org | | is there an EST server i should be using? what other settings should i | have in that file? i have: | | driftfile /var/lib/ntp/ntp.drift | restrict default nomodify nopeer | restrict 127.0.0.1 | | thanks for the help | | Here is my ntp.conf file: server ntp.ucsd.edu #server pool.ntp.org driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 Since I live in San Diego it only makes sense for me to use ntp.ucsd.edu. As you probably already know, you need to have the daemon ntpd running so that it can sync with the time server. I do not believe that it really makes a difference what server you go to, they all give out the time as GMT. It is better to find one near you, but you could use ntp.ucsd.edu to see if that helps. For the east coast you could use the following: ~ bonehed.lcs.mit.edu The web page for this server is: http://ntp.isc.org/bin/view/Servers/BonehedLcsMitEdu For a list of all ntp servers you can go to: http://www.ntp.org/ click on the link: Public Time Server Lists HTH Mike -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFB8bDQlJFYJP/fwTsRAn2XAJ9FHhpaKmdTUfVsfry4EGPHdFKvxgCeMY6G R0uIP6Hlt9aSatVSayh3nVE= =wnD4 -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
Mike Noble ([EMAIL PROTECTED]) scribbled: Nick Smith wrote: | On Fri, 2005-01-21 at 12:44 +0200, Uwe Thiem wrote: | | | [EMAIL PROTECTED] ~ $ date | Fri Jan 21 16:43:56 EST 2005 | [EMAIL PROTECTED] ~ $ su | Password: | laptux nick # date | Fri Jan 21 16:44:01 EST 2005 | | they are both in sync together, just both out of sync with the real | time, my flux clock says its 9:44, | | my localtime is linked to: | localtime - /usr/share/zoneinfo/US/Eastern, | | and i doubt its a battery issue, cause i have 4 gentoo boxes going and | they all have different times, none correct, this is the only one i have | messed with ntp on, i want to make sure i can get it working before i do | it on the other machines. what servers are people using in their | ntpd.conf? i have: | | server pool.ntp.org | | is there an EST server i should be using? what other settings should i | have in that file? i have: | | driftfile /var/lib/ntp/ntp.drift | restrict default nomodify nopeer | restrict 127.0.0.1 | | thanks for the help | | Here is my ntp.conf file: server ntp.ucsd.edu #server pool.ntp.org driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 Since I live in San Diego it only makes sense for me to use ntp.ucsd.edu. As you probably already know, you need to have the daemon ntpd running so that it can sync with the time server. I do not believe that it really makes a difference what server you go to, they all give out the time as GMT. It is better to find one near you, but you could use ntp.ucsd.edu to see if that helps. For the east coast you could use the following: ~ bonehed.lcs.mit.edu The web page for this server is: http://ntp.isc.org/bin/view/Servers/BonehedLcsMitEdu For a list of all ntp servers you can go to: http://www.ntp.org/ click on the link: Public Time Server Lists I live on the east coast and have used these servers for years without a problem: time-a.nist.gov time-b.nist.gov Never hurts to list more than one in your config file :) hth, Cooper. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Fri, 2005-01-21 at 16:53 -0500, Nick Smith wrote: On Fri, 2005-01-21 at 12:44 +0200, Uwe Thiem wrote: On Friday 21 January 2005 04:18, Mike Noble wrote: fire-eyes wrote: | I'd set up a cronjob for ntpdate, every 49 minutes or something like | that. I'd strongly suspect your CMOS battery. As for fluxbox's time | showing different, I've no idea what that's all about. Don't really know much about flux, but does it have a timezone setting which is probably set to the wrong time zone. As for the time being off by by an hour after 30 minutes, really does sound like a MB battery issue. I would start by replacing the battery in the MB. I don't think this is good advice. Unless you manually read the hardware clock and write to the system clock using hwclock, the system doesn't touch the hardware clock but once during bootup. I suspect messed up timezone settings. Could it be that the system and users are on different timezones? Do a date as root and as one or two different users and watch not only the time itself but also what it says about timezones. [EMAIL PROTECTED] ~ $ date Fri Jan 21 16:43:56 EST 2005 [EMAIL PROTECTED] ~ $ su Password: laptux nick # date Fri Jan 21 16:44:01 EST 2005 they are both in sync together, just both out of sync with the real time, my flux clock says its 9:44, don't forget that the user variable TZ affects the time, so if flux is setting that it will afect the output echo $TZ [EMAIL PROTECTED] mediatemp $ date Sat Jan 22 17:12:17 NZDT 2005 [EMAIL PROTECTED] mediatemp $ TZ=UTC date Sat Jan 22 04:12:25 UTC 2005 [EMAIL PROTECTED] mediatemp $ TZ=EST date Fri Jan 21 23:12:33 EST 2005 so chect $TZ in flux :-) (or in the environment the flux clock runs in, you can find it in the /proc tree i believe) my localtime is linked to: localtime - /usr/share/zoneinfo/US/Eastern, and i doubt its a battery issue, cause i have 4 gentoo boxes going and they all have different times, none correct, this is the only one i have messed with ntp on, i want to make sure i can get it working before i do it on the other machines. what servers are people using in their ntpd.conf? i have: server pool.ntp.org is there an EST server i should be using? what other settings should i have in that file? i have: driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 thanks for the help Uwe -- Alternative phrasing of the First Law of Thermodynamics: If you eat it, and you don't burn it off, you'll sit on it. http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list -- Nick Rout [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Fri, 2005-01-21 at 01:57 +, Nick Smith wrote: has anyone made a decent how-to to keep the time straight in gentoo? i just installed ntp, ran it, and my EST time was right on track, 30 mins later, its almost an hour offand on top of that, my clock in flux says 1:56am and the date command states its 9:54pm, this is one thing ive never been able to do, and that is keep good time in gentoo... I'd set up a cronjob for ntpdate, every 49 minutes or something like that. I'd strongly suspect your CMOS battery. As for fluxbox's time showing different, I've no idea what that's all about. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 fire-eyes wrote: | | I'd set up a cronjob for ntpdate, every 49 minutes or something like | that. I'd strongly suspect your CMOS battery. As for fluxbox's time | showing different, I've no idea what that's all about. | Don't really know much about flux, but does it have a timezone setting which is probably set to the wrong time zone. As for the time being off by by an hour after 30 minutes, really does sound like a MB battery issue. I would start by replacing the battery in the MB. Make sure that CLOCK=local is set in /etc/rc.conf and that /etc/localtime is pointing to the correct timezone for your area. If all is set correctly, and time is still drifting in huge amounts, you have a problem with your MB and probably should look a getting another one. Mike -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFB8GZylJFYJP/fwTsRAu31AJ9IRG2i55qqe1O1DaJCR4zfQfN2VACeJs4K BnL8dBM8GQQl+yWChHuhBS0= =Trsy -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
On Thu, 2005-01-20 at 18:18 -0800, Mike Noble wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 fire-eyes wrote: | | I'd set up a cronjob for ntpdate, every 49 minutes or something like | that. I'd strongly suspect your CMOS battery. As for fluxbox's time | showing different, I've no idea what that's all about. | Don't really know much about flux, but does it have a timezone setting which is probably set to the wrong time zone. As for the time being off by by an hour after 30 minutes, really does sound like a MB battery issue. I would start by replacing the battery in the MB. Make sure that CLOCK=local is set in /etc/rc.conf and that /etc/localtime is pointing to the correct timezone for your area. If all is set correctly, and time is still drifting in huge amounts, you have a problem with your MB and probably should look a getting another one. Mike -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFB8GZylJFYJP/fwTsRAu31AJ9IRG2i55qqe1O1DaJCR4zfQfN2VACeJs4K BnL8dBM8GQQl+yWChHuhBS0= =Trsy -END PGP SIGNATURE- i dont have that in my rc.conf file anymore, if i remember correctly it got changed to something in /etc/conf.d with my last emerge world and when you boot it tells you, that you should change to the new way they want to do it. i cant seem to find it now, and also, this is a relatively new laptop, and im not ripping it apart to change the battery if it is messed up, so i have to come up with something else to fix it. my time never varied at all with other distro's its odd that gentoo has a problem with it. thanks -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
If you have a laptop and a battery status applet running (or something thats reading /proc) try removing it and monitoring. I have a similar problem, but it comes and goes after being totally stable for many months. From another email I read, it might be the choice of timing source introduced in a recent kernel (gentoo-dev-sources) that may have a bearing on it. Its sometimes so bad that ntpd cant track the jitter! This morning I wrote /etc/adjtimeex and the ntpd drift file to zero before restarting ntpd and its stayed stable so far. BillK On Fri, 2005-01-21 at 01:57 +, Nick Smith wrote: has anyone made a decent how-to to keep the time straight in gentoo? i just installed ntp, ran it, and my EST time was right on track, 30 mins later, its almost an hour offand on top of that, my clock in flux says 1:56am and the date command states its 9:54pm, this is one thing ive never been able to do, and that is keep good time in gentoo... -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] whos got the time?
Nick Smith wrote: i dont have that in my rc.conf file anymore, if i remember correctly it got changed to something in /etc/conf.d with my last emerge world and when you boot it tells you, that you should change to the new way they want to do it. i cant seem to find it now, and also, this is a relatively new laptop, and im not ripping it apart to change the battery if it is messed up, so i have to come up with something else to fix it. my time never varied at all with other distro's its odd that gentoo has a problem with it. it's in /etc/conf.d/clock, set CLOCK=local, this is for baselayout = 1.11, for baselayout = 1.9, the CLOCK setting is in /etc/rc.conf. --mel mel ([EMAIL PROTECTED]) http://mel.icious.net/blog http://conference.hackinthebox.org -- gentoo-user@gentoo.org mailing list