Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

How to setup readable russian language for ssh?
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
How to setup readable russian language for ssh?
14th Feb, 2013, 01:30 AM
Post: #1
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
How to setup readable russian language for ssh?
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.
Find all posts by this user
Quote this message in a reply
14th Feb, 2013, 04:32 AM
Post: #2
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
Maybe I must reboot my PI, i'll try it later.
Find all posts by this user
Quote this message in a reply
14th Feb, 2013, 05:04 AM
Post: #3
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: How to setup readable russian language for ssh?
Let us know Smile

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
14th Feb, 2013, 02:25 PM
Post: #4
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
Same, looks like dpkg-reconfigure locales dont work.
Find all posts by this user
Quote this message in a reply
15th Feb, 2013, 02:09 AM
Post: #5
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
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.
Find all posts by this user
Quote this message in a reply
15th Feb, 2013, 02:27 AM
Post: #6
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: How to setup readable russian language for ssh?
Can you post your /etc/profile here?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Feb, 2013, 02:34 AM
Post: #7
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
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
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 06:15 PM
Post: #8
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
Maybe I will reinstall xbian from zero today. What I must do to enable russian lang, keyboard, filenames support?
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 07:09 PM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to setup readable russian language for ssh?
Code:
dpkg-reconfigure locales
Make sure you select a UTF-8 locale.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 07:28 PM
Post: #10
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
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


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 08:26 PM
Post: #11
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to setup readable russian language for ssh?
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

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 08:31 PM
Post: #12
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
Same...


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 08:41 PM
Post: #13
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to setup readable russian language for ssh?
Then i don't know how to do it.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 08:46 PM
Post: #14
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: How to setup readable russian language for ssh?
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?
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 08:52 PM
Post: #15
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to setup readable russian language for ssh?
Read and try this: https://github.com/xbianonpi/xbian/issues/256#issuecomment-13028382

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 06:34 AM Powered By MyBB, © 2002-2025 MyBB Group.