在Ubuntu8.10上配置xrdp(rdp server)
发表于 : 2009-05-15 16:06
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
在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