Greetings All,
How to does one go about reconfiguring centos's time zone configuration (to the eastern time zone (us)), via the command line?
I have tested other GNU/Linux distribution's documentation, tools, files and relevant details with centos and have thus far been unable to find a compatible solution.
My apologies if my question is very simple, I have done a fair amount of searching on the subject but have yet to find the command or text file which to use to achieve my goal. Also, I am using Centos 4 (C4)
Respectfully, //kracker
Sole: Dumb This Down
Make sure you have redhat-config-date installed, then run redhat- config-date
On May 19, 2005, at 4:51 PM, kracker wrote:
Greetings All,
How to does one go about reconfiguring centos's time zone configuration (to the eastern time zone (us)), via the command line?
I have tested other GNU/Linux distribution's documentation, tools, files and relevant details with centos and have thus far been unable to find a compatible solution.
My apologies if my question is very simple, I have done a fair amount of searching on the subject but have yet to find the command or text file which to use to achieve my goal. Also, I am using Centos 4 (C4)
Respectfully, //kracker
Sole: Dumb This Down _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Grant McChesney wrote:
Make sure you have redhat-config-date installed, then run redhat- config-date
on CentOS 4, redhat-config-* apps have been replaced with system-config-* : so in this case I guess you are looking for system-config-date
- K
Grant,
Thank you for your prompt reply.
I did a search via yum for the package 'redhat-config-date' but failed to find any results...
yum search redhat-config-date Searching Packages: Setting up Repos update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files update : ################################################## 120/120 base : ################################################## 1404/1404 addons : ################################################## 2/2 extras : ################################################## 30/30 No Matches found
Here is my yum.conf file, am I missing something?
cat /etc/yum.conf [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=centos-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1
cat /etc/yum.repos.d/CentOS-Base.repo
[base] name=CentOS-$releasever - Base baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1
#released updates [update] name=CentOS-$releasever - Updates baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1
#packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1
#additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0
#contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0
#packages in testing [testing] name=CentOS-$releasever - Testing baseurl=http://mirror.centos.org/centos/$releasever/testing/$basearch/ gpgcheck=1 enabled=0
On 5/19/05, Grant McChesney grantm@wingateweb.com wrote:
Make sure you have redhat-config-date installed, then run redhat- config-date
Respectfully, //kracker
Sole : Imsotired
Karanbir,
Thank you very much, I was able to install the system-config-date package no problems :)
yum install system-config-date
For those looking to set their server to East Coast Time Zone. While using system-config-date I selected 'America/New_York' as it was the closest I could seem to find to a city in the East Cost Time Zone. I think this is acceptable :|?
I got the idea cross referencing the options provided by system-config-date and this list of cities in a given time zone: http://freespace.virgin.net/john.cletheroe/usa_can/usa/timezone.htm
Respectfully, //kracker
Sole : Selling Live Water
The alternative is to simply copy the appropo tzdata file to /etc/localtime :)
cp /usr/share/zoneinfo/US/Eastern /etc/localtime
or
cp /usr/share/zoneinfo/America/New_York /etc/localtime
I prefer to just set the appropo TZ in the kickstart config, e.g for me all of my kickstart.cfg files have the following entry (even though, I'm in San Diego :)
timezone America/Los_Angeles
On Thu, 2005-05-19 at 18:26 -0500, kracker wrote:
Karanbir,
Thank you very much, I was able to install the system-config-date package no problems :)
yum install system-config-date
For those looking to set their server to East Coast Time Zone. While using system-config-date I selected 'America/New_York' as it was the closest I could seem to find to a city in the East Cost Time Zone. I think this is acceptable :|?
I got the idea cross referencing the options provided by system-config-date and this list of cities in a given time zone: http://freespace.virgin.net/john.cletheroe/usa_can/usa/timezone.htm
Respectfully, //kracker
Sole : Selling Live Water _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
@Centos Project Documentation Team
This might be an area to cover more aggressively in the documentation as I could not find any documentation on this issue and it's most recent (c4) discrepancies (from c3).
@Centos 'system-config-date' maintainers
Selecting a time zones (ie: Alaskan, Pacific, Western, Central, Eastern, etc) by selecting a city which is in that time zone (as system-config-date currently implemented) can be a very overly frustrating exercise. Especially when one might not know which city provided in the list is in the user's desired timezone.
If I could offer up any positive criticism from this thread back to the people who have brought me this far it would be this.... Alter the 'system-config-date' to provide Global / Generic time zones at the top of the list it provides.
This alone would make the process of setting a timezone drastically simpler for the common user / administrator to understand and implement quickly, without having to search for a city provided in the 'system-config-date' 's time zone list which is in the same desired time zone.
This is overly complicated for such a simple configuration option, not really clear just as to why this is so in centos. I've seen other GNU/Linux Distributions which provided global / generic timezone options.
respectfully, //kracker
Sole : Live From Rome : On Martyrdom