Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up date after installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wisemonkey
n00b
n00b


Joined: 14 Mar 2013
Posts: 45

PostPosted: Wed Apr 03, 2013 2:59 pm    Post subject: Setting up date after installation Reply with quote

Hi,
How do I set / change date after installation?
Currently I can issue
Code:
date <value>
everytime I login.
I've "UTC" set in hwclock.

Thanks
Back to top
View user's profile Send private message
gsoe
Apprentice
Apprentice


Joined: 10 Dec 2006
Posts: 284
Location: Denmark

PostPosted: Wed Apr 03, 2013 3:49 pm    Post subject: Reply with quote

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
Code:
/etc/ntp.conf
for further info.

Greetings gsoe
Back to top
View user's profile Send private message
wisemonkey
n00b
n00b


Joined: 14 Mar 2013
Posts: 45

PostPosted: Sat Apr 06, 2013 2:02 am    Post subject: Reply with quote

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
Code:
/etc/ntp.conf
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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