public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] time issue
@ 2011-05-30  8:15 András Csányi
  2011-05-30  8:49 ` Pandu Poluan
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: András Csányi @ 2011-05-30  8:15 UTC (permalink / raw
  To: gentoo-user

Hi All,

I have a little problem regarding time.  After every boot I have to
setup my clock because about my machine the current time is +2 hour
more. To be honest, this is a little bit annoying.
What I did:

- According to install guide I have copied the
/usr/share/zoneinfo/Europe/Budapest to /etc/localtime
- According to localization guide [1] I have to set up the current
timezone in the /etc/conf.d/clock file but this file is missing. I
have checked it the original stage-3 pack from Hungarian mirror and I
couldn't find there as well. I think this file is removed.

So my question is that, what should I do to have the current time
automatically (I'm in Hungary/Budapest)? Should I make a new clock
file?

[1] - http://www.gentoo.org/doc/en/guide-localization.xml

Thanks for any help in advance!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:15 [gentoo-user] time issue András Csányi
@ 2011-05-30  8:49 ` Pandu Poluan
  2011-05-30  8:57 ` Florian Philipp
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Pandu Poluan @ 2011-05-30  8:49 UTC (permalink / raw
  To: gentoo-user

IIRC, starting from baselayout-2 the timezone is in /etc/timezone

Just one line: Region/City

Rgds,


On 2011-05-30, András Csányi <sayusi.ando@gmail.com> wrote:
> Hi All,
>
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
>
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
>
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
>
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
>
> Thanks for any help in advance!
>
> András
>
> --
> - -
> --  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> --  ""Trust in God and keep your gunpowder dry!" - Cromwell
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:15 [gentoo-user] time issue András Csányi
  2011-05-30  8:49 ` Pandu Poluan
@ 2011-05-30  8:57 ` Florian Philipp
  2011-05-30  9:28   ` Henry Gebhardt
  2011-05-30 11:00   ` Neil Bothwick
  2011-05-30  9:02 ` Henry Gebhardt
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 9+ messages in thread
From: Florian Philipp @ 2011-05-30  8:57 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

Am 30.05.2011 10:15, schrieb András Csányi:
> Hi All,
> 
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
> 
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> Thanks for any help in advance!
> 
> András
> 

First question: Are you dual-booting some other operating system?
Windows sets the hardware clock to local time, Linux expects it to be
UTC, by default. You can change this setting in /etc/conf.d/hwclock

In this file, you can also specify to set the hardware clock to whatever
the software clock tells. That might help you to restore the correct
time at boot.

The localization guide seems to be in a poor state. Copying the zoneinfo
file from /usr/share... to /etc/localtime is not the best way to do it
because then you miss updates. It is better to create a symlink between
the two. Also, instead of setting the timezone in /etc/conf.d/clock, you
do it in /etc/timezone nowadays (change introduced in baselayout-2 if
I'm not mistaken).

`echo Hungary/Budapest > /etc/timezone`
will do the trick.

Hope this helps,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:15 [gentoo-user] time issue András Csányi
  2011-05-30  8:49 ` Pandu Poluan
  2011-05-30  8:57 ` Florian Philipp
@ 2011-05-30  9:02 ` Henry Gebhardt
  2011-05-30  9:10   ` Florian Philipp
  2011-05-30  9:11 ` Mick
  2011-05-31 16:16 ` [gentoo-user] " András Csányi
  4 siblings, 1 reply; 9+ messages in thread
From: Henry Gebhardt @ 2011-05-30  9:02 UTC (permalink / raw
  To: gentoo-user

On Mon, May 30, 2011 at 10:15:59AM +0200, András Csányi wrote:
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?

You should probably customize /etc/conf.d/hwclock, search for "Clock" in
http://www.gentoo.org/doc/en/openrc-migration.xml.

> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml

That looks like a bug in the documentation.


H



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  9:02 ` Henry Gebhardt
@ 2011-05-30  9:10   ` Florian Philipp
  0 siblings, 0 replies; 9+ messages in thread
From: Florian Philipp @ 2011-05-30  9:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

Am 30.05.2011 11:02, schrieb Henry Gebhardt:
> On Mon, May 30, 2011 at 10:15:59AM +0200, András Csányi wrote:
>>
>> So my question is that, what should I do to have the current time
>> automatically (I'm in Hungary/Budapest)? Should I make a new clock
>> file?
> 
> You should probably customize /etc/conf.d/hwclock, search for "Clock" in
> http://www.gentoo.org/doc/en/openrc-migration.xml.
> 
>>
>> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> That looks like a bug in the documentation.
> 
> 
> H
> 

I've just reported it in the tracker bug for documentation changes due
to the OpenRC migration.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:15 [gentoo-user] time issue András Csányi
                   ` (2 preceding siblings ...)
  2011-05-30  9:02 ` Henry Gebhardt
@ 2011-05-30  9:11 ` Mick
  2011-05-31 16:16 ` [gentoo-user] " András Csányi
  4 siblings, 0 replies; 9+ messages in thread
From: Mick @ 2011-05-30  9:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1425 bytes --]

On Monday 30 May 2011 09:15:59 András Csányi wrote:
> Hi All,
> 
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
> 
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> Thanks for any help in advance!
> 
> András

Assuming that you have moved to openrc and running Linux not FreeBSD, you 
should have a file /etc/conf.d/hwclock.  Therefore you would not need to 
create the /etc/conf.d/clock file:

http://www.gentoo.org/doc/en/openrc-migration.xml

Read the section under Clock, which says that you should set up your timezone 
in /etc/timezone.  If it hasn't been created in your system already, then add 
it yourself with this line in it:

Europe/Budapest

HTH.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:57 ` Florian Philipp
@ 2011-05-30  9:28   ` Henry Gebhardt
  2011-05-30 11:00   ` Neil Bothwick
  1 sibling, 0 replies; 9+ messages in thread
From: Henry Gebhardt @ 2011-05-30  9:28 UTC (permalink / raw
  To: gentoo-user

On Mon, May 30, 2011 at 10:57:51AM +0200, Florian Philipp wrote:
> Am 30.05.2011 10:15, schrieb András Csányi:
> 
> The localization guide seems to be in a poor state. Copying the zoneinfo
> file from /usr/share... to /etc/localtime is not the best way to do it
> because then you miss updates. It is better to create a symlink between
> the two.

Copying is just fine. The timezone-data ebuild will update
/etc/localtime for you on the next update, and replace the symlink if
you have one there. The reason, IIRC, being that /usr might not yet be
mounted during early boot.


H



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] time issue
  2011-05-30  8:57 ` Florian Philipp
  2011-05-30  9:28   ` Henry Gebhardt
@ 2011-05-30 11:00   ` Neil Bothwick
  1 sibling, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2011-05-30 11:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

On Mon, 30 May 2011 10:57:51 +0200, Florian Philipp wrote:

> The localization guide seems to be in a poor state. Copying the zoneinfo
> file from /usr/share... to /etc/localtime is not the best way to do it
> because then you miss updates. It is better to create a symlink between
> the two.

Which will break if /usr is on a separate filesystem.

> Also, instead of setting the timezone in /etc/conf.d/clock, you
> do it in /etc/timezone nowadays (change introduced in baselayout-2 if
> I'm not mistaken).

Setting it in /etc/timezone also takes care of the updates situation,
because the timezone-data ebuild automatically copies the correct file
to /etc/.


-- 
Neil Bothwick

Linux users do it without paying a Bill

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: time issue
  2011-05-30  8:15 [gentoo-user] time issue András Csányi
                   ` (3 preceding siblings ...)
  2011-05-30  9:11 ` Mick
@ 2011-05-31 16:16 ` András Csányi
  4 siblings, 0 replies; 9+ messages in thread
From: András Csányi @ 2011-05-31 16:16 UTC (permalink / raw
  To: gentoo-user

On 30 May 2011 10:15, András Csányi <sayusi.ando@gmail.com> wrote:
> Hi All,
>
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
>
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
>
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
>
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
>
> Thanks for any help in advance!

Thank you for your help! This problem is resolved.
For the record, I edited the hwclock file, I created the /etc/timezone
file and I symlinked the proper file from zoneinfo directory to
/etc/localtime, and a ntp daemon was installed, as well.

It looks like everything is working fine!

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-05-31 16:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30  8:15 [gentoo-user] time issue András Csányi
2011-05-30  8:49 ` Pandu Poluan
2011-05-30  8:57 ` Florian Philipp
2011-05-30  9:28   ` Henry Gebhardt
2011-05-30 11:00   ` Neil Bothwick
2011-05-30  9:02 ` Henry Gebhardt
2011-05-30  9:10   ` Florian Philipp
2011-05-30  9:11 ` Mick
2011-05-31 16:16 ` [gentoo-user] " András Csányi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox