windows 和 windows 遠(yuǎn)程可以使用mstsc遠(yuǎn)程桌面,近期想把mstsc應(yīng)用于Linux上,故問(wèn)了Google大爺下,果不其然使用Xrdp軟件可以。
關(guān)閉Ubuntu防火墻
# ufw disable
首先使用putty遠(yuǎn)程到Ubuntu系統(tǒng)上安裝相關(guān)軟件:
# apt-get install wine
# apt-get install xrdp
# apt-get install gnome-shell
# apt-get gnome-panel
相關(guān)配置文件修改:
# vim.tiny /etc/lightdm/lightdm.conf
改為user-session=gnome-shell
# vim.tiny /etc/xrdp/startwm.sh
gnome-session-fallback 新增此行
#. /etc/X11/Xsession 注釋此行
# vim.tiny /etc/xrdp/sesman.ini
MaxSessions=50 最大會(huì)話改為50
重啟服務(wù)
# /etc/init.d/xrdp restart
在windwos客戶端使用mstsc連接此服務(wù)器
注:Ubuntu10.04 xrdp版本默認(rèn)為0.4,win 7 遠(yuǎn)程需要0.5或以上的版本,以下步驟為編譯xrdp0.5源碼包:
卸載0.4 xrdp
# apt-get remove xrdp
安裝相關(guān)軟件:
# apt-get install autoconf
# apt-get install libtool
# apt-get install libssl-dev
# apt-get install libpam0g-dev
# apt-get install libx11-dev
# apt-get install libxfixes-dev
安裝0.5 版本xrdp:
# tar -zxvf xrdp-0.5.0.tar.gz
# cd xrdp
# sh ./bootstrap
# sh ./configure
# make
# make install
# reboot