DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-05-04 20:09:12

gufan8620
Member
Registered: 2011-05-04
Posts: 6

SSH with UTF8 char encoding?

Hi, I have installed fun-plug 0.5 on my DNS-323 and can get the ssh access to the box.
However, if I remote access from Ubuntu using openssh, after login with ssh and type 'ls', the non-English characters only show as "?", something like "readme_???.txt".
If I use filezilla (SFTP via ssh) to access the box, those non-English characters are showing correctly.
Typing " echo $LANG " on DNS-323 box shows "en_US", not "en_US.UTF-8".

How do I setup so that ssh to the box will display non-English characters correctly on my terminal.

Thanks

Offline

 

#2 2011-05-09 03:54:42

gufan8620
Member
Registered: 2011-05-04
Posts: 6

Re: SSH with UTF8 char encoding?

Since no one gave me any suggestions, I searched around and it looks like the system does not have the font installed to display those characters. So the problem becomes to how I can install extra UTF-8 fonts on DNS-323. Any body has experience on this? Does anyone know where I can download Chinese/Japanese font package for DNS-323?

Offline

 

#3 2011-05-09 15:10:50

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: SSH with UTF8 char encoding?

The missing font is a feature of the client, not the server. You have to configure the terminal what encoding/font to use. No need to install fonts on the DNS.

Offline

 

#4 2011-05-09 18:42:38

gufan8620
Member
Registered: 2011-05-04
Posts: 6

Re: SSH with UTF8 char encoding?

petasis wrote:

The missing font is a feature of the client, not the server. You have to configure the terminal what encoding/font to use. No need to install fonts on the DNS.

I am using the terminal of Ubuntu, which set Unicode UTF-8 as the terminal character encoding. All the file names are encoded with Unicode. But I still get those "???". If I type half of the file name, and then use tab, the file name still can be automatically completed, which means the system recognize the character, but just can't display them correctly.

Offline

 

#5 2011-05-10 22:57:12

gufan8620
Member
Registered: 2011-05-04
Posts: 6

Re: SSH with UTF8 char encoding?

Anyone know is there any way to change $LANG from "en_US" to "en_US.UTF-8"? Is there any place to set LC_CTYPE?

Offline

 

#6 2011-05-11 18:03:02

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: SSH with UTF8 char encoding?

Offline

 

#7 2011-05-11 20:02:59

gufan8620
Member
Registered: 2011-05-04
Posts: 6

Re: SSH with UTF8 char encoding?

bjby wrote:

maybe this helps, but not sure
http://dns323.kood.org/forum/viewtopic.php?id=6198

Thanks. But I think we are in different situation. The reason why he does not get right in the file created from Ubuntu might because he mounted the NAS shares without setting the correct iochar as utf8 (I am not sure).

Offline

 

#8 2011-06-09 11:56:13

timezlicer
Member
Registered: 2008-09-02
Posts: 51
Website

Re: SSH with UTF8 char encoding?

not sure if this helps
http://dns323.kood.org/forum/viewtopic. … 043#p43043

ssh from Linux Mint works out of the box

Last edited by timezlicer (2011-06-09 11:56:53)

Offline

 

#9 2011-06-14 20:57:34

gufan8620
Member
Registered: 2011-05-04
Posts: 6

Re: SSH with UTF8 char encoding?

Created /etc/profile and /etc/inputrc, and it works!!! Thank you very much timezlicer!


timezlicer wrote:

not sure if this helps
http://dns323.kood.org/forum/viewtopic. … 043#p43043

ssh from Linux Mint works out of the box

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB