zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    AudioStreamer电话打进时崩溃
    ios中NSLog输出格式大全
    IOS Framework制作(一)
    UIButton上的文字添加阴影
    Tim Cook向员工发邮件,祝贺大家实现创纪录的季度
    ios 通讯录“写”操作大全
    AVAudioSession的Category
    IOS播放优酷视频
    iOS 设备的网页调试工具Firebug
    iOS中retain和copy的区别
  • 原文地址:https://www.cnblogs.com/tina-smile/p/3605995.html
Copyright © 2011-2022 走看看