PDA

View Full Version : Setting the clock



krishna.murphy
07-25-2010, 02:59 PM
I received the following as a Private Message, and it seems like a useful general question for the forum. It's posted here without attribution, as I don't have the sender's permission.

I think i accidentally set the clock incorrectly... now i don't know how to change it back >.<
It's easily done, with root permissions. First set the System Time (from the lxterm):
sudo time-adminYou'll probably want to set the TimeZone as well as the time where you live. The sudo means that the system admin ("root") is authorizing this, rather than a less-privileged user ("knoppix"). Second, set the Hardware Clock to the System Clock time:
sudo hwclock -w
or
sudo hwclock --systohcThis will cause the system to keep the clock setting from the current session in future "boots."

Cheers!
Krishna :mrgreen:

kcah
07-25-2010, 08:12 PM
Thanks
I will try this right away

kcah
07-25-2010, 09:03 PM
hmm... it says... time-admin: command not found... hwclock works... tho... still trying to set to the correct time zone...

kcah
07-26-2010, 12:23 AM
$ ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

this worked !!!! haha... didn't think of using a command line to fix it... thought there would be some kind of UI for that >.<

kl522
07-26-2010, 05:53 AM
private messages don't reach me as I don't read them. :)