ssh 连ubuntu虚拟机的中文乱码问题
发表于 : 2007-06-28 17:41
在2000下面装的ubuntu的虚拟机。
版本:ubuntu 7.0
vmware:6.0
装好之后,在linux中,更新了中文,即在终端和桌面都可以使用中文,并可以正常显示所有的中文字符。
装好openssh-server后,
在2000下面链接到ubuntu..
这里在2000下的ssh中就不能看到中文了,是乱码。
具体如下:
env环境为:
LANG=zh_CN.GB2312
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/mokai
LANGUAGE=zh_CN:zh:en_US:en
BASH_ENV=/home/mokai/.bashrc
LOGNAME=mokai
SSH_CONNECTION=192.168.50.113 1394 192.168.50.223 22
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
-----------------------------------------
cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
LANG=zh_CN.GB2312
LC_ALl=zh_CN.GB2312
LC_CTYPE=zh_CN.GB2312
#export LANG=zh_CN.GB2312`
好像还是不行,不显示乱码了,转显示英文,但不能输中文。。
请教大侠们,如何设置并修改……。
版本:ubuntu 7.0
vmware:6.0
装好之后,在linux中,更新了中文,即在终端和桌面都可以使用中文,并可以正常显示所有的中文字符。
装好openssh-server后,
在2000下面链接到ubuntu..
这里在2000下的ssh中就不能看到中文了,是乱码。
具体如下:
env环境为:
LANG=zh_CN.GB2312
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/mokai
LANGUAGE=zh_CN:zh:en_US:en
BASH_ENV=/home/mokai/.bashrc
LOGNAME=mokai
SSH_CONNECTION=192.168.50.113 1394 192.168.50.223 22
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
-----------------------------------------
cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
LANG=zh_CN.GB2312
LC_ALl=zh_CN.GB2312
LC_CTYPE=zh_CN.GB2312
#export LANG=zh_CN.GB2312`
好像还是不行,不显示乱码了,转显示英文,但不能输中文。。
请教大侠们,如何设置并修改……。