Tuesday, December 18, 2012

How to set the time on your RaspberryPi from SSH

So, started off, my raspberry in the mail. Fresh out the box, loaded RaspBMC and it worked so smooth!

In the raspBMC settings dialog there is no way for you to set the system time. Just a way to change the timezone.




So after a bit of googling i found out i could do it by SSH.
Take it, im a real noob when it comes to linux. Im used to the windows world, where settings are usually placed in comfy menues or handeled by third party apps, not text strings in the command prompt.

Anyways:
sudo date --set 'Tue Dec 18 19:50:00 UTC 2012'