最近开始用Fedora 15办公,由于公司的服务器不完全是Linux,也有大量的Windows 2003机器,经常需要远程windows机器。在Linux下你可以使用rdesktop或tsclient工具来远程连接windows机器,就和windows下mstsc一样。 tsclient介绍tsclient是图形化的,我没有使用,但其实tsclient功能也是很强大的,不仅支持RDP,还支持VNC,xdmcp协议。tsclient实际上是rdesktop的外壳程序,调用rdesktop进行连接。
tsclient官网:http:///projects/tsclient/ tsclient安装方法: apt-get install tsclient //ubuntu/debian用户 apt-get install xnest //xdmcp支持 apt-get install xtightvncviewer //vnc支持 yum -y install tsclient //fedora/centos用户 rdesktop介绍本文主要和大家探讨rdesktop命令行下远程连接windows机器。应该支持Remote Desktop Protocol的linux下客户端都可以实现,其他好用的客户端欢迎在评论中分享。 先看官方介绍: “rdesktop is an open source client for Windows Remote Desktop Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user’s Windows desktop. rdesktop is known to work with Windows versions such as NT 4 Terminal Server, 2000, XP, 2003, 2003 R2, Vista, 2008, 7, and 2008 R2. rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward. rdesktop is released under the GNU Public Licence (GPL), version 3. Please send feedback, bug reports and patches to the appropriate” 如官网所说,rdesktop是以GPLv3开源的,依赖于X windows system,支持所有windows系统啦。 rdesktop安装方法apt-get install rdesktop 或 yum install rdesktop 源码安装: 目前最新稳定版是rdesktop 1.7.0 解压#./configure #make&&make install 即可。 rdesktop使用方法语法: rdesktop [options] server[:port] 详细参数#man rdesktop或#info rdesktop -u 用户名 //+0表示窗口在linux的显示位置 -g workarea 自动检测当前Linux桌面的尺寸并全部填充 -x lan|modem 用来决定网络带宽,如果带宽宽的话,选择lan可以将桌面背景也传过来,默认是没有桌面背景的 -r comport:COM1=/dev/ttyS0 -r clipboard:PRIMARYCLIPBOARD是允许在远程主机和本机之间共享剪切板,就是可以复制粘贴。 -r disk:MyDisk=/share就是把你的Linux下某个文件夹挂载到远程主机上 //MyDisk名称自定义,=后是您挂载的linux路径。 实例:#rdesktop -f -r clipboard:PRIMARYCLIPBOARD -a 16 192.168.1.8 #rdesktop 192.168.1.8 //当然这个也可以。 差不多就这些了,大家 有什么更好的工具或技巧,欢迎在评论中与大家分享。 |
|
来自: Dead n Gone > 《Linux》