Results 1 to 10 of 10
Greetings, All
My apologies if this thread topic has already been somewhat discussed, I tried searching this Forums room for "hits" associated with my issue but could not find anything
...
- 04-05-2010 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 2
Changing the timezone in RHEL 5.4 (CentOS)
Greetings, All
My apologies if this thread topic has already been somewhat discussed, I tried searching this Forums room for "hits" associated with my issue but could not find anything
Issue:
*Trying to change some Linux severs timezone from EDT to GMT remotely
*Unable to run "system-config-date" tool from command line
Date:
Mon Apr 5 09:31:10 EDT 2010
cat /etc/sysconfig/clock:
ZONE="America/New_York"
UTC=true
ARC=false
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
- 04-05-2010 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Uhh....why?Unable to run "system-config-date" tool from command line
Google: how to change timezone "rhel 5"
- 04-05-2010 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 2
Not real sure why ...
This worked:
cp /usr/share/zoneinfo/GMT /etc/localtime
so, thanks.
- 04-06-2010 #4
- 04-06-2010 #5Just Joined!
- Join Date
- Jul 2008
- Posts
- 81
- 04-06-2010 #6Just Joined!
- Join Date
- Sep 2006
- Location
- Noida, India
- Posts
- 2
Hi Team,
I am using system-config-date to achieve that.
- 04-07-2010 #7Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 262
Please note that the "system-config-XXXXXX" command require that the machine that you wish to run on must have X and the GUI portion being used by python installed (it does not need to be running) and you need to to be connecting to the remote via "ssh" with "X Forwarding" active. But a simpler solution is to edit the configuration file:
Code:vim /etc/sysconfig/clock
- 04-07-2010 #8
- 04-07-2010 #9
Actually, the ZONE in /etc/sysconfig/clock is ONLY used by system-config-date, at least in Centos5/RHEL5/current versions of Fedora. Editing it does not change the system zone. The default file in Fedora actually contains the remarks:
$ cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The time zone of the system is defined by the contents of /etc/localtime.
ZONE="America/New York"
- 04-07-2010 #10Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
No, it doesn't. Without X installed or running, an ncurses-type interface is used that looks like this.

Greyhairweenie has pointed out the rest of the bad info in your post.


Reply With Quote
