Red Hat This forum is for the discussion of Red Hat 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-26-2006, 06:56 AM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 9
Rep:
|
Changing default language from command line
I installed RedHat 9 Linux about a few months ago, however, I set up the OS to use Chinese as the default language. So now, all system messages in the command line are displayed in Chinese. This is a problem now because I have given other people access to the server. And these people cannot read Chinese.
I'm still a newbie to Linux and only know how to change the default language back to English by using the GUI interface in Gnome. The probem with this is I am accessing the server via SSH and do not have access to X-Window. Anybody have any idea how to change the default language back to English from the command line, without having to use x-window? Just want to save myself a trip to the IDC.
Thanks!
|
|
|
04-26-2006, 07:13 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
setlocale en_US.utf-8
hint:
apropos language
--- gets you everything to do with languages. The only one not about programming is "locale" so...
apropos locale
--- gets a list of commands to do with "locale", including "setlocale" which sounds good.
man setlocale tells me how to use it.
man locale tells me to run "locale -a" to get a list of available locales.
Choose one of the English ones.
Last edited by Simon Bridge; 04-26-2006 at 07:16 AM.
|
|
|
04-26-2006, 11:22 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Posts: 9
Original Poster
Rep:
|
Thanks, but when I run setlocale en_US.utf-8, I receive this message:
-bash: setlocale: command not found
Is setlocale available in RedHat 9?
|
|
|
04-27-2006, 01:40 AM
|
#4
|
LQ Newbie
Registered: Dec 2005
Posts: 9
Original Poster
Rep:
|
Thanks for your help, but never mind, I managed to change the language with the following instructions:
Try using these steps to change the FEDORA language setting from a command prompt:
Go to the Fedora system configuration diretory
1. cd /etc/sysconfig
Make backup copy of your language setting file
2. cp i18n i18n.backup
Edit language setting file to allow english as default
3. You can edit the file by using nano or vi text editors available on all Fedora systems from SSH. I prefer nano so:
4. nano i18n
5. Edit the file to include these lines as the first three lines of the file:
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en"
6. Save the file and restart system. If you can not restart the system you need to have permission to restart init.d
That should enable the new language setting. If you can not perform these through SSH because the access is too restricted, you will likely need to notify the ISP or whoever has physical access to the server.
|
|
|
04-27-2006, 01:54 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
well - does "man setlocale" produce a man page?
hmmm ... the bash one won't run for me neither.
I guess you could always export en_US.utf-8 to all the environment variables:
Code:
[~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
... and reboot.
|
|
|
07-17-2006, 02:25 AM
|
#6
|
LQ Newbie
Registered: May 2006
Distribution: debian,slackware,Knoppix
Posts: 8
Rep:
|
hi
oh ,u know, i post a new thread about change language in a live CD, knoppix base- or i havt to say Debian base- allover i need it can support en-US and an other language, at 1st i trid do it by change/edit XF86Config to change keylayout and added some new fonts-TTF- but its failed,i tried changes by using control center, when i login 'chroot' my new remastered linux it was ok but after burning ,hummm, nothing happend, the fonts can be use by openoffice but the language or in other words the multilanguage supprot was failed, Now, i wish someone can tell me how can do it.
:O(
|
|
|
09-21-2006, 09:08 AM
|
#7
|
LQ Newbie
Registered: Sep 2006
Posts: 1
Rep:
|
Quote:
Originally Posted by Simon Bridge
well - does "man setlocale" produce a man page?
hmmm ... the bash one won't run for me neither.
I guess you could always export en_US.utf-8 to all the environment variables:
Code:
[~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
... and reboot.
|
hello
how i can change "LC_ALL=he_IL" to "LC_ALL=" ???
thanks
|
|
|
09-28-2006, 12:00 AM
|
#8
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
export: usage: export [-nf] [name[=value] ...] or export -p
|
|
|
12-30-2008, 02:55 PM
|
#9
|
LQ Newbie
Registered: Dec 2008
Posts: 1
Rep:
|
the easiest way to change the system language settings in a redhat/fedora/centos environment is using the default config tool in the system:
system-config-language
|
|
|
All times are GMT -5. The time now is 06:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|