侧边栏壁纸
博主头像
★街角晚灯★博主等级

博观而约取 厚积而薄发

  • 累计撰写 466 篇文章
  • 累计创建 185 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

CentOS6.4 远程连接Windwos Server服务器

WinJay
2013-08-04 / 0 评论 / 0 点赞 / 134 阅读 / 81685 字 / 正在检测是否收录...
温馨提示:
文章发布较早,内容可能过时,阅读注意甄别。。。。

CentOS6.4 远程连接Windwos Server服务器

[root@Jeffery]# yum install -y rdesktop
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* epel: mirrors.hust.edu.cn
* rpmforge: mirror.oscc.org.my
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package rdesktop.x86_64 0:1.6.0-10.el6 will be installed
–> Processing Dependency: pcsc-lite for package: rdesktop-1.6.0-10.el6.x86_64
–> Processing Dependency: libpcsclite.so.1()(64bit) for package: rdesktop-1.6.0-10.el6.x86_64
–> Running transaction check
—> Package pcsc-lite.x86_64 0:1.5.2-13.el6_4 will be installed
–> Processing Dependency: pcsc-ifd-handler for package: pcsc-lite-1.5.2-13.el6_4.x86_64
—> Package pcsc-lite-libs.x86_64 0:1.5.2-13.el6_4 will be installed
–> Running transaction check
—> Package pcsc-lite-acr38u.x86_64 0:1.7.10-1.el6.rf will be installed
–> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
Package Arch Version Repository Size
=========================================================================================================
Installing:
rdesktop x86_64 1.6.0-10.el6 base 152 k
Installing for dependencies:
pcsc-lite x86_64 1.5.2-13.el6_4 updates 130 k
pcsc-lite-acr38u x86_64 1.7.10-1.el6.rf rpmforge 57 k
pcsc-lite-libs x86_64 1.5.2-13.el6_4 updates 28 k

Transaction Summary
=========================================================================================================
Install 4 Package(s)

Total download size: 367 k
Installed size: 976 k
Downloading Packages:
(1/4): pcsc-lite-1.5.2-13.el6_4.x86_64.rpm | 130 kB 00:00
(2/4): pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64.rpm | 57 kB 00:10
(3/4): pcsc-lite-libs-1.5.2-13.el6_4.x86_64.rpm | 28 kB 00:00
(4/4): rdesktop-1.6.0-10.el6.x86_64.rpm | 152 kB 00:00
———————————————————————————————————
Total 27 kB/s | 367 kB 00:13
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pcsc-lite-libs-1.5.2-13.el6_4.x86_64 1/4
Installing : pcsc-lite-1.5.2-13.el6_4.x86_64 2/4
Installing : pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64 3/4
Installing : rdesktop-1.6.0-10.el6.x86_64 4/4
Verifying : rdesktop-1.6.0-10.el6.x86_64 1/4
Verifying : pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64 2/4
Verifying : pcsc-lite-1.5.2-13.el6_4.x86_64 3/4
Verifying : pcsc-lite-libs-1.5.2-13.el6_4.x86_64 4/4

Installed:
rdesktop.x86_64 0:1.6.0-10.el6

Dependency Installed:
pcsc-lite.x86_64 0:1.5.2-13.el6_4 pcsc-lite-acr38u.x86_64 0:1.7.10-1.el6.rf
pcsc-lite-libs.x86_64 0:1.5.2-13.el6_4

Complete!
[root@Jeffery]# rdesktop -a 16 112.124.XXX.XXX
-a 16的意思是指画面用32-bit 显示
Autoselected keyboard map en-us
NOT IMPLEMENTED: RDP5 opcode 11
NOT IMPLEMENTED: RDP5 opcode 11
ERROR: get cursor 0
[root@Jeffery yum.repos.d]#

iptables-save > /etc/firewall.conf # 保存规则到一个文件
echo ‘#!/bin/sh’ > /etc/network/if-up.d/iptables # 创建一个开机启动项文件
echo ‘iptables-restore < /etc/firewall.conf’ >> /etc/network/if-up.d/iptables # 同上,继续添加内容
chmod +x /etc/network/if-up.d/iptables # 修改启动项文件的执行属性

如果不满意以上配置的规则,可以使用以下命令来清空全部规则:

iptables -F
iptables -X
iptables -Z

到此,全部结束。

======================分割线========================

2013.08.05后记

rdesktop是linux远程连接windows的利器,就像在windows系统下使用mstsc命令连接windows一样。

在使用过程中的确方便了不少

用法: rdesktop [options] server[:port]

命令参数常用的有:

-u 用户名

-p 密码

-n 客户端主机名(显示windows任务管理器中的连接客户端名)

-g 桌面大小(高*宽)

-f 全屏模式, 从全屏模式切换出来按 Ctrl+Alt+Enter

-a 连接颜色深度(最高到16位),一般选16才会显示真彩色

-0 数字0 表示连接上windows 控制台,等效mstsc /console命令

例子:

1、在全屏模式下用真彩色、客户端名为bluebird8、用户名bluebird8连接192.168.0.100 控制台

$rdesktop -f -a 16 -n bluebird8 -u bluebird8 -0 192.168.0.100

2、以800*600窗口大小、真彩色、用户名bluebird8、打开远程端口为16453的192.168.0.101 控制台

$rdesktop -g 800*600 -a 16 -u bluebird8 -0 192.168.0.101:16453

0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区