Hi, I have a Centos 5.5 server with no GUI installed. I have several times changed the timezone by copying the correct file to /etc/localtime, however something keeps changing it back. I'm not sure if this is a yum update or what. Without installing the graphical tools, how can I update the timezone in such a way that the /etc/localtime file won't keep getting clobbered. Thank You, Nataraj
I used this fantastic guide last week: http://www.wikihow.com/Change-the-Timezone-in-Linux Hope this helps. Matt On Thu, Jul 8, 2010 at 1:58 AM, Nataraj <incoming-centos at rjl.com> wrote:> Hi, > > I have a Centos 5.5 server with no GUI installed. I have several times > changed the timezone by copying the correct file to /etc/localtime, > however something keeps changing it back. I'm not sure if this is a yum > update or what. Without installing the graphical tools, how can I > update the timezone in such a way that the /etc/localtime file won't > keep getting clobbered. > > Thank You, > Nataraj > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100708/01e4e384/attachment.html>
> I have a Centos 5.5 server with no GUI installed. I have several times > changed the timezone by copying the correct file to /etc/localtime, > however something keeps changing it back. I'm not sure if this is a yum > update or what. Without installing the graphical tools, how can I > update the timezone in such a way that the /etc/localtime file won't > keep getting clobbered./usr/bin/system-config-time (from the system-config-date RPM package) It will work in text mode. (Essentially /etc/sysconfig/clock is the config file that also needs updating) -- rgds Stephen
Natarj, --- On Wed, 7/7/10, Nataraj <incoming-centos at rjl.com> wrote:> From: Nataraj <incoming-centos at rjl.com> > Subject: [CentOS] how to properly change the timezone > To: "CentOS mailing list" <centos at centos.org> > Date: Wednesday, July 7, 2010, 5:58 PM > Hi, > > I have a Centos 5.5 server with no GUI > installed.???I have several times > changed the timezone by copying the correct file to > /etc/localtime, > however something keeps changing it back.? I'm not > sure if this is a yum > update or what.? Without installing the graphical > tools, how can I > update the timezone in such a way that the /etc/localtime > file won't > keep getting clobbered.At the time you did the copy, there likely was an existing symlink from /etc/localtime to another timezone. Then your copy was relegated back to the symlink on reboot? Something like that. Before you do a copy like that, check for a symlink and delete it first. -- Mark
----- Original Message -----> changed the timezone by copying the correct file to /etc/localtime, > however something keeps changing it back. I'm not sure if this is a yum > update or what. Without installing the graphical tools, how can I > update the timezone in such a way that the /etc/localtime file won't > keep getting clobbered./usr/bin/system-config-time (from the system-config-date RPM package) It will work in text mode. (Essentially /etc/sysconfig/clock is the config file that also needs updating) _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos The problem with that tool is that it brings in so many graphical dependencies. It would be better if it was on it's own. Phil.