debian的gnome用root登录老是英文系统

View: New views
11 Messages — Rating Filter:   Alert me  

debian的gnome用root登录老是英文系统

by li xin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。

Re: debian的gnome用root登录老是英文系统

by Ji ZhengYu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/6/26 li xin <xinligg@...>:
> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>

不知道你是怎么启动 X 的。
你可以把
 export LC_CTYPE = zh_CN.UTF-8
这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。

--
Regards,

G

Re: debian的gnome用root登录老是英文系统

by liemacs@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

我在一次对系统升级之后也遇到过这种问题。
在网上搜索了很多地方最终才得以解决。
我的是lenny,要改一个叫profile的文件,
 
 
具体可参考
希望对你有帮助。
 

 
On 6/26/08, li xin <xinligg@...> wrote:
我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。


Re: debian的gnome用root登录老是英文系统

by Taishan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

我用普通用户登录的时候,GDM_LANG和LANG环境变量都是zh_CN.UTF-8。
而用root登录的时候,GDM_LANG是zh_CN.UTF-8,而LANG是C。应该就是LANG的原
因了。

在 2008-06-26四的 12:05 +0800,li xin写道:
> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: debian的gnome用root登录老是英文系统

by wt-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

但是,为什么export修改LANG为zh_CN.utf-8之后LANG还是会恢复为C呢?

 
On 6/26/08, Taishan <taishan1982@...> wrote:
我用普通用户登录的时候,GDM_LANG和LANG环境变量都是zh_CN.UTF-8。
而用root登录的时候,GDM_LANG是zh_CN.UTF-8,而LANG是C。应该就是LANG的原
因了。

在 2008-06-26四的 12:05 +0800,li xin写道:
> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...




Parent Message unknown Re: debian的gnome用root登录老是英文系统

by Ji ZhengYu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/6/27 li xin <xinligg@...>:
> 自己写了.xinitrc,登录进去,还是=c,不知是怎么回事…………
>

要不你用 im-switch 试试吧。如果这个再不能解决你的问题
的话,我就不知道怎么做了。
im-switch 可以用 sudo apt-get install im-switch 来装。
装好以后用 im-switch -c 来运行,选择你想要的那个输入法。

> 2008/6/26 Ji ZhengYu <zhengyuji@...>:
>> 2008/6/26 li xin <xinligg@...>:
>>> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>>>
>>
>> 不知道你是怎么启动 X 的。
>> 你可以把
>>  export LC_CTYPE = zh_CN.UTF-8
>> 这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。
>>
>> --
>> Regards,
>>
>> G
>>
>



--
Regards,

G

Re: debian的gnome用root登录老是英文系统

by shell909090 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

wt 写道:

> 但是,为什么export修改LANG为zh_CN.utf-8之后LANG还是会恢复为C呢?
>
>  
> On 6/26/08, *Taishan* <taishan1982@...
> <mailto:taishan1982@...>> wrote:
>
>     我用普通用户登录的时候,GDM_LANG和LANG环境变量都是zh_CN.UTF-8。
>     而用root登录的时候,GDM_LANG是zh_CN.UTF-8,而LANG是C。应该就是
>     LANG的原
>     因了。
>
>     在 2008-06-26四的 12:05 +0800,li xin写道:
>     > 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录
>     后系统是中文的,或者能用scim等。。。。。
>
>
>     --
>     To UNSUBSCRIBE, email to
>     debian-chinese-gb-REQUEST@...
>     <mailto:debian-chinese-gb-REQUEST@...>
>     with a subject of "unsubscribe". Trouble? Contact
>     listmaster@... <mailto:listmaster@...>
>
>
>
原来我吃过几次苦头,你的export是不是放到了/etc/profile下面?那下面的一些
文件是在bash登陆的时候才运行的。系统的似乎有个 /etc/environment什么的,
现在不是linux,懒得查了。
而且一般是用户配置覆盖系统配置……
我以前写过一个测试,http://shell909090.spaces.live.com/blog/cns! 
7AD2FCE74833C21B! 1079.entry,还有http:
//shell909090.spaces.live.com/blog/cns! 7AD2FCE74833C21B!1080.entry,你
可以看看。


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: debian的gnome用root登录老是英文系统

by li xin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

这个我试过了,没用。

2008/6/27 Ji ZhengYu <zhengyuji@...>:

> 2008/6/27 li xin <xinligg@...>:
>> 自己写了.xinitrc,登录进去,还是=c,不知是怎么回事…………
>>
>
> 要不你用 im-switch 试试吧。如果这个再不能解决你的问题
> 的话,我就不知道怎么做了。
> im-switch 可以用 sudo apt-get install im-switch 来装。
> 装好以后用 im-switch -c 来运行,选择你想要的那个输入法。
>
>> 2008/6/26 Ji ZhengYu <zhengyuji@...>:
>>> 2008/6/26 li xin <xinligg@...>:
>>>> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>>>>
>>>
>>> 不知道你是怎么启动 X 的。
>>> 你可以把
>>>  export LC_CTYPE = zh_CN.UTF-8
>>> 这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。
>>>
>>> --
>>> Regards,
>>>
>>> G
>>>
>>
>
>
>
> --
> Regards,
>
> G
>

Re: debian的gnome用root登录老是英文系统

by Luo Yong-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



export LC_CTYPE=zh_CN.GBK;
export LANG=zh_CN.GBK;

到/etc/X11/Xsession.d/95language里面。

2008/6/27 li xin <xinligg@...>:

> 这个我试过了,没用。
>
> 2008/6/27 Ji ZhengYu <zhengyuji@...>:
>> 2008/6/27 li xin <xinligg@...>:
>>> 自己写了.xinitrc,登录进去,还是=c,不知是怎么回事…………
>>>
>>
>> 要不你用 im-switch 试试吧。如果这个再不能解决你的问题
>> 的话,我就不知道怎么做了。
>> im-switch 可以用 sudo apt-get install im-switch 来装。
>> 装好以后用 im-switch -c 来运行,选择你想要的那个输入法。
>>
>>> 2008/6/26 Ji ZhengYu <zhengyuji@...>:
>>>> 2008/6/26 li xin <xinligg@...>:
>>>>> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>>>>>
>>>>
>>>> 不知道你是怎么启动 X 的。
>>>> 你可以把
>>>>  export LC_CTYPE = zh_CN.UTF-8
>>>> 这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> G
>>>>
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> G
>>
>

Re: debian的gnome用root登录老是英文系统

by wt-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

还是要修改一下某个profile文件
听说lenny下environment文件已经被弃用了?

 
On 6/28/08, Luo Yong <luo.yong.name@gmail.com> wrote:


export LC_CTYPE=zh_CN.GBK;
export LANG=zh_CN.GBK;

到/etc/X11/Xsession.d/95language里面。

2008/6/27 li xin <xinligg@...>:
> 这个我试过了,没用。
>
> 2008/6/27 Ji ZhengYu <zhengyuji@...>:
>> 2008/6/27 li xin <xinligg@...>:
>>> 自己写了.xinitrc,登录进去,还是=c,不知是怎么回事…………
>>>
>>
>> 要不你用 im-switch 试试吧。如果这个再不能解决你的问题
>> 的话,我就不知道怎么做了。
>> im-switch 可以用 sudo apt-get install im-switch 来装。
>> 装好以后用 im-switch -c 来运行,选择你想要的那个输入法。
>>
>>> 2008/6/26 Ji ZhengYu <zhengyuji@...>:
>>>> 2008/6/26 li xin <xinligg@...>:
>>>>> 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>>>>>
>>>>
>>>> 不知道你是怎么启动 X 的。
>>>> 你可以把
>>>>  export LC_CTYPE = zh_CN.UTF-8
>>>> 这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> G
>>>>
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> G
>>
>


Re: debian的gnome用root登录老是英文系统

by li xin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

晕~发现是~/.profile文件有这个
mesg n
# Installed by Debian Installer:
#  no localization for root because zh_CN.UTF-8
#  cannot be properly displayed at the Linux console
LANG=C
LANGUAGE=C

注释掉就行了。看来是debian发行版的问题。另外看来KDE显示是不受LANG设定的。

2008/6/28 wt <llenglish@...>:

> 还是要修改一下某个profile文件
> 听说lenny下environment文件已经被弃用了?
>
>
> On 6/28/08, Luo Yong <luo.yong.name@...> wrote:
>>
>> 写
>>
>> export LC_CTYPE=zh_CN.GBK;
>> export LANG=zh_CN.GBK;
>>
>> 到/etc/X11/Xsession.d/95language里面。
>>
>> 2008/6/27 li xin <xinligg@...>:
>> > 这个我试过了,没用。
>> >
>> > 2008/6/27 Ji ZhengYu <zhengyuji@...>:
>> >> 2008/6/27 li xin <xinligg@...>:
>> >>> 自己写了.xinitrc,登录进去,还是=c,不知是怎么回事…………
>> >>>
>> >>
>> >> 要不你用 im-switch 试试吧。如果这个再不能解决你的问题
>> >> 的话,我就不知道怎么做了。
>> >> im-switch 可以用 sudo apt-get install im-switch 来装。
>> >> 装好以后用 im-switch -c 来运行,选择你想要的那个输入法。
>> >>
>> >>> 2008/6/26 Ji ZhengYu <zhengyuji@...>:
>> >>>> 2008/6/26 li xin <xinligg@...>:
>> >>>>> 我先export
>> >>>>> LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录后系统是中文的,或者能用scim等。。。。。
>> >>>>>
>> >>>>
>> >>>> 不知道你是怎么启动 X 的。
>> >>>> 你可以把
>> >>>>  export LC_CTYPE = zh_CN.UTF-8
>> >>>> 这一句放入 ~/.xinitrc 中。如果没有这个文件的话,请自己新建。
>> >>>>
>> >>>> --
>> >>>> Regards,
>> >>>>
>> >>>> G
>> >>>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Regards,
>> >>
>> >> G
>> >>
>> >
>
>
LightInTheBox - Buy quality products at wholesale price