Xen and ntpdate

2009-02-16 by xpheas
If ntpdate does not work on your virtual Linux box try this:

echo 1 > /proc/sys/xen/independent_wallclock

ntpdate should work fine now:
BASH-Code:
1
ntpdate ntp.ubuntu.com


After a reboot you have to do this again, or put the stuff into the local boot scripts "/etc/rc.local"
(before exit 0).
BASH-Code:
1
2
echo 1 > /proc/sys/xen/independent_wallclock
ntpdate ntp.ubuntu.com > /dev/null

  » comments (0)

Celebrate UNIX timestamp 1234567890

2009-02-13 by xpheas
How cool is that?

date -d @1234567890
Sat Feb 14 00:31:30 CET 2009

  » comments (1)