[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zelfde LANG op ssh server als op ssh client



Op 2013-12-27 om 09:52 schreef Paul van der Vlis:
> Op 26-12-13 17:52, Geert Stappers schreef:
> > 
> > Hoi,
> > 
> > Op de client computer waar ik een ssh sessie start, is LANG=en_US.
> > 
> > In /etc/ssh/ssh_config staat onder andere
> >    SendEnv LANG LC_*
> > 
> > 
> > De server waar de ssh-sessie naar toe gaat heeft in /etc/ssh/sshd_config
> >    AcceptEnv LANG LC_*
> > 
> > Ook heeft de ssh server meerdere locales ingestalleerd, waaronder en_US.
> > 
> > 
> > In de ssh-sessie op die server is LANG=nl_NL.UTF-8,
> > daar was LANG=en_US verwacht.
> > Maar waarom die LANG waarde?
> > 
> > De mismatch in LANG tussen ssh-client en ssh-server
> > veroorzaakt vreemde screenopmaak.
> > 
> > Waar moet ik de "over write" zoeken?
> > In het ssh-gebeuren?? In het login-gebeuren??
> >  
> > Mijn huidige workaround is na login handmatig LANG zetten.
> > Iets wat automatisch zou moeten kunnen.
> 
> Ik las onlangs op de wiki pagina over locales het volgende:
> -----
> Get root and type dpkg-reconfigure locales and select the locale(s) you
> want to generate. At the end, you'll be asked which one should be the
> default. If you have users who access the system through ssh, it is
> recommended that you choose None as your default locale.
> -----
> 
> https://wiki.debian.org/Locale
> 

En de volgende alinea van die Debian Wiki pagina:
---------
This changes /etc/default/locale and /etc/locale.gen (in older versions
of Debian, also /etc/environment). If you chose a default locale other
than None above, it will be in /etc/default/locale and will override
the LANG variable supplied by ssh. This is highly inconvenient.
---------

De `dpkg-reconfige locales` en als default "Geen" ( "None" )
is  inderdaad de truuk.  Dank.


Groeten
Geert Stappers
-- 
Leven en laten leven


Reply to: