Search Google

Friday, December 01, 2006

在遠端連線中輸入中文 & windows與x-window之間copy & paste文字

之前使用Xming + Putty遠端連線到Linux機器上工作,
除了兩件事情之外一切都還算順利:
1) 無法在本機的windows與遠端的Linux x-window之間剪貼文字
2) 無法在遠端開啟的x-window中輸入中文

目前1)已經找到問題所在,並且完美的解決了,以下是網路上善心人士協助我找到的解決方案

Hi James,

Maybe, I found the solution of your problem.

If you use Xming to connect via XDMCP to a server which uses gdm, there is a
problem with gdm.
You must add (or modify) this section in the gdm.conf file
(or /etc/gdm/custom.conf) :

[daemon]
KillInitClients=false

And next, restart gdm with gdm-restart

Regards,
Frederic

至於2)...
原來遵照scim manual中的說明就可辦到!
把以下的設定寫進.bashrc:
XMODIFIERS="@im=SCIM"
export XMODIFIERS
GTK_IM_MODULE="xim"
export GTK_IM_MODULE
scim -d

No comments: