SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks.
Quick question: I just set NTP through Yast. Will that help, or do I need to reboot?
And I know this sounds stupid, but hell, you ask and you only sound stupid once. Keep your mouth shut, and you're stupid forever.
Last edited by pueblonative; 02-12-2007 at 09:23 PM.
NTP won't help with timezone issues. But you don't need to reboot either. As soon as you've installed the new files in the appropriate places (as per the instructions), you're good to go.
Can't help to do another
Code:
date -d '27 March'
when you're done, just as a sanity check. (My sanity, not yours. (grin))
I was about to update my timezome files on my SuSE 9.2 installation. I found directions elsewhere using the following command on the tzdata file contents.
Code:
zic -d /tmp/zoneinfo northamerica
This generated a bunch of things in /tmp/zoneinfo that I understand need to be copied to /usr/share/zoneinfo. However, here's my problem. In /usr/share/zoneinfo I see a directory called Canada and in there is the file Eastern. These correspond to the date and time settings I see in YaST.
The only way I'm familiar with is what I posted above in post #2. That way will generate the Canada timezone files and all the others.
Thanks. I am looking at the Makefile and am unsure of a couple things.
Since I want Canada/Eastern as my timezone, should I set both LOCALTIME and POSIXRULES to Canada/Eastern in the Makefile?
I'm a bit confused by TOPDIR. The default in the Makefile is /usr/local and I'm pretty sure I don't want to do that. Even if I set it to something like /usr/local/tzdir I don't know if things will work right. The following is from the Makefile.
Code:
# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).
# Use an absolute path name for TZDIR unless you're just testing the software.
TZDIR= $(TOPDIR)/etc/zoneinfo
# The "tzselect", "zic", and "zdump" commands get installed in. . .
ETCDIR= $(TOPDIR)/etc
# If you "make INSTALL", the "date" command gets installed in. . .
BINDIR= $(TOPDIR)/bin
# Manual pages go in subdirectories of. . .
MANDIR= $(TOPDIR)/man
# Library functions are put in an archive in LIBDIR.
LIBDIR= $(TOPDIR)/lib
TZLIB= $(LIBDIR)/libtz.a
If I read this right, everything will be installed under whatever I call TOPDIR. On my system, these things are not under one common directory. For example, I have
All your old mechanisms for determing what the local time zone is, and so forth, are not affected by that. So they'll stay the same way they were. As a bonus, if a guest uses your computer and says at the bash prompt:
Code:
export TZ="US/Pacific"
Then he will get Mariposa time, but under the new rules.
Hope this helps.
Last edited by wjevans_7d1@yahoo.co; 02-26-2007 at 01:19 PM.
Your posts were VERY helpful. Ironically, I will likely not need to use the information you have provided. The laptop on which SuSE 9.2 is running suddenly started misbehaving on the weekend (weird cooling issues). I will be replacing it and, obviously the OS too.
I've just installed 10.2 on a loaner and its timezone data is current.
I was about to update my timezome files on my SuSE 9.2 installation. I found directions elsewhere using the following command on the tzdata file contents.
Code:
zic -d /tmp/zoneinfo northamerica
This generated a bunch of things in /tmp/zoneinfo that I understand need to be copied to /usr/share/zoneinfo. However, here's my problem. In /usr/share/zoneinfo I see a directory called Canada and in there is the file Eastern. These correspond to the date and time settings I see in YaST.
How do I create the Canada timezone files?
So, it looks like I can do this:
Code:
mkdir tz
cd tz
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -
This would be less risky and take almost no additional time. It would also provide you with all time zone information for everywhere. That doesn't sound important, and might not be, but you never can tell when you'll need what.
This would be less risky and take almost no additional time. It would also provide you with all time zone information for everywhere. That doesn't sound important, and might not be, but you never can tell when you'll need what.
Thank you!. I had to change the cp -r to cp -R and in SuSE 9.3 zoneinfo is in /usr/share, but I got it to work!.
Thanks folks... here's the complete script for your ~/tzupdate.sh. Had to omit zoneinfo from the destdir of the cp command as it was copying to .../zoneinfo/zoneinfo. On 10.1, I had to replace -r with -R for the chmod command.
cd /tmp
mkdir tz
cd tz
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -
make TOPDIR=tz1 install
if (test -d /etc/zoneinfo) then dest=/etc; else dest=/usr/share; fi
cp -R tz1/etc/zoneinfo $dest
chmod -R 755 $dest/zoneinfo
Thanks for all the help, but this still isn't working. I've gotten the files, make'd them, cp'd them to /usr/share/zoneinfo on my 9.3 box, and the current time (or even date -d '27 Mar') still returns EST.
I'll reboot for the heck of it, but from what I read here, I shouldn't have to, right?
Edit: Never mind, for some reason, $TIMEZONE's not set. I set that by hand, and it's good. Now to set it by default globally.
Thanks for all the detailed help, and no thanks to Novell for not patching it!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.