jimras Posted July 17, 2005 Report Share Posted July 17, 2005 Whenever I boot into Linux, (Ubuntu 5.04) and then go back into Window$, I noticed that my system clock is ahead by 5 hours. I was wondering if there is some setting that I need to change in Ubuntu so that the clock doesn't change when I log off.This is not a BIG deal, really, but there must be some way to fix this easily.Anybody got any ideas for me??Jim Quote Link to post Share on other sites
hitest Posted July 17, 2005 Report Share Posted July 17, 2005 Whenever I boot into Linux, (Ubuntu 5.04) and then go back into Window$, I noticed that my system clock is ahead by 5 hours. I was wondering if there is some setting that I need to change in Ubuntu so that the clock doesn't change when I log off.This is not a BIG deal, really, but there must be some way to fix this easily.Anybody got any ideas for me??Jim<{POST_SNAPBACK}>I'm not sittting in front of my Linux box,but, it sounds like you've got your time zone set incorrectly in ubuntu. Try going into preferences or admin at the top of the screen and go into date/time settings. Make sure you're set to your time zone to your location.tictoc or shanenin please jump in, you guys run ubuntu.That's weird that your Linux settings are over riding your windows settings. Quote Link to post Share on other sites
jimras Posted July 17, 2005 Author Report Share Posted July 17, 2005 I thought that I did that when I set it up but maybe not.BTW--my timezone is Central (Daylight) timeJim Quote Link to post Share on other sites
shanenin Posted July 17, 2005 Report Share Posted July 17, 2005 you could try to edit this file/etc/default/rcSthere is a line in there that readsUTC=yeschange that to UTC=noif that does not work, I have one other idea you could try. Quote Link to post Share on other sites
Matt Posted July 17, 2005 Report Share Posted July 17, 2005 I dont really know how to fix it, but the problem could lie in when you installed ubuntu. It asks, upon install if your computer's clock is set to greewhich (I think) time, or at least some other time zone. Depending on what you selected, that could be the problem causer.Matt Quote Link to post Share on other sites
shanenin Posted July 17, 2005 Report Share Posted July 17, 2005 I dont really know how to fix it, but the problem could lie in when you installed ubuntu. It asks, upon install if your computer's clock is set to greewhich (I think) time, or at least some other time zone. Depending on what you selected, that could be the problem causer.Matt<{POST_SNAPBACK}>I think you may be correct MistaMatt90. I think the above code I gave hime will change it to local time instead of greenwhich mean time. Quote Link to post Share on other sites
shanenin Posted July 17, 2005 Report Share Posted July 17, 2005 (edited) I deleted my previous post, this is an updated version which should work properlyTo disable your hardware clock being changed at shutdown. You need to edit the file /etc/init.d/hwclock.sh . place the following line of code any where near the beginning after the first line #!/bin/shHWCLOCKACCESS=no Edited July 17, 2005 by shanenin Quote Link to post Share on other sites
jcl Posted July 17, 2005 Report Share Posted July 17, 2005 This is my favorite multiboot issues. Every operating system on Earth with one exception expects the hardware clock to be set to UTC. Guess what the exception is.Anyway, shanenin and MistaMatt90 are right. You have to let Ubuntu know that the clock is on local time. You shouldn't have to disable hwclock, but if that's what it takes....I just got used to the clock being wrong in Windows. Quote Link to post Share on other sites
jimras Posted July 17, 2005 Author Report Share Posted July 17, 2005 Thanks guys. Shanenin's advice worked perfectly!!I appreciate all the help that I get and the quick responses, too.thanks again!!!Jim Quote Link to post Share on other sites
shanenin Posted July 17, 2005 Report Share Posted July 17, 2005 which method did you use, I gave you two different suggestions, just curious? Quote Link to post Share on other sites
jimras Posted July 17, 2005 Author Report Share Posted July 17, 2005 I edited the /etc/init.d/hwclock.sh file and inserted the line HWCLOCKACCESS=noThat did the trick! Quote Link to post Share on other sites
shanenin Posted July 17, 2005 Report Share Posted July 17, 2005 (edited) a month ago(just before my book purchase), I would not have been able to give you that advice. Ever since I bought my book "sams teach yourself shell(bash) programming in 24 hours", my linux skills have gotten much better, because the linux OS heavily uses bash scripts. I WOULD HIGHLY RECOMMEND ANY ONE USING LINUX TO STUDY BASH SCRIPTING. If I could say one skill that has helped me understand and use linux better, it would be knowing basic bash scripting. I stress basic, I am hardly a programmer, but know just the basics.A book is not nessesary, I just like getting away from the computer, a book feels nice. here is a really good online tutorialhttp://www.tldp.org/LDP/abs/html/ Edited July 17, 2005 by shanenin Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.