View previous topic :: View next topic |
Author |
Message |
wisemonkey n00b
Joined: 14 Mar 2013 Posts: 45
|
Posted: Wed Apr 03, 2013 2:59 pm Post subject: Setting up date after installation |
|
|
Hi,
How do I set / change date after installation?
Currently I can issue everytime I login.
I've "UTC" set in hwclock.
Thanks |
|
Back to top |
|
|
gsoe Apprentice
Joined: 10 Dec 2006 Posts: 289 Location: Denmark
|
Posted: Wed Apr 03, 2013 3:49 pm Post subject: |
|
|
If you emerge net-misc/ntp and add ntp-client to your default runlevel, the system clock will be syncronized with internet servers at every boot: Code: | emerge ntp
rc-update add ntp-client default |
Then you can set Code: | clock_systohc="YES"
| in /etc/conf.d/hwclock to make the system clock update the hardwareclock at shutdown.
Refer to Code: | /etc/conf.d/ntp-client | and for further info.
Greetings gsoe |
|
Back to top |
|
|
wisemonkey n00b
Joined: 14 Mar 2013 Posts: 45
|
Posted: Sat Apr 06, 2013 2:02 am Post subject: |
|
|
gsoe wrote: | If you emerge net-misc/ntp and add ntp-client to your default runlevel, the system clock will be syncronized with internet servers at every boot: Code: | emerge ntp
rc-update add ntp-client default |
Then you can set Code: | clock_systohc="YES"
| in /etc/conf.d/hwclock to make the system clock update the hardwareclock at shutdown.
Refer to Code: | /etc/conf.d/ntp-client | and for further info.
Greetings gsoe |
Thanks that worked,
I read about ntp, however I was not sure if that is the only way or I can do it through the way I setup clock while installing Gentoo |
|
Back to top |
|
|
|