1. 程式人生 > >Windows下使用XManager訪問Ubuntu 11.04的設定方法

Windows下使用XManager訪問Ubuntu 11.04的設定方法

 

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、Open port udp 177(開啟177埠):

$ sudo ufw allow 177  

 

5、Reboot the system(重啟gdm):

$ sudo /etc/init.d/gdm restart 

 真不明白,為什麼NetSarang的官網也會被牆?害得我跑到韓國網站去下……

gdm_2320-0ubuntu1_i386.deb