Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is my timezone set?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Mon Apr 25, 2005 5:30 pm    Post subject: is my timezone set? Reply with quote

when I do the command uname -v, it tells me my local timezone is not set. I thought when I sym linked the correct file to /etc/localtime, it was set.
Code:
shane@mainbox shane $ uname -v
#1 Sat Apr 23 22:09:42 Local time zone must be set--see zic manu

Code:

shane@mainbox shane $ ls -l /etc | grep localtime
lrwxrwxrwx   1 root root       35 Apr 24 06:50 localtime -> /usr/share/zoneinfo/America/Chicago
shane@mainbox shane $



is this a universal linux way to set the timezone, or gentoo specific?
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Mon Apr 25, 2005 7:01 pm    Post subject: Reply with quote

I might be wrong but the uname string for the date is when your kernel was compiled, which means that if it wasn't setup properly when you compiled, it will continue to be that way until you recompile the kernel.

Basically it just pastes the output of the date command on your kernel description string. date was wonky so it ended up with that string.
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Mon Apr 25, 2005 7:30 pm    Post subject: Reply with quote

thanks. That is probably what happened. I will let you know if recompiling changes the uname output.
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Mon Apr 25, 2005 7:49 pm    Post subject: Reply with quote

A kernel recompile solved the problem. Thanks again.
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
newb_auburn
n00b
n00b


Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 5:58 pm    Post subject: Local time zone must be set--see zic Reply with quote

I am a new user to Gentoo and have only tried to install twice so please be gentle if this is something relatively easy.

I have followed the installation guide and the localization guide (http://www.gentoo.org/doc/en/guide-localization.xml?style=printable) while trying to install Gentoo.

I have recompiled the kernel several times and cannot get the locale correct and due to this I cannot install programs which require the locale being set.

HP Proliant DL360 G4 with Intel Xeon - I set the eveything to the Generic x86_64

# uname -a
Linux hostname 2.6.17-gentoo-r8 #4 SMP Mon Oct 9 13:23:09 Local time zone must be set--see zic m x86_64 Intel(R) Xeon(TM) CPU 3.60GHz GNU/Linux

# date
Fri Oct 13 10:40:20 PDT 2006

# ls -al /etc/localtime
lrwxrwxrwx 1 root root 39 2006-10-12 15:15 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

# cat /etc/env.d/02locale
LANG="en_US.ISO-8859-15"
LC_ALL="en_US.ISO-8859-15"

# grep LINGUAS /etc/make.conf
LINGUAS="en"

# grep en_US /etc/profile
export LANG="en_US.ISO-8859-15"
export LC_ALL="en_US.ISO-8859-15"

Thanks in advance for any help!
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Oct 13, 2006 6:05 pm    Post subject: Reply with quote

merged above post here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Oct 13, 2006 6:06 pm    Post subject: Reply with quote

Uh, your time zone appears to be set just fine (note the PDT in the date output). As to the kernel message - that happens because you did not set the time zone before compiling the kernel. That string there is actually stored inside the kernel image and was generated at compile time, it's not an error and it's not generated when you run uname. You can verify this by recompiling and booting a new kernel now, after the time zone is set. If you boot the new one, that message will have disappeared.

Edit: Thread got merged after I posted Reply :)
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
newb_auburn
n00b
n00b


Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 6:15 pm    Post subject: Reply with quote

I should add I had emerged timezone-data and tried all the steps in the localization steps again.

I also tried using the zic command but truthfully I am not sure if I was using it right and couldn't find a good example.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Oct 13, 2006 6:17 pm    Post subject: Reply with quote

AGAIN: Your time zone is set just fine, please read the posts above.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
newb_auburn
n00b
n00b


Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 6:18 pm    Post subject: Reply with quote

Hi Moocha!

Thanks for the reply!

I have tried compiling the kernel about 5 times last night with everything set. And yes, I copied my bzImage to the /boot and updated my grub.conf and I still can't get it to set.
Back to top
View user's profile Send private message
newb_auburn
n00b
n00b


Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 8:59 pm    Post subject: Reply with quote

Ok - totally newbie mistake made...

so if you:

# cd /usr/src/linux
# make && make modules_install
# cp arch/x86_64/boot/bzImage /boot/some_kernel_name
# reboot

it doesn't update the kernel - I wasn't calling make menuconfig because I wasn't changing anything in the menu

So...

# cd /usr/src/linux
# make menuconfig (don't change anything just click "save")
# make && make modules_install
# cp arch/x86_64/boot/bzImage /boot/some_kernel_name
# reboot

finally worked..

See total rookie mistake!

Thanks to all who posted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum