1.有一批运算服务器放在机柜中(十几台),机柜内放一台千兆交换机连接此组服务器----(使用192.168.0.0网段IP,0.100----0.254)

2.通常是用笔记本(IP地址 192.168.0.11)远程桌面连接到服务器进行控制,为了隔离服务器限制连接方式以及降低局域网流量,

3.现在增加一台入口机,笔记本客户端先连接登陆到入口机系统再连接服务器

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_02

1.客户访问端(笔记本/台式机) 系统 windowsxp windows7 /Ubuntu / Mac OS

2.入口机 (低配机架式服务器)系统   Ubuntu Centos  Debian

2 服务器   (机架式服务器)  系统 windows2003/2008  redhat debian

 

=================

本例使用笔记本windows7系统,安装RealVNC -------桌面连接到------入口机Centos6

入口机安装vnc-server 和tsclient ,用tsclient远程桌面连接windows 2003系统(服务器)

一,笔记本windows7系统安装RealVNC client ,省略

二,入口机centos6 安装vnc-server---------使windows7 VNC连接到centos系统桌面环境 

1.首先查看是否已经安装vnc-server软件包,输入以下命令:

rpm -qa|grep vnc-server

如果没安装的话运行以下命令进行安装:

yum install vnc-server

2. 设置能通过VNC连接的用户,修改/etc/sysconfig/vncservers这个文件

[root@rukou ~]# vi /etc/sysconfig/vncservers 
 

VNCSERVERS="2:user1"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

[root@rukou ~]#vncserver -------用root账号第一次输入此命令会提示设置密码
 

New 'rukou:10 (root)' desktop is rukou:10 ----------10代表连接号

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/rukou:10.log

[root@rukou ~]# service vncserver start

新建用户user1,用user1账号VNC连接centos系统桌面

[root@rukou home]# useradd user1
[root@rukou home]# passwd user1            
Changing password for user user1.
New password:               ----------设置user1系统登录密码
BAD PASSWORD: it is based on a dictionary word
Retype new password:
Sorry, passwords do not match.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[root@rukou home]# su user1   ------切换到user1账号
[user1@rukou home]$ vncserver    ---设置user1 VNC连接信息

You will require a password to access your desktops.

Password:          ----------------创建user1用户VNC连接密码
Verify:
xauth:  creating new authority file /home/user1/.Xauthority

New 'rukou:12 (user1)' desktop is rukou:12-------连接号为12

Creating default startup script /home/user1/.vnc/xstartup
Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/rukou:12.log

[user1@rukou home]$ 

备注
1.若忘记上一次user1连接密码可以在user1账号下执行命令vncpasswd修改VNC连接密码

2.若忘记上一次user1 VNC连接号 请在user1账号下执行 vncserver 密码 创建新连接号

[user1@rukou home]$ vncpasswd
Password:  -----创建修改密码
[user1@rukou home]$ vncserver

New 'rukou:13 (user1)' desktop is rukou:13  ----创建新连接号

Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/rukou:13.log

[user1@rukou home]$ 

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_tsclient_03 

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_VNC_04 

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_05

 

三,CentOS 安装 tsclient   ,用tsclient远程桌面windows2003

tsclient介绍

tsclient不仅支持RDP,还支持VNC,xdmcp协议。tsclient实际上是rdesktop的外壳程序,调用rdesktop进行连接。

 

tsclient官网:http://sourceforge.net/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用户

首先在linux 上执行 yum list tsclient  显示结果如下

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_06

 

   表示有该软件可以利用,自动列出适合该系统的软件。接下来执行 yum install tsclient  安装该软件  。安装tsclient的同时会自动安装tigervnc包和让desktop包。出现如下图所示:

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_07

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_tsclient_08  

 

表示已经安装成功了。同时在应用程序中还多出来一个TigerVNC Viewer的客户端。

 

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_09

 

启动终端服务器客户机,即刚才安装的程序。 

 

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_tsclient_10

windowsXP用VNC客户端连接centos6桌面后再用tsclient连接windows2003/2008桌面_centos_11

参考

1.http://www.wincold.com/archives/155.html

2.http://blog.51osos.com/linux/linux-rdesktop-windows/

3.http://xuxuezhe.blog.51cto.com/1636138/771882

4.http://300second.blog.51cto.com/7582/834017