You are not logged in.
Pages: 1
okay, so i thought i was pretty good with linux but this rather embarassingly has me stumped.
i just got arch up an running the way i like but i can't change the time on the clock which is currently displaying 4am despite it being 8pm. the timezone is correct and the hardware clock (looking in BIOS) says it's 8pm so how can i change it in arch?
if you need outputs or file contents just give a shout and i'll supply
Offline
Use date! Run it as root
Example :
date -s 20:00
For more info on the different options of "date"
man date
Last edited by FizDev (2007-11-20 20:57:00)
Offline
thanks
i've never had to set the time by CLI before. its always just worked so i never came across it.
Offline
You can use a ntp server to automatically set the correct time.
Offline
... clock which is currently displaying 4am despite it being 8pm. the timezone is correct and the hardware clock (looking in BIOS) says it's 8pm ...
Your time is probably set to UTC in /etc/rc.conf:
HARDWARECLOCK="UTC"
And your time in BIOS is now probably 4h late. Which is totally ok and in my opinion the preferred way, but some other systems like Windows (if arch is not the only system installed) could show BIOS time as your local time by default and you have to tell such systems you are using UTC time.
As fumbles suggested you can install ntp, it's great, just tell all other systems (if you have more installed) not to change your time for DST changes because NTP does that for you, just add ntpd to your daemons in rc.conf.
Offline
my timezone in rc.conf is set to Europe/London. which atm is exactly the same as UTC. i have added ntp but it didn't do much. i'll get it running sooner or later. still realising how easy ubuntu made everything for me.
my list of things to get working is pretty small now, just ntp, wicd(for roaming WPA and because i'm used to it), compiz-fusion. the only one of those i've done anything on is ntp so it should all be good.
nice to see the community doesn't mind a few nooby questions every now and again. thanks again.
Last edited by insane_alien (2007-11-21 10:16:10)
Offline
i have added ntp but it didn't do much.
That's ok, it is supposed to not do much in a short time because a sudden change in system time could disrupt some programs, e.g. a screensaver could lock immediately because it thinks so much time has passed without user activity. You can run:
ntpdate pool.ntp.org
to change time immediatelly. If it complains about NTP socket in use, then stop ntpd daemon and retry.
Offline
See wiki. The proper way is to add both ntpdate and ntpd to DAEMONS in /etc/rc.conf, in that order.
Offline
thanks guys, thats ntp working perfectly now.
Offline
Pages: 1