Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Neil Bothwick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 17 Jan 2012 14:13:30 +0100, Hinnerk van Bruinehsen wrote:

> > The localtime files change all the time, look at how often
> > timezone-data is updated. Everyone some bright spark comes up with
> > another clever way of squeezing 25 hours into a day, his country's
> > DST rules change. That's why openrc has a setting to manage this
> > automatically for you.

>  I know that it happens, I just fail to understand why... ;)

It's a government/civil service thing, you're not supposed to understand.
Just be a good boy and vote for them next time :-/


- -- 
Neil Bothwick

Windows - software package to turn a 486 into an Etch-A-Sketch!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)

iEYEARECAAYFAk8Veq4ACgkQum4al0N1GQMi0wCfRdHSd3KKTfmbzYHEtq4icEVg
4HgAn0rIa2VpAvt829RiBdtIO/jib7BN
=cloF
-END PGP SIGNATURE-


Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Hinnerk van Bruinehsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17.01.2012 14:06, Neil Bothwick wrote:
> On Tue, 17 Jan 2012 13:41:48 +0100, Hinnerk van Bruinehsen wrote:
> 
 Symlinking is not recommended as it breaks when /usr is on a 
 separate filesystem. The file should be copied instead.
 
>>> 
>>> Are you sure you're not confusing that with hardlinking?
>>> 
>>> Because AFAIK symlinking is the only linking that can cross 
>>> filesystem borders.
> 
> It can... if the filesystem is mounted at the time. AFAIR this
> causes problem setting the timezone at boot time.
> 
>> Symlinking works (over filesystem borders, too, Pandu is right)
>> and it even "autoupdates" localtime when (why ever) something in
>> zoneinfo changes...
> 
> The localtime files change all the time, look at how often
> timezone-data is updated. Everyone some bright spark comes up with
> another clever way of squeezing 25 hours into a day, his country's
> DST rules change. That's why openrc has a setting to manage this
> automatically for you.
> 
> 
 I know that it happens, I just fail to understand why... ;)
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPFXP6AAoJEJwwOFaNFkYc3XQIAMnFUGScoaV9hg5mCcMwthmj
i2k3iWxPaYNCwfoC64TlW6vijf/SpRwdLZULRq0N1Yc6t8sAs8cTY8u0CzZjVMPG
WL9mK2lYOyzhE41kjBjxvjfV3Tee6mgeBHXfeFqIglR9/jfEBFp3ZFF1kX++R2K3
fXFuOffEGczcXHyv6TCNYYcLU0VYqRYvrJ0NGFQHRjpXcLJffFO9FTpdeg0VJHar
8eSpFMKjy0505iggFVvdB2DMx/SdrLJ4UWlBI/O/Lxztk8VUHnZYzPhMn1W8lz9p
fyGf8BTGJieQvijN4njORZ4GGEEHOX3myFPbS1nNoRWXbqzjk44Mog3GDGu9WR4=
=V+Pc
-END PGP SIGNATURE-



Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Neil Bothwick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 17 Jan 2012 13:41:48 +0100, Hinnerk van Bruinehsen wrote:

> >> Symlinking is not recommended as it breaks when /usr is on a
> >> separate filesystem. The file should be copied instead.
> >>   
> > 
> > Are you sure you're not confusing that with hardlinking?
> > 
> > Because AFAIK symlinking is the only linking that can cross
> > filesystem borders.

It can... if the filesystem is mounted at the time. AFAIR this causes
problem setting the timezone at boot time.

>  Symlinking works (over filesystem borders, too, Pandu is right) and
> it even "autoupdates" localtime when (why ever) something in zoneinfo
> changes...

The localtime files change all the time, look at how often timezone-data
is updated. Everyone some bright spark comes up with another clever way
of squeezing 25 hours into a day, his country's DST rules change. That's
why openrc has a setting to manage this automatically for you.


- -- 
Neil Bothwick

Make like a tree and leave.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)

iEYEARECAAYFAk8VcnMACgkQum4al0N1GQPbRQCfSP/xhZyb5pvn9RY4B/OfcsHT
B5UAn1QvHsp22qTsEaOGZ43HMQDvWhsm
=p+9j
-END PGP SIGNATURE-


Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Pandu Poluan
On Tue, Jan 17, 2012 at 19:41, Hinnerk van Bruinehsen
 wrote:
>
> On 17.01.2012 13:29, Pandu Poluan wrote:
>> On Jan 17, 2012 7:20 PM, "Neil Bothwick" 
>> wrote:
>>>
>>> On Tue, 17 Jan 2012 08:13:53 +0100, Hinnerk van Bruinehsen
>>> wrote:
>>>
 Should be done with:

 ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
>>>
>>> Symlinking is not recommended as it breaks when /usr is on a
>>> separate filesystem. The file should be copied instead.
>>>
>>
>> Are you sure you're not confusing that with hardlinking?
>>
>> Because AFAIK symlinking is the only linking that can cross
>> filesystem borders.
>>
>  Symlinking works (over filesystem borders, too, Pandu is right) and
> it even "autoupdates" localtime when (why ever) something in zoneinfo
> changes...

As to the "why" ...

Just two sample cases: In 2010 (or 2009, I forgot) the USA Federal
Govt "redefines" the changeover dates for DST. Also, at the very end
of 2011, Samoa changed their timezone from UTC-11 to UTC+13 (+14 in
summer) [1][2]

[1] 
http://en.wikipedia.org/wiki/International_Date_Line#Samoan_Islands_and_Tokelau
[2] http://www.webcitation.org/64jx2ob6X

Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Hinnerk van Bruinehsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17.01.2012 13:29, Pandu Poluan wrote:
> On Jan 17, 2012 7:20 PM, "Neil Bothwick" 
> wrote:
>> 
>> On Tue, 17 Jan 2012 08:13:53 +0100, Hinnerk van Bruinehsen
>> wrote:
>> 
>>> Should be done with:
>>> 
>>> ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
>> 
>> Symlinking is not recommended as it breaks when /usr is on a
>> separate filesystem. The file should be copied instead.
>> 
> 
> Are you sure you're not confusing that with hardlinking?
> 
> Because AFAIK symlinking is the only linking that can cross
> filesystem borders.
> 
> CMIIW
> 
> Rgds,
> 
 Symlinking works (over filesystem borders, too, Pandu is right) and
it even "autoupdates" localtime when (why ever) something in zoneinfo
changes...
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPFWyMAAoJEJwwOFaNFkYcVxEH/jErMjFwb3mRBUvcty0WvOxH
GQXXeTKC03WV4UdGTvNIjWO7Ssp45WQQU1TTvnTPMxn93eEwV/m2Dzvnl9+DhHTv
96eylcxKA5QNO5Sn0Ol6p0NJcG62nGbzJ/5MQzNrhBTvZcu2jJ9g77Jpyzgr0hhx
nb/cEI0qwe+iyoxd0Aa34MAjJNjG7rUnFb9zw+8iFol4nt/1NT8ldQtYKZkaHlfZ
zHfSkSWDx9SCDqwVrcaxMGjZVK0Lb91cfPp1HvJ350L4gyCffskYE/gtKh3m0IXV
DS4JK2kVp7fDJjeWfBiVWUpDuNAs7zYiI0rTs6z6tvYyxrufUmtWux1xI2WOcGg=
=HBnE
-END PGP SIGNATURE-



Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Pandu Poluan
On Jan 17, 2012 7:20 PM, "Neil Bothwick"  wrote:
>
> On Tue, 17 Jan 2012 08:13:53 +0100, Hinnerk van Bruinehsen wrote:
>
> > Should be done with:
> >
> > ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
>
> Symlinking is not recommended as it breaks when /usr is on a separate
> filesystem. The file should be copied instead.
>

Are you sure you're not confusing that with hardlinking?

Because AFAIK symlinking is the only linking that can cross filesystem
borders.

CMIIW

Rgds,


Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Neil Bothwick
On Tue, 17 Jan 2012 08:13:53 +0100, Hinnerk van Bruinehsen wrote:

> Should be done with:
> 
> ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

Symlinking is not recommended as it breaks when /usr is on a separate
filesystem. The file should be copied instead.

The correct Gentoo/OpenRC way to do this is 

echo Europe/Berlin >|/etc/timezone

That will copy the correct file to /etc each time you update the
timezone-data package.


-- 
Neil Bothwick

When the going gets tough, upgrade.


signature.asc
Description: PGP signature


Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-17 Thread Alan Mackenzie
On Tue, Jan 17, 2012 at 08:13:53AM +0100, Hinnerk van Bruinehsen wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1

> On 17.01.2012 03:56, Alan Mackenzie wrote:
> > Hi, everybody.

> > I've finally become zic and tired of messages like

> > Tue Jan 17 02:48:28 Local time zone must be set--see zic manual
> > page 2012 on tty14

> > .  Trying to read man zic, my eyes just glaze over.  I "just" want
> > my time to be GMT (or UTC or UCT, or whatever it's called these
> > days). Surely I don't have to go through the palaver described in
> > the zic manual page.

> > Help, please!


> Should be done with:

> ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

Thanks, that did it.

> (Berlin is my guess since you hail from Nuremberg, otherwise look in
> /usr/share/zoneinfo if something fits better)

Actually I set it to UTC.  Even though I live in De, I leave my watch set
to UTC and make the required conversion every time I look at it.  It's
not hard, begin only one or two hours different, depending on the season.

> Kind regards,

> Hinnerk

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-16 Thread Hinnerk van Bruinehsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17.01.2012 03:56, Alan Mackenzie wrote:
> Hi, everybody.
> 
> I've finally become zic and tired of messages like
> 
> Tue Jan 17 02:48:28 Local time zone must be set--see zic manual
> page 2012 on tty14
> 
> .  Trying to read man zic, my eyes just glaze over.  I "just" want
> my time to be GMT (or UTC or UCT, or whatever it's called these
> days). Surely I don't have to go through the palaver described in
> the zic manual page.
> 
> Help, please!
> 

Should be done with:

ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

(Berlin is my guess since you hail from Nuremberg, otherwise look in
/usr/share/zoneinfo if something fits better)


Kind regards,

Hinnerk
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPFR+xAAoJEJwwOFaNFkYcbPsH/iLJUSJjgWaAfMQzp1sXyI/X
uCVHqToWpGSQxMyVYEL6C9/uBrBmBa0uCB+XWbuCM/6vxdifvwoKfQ2nneKQPx78
uEVUqBb0DZY0jEfJf7HMdvnGbZGLkNBnpvt237UE6615qp75mzn+Y5qMvQ17gVBo
7Tcq8SWIwQbUcxw3ksGrY9qOmf7TG7+QMexr88boR1WwXvmPkmNM/Mia/AzoJZKT
sd5PCgC7H9K4PciPazFxQrLnlq4tUdfXLBj6Fb7vOJNHgGw5aS2XdCxm0d6rGPYi
VT1u0yrkbTNm/RHZVW8wWEYexS/NYoRQMdyd9ze02A1GaopmejkN2QSJCk21Lt4=
=l3JX
-END PGP SIGNATURE-



Re: [gentoo-user] ZIC, aka setting the time zone.

2012-01-16 Thread Chris Walters
On 1/16/2012 09:56 PM, Alan Mackenzie wrote:
> Hi, everybody.
>
> I've finally become zic and tired of messages like
>
> Tue Jan 17 02:48:28 Local time zone must be set--see zic manual page 2012 
> on tty14
>
> .  Trying to read man zic, my eyes just glaze over.  I "just" want my
> time to be GMT (or UTC or UCT, or whatever it's called these days).
> Surely I don't have to go through the palaver described in the zic
> manual page.
>
> Help, please!

I'm not sure what arch you're using, but the Installation manual has a part of
the answer for you.
I tend to avoid zic like I would avoid the plague, and use the Gentoo method of
changing settings.

For x86/amd64 systems (7.1.7):

  # ls /usr/share/zoneinfo (Suppose you want to use GMT) 
  # cp /usr/share/zoneinfo/GMT /etc/localtime

You also need to edit /etc/conf.d/hwclock (if you're using baselayout-2)
Specifically, you want to change the "clock=" line to the timezone you are
going to be using. 
There also used to be an /etc/timezone file that would have to be edited, as
well.  I think they removed
that file, but it has been a while since I changed my timezone.

After doing all this, you'd have to "source /etc/profile" in your active
shells, or just restart.  You may get some
errors about file times - especially when trying to emerge packages, and if the
dates would be in the future.
Not a problem if they're in the past.

Chris



signature.asc
Description: OpenPGP digital signature