Windows下使用XManager访问Ubuntu 11.04的设置方法

1、Download the attached file and upload it to the server. And, enter the following command to update gdm(更新gdm软件包):

wget  -c "http://www.netsarang.com/forum/xmanager/down?num=3526&filename=88406269da081d4091c34728c92d2c6c&savename=gdm_2320-0ubuntu1_i386.deb"  -O gdm_2320-0ubuntu1_i386.deb

sudo dpkg -i gdm_2320-0ubuntu1_i386.deb

注:本步骤是为修改 Ubuntu 10.10 的gdm bug 而做的(Ubuntu 10.10的GDM只开放了IPv6,所以在Windows下是连不上的。这个修正文件是由好心的Xmanager放出的),10.10以前版本貌似不用做这一步。另外,蓝色部分的地址,最好在Windows下用迅雷下载,这样更快点。

$ gdm --version
GDM 2.32.1

2、Open the /etc/gdm/custom.conf file and set XDMCP to true(修改custom.conf配置文件,若没有则新建一个):

sudo gedit /etc/gdm/custom.conf

添加如下两个字段:

[security]

DisallowTCP=false

[xdmcp]
Enable=true

Port=177
DisplaysPerHost=10

注:DisplaysPerHost表示显示主机的数量

3、Open the /etc/gdm/gdm.schemas file and set XDMCP to true(修改schemas配置文件):

sudo gedit /etc/gdm/gdm.schemas

修改xdmcp/Enable字段:

<schema>

<key>xdmcp/Enable</key>

<signature>b</signature>

<default>true</default>

</schema>

注:理论上,这一步完全可以被第二步替代,但并不完全确定。如果仅配置第二步还是不行的话可以再做这一步。

(4 5步尤为的重要,这样才可以打开xbrowser)

4、Open port udp 177(开启177端口):

sudo ufw allow 177

5、Reboot the system(重启gdm):

sudo /etc/init.d/gdm restart

ssh 远程出现错误:

Connection to 192.168.10.20 closed.
[root@localhost ~]# ssh 192.168.10.88
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b6:0c:41:43:60:79:eb:05:9e:c9:72:1d:a0:41:9a:50.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for 192.168.10.88 has changed and you have requested strict checking.
Host key verification failed.

1.在客户端执行下述指令即可 #mv /root/.ssh/known_hosts /tmp

2.当然也可以直接编辑known_hosts文件,把里面与所要连接IP(192.168.10.20)相关的内容删掉即可.

cat ~/.ssh/known_hosts

上一篇:iOS 上传新版本到AppStore时报错ITMS-90034


下一篇:Scrapy 1.4 文档 01 初窥 Scrapy