[CentOS] Changing LANG from de_DE to en_US in CentOS 6

Sun Dec 21 10:09:09 UTC 2014
Stephen Harris <lists at spuddy.org>

On Sun, Dec 21, 2014 at 11:04:30AM +0100, Alexander Farber wrote:
> on a Macbook with OSX Yosemite (which prints de_DE.UTF-8 as value of
> $LANG in Terminal) and VmWare Fusion 7 I have installed CentOS 6.6
> minimal.
> 
> When I ssh to my new VM as root, the $LANG is de_DE.UTF-8 too.
> 
> So where does the change to de_DE happen and what is the best spot in

ssh is setting it, based on your terminal settings.

In /etc/ssh/sshd_config you'll see a lines starting with "AcceptEnv" - one of the settings
will be LANG.  This tells the ssh daemon to accept the LANG value sent by the client.
A standard ssh client (/etc/ssh/ssh_config) has "SendEnv" settings, and LANG is one of those...

So you can do various things:
1) Stop sshd from accepting LANG (edit sshd_config, restart)
2) Stop ssh client from sending LANG
3) Modify .profile

-- 

rgds
Stephen