Board logo

主題: [分享]用Windows的遠端桌面操作Linux [打印本頁]

發表人: paul690808    時間: 2011-12-7 02:55 PM     主題: [分享]用Windows的遠端桌面操作Linux

1. 安裝xrdp
(1)yum install gcc pam-devel openssl-devel
(2)aptitude -f install gcc libpam0g-dev libcurl4-openssl-dev
(3)wget http://sourceforge.net/projects/xrdp/fi ... z/download
(4)tar zxf xrdp-0.4.1.tar.gz
(5)cd xrdp-0.4.1
(6)make
(7)make install

2. 啟動xrdp,並設定開機自動啟動
(1)/usr/local/xrdp/xrdp_control.sh start
(2)vi /etc/rc.local
/usr/local/xrdp/xrdp_control.sh start
(3)iptables -A INPUT -p tcp --dport 3389 -j ACCEPT

3. 用VNC Server來登入遠端桌面
(1)vim /etc/sysconfig/vncservers //root權限
VNCSERVERS="1:paul" //登入帳號
VNCSERVERARGS[1]="-geometry 800x600" //解析度
(2)/etc/init.d/vncserver start
(3)su paul
(4)vncpasswd
Password: //輸入 VNC 密碼
Verify: //再輸入一次 VNC 密碼以確認
(5)vi ~/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm
(6)/etc/init.d/vncserver restart //root權限
(7)vi /etc/rc.local
/etc/init.d/vncserver start

4. 用Windows的遠端桌面連到Linux




歡迎光臨 TWed2k (http://twed2k.org/) Powered by Discuz! 4.1.0