分页: 1 / 1

在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-05-15 16:06
thomasan
1. 引言
在window上,我们知道通过配置“远程桌面连接”,就可以登陆到远程计算机的桌面系统,这对于控制远端计算机是非常方便的。Microsoft是通过rdp协议实现这一功能的。一端是rdp server,一端是rdp client。当我们在windows中勾选“允许远程桌面连接”时,实际上就是将其配置为rdp server了。那末有没有将Linux配置为rdp server的工具呢?这样的话,通过windows的rdp client就可以控制远端的Linux机器了。通过调查,xrdp就是这样一个工具。相见 http://xrdp.sourceforge.net/
首先说明的是,我在这里配置这个工具,最终并没有完全可用。存在一个严重问题。下面会提到。

2. 安装

我是在Ubuntu8.10上安装配置的。直接按照网上的要求来做吧。
1. Install the following packages
- tightvncserver
- vnc4-common
- libpam0g-dev
- libssl-dev (it won't build without this)

2. Fetch xrdp sources from http://xrdp.sourceforge.net/. Un-gzip and tar it into a directory.

3. SU to root, CD to the directory where the xrdp sources you just got are, then:

Code:
make
make install
4. Fix the font problem between X11 that ships with Ubuntu and Xvnc. I did this by:


Code:
ln -s /usr/share/fonts/X11 /usr/share/X11/fonts
5. Edit the startwm.sh script in /usr/local/xrdp/startwm.sh. I just nuked the whole thing and created a new startwm.sh with the following in it:


Code:
#!/bin/sh
dbus-launch gnome-session
6. Start xrdp


Code:
./xrdp_control.sh start
7. Connect to it with the RDP client of your choice. It seems to be working with WinXP's RDP client, but I really wanna test it with some winterms.

最后出现的严重问题就是,键盘输入的和显示的完全不一致。例如我敲进去“abcdefg”,现实的却是"asdfghj"。网上说对这个问题有个解决方案是:
disable the keyboard plugin of the gnome-settings-daemon using gconf-editor:

/apps/gnome_settings_daemon/plugins/keyboard

set active to False.

但就我个人的情况来说,该问题并没有解决。希望大家有兴趣的可以追踪下这个问题。一起把这个问题解决掉。xrdp的确是个很不错的工具。
有问题可以交流:anhailin@cnnic.cn

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-05-18 13:59
thomasan
这边的人气为啥这么低?

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-07-28 14:54
root127
试着做做了

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-07-28 14:57
root127
在SSH 只能用VIM ,有点不习惯了..我喜欢用GEDIT ..才想到用远程桌面

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-07-28 15:04
root127
认真看了看,不明白,,楼主能不能写个菜鸟教程啊

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-09-08 21:45
byg1228
关注 :em01

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-10-18 19:08
mm740
关注 :em01

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2009-12-14 10:19
dabiana
。。。。

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2010-01-14 15:51
dabiana
。。。。

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2010-01-14 23:30
dabiana
。。。。

Re: 在Ubuntu8.10上配置xrdp(rdp server)

发表于 : 2010-03-18 21:15
smartjin
剛睡了一覺起來用力的看文件,
原來有一些麻煩在,
我把所有網路上的解法給彙整一下就是這樣:

0. 基本安裝:
apt-get install libpam0g-dev
apt-get install libcurl4-openssl-dev
apt-get install tightvncserver
wget https://launchpad.net/~cschieli/+archiv ... 1_i386.deb
sudo dpkg -i xrdp_0.4.0~dfsg-8+sdrik1_i386.deb

解釋:

1. 新版Windows Remote Desktop Connection不支援
要手動到https://launchpad.net/~cschieli/+archive/ppa抓新的XRDP
wget https://launchpad.net/~cschieli/+archiv ... 1_i386.deb
sudo dpkg -i xrdp_0.4.0~dfsg-8+sdrik1_i386.deb

2. 要裝tightvnc
apt-get install tightvncserver

3. 鍵盤輸入問題:(每個User來一次)
gconftool-2 –type list –list-type=string –set /desktop/gnome/peripherals/keyboard/kbd/layouts [damnlayouts]

4. Xauthorization問題 (假如重開機都沒有從gdm登入)
Copy the root .Xauthority file to your user’s home.
sudo cp /root/.Xauthority /home/username/
sudo chown username:group /home/username/.Xauthority

(沒有的話自己登入產生一個, 把那個備份起來, 沒有的時候自己蓋過去, 我是用VMWare產生了一個)

就這樣… 終於解決了@@