在Ubuntu8.10上配置xrdp(rdp server)
-
- 帖子: 9
- 注册时间: 2008-08-14 16:18
在Ubuntu8.10上配置xrdp(rdp server)
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
-
- 帖子: 9
- 注册时间: 2008-08-14 16:18
Re: 在Ubuntu8.10上配置xrdp(rdp server)
这边的人气为啥这么低?
- root127
- 帖子: 59
- 注册时间: 2009-06-11 20:12
- root127
- 帖子: 59
- 注册时间: 2009-06-11 20:12
Re: 在Ubuntu8.10上配置xrdp(rdp server)
在SSH 只能用VIM ,有点不习惯了..我喜欢用GEDIT ..才想到用远程桌面
- root127
- 帖子: 59
- 注册时间: 2009-06-11 20:12
Re: 在Ubuntu8.10上配置xrdp(rdp server)
认真看了看,不明白,,楼主能不能写个菜鸟教程啊
-
- 帖子: 52
- 注册时间: 2006-10-18 0:57
Re: 在Ubuntu8.10上配置xrdp(rdp server)
关注
AMD Athlon x2 3600+
捷波悍马HAO1-GT
斯巴达克X1650GT
Ubuntu 7.04 xgl+beryl
捷波悍马HAO1-GT
斯巴达克X1650GT
Ubuntu 7.04 xgl+beryl
- mm740
- 帖子: 300
- 注册时间: 2009-08-09 17:34
Re: 在Ubuntu8.10上配置xrdp(rdp server)
关注
淡定,不要听风就是雨。淡定是一种境界,是一种超然世外的意识。只有修养达到一定阶段,才能产生并拥有。拥有了淡定,就拥有了风度。于是淡定便成了一种气质,让我辈无论如何努力和奋斗,始终难望其项背。淡定需要时间和实践的积淀和净化,是一种拨云见日,是一种豁然开朗!君子坦荡荡,小人长戚戚。愿我们除了自卑多了自由,少了忙乱多了从容,去了怨恨多了温煦,戒了偏激多了沉着。一切在淡定中发展,在淡定中凯旋。
-
- 帖子: 3
- 注册时间: 2009-12-14 10:14
-
- 帖子: 3
- 注册时间: 2009-12-14 10:14
-
- 帖子: 3
- 注册时间: 2009-12-14 10:14
-
- 帖子: 5
- 注册时间: 2010-03-10 16:09
Re: 在Ubuntu8.10上配置xrdp(rdp server)
剛睡了一覺起來用力的看文件,
原來有一些麻煩在,
我把所有網路上的解法給彙整一下就是這樣:
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產生了一個)
就這樣… 終於解決了@@
原來有一些麻煩在,
我把所有網路上的解法給彙整一下就是這樣:
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產生了一個)
就這樣… 終於解決了@@