LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-12-2008, 05:37 PM   #1
Mistro116@yahoo.com
Member
 
Registered: Sep 2005
Posts: 118

Rep: Reputation: 15
Permanently Set Environment Variable LANG


I'm trying to permanently set the environment variable LANG to en_US.iso88591 for all users.

I've added:

declare -x LANG="en_US.iso88591" to my /etc/profile and /etc/bashrc, but it will not work.

When I type env, I get:

[root@MISTRO aaronp1]# env
SSH_AGENT_PID=13499
HOSTNAME=MISTRO
TERM=xterm
SHELL=/bin/bash
DESKTOP_STARTUP_ID=
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/home/aaronp1/.gtkrc-1.2-gnome2
WINDOWID=27263049
QTDIR=/usr/lib/qt-3.1
USER=aaronp1
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SSH_AUTH_SOCK=/tmp/ssh-sDZ13448/agent.13448
SESSION_MANAGER=local/MISTRO:/tmp/.ICE-unix/13448
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/aaronp1/bin
MAIL=/var/spool/mail/aaronp1
PWD=/home/aaronp1
INPUTRC=/etc/inputrc
XMODIFIERS=@im=none
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
GDMSESSION=GNOME
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/root
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=aaronp1
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
XAUTHORITY=/root/.xauth2EcpR0
COLORTERM=gnome-terminal
_=/usr/bin/env

Is there a way to do this that I'm missing?

I've also tried using export, set commands and just LANG="en...."

Thanks,
Mistro116
 
Old 06-12-2008, 08:11 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
See /etc/profile.d/lang.sh?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto set system-wide environment variables permanently in debian vineet7kumar Linux - Newbie 2 05-08-2008 06:39 PM
How to set up an system wide environment variable permanently?? piyush.kansal Fedora 5 12-07-2007 04:04 AM
How to set environment variable yuan13452 Linux - Software 7 09-03-2007 05:23 PM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 12:38 PM
How to set variable permanently in rc.local(RH7.3)? beep_beep Linux - General 7 09-25-2002 12:35 PM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration