View previous topic :: View next topic |
Author |
Message |
radek-s Apprentice
Joined: 25 Mar 2006 Posts: 239
|
Posted: Mon Jan 12, 2009 11:06 am Post subject: [solved] baselayout 2.x i timezone |
|
|
Witam!
Aby poprawnie skonfigurowac czas uzywajac baselayout 2.x wymane jest podania strefy w pliku /etc/timezone?
Czy wystarcy link do strefy w /etc/localtime?
i ustawiony clock=local w /etc/hwclock?
pozdrawiam i dziekuje za podpowiedz!
Last edited by radek-s on Tue Jan 13, 2009 9:40 pm; edited 1 time in total |
|
Back to top |
|
|
c2p Apprentice
Joined: 26 Mar 2005 Posts: 281 Location: Poland
|
Posted: Mon Jan 12, 2009 11:26 am Post subject: |
|
|
http://www.gentoo.org/doc/pl/openrc-migration.xml#doc_chap2_sect6
Czyli /etc/timezone:
/etc/conf.d/hwclock
Code: | # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
clock="UTC"
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "YES" here.
# You normally don't need to do this if you run a ntp daemon.
clock_systohc="YES"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here. Alpha users may wish to use --arc or --srm here.
clock_args="" |
I to wszystko. Musi działać. _________________ LRU #389150, Kontakt |
|
Back to top |
|
|
gall Tux's lil' helper
Joined: 13 Nov 2007 Posts: 142 Location: /home/gall
|
Posted: Mon Jan 12, 2009 12:18 pm Post subject: |
|
|
Polecam rozwiązanie
Code: | [I] net-misc/ntp
Available versions: (~)4.2.2_p2[2] (~)4.2.2_p3[2] 4.2.4_p5 (~)4.2.4_p6 {caps debug ipv6 logrotate openntpd parse-clocks selinux ssl zeroconf}
Installed versions: 4.2.4_p6(22:15:10 10.01.2009)(ipv6 parse-clocks ssl -caps -debug -openntpd -selinux -zeroconf)
Homepage: http://www.ntp.org/
Description: Network Time Protocol suite/programs |
Na wszystkich kompach mam i sobie chwalę. _________________ #!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep |
|
Back to top |
|
|
radek-s Apprentice
Joined: 25 Mar 2006 Posts: 239
|
Posted: Tue Jan 13, 2009 8:49 am Post subject: |
|
|
c2p: tak wszystko dziala, ale musze zrobic jeszcze ln -sfn /usr/share/zone/Europe/Warsaw /etc/localtime:P
wtedy dziala, tez tego sie krzaczy ze nie mam ustawionej strefy czasowej:) |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Tue Jan 13, 2009 1:36 pm Post subject: |
|
|
Z tego, co pamiętam, zaleca się, żeby /etc/localtime nie było symlinkiem. Zamiast tego powinno się wpisać nazwę strefy czasowej do /etc/timezone, a pakiet timezone-data zrobi resztę. Spróbuj usunąć /etc/localtime i przeinstalować timezone-data. _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
radek-s Apprentice
Joined: 25 Mar 2006 Posts: 239
|
Posted: Tue Jan 13, 2009 9:39 pm Post subject: |
|
|
dzieki, o to chodzilo! |
|
Back to top |
|
|
|