Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] baselayout 2.x i timezone
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
radek-s
Apprentice
Apprentice


Joined: 25 Mar 2006
Posts: 239

PostPosted: Mon Jan 12, 2009 11:06 am    Post subject: [solved] baselayout 2.x i timezone Reply with quote

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
View user's profile Send private message
c2p
Apprentice
Apprentice


Joined: 26 Mar 2005
Posts: 281
Location: Poland

PostPosted: Mon Jan 12, 2009 11:26 am    Post subject: Reply with quote

http://www.gentoo.org/doc/pl/openrc-migration.xml#doc_chap2_sect6

Czyli /etc/timezone:
Code:
Europe/Warsaw

/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
View user's profile Send private message
gall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2007
Posts: 142
Location: /home/gall

PostPosted: Mon Jan 12, 2009 12:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
radek-s
Apprentice
Apprentice


Joined: 25 Mar 2006
Posts: 239

PostPosted: Tue Jan 13, 2009 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
mziab
l33t
l33t


Joined: 01 Oct 2004
Posts: 644

PostPosted: Tue Jan 13, 2009 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
radek-s
Apprentice
Apprentice


Joined: 25 Mar 2006
Posts: 239

PostPosted: Tue Jan 13, 2009 9:39 pm    Post subject: Reply with quote

dzieki, o to chodzilo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum