Find the answer to your Linux question:
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 ...
  1. #1
    Just 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)

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Unable to run "system-config-date" tool from command line
    Uhh....why?

    Google: how to change timezone "rhel 5"

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    2
    Not real sure why ...

    This worked:

    cp /usr/share/zoneinfo/GMT /etc/localtime

    so, thanks.

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by Bohlingt View Post
    Not real sure why ...

    This worked:

    cp /usr/share/zoneinfo/GMT /etc/localtime

    so, thanks.
    Better to soft-link it:
    ln -sf /usr/share/zoneinfo/GMT /etc/localtime

    That will automatically pick up changes to the tzdata package.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    81
    Quote Originally Posted by greyhairweenie View Post
    Better to soft-link it:
    ln -sf /usr/share/zoneinfo/GMT /etc/localtime

    That will automatically pick up changes to the tzdata package.
    Yes but GMT isn't going to have any changes ever. No daylight time changes, no displacement in longitude.

  6. #6
    Just Joined!
    Join Date
    Sep 2006
    Location
    Noida, India
    Posts
    2
    Hi Team,

    I am using system-config-date to achieve that.

  7. #7
    Linux User
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    262
    Quote Originally Posted by HROAdmin26 View Post
    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

  8. #8
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by clowenstein View Post
    Yes but GMT isn't going to have any changes ever. No daylight time changes, no displacement in longitude.
    I'll wager you're right, but since the Royal Greenwich Observatory is no longer in Greenwich (move to Cambridge), who knows....

    Soft-linking localtime is just a good practice, probably moot in the UT1/GMT case.

  9. #9
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by alf55 View Post
    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
    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"

  10. #10
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Quote Originally Posted by alf55 View Post
    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.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...