I have Salix 13.37 XFCE installed as a guest in VirtualBox. Everything works fine but, when I start the guest it takes what seems to be a long time to "set the time from hardware clock(localtime), (10-20secs). It also happens when it tries to save the system time on shutdown. Any thoughts on this?
thanks ahead of time.
(Solved) Setting system time from hardware clock
(Solved) Setting system time from hardware clock
Last edited by loukingjr on 18. Mar 2012, 23:30, edited 1 time in total.
there are three kinds of people in the world. those that can count, and those that can't.
iMac 2.8Ghz i7
iMac 2.8Ghz i7
Re: Setting system time from hardware clock(localtime)
Most probably an issue with virtualbox itself. What version are you running? See if you there is an option inside the virtualbox settings about setting the clock to utc or not.
Re: Setting system time from hardware clock(localtime)
actually VB defaults to UTC. I may have set Salix to local when I installed it. Is there a way to change it in Salix itself?gapan wrote:Most probably an issue with virtualbox itself. What version are you running? See if you there is an option inside the virtualbox settings about setting the clock to utc or not.
there are three kinds of people in the world. those that can count, and those that can't.
iMac 2.8Ghz i7
iMac 2.8Ghz i7
Re: Setting system time from hardware clock(localtime)
thanks much. It wasn't set to UTC and now that it is it's much better.
there are three kinds of people in the world. those that can count, and those that can't.
iMac 2.8Ghz i7
iMac 2.8Ghz i7
Re: (Solved) Setting system time from hardware clock
I know this is an old thread. I had similar problem so before posting I searched and found this. I could correct my problem with this post. But I want to know what is the command line equivalent of this (checking out UTC option in System menu > system clock) ? In other distributions I can change from UTC to LOCAL in /etc/adjtime. But in Salix, it reverts back to UTC on rebooting.
Last edited by rsal on 22. Jan 2016, 07:25, edited 1 time in total.
Re: (Solved) Setting system time from hardware clock
Code: Select all
sudo clocksetup
Code: Select all
cd /etc
if [[ "$zone" && -r /usr/share/zoneinfo/$zone ]]; then
ln -sf /usr/share/zoneinfo/$zone localtime-copied-from
rm -f localtime
cp localtime-copied-from localtime
fi
Re: (Solved) Setting system time from hardware clock
That is a good utility (also there in Slackware installation if I remember correctly). But why not simplify and just have settings in /etc/adjtime picked up at boot time? Well, every distribution is different and Salix is one of the best distributions.
Re: (Solved) Setting system time from hardware clock
What is the actual command that makes the system know that hardware clock is in UTC (or local) time.
Re: (Solved) Setting system time from hardware clock
Thank you!rsal wrote:That is a good utility
No. That would be timeconfig.rsal wrote:also there in Slackware installation if I remember correctly
That file is not to be edited by hand. hwclock can update it and read from it.rsal wrote:But why not simplify and just have settings in /etc/adjtime picked up at boot time?
You can edit your /etc/hardwareclock and use hwclock to apply any changes if you want to do everything manually, but I don't see a reason to do that.rsal wrote:What is the actual command that makes the system know that hardware clock is in UTC (or local) time.
Code: Select all
man hwclock