1. 確認vnc-server已安裝
2. 用vncpasswd產生/root/.vnc/passwd
3. 編輯/etc/X11/xorg.conf
增加Section "Module"
Section "Module"
Load "vnc"
EndSection
在Section "Screen"增加此行
Option "passwordFile" "/root/.vnc/passwd"
4. 把port 5900打開
==================
xrdp安裝設定 (可用Windows遠端桌面連線)
1. 安裝EPEL repositories (以下link search EPEL)
http://wiki.centos.org/AdditionalResources/Repositories
a. download rpm
>wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
b. install rpm
> rpm -ivh epel-release-5-4.noarch.rpm
2. install xrdp
>yum install xrdp
3. 設定/etc/xrdp/xrdp.ini, 新增此session
[xrdp2]
name=Desktop
lib=libvnc.so
ip=127.0.0.1
port=5900
username=
password=ask
4. 把Firewall port 3389打開
5. restart xrdp & vncserver
>service vncserver restart
>service xrdp restart
6. 在Remote windows測試
開啟"Winodws遠端桌面連線" mstsc.exe
IP:remtoe端的IP
7.連進去後Module欄, 下拉選"Desktop"
keyin密碼就OK了!
參考資料:
1. http://it-specialists.org/pages/posts/howto-installation-of-xrdp-under-centos-5.5-10.php
2. http://blog.yam.com/linkatzelda/article/27398655
3. http://www.vixual.net/blog/archives/tag/xrdp
沒有留言:
張貼留言