I was a bit puzzled by the fact I could not easily change the date/time in an instance of a virtualbox as used by the High Performance Scientific Computing Coursera course run by Dr. Randall J. LeVeque via Coursera.
I tried using the simple date
command but I kept on being told that
date: cannot set date: Operation not permitted
I tried updating the Ubuntu distro, but no luck. Eventually I found a solution using a symlink to localtime:
$ cd /etc
$ mv localtime localtime_original
$ ln -s /usr/share/zoneinfo/Europe/London ./localtime
You will have to use the correct zone for your location. Et voilà!
In Ubuntu you pretty much have to sudo up to do any settings changes. So sudo date {params} will do.
I did think so too, but the good old trick did not work with that particular box… hence the post. Thanks for the comment anyway!
Comments are closed.