Forum
How to setup readable russian language for ssh? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+--- Thread: How to setup readable russian language for ssh? (/thread-446.html)

Pages: 1 2


How to setup readable russian language for ssh? - kraleksandr - 14th Feb, 2013 01:30 AM

After I changed default locale (en_gb) to ru_RU (utf8, default)+en_US(utf-8) and set kitty (like putty) to use utf8, I cant read russian file/dir names bcoz they looks like ??? ??????? (2012). These files is on external HDD, ext4, defaults,noatime (fstab). XBMC displays this correctly.


RE: How to setup readable russian language for ssh? - kraleksandr - 14th Feb, 2013 04:32 AM

Maybe I must reboot my PI, i'll try it later.


RE: How to setup readable russian language for ssh? - Koenkk - 14th Feb, 2013 05:04 AM

Let us know Smile


RE: How to setup readable russian language for ssh? - kraleksandr - 14th Feb, 2013 02:25 PM

Same, looks like dpkg-reconfigure locales dont work.


RE: How to setup readable russian language for ssh? - kraleksandr - 15th Feb, 2013 02:09 AM

This question is first when I Google this thing. How to enable russian(utf8) terminal, keyboard and other?
Terminal
root@xbian:/home/xbian# locale -a
C
C.UTF-8
POSIX
en_US.utf8
ru_RU.utf8
root@xbian:/home/xbian# locale
LANG=ru_RU.UTF-8
LANGUAGE=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

When I used raspbian, I only need to reconfigure locales to add default ru_RU(utf8) and all works. But with xbian it didnt do what I expect.


RE: How to setup readable russian language for ssh? - Koenkk - 15th Feb, 2013 02:27 AM

Can you post your /etc/profile here?


RE: How to setup readable russian language for ssh? - kraleksandr - 15th Feb, 2013 02:34 AM

Terminal
root@xbian:/home/xbian# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
export LANG=C
export LC_ALL=C
export LANGUAGE=C

if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1=h:w$
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1=#
else
PS1=$
fi
fi
fi

# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.

if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi



RE: How to setup readable russian language for ssh? - kraleksandr - 16th Feb, 2013 06:15 PM

Maybe I will reinstall xbian from zero today. What I must do to enable russian lang, keyboard, filenames support?


RE: How to setup readable russian language for ssh? - CurlyMo - 16th Feb, 2013 07:09 PM

Code:
dpkg-reconfigure locales
Make sure you select a UTF-8 locale.


RE: How to setup readable russian language for ssh? - kraleksandr - 16th Feb, 2013 07:28 PM

Yep, Im sure. After dpkg-reconfigure locale is like this http://forum.xbian.org/thread-446-post-5119.html#pid5119
And I cant imagine a reason why it should work if I reinstall xbian from zero.

Now with default ru_RU UTF8 and SSH-client with UTF8 it looks like


RE: How to setup readable russian language for ssh? - CurlyMo - 16th Feb, 2013 08:26 PM

Can you try this:
Code:
sed -i 's/    SendEnv LANG LC_\*/#   SendEnv LANG LC_\*/g' /etc/ssh/ssh_config
And then reboot and relogin with ssh


RE: How to setup readable russian language for ssh? - kraleksandr - 16th Feb, 2013 08:31 PM

Same...


RE: How to setup readable russian language for ssh? - CurlyMo - 16th Feb, 2013 08:41 PM

Then i don't know how to do it.


RE: How to setup readable russian language for ssh? - kraleksandr - 16th Feb, 2013 08:46 PM

Nice =)
Then this question:
By default, is there everything needed to display Russian filenames? In theory, after clean install && dpkg-reconf locales add ru_RU utf8 all must works, right?


RE: How to setup readable russian language for ssh? - CurlyMo - 16th Feb, 2013 08:52 PM

Read and try this: https://github.com/xbianonpi/xbian/issues/256#issuecomment-13028382