Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setting the date from internet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Wed Mar 02, 2011 4:24 pm    Post subject: setting the date from internet Reply with quote

Hello list. I am running gentoo on an old powerbook g4. For some reason I can't set the system clock unless I boot into openfirmware. The problem is that this laptop has a dead battery so if for some reason the power goes off, then the system clock gets reset to 1969.

This is happening quite often, so I thought it might be better to have a script checking the date online at boot-time and actualizing it (date -s works fine for me). I know this is more like a workaround than a solution, but is it a good one? if so, any suggestions as to where to get the date from?

Thanks,

R.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Wed Mar 02, 2011 4:32 pm    Post subject: Reply with quote

How about "rc-update add ntp-client default"? :)
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Mar 02, 2011 4:35 pm    Post subject: Reply with quote

You should be able to replace the CMOS battery cheaply and easily. That would be the best solution.

What DE or WM are you using? The bigger DE's have built-in interfaces for you to tell your system to fetch time from an internet time server.

Regardless of your DE or condition of your CMOS battery, you can read this and similar pages by seaching for "ntpd gentoo". That should tell you what you need to know. 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Wed Mar 02, 2011 4:50 pm    Post subject: Reply with quote

Thanks for the quick reply. I'll look into getting the info from an NTP server. A cmos battery would be an option, but I'm lazy enough to open the laptop and look for a replacement here in Brazil. I'm not running any DE nor WM in it since I'm using it mainly as a DLNA server.

R.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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