选择显示字体大小

vnc的远程安装

vnc是at&t公司的远程管理软件,和终端服务类似,和终端不同的地方在于终端服务连接上去是开启了一个会话,而vnc则是和当前正在登录的用户共用同一个会话。这也就是说,你可以和当前登录的用户同时操作,他所作的一切你都可以看见,反之亦然。

vnc并没有提供远程安装的功能,经过一个下午的摸索,我终于找到了远程安装的方法。

1、首先在自己的系统上安装vnc,并且将vnc安装为服务(在装完vnc后,菜单中提供一项功能可以直接在本机装为服务)。

2、服务启动以后,会在任务栏出现一个小图标,这个时候必须设置一个密码(否则vnc不允许远程连接)。这个密码同时也是将来我们安装到远程时候的密码。

3、使用注册表工具将vnc在本机的设置导出。

regedit /e hkey_current_user\software\orl vnc1.reg

regedit /e hkey_local_machine\software\orl vnc2.reg

4、将vnc1.reg和vnc2.reg合并为一个文件vnc.reg(怎么合并就不用说了吧c&p)。

这时候的vnc.reg文件看起来应该是这样的(具体系统会有所不同)

windows registry editor version 5.00

[hkey_current_user\software\orl]

[hkey_current_user\software\orl\winvnc3]
"socketconnect"=dword:00000001
"autoportselect"=dword:00000001
"inputsenabled"=dword:00000001
"localinputsdisabled"=dword:00000000
"idletimeout"=dword:00000000
"querysetting"=dword:00000002
"querytimeout"=dword:0000000a
"password"=hex:fd,9d,5b,8d,77,f7,ea,8d
"pollundercursor"=dword:00000000
"pollforeground"=dword:00000001
"pollfullscreen"=dword:00000001
"onlypollconsole"=dword:00000001
"onlypollonevent"=dword:00000000

[hkey_local_machine\software\orl]

[hkey_local_machine\software\orl\winvnc3]

[hkey_local_machine\software\orl\winvnc3\default]
"socketconnect"=dword:00000001
"autoportselect"=dword:00000001
"inputsenabled"=dword:00000001
"localinputsdisabled"=dword:00000000
"idletimeout"=dword:00000000
"querysetting"=dword:00000002
"querytimeout"=dword:0000000a
"password"=hex:fd,9d,5b,8d,77,f7,ea,8d
"pollundercursor"=dword:00000000
"pollforeground"=dword:00000001
"pollfullscreen"=dword:00000001
"onlypollconsole"=dword:00000001
"onlypollonevent"=dword:00000000

[\hkey_users\.default\software\orl]

[\hkey_users\.default\software\orl\winvnc3]
"socketconnect"=dword:00000001
"autoportselect"=dword:00000001
"inputsenabled"=dword:00000001
"localinputsdisabled"=dword:00000000
"idletimeout"=dword:00000000
"querysetting"=dword:00000002
"querytimeout"=dword:0000000a
"password"=hex:fd,9d,5b,8d,77,f7,ea,8d
"pollundercursor"=dword:00000000
"pollforeground"=dword:00000001
"pollfullscreen"=dword:00000001
"onlypollconsole"=dword:00000001
"onlypollonevent"=dword:00000000
5、将需要远程安装的文件复制到同一个目录下面。

msvcirt.dll
msvcrt.dll
omnithread_rt.dll
regdll.exe
vnc.reg
vnchooks.dll

6、将vnc.reg和runasex.exe(www.netxeyes.com)复制到这个目录下。

7、为了安装方便写一个bat文件reg.bat,也放到这个目录下,这个文件的内容如下:

runasex %1 %2 winvnc.exe "-install"
runasex %1 %2 regedit.exe "/s \winnt\vnc.reg"
.net start winvnc

这时候,所有需要的文件都已经准备完成了,如下所列:

msvcirt.dll
msvcrt.dll
omnithread_rt.dll
reg.bat
regdll.exe
runasex.exe
vnc.reg
vnchooks.dll

8、将文件复制到远程主机(需要administrators组的权限)。

copy *.* \\xxx.xxx.xxx.xxx\admin$

9、利用ntcmd或者nc或者schedule服务一类的东西在远程主机中执行如下命令。

reg.bat <用户名> <密码>

用户名和密码就是远程系统具有administrators权限的用户名和密码。

10、利用vnc_viewer连接。

另:我这篇文章写的很简单,在实际中可能会遇到这样或者那样的问题。自己实践过的东西才是自己的,这也是我没有写的非常详细的原因。

自己动手实践是一种乐趣,good luck!   


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons