免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 803 | 回复: 0

rdesktop软件 [复制链接]

论坛徽章:
0
发表于 2008-02-25 15:54 |显示全部楼层
We usually use VNC to administer our Windows servers from our
GNU
/Linux workstations. Rdesktop allows you to access Terminal Services natively from GNU/Linux. This is a lot easier than running the Terminal Services client from Vmware like we did in
this article
. Sheeesh... :) We grabbed version 1.2.0 of rdesktop from
here
. While you are compiling and installing rdesktop, make sure Terminal Services is configured on your server. You can do this: start->programs->administrative tools->configure your server.
Here
is a screenshot that shows how to configure Terminal Services. It will take a reboot, and you will need your Windows 2000 CD. Administering the server through Terminal Services is quite a bit smoother than VNC. There are some drawbacks, though, in that installing certain software can fail because Windows 2000 isn't *really* multi-user. The identity you get when you use Terminal Services to log on as administrator isn't quite the same as if you log on from the console. We have had numerous problems with this in the past, specifically, we have had trouble installing SQL server remotely this way, even though we were using remote administration mode. It is intended to work, though, and over time the bugs will probably get worked out. For more info, see
this article
. In the mean time, don't assume that administering the server via Terminal Services is the same as remote controlling the console.
While Terminal Services is installing, and the server rebooting (sigh), let's go back to the GNU/Linux client and extract/install the rdesktop software:
u-1@srv-1 rdesk $ ls
rdesktop-1.2.0.tar.gz
u-1@srv-1 rdesk $ tar -xzf rd*.gz
u-1@srv-1 rdesk $ cd rd*
u-1@srv-1 rdesktop-1.2.0 $
u-1@srv-1 rdesktop-1.2.0 $ ./configure
rdesktop build configuration script
X Window System:
includes  /usr/X11R6/include
libraries /usr/X11R6/lib
OpenSSL:
includes  /usr/include
libraries /usr/lib
configure complete - now run make
u-1@srv-1 rdesktop-1.2.0 $ make
gcc -DKEYMAP_PATH=\"/usr/local/share/rdesktop/keymaps/\"
-Wall -O2 -I/usr/X11R6/include -DWITH_OPENSSL -o rdesktop.o
u-1@srv-1 rdesktop-1.2.0 $ su
Password:
root@srv-1 rdesktop-1.2.0 # make install
mkdir -p //usr/local/bin
install rdesktop //usr/local/bin
strip //usr/local/bin/rdesktop
chmod 755 //usr/local/bin/rdesktop
mkdir -p //usr/local/share/rdesktop/keymaps/
cp keymaps/?? keymaps/??-?? //usr/local/share/rdesktop/keymaps/
cp keymaps/common //usr/local/share/rdesktop/keymaps/
cp keymaps/modifiers //usr/local/share/rdesktop/keymaps/
chmod 644 //usr/local/share/rdesktop/keymaps//*
mkdir -p //usr/local/man/man1
cp doc/rdesktop.1 //usr/local/man/man1
chmod 644 //usr/local/man/man1/rdesktop.1
root@srv-1 rdesktop-1.2.0 # exit
Now, to administer our Windows 2000 server:
u-1@srv-1 rdesktop-1.2.0 $ rdesktop
rdesktop: A Remote Desktop Protocol client.
Version 1.2.0. Copyright (C) 1999-2003 Matt Chapman.
See http://www.rdesktop.org/ for more information.
Usage: rdesktop [options] server[:port]
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password (- to prompt)
-n: client hostname
-k: keyboard layout on terminal server (us,sv,gr,etc.)
-g: desktop geometry (WxH)
-f: full-screen mode
-b: force bitmap updates
-e: disable encryption (French TS)
-m: do not send motion events
-C: use private colour map
-K: keep window manager key bindings
-T: window title
-D: hide window manager decorations
u-1@srv-1 rdesktop-1.2.0 $
u-1@srv-1 u-1 $ rdesktop -u administrator -p - srv-48
Password:
The -p - prompts for a password. We get a nice logon screen:

We are administering Windows 2000 from our GNU/Linux client:


Now, another cool application of rdesktop is to use it as as a Terminal Services client in application mode. If you have particular applications that users on your GNU/Linux workstations need that are only available on a Microsoft platform, you could use Terminal Services to serve up the application. There are some licensing issues, which you can read about
here
.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12364/showart_483397.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会

【架构革新 高效可控】2020年12月21日-23日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP