17 February 2013

Strange characters in SSH shell

On a new Debian installation, I was always seeing strange characters in mc (midnight commander) or dpkg-reconfigure. The following settings changed the view from this:


to this:


And the settings are:

- in /etc/locale.gen I un-commented the following, then I executed "locale-gen":
en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8

- in /root/bash_profile I added:
export TERM=xterm
export LC_ALL=C

No comments:

Post a Comment