How so set SSH language to English?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
12,563
Location
Maastricht
Hello.
I'm installing a server (a vps really) from Strato for somebody.

But it seems Strato's default installation is in the Dutch language, or it looks that way. It's Centos 7.

So I changed the localctl and it looks like this now (yes I did a reboot):
Code:
localectl
   System Locale: LANG=en_US.utf8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105+inet
     X11 Options: terminate:ctrl_alt_bksp
That looks good.

But when I type in a wrong command like just test, I get the error message still in Dutch instead of in English.
So the console will state "bestand niet gevonden" instead of "file not found".

Is there a way to fix this, so it will generate English languaged error notices in console via SSH?
 
Hello.

That's all correct otherwise the localctl output could not be what I posted in my message.

This is the output of your first command:
Code:
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
es_US
es_US.iso88591
es_US.utf8
unm_US
unm_US.utf8
yi_US
yi_US.cp1255
yi_US.utf8

The output of localectl is already in my message.
and:
Code:
cat /etc/locale.conf
LANG=en_US.utf8

So that's all good... still... I get Dutch error messages. :(

It's an OS issue, not DA issue by the way. But I hoped somebody could help me. Normally the install get's done in English. I don't know why Strato installs it in Dutch.
 
Do you have anything related to language ($LANG) in the file /root/.bashrc ? If so I would remove it. Other then that, I don't know what it could be.
 
The only other thing I see it to run
Code:
yum update -y

then set it again. Not sure why that would matter.

You said you rebooted..
 
@bdacus01:
I already had done various yum updates so that's not it.

@Ditto:
my .bashrc which I use on all servers:
Code:
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

export PS1='\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
export PS1="[\u@\h: \w]# "
export LS_OPTIONS="--human --color=auto"
#alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -all --time-style=long-iso'

Even if I only use the first few lines, it still gives errors in Dutch. The only time I encountered this was when the OS was installed in the Dutch language.
 
Any overrides in here?
Code:
grep lang /etc/yum.conf

What happens if you do

Code:
yum reinstall glibc-common

any locale errors?
 
No overrides about languages.

But glibc-common was not installed. Has that to do with language?
I installed it now and rebooted the vps, but still the same.
 
Fixed.

For future reference or if anybody needs it some time, this was the command I used:
Code:
export LC_ALL=C
and put this in my .bashrc file.
 
Back
Top