Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Gelöst]Datum und Uhrzeit automatisch einstellen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Hanisch
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 186

PostPosted: Wed Jan 23, 2013 1:04 pm    Post subject: [Gelöst]Datum und Uhrzeit automatisch einstellen Reply with quote

Hallo,

bei mir ist die Uhrzeit immer um eine Stunde zurückgestellt, obwohl ich als Zeitzone 'Europe/Berlin' eingestellt habe.
In den Systemeinstellungen -> Datum und Uhrzeit automatisch einstellen ist alles ausgegraut.

Was muß ich installieren, damit ich die Uhrzeit automatisch bekommen kann?

Ich glaube, ich hab's gefunden.
Code:
emerge -av ntp


Nun habe ich den Zeitserver auf europe.pool.ntp.org eingestellt und die Uhrzeit ist wieder um eine Stunde zurück.
Ansonsten ist alles ausgegraut.
Wie kriegt man nun die richtige Uhrzeit für die Zeitzone Europe/Berlin?

Gruß
Ch. Hanisch


Last edited by Hanisch on Sat Jan 26, 2013 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Fri Jan 25, 2013 7:29 pm    Post subject: Reply with quote

Mach mal als root ein

Code:
# cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime


Sebastian
Back to top
View user's profile Send private message
Hanisch
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 186

PostPosted: Fri Jan 25, 2013 8:00 pm    Post subject: Reply with quote

Hollowman wrote:
Mach mal als root ein

Code:
# cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime


Das habe ich schon mehrfach gemacht und nach erneutem Booten ist die Uhrzeit wieder um eine Stunde zurückgestellt.

Erst nachdem ich 'Datum und Zeit einstellen' -> Haken bei 'Datum und Uhrzeit automatisch einstellen' raus und wieder rein -> Anwenden gemacht habe stimmt die Zeit.
Zeitserver: europe.pool.ntp.org
Es wird ausgeschrieben:
UTC 12:10
Berlin 13:10

Gruß
Ch. Hanisch
Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Sat Jan 26, 2013 2:27 pm    Post subject: Reply with quote

Hi

Ist das ein DualBoot Rechner mit Windows?

Wie sieht die Datei /etc/conf.d/hwclock aus?

Was gibt ein
Code:
# hwclock -r && date

als root aus?

Sebastian
Back to top
View user's profile Send private message
Hanisch
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 186

PostPosted: Sat Jan 26, 2013 4:06 pm    Post subject: Reply with quote

Hollowman wrote:
Hi

Ist das ein DualBoot Rechner mit Windows?

Nein, Gentoo in einer VirtualBox.

Quote:
Wie sieht die Datei /etc/conf.d/hwclock aus?

Code:
# Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time).  If that 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"
#clock="local"

# If you want the hwclock script to set the system time (software clock)
# to match the current hardware clock during bootup, leave this
# commented out.
# However, you can set this to "NO" ifyou are running a modern kernel
# with CONFIG_RTC_HCTOSYS set to y and your hardware clock set to UTC.
#clock_hctosys="YES"

# If you do not want to set the hardware clock to the current system
# time (software clock) during shutdown, set this to no.
#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=""
TIMEZONE="Europe/Berlin"


Quote:
Was gibt ein
Code:
# hwclock -r && date

als root aus?

Code:
gentoo_VM ~ # hwclock -r && date
Sa 26 Jan 2013 16:58:35 CET  -0.523762 Sekunden
Sa 26. Jan 16:58:35 CET 2013

Das stimmt so.
Ich habe inzwischen gemacht gemäß http://loescher.gmxhome.de/gentoo.html
Zeitzone:
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
Einträge in /etc/rc.conf:
CLOCK="UTC"
KEYMAP="de-latin1-nodeadkeys"
Jetzt funktioniert es wohl.

Gruß
Ch. Hanisch
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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