??xml version="1.0" encoding="utf-8" standalone="yes"?>国产成人无遮挡在线视频 ,丝袜一区二区三区,亚洲电影有码http://www.aygfsteel.com/kemi/category/8726.html我荒废的今日Q正是昨日殒w之人祈求的明日zh-cnFri, 27 Nov 2009 16:18:24 GMTFri, 27 Nov 2009 16:18:24 GMT60Q原创)|络ID、计机名无法修改(灰色Q的问题解决http://www.aygfsteel.com/kemi/archive/2007/10/19/154276.htmlKimiKimiFri, 19 Oct 2007 09:03:00 GMThttp://www.aygfsteel.com/kemi/archive/2007/10/19/154276.htmlhttp://www.aygfsteel.com/kemi/comments/154276.htmlhttp://www.aygfsteel.com/kemi/archive/2007/10/19/154276.html#Feedback0http://www.aygfsteel.com/kemi/comments/commentRss/154276.htmlhttp://www.aygfsteel.com/kemi/services/trackbacks/154276.html于是找资料,试了MS提供的两U方式:

Ҏ 1Q?调用 " 安装 API InstallHinfSection " 函数以安?Windows 防火?/font>

要安?Windows 防火? h照下列步骤:

1.

单击 开?Q?单击 q行 , cd cmd然后单击 定 ?

2.

在命令提C符? 键入以下命o? 然后?ENTER 键:

Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf

3.

重新启动 Windows,

4.

单击 开?Q?单击 q行 , cd cmd然后单击 定 ?

5.

在命令提C符, 键入以下命o, 然后?ENTER 键:

Netsh firewall reset

6.

单击 开?Q?单击 q行 , cd firewall.cpl然后?ENTER ???Windows 防火?对话? 单击 On Q推荐) , q单?定 。          ?p|Q?/font>

Ҏ 2Q?Windows 防火墙项d到注册表

警告 如果正确修改注册表通过注册表编辑器或通过其他Ҏ可能发生 Serious 问题?q些问题可能需要重新安装操作系l?Microsoft 不能保证能够解决q些问题而?修改注册表需要您自担风险?br />
要将 Windows 防火墙项d到注册表, h照下列步骤操作:

1.

以下文本复制到C? 然后再保存文件作?Sharedaccess.regQ?

Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess] "DependOnGroup"=hex(7):00,00 "DependOnService"=hex(7):4e,00,65,00,74,00,6d,00,61,00,6e,00,00,00,57,00,69,00,\ 6e,00,4d,00,67,00,6d,00,74,00,00,00,00,00 "Description"="Provides network address translation, addressing, name resolution and/or intrusion prevention services for a home or small office network." "DisplayName"="Windows Firewall/Internet Connection Sharing (ICS)" "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\ 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\ 6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00 "ObjectName"="LocalSystem""Start"=dword:00000002"Type"=dword:00000020 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch] "Epoch"=dword:00002cd0 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters] "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 69,00,70,00,6e,00,61,00,74,00,68,00,6c,00,70,00,2e,00,64,00,6c,00,6c,00,00,\ 00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\AuthorizedApplications] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\AuthorizedApplications\List] "%windir%\\system32\\sessmgr.exe"="%windir%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,-22019" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List] "%windir%\\system32\\sessmgr.exe"="%windir%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,-22019" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup] "ServiceUpgrade"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup\InterfacesUnfirewalledAtUpdate] "All"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Enum] "0"="Root\\LEGACY_SHAREDACCESS\\0000""Count"=dword:00000001 "NextInstance"=dword:00000001

2.

双击 Sharedaccess.reg 此文g的内容合q到注册表ƈ可创建防火墙V?/font>

3.

重新启动 Windows?/font>

4.

单击 开?Q?单击 q行 , cd cmd然后单击 定 ?

5.

在命令提C符, 键入以下命o, 然后?ENTER 键:

Netsh firewall reset

6.

单击 开?Q?单击 q行 , cd firewall.cpl然后单击 定 ?/font>

7.

配置与要使用 Windows 防火墙设|。      ?font style="BACKGROUND-COLOR: #7fffd4"> p|Q?/font>

最后考虑到是不是WINSOCK坏了Q于是采用了修复方式Q运行-netsh winsock reset
重启Q发现防火墙回来了,|络ID和计机名又可以修改了,赫赫。希望对同样遭遇的有帮助?br />



Kimi 2007-10-19 17:03 发表评论
]]>
上午上班到的问题-Q-转下rundll32.exe用法Q以C?/title><link>http://www.aygfsteel.com/kemi/archive/2007/08/01/133741.html</link><dc:creator>Kimi</dc:creator><author>Kimi</author><pubDate>Wed, 01 Aug 2007 01:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/kemi/archive/2007/08/01/133741.html</guid><wfw:comment>http://www.aygfsteel.com/kemi/comments/133741.html</wfw:comment><comments>http://www.aygfsteel.com/kemi/archive/2007/08/01/133741.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kemi/comments/commentRss/133741.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kemi/services/trackbacks/133741.html</trackback:ping><description><![CDATA[  早上来上班,装了一个主题,l果让我explorer.exe无法正常hQ桌面看不到Q只能用d理器来做一些事情?br /> 解决ҎQ?下蝲了新的explorer.exeQ覆盖,搞定。费!<br />———————————————————————?br /><br /><p>Rundll32.exe, ֐思义Q“执?2位的DLL文g”。它的作用是执行DLL文g中的内部函数Q这样在q程当中Q只会有Rundll32.exeQ而不会有DLL后门的进E,q样Q就实现了进E上的隐藏。如果看到系l中有多个Rundll32.exeQ不必惊慌,q证明用Rundll32.exe启动了多个的DLL文g。当Ӟq些Rundll32.exe执行的DLL文g是什么,我们都可以从pȝ自动加蝲的地Ҏ到?</p><p>Rundll32.exe使用的函数原型: <br />Void CALLBACK FunctionName ( <br />HWND hwnd, <br />HINSTANCE hinst, <br />LPTSTR lpCmdLine, <br />Int nCmdShow <br />); </p><p>其命令行下的使用Ҏ为:Rundll32.exe DLLname,Functionname [Arguments] <br />DLLname为需要执行的DLL文g名;Functionname为前辚w要执行的DLL文g的具体引出函敎ͼ[Arguments]为引出函数的具体参数?</p><p><br />利用rundll32重启机器的实?: 点击“开始-E式QMsQDos方式”,q入Dos视窗Q然后键入rundll32.exe user.exe,restartwindowsQ再按下回R键,q时你将看到Q机器被重启了!</p><p>RUNDLL.EXE <br />q里要注意三点:1.Dll档案名中不能含有I格Q比如该档案位於c:\ProgramFiles\目录Q你要把q个路径Ҏc:\Progra?\Q?.Dll档案名与Dll入口炚w的逗号不能,否则E式出错ƈ且不会给ZQ何资讯!3.q是最重要的一点:Rundll不能用来呼叫含返回值参数的DllQ例如Win32API中的GetUserName(),GetTextFace(){。在Visual Basic中,提供了一条执行外部程式的指oShell,格式为: <br />Shell “命令列?<br />如果能配合Rundll32.exe用好Shell指oQ会使您的VBE式拥有用其他方法难以甚x法实现的效果Q仍以重启ؓ例,传统的方法需要你在VB工程中先建立一个模l,然后写入WinAPI的声明,最后才能在E式中呼叫。而现在只需一? </p><p>Shell “rundll32.exe user.exe,restartwindows”就搞定了!</p><p>实际上,Rundll32.exe在呼叫各UWindows控制面板和系l选项斚w有著独特的优ѝ?br />命o? rundll32.exe shell32.dll,Control_RunDLL <br />功能: 昄控制面板 <br />命o? rundll32.exe shell32.dll,Control_RunDLL <a title="Access知识技? target="_blank">Access</a>.cpl,,1 <br />功能: 昄“控刉板-辅助选项Q键盘”选项视窗 <br />命o? rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2 <br />功能: 昄“控刉板-辅助选项Q声音”选项视窗 <br />命o? rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3 <br />功能: 昄“控刉板-辅助选项Q显C”选项视窗 <br />命o? rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4 <br />功能: 昄“控刉板-辅助选项Q滑鼠”选项视窗 <br />命o? rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5 <br />功能: 昄“控刉板-辅助选项Q传l”选项视窗 <br />命o? rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1 <br />功能: 执行“控刉板-d新硬体”向对{?<br />命o? rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter <br />功能: 执行“控刉板-d新印表机”向对{?<br />命o? rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 <br />功能: 昄 “控刉板-d/删除E式Q安?卸蝲?面板?<br />命o? rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2 <br />功能: 昄 “控刉板-d/删除E式Q安装Windows?面板?<br />命o? rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3 <br />功能: 昄 “控刉板-d/删除E式Q启动盘?面板?<br />命o? rundll32.exe syncui.dll,Briefcase_Create <br />功能: 在桌面上建立一个新的“我的公文包”?<br />命o? rundll32.exe diskcopy.dll,DiskCopyRunDll <br />功能: 昄复制软碟视窗 <br />命o? rundll32.exe apwiz.cpl,NewLinkHere Q? <br />功能: 昄“徏立快h式”的对话框,所建立的快h式的位置由%1参数军_?<br />命o? rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0 <br />功能: 昄“日期与旉”选项视窗?<br />命o? rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1 <br />功能: 昄“时区”选项视窗?<br />命o? rundll32.exe rnaui.dll,RnaDial [某个拨号q接的名U] <br />功能: 昄某个拨号q接的拨可H。如果已l拨可接,则显C目前的q接状态的视窗?<br />命o? rundll32.exe rnaui.dll,RnaWizard <br />功能: 昄“新建拨可接”向导的视窗?<br />命o? rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 <br />功能: 昄“显C属性-背景”选项视窗?<br />命o? rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1 <br />功能: 昄“显C属性-萤屏保护”选项视窗?<br />命o? rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2 <br /></p><img src ="http://www.aygfsteel.com/kemi/aggbug/133741.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kemi/" target="_blank">Kimi</a> 2007-08-01 09:59 <a href="http://www.aygfsteel.com/kemi/archive/2007/08/01/133741.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windowXP 锁定计算?的几U方?/title><link>http://www.aygfsteel.com/kemi/archive/2007/04/16/111022.html</link><dc:creator>Kimi</dc:creator><author>Kimi</author><pubDate>Mon, 16 Apr 2007 09:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/kemi/archive/2007/04/16/111022.html</guid><wfw:comment>http://www.aygfsteel.com/kemi/comments/111022.html</wfw:comment><comments>http://www.aygfsteel.com/kemi/archive/2007/04/16/111022.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kemi/comments/commentRss/111022.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kemi/services/trackbacks/111022.html</trackback:ping><description><![CDATA[ <p>1、按Ctrl+Alt+DelQ在弹出的Q务管理器中选择“关机”菜单的“锁定计机”?br />2、新建快h式,输入“rundll32.exe user32.dll,LockWorkStation?br />3、选择“开始→注销”,然后点击“切换用户”?br />4、按Ctrl+Alt+DelQ在弹出的Q务管理器中选择“用户”标{,然后选中当前d用户的̎P按“断开”按钮?<br />5、windows徉|?Q?/p> <img src ="http://www.aygfsteel.com/kemi/aggbug/111022.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kemi/" target="_blank">Kimi</a> 2007-04-16 17:05 <a href="http://www.aygfsteel.com/kemi/archive/2007/04/16/111022.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windows 杀q程技?/title><link>http://www.aygfsteel.com/kemi/archive/2007/03/20/104952.html</link><dc:creator>Kimi</dc:creator><author>Kimi</author><pubDate>Tue, 20 Mar 2007 06:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/kemi/archive/2007/03/20/104952.html</guid><wfw:comment>http://www.aygfsteel.com/kemi/comments/104952.html</wfw:comment><comments>http://www.aygfsteel.com/kemi/archive/2007/03/20/104952.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kemi/comments/commentRss/104952.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kemi/services/trackbacks/104952.html</trackback:ping><description><![CDATA[1,CMDq入命o行;<br />2Q查看好d理器中需要关闭的q程P?221<br />3. 输入 ntsd -c q -p 1221<img src ="http://www.aygfsteel.com/kemi/aggbug/104952.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kemi/" target="_blank">Kimi</a> 2007-03-20 14:10 <a href="http://www.aygfsteel.com/kemi/archive/2007/03/20/104952.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux Samba 服务配置记http://www.aygfsteel.com/kemi/archive/2006/04/05/39369.htmlKimiKimiWed, 05 Apr 2006 05:55:00 GMThttp://www.aygfsteel.com/kemi/archive/2006/04/05/39369.htmlhttp://www.aygfsteel.com/kemi/comments/39369.htmlhttp://www.aygfsteel.com/kemi/archive/2006/04/05/39369.html#Feedback1http://www.aygfsteel.com/kemi/comments/commentRss/39369.htmlhttp://www.aygfsteel.com/kemi/services/trackbacks/39369.html输入密码

SMB服务权限Q用?br />setupq入pȝ服务调整初始化?br />
如果q接错误Q可以net use清除内存的连接。?net use /delete

Kimi 2006-04-05 13:55 发表评论
]]>
Linux下FTP讄 QVsftp)?本地用户配置 vsftp.confhttp://www.aygfsteel.com/kemi/archive/2006/04/01/38613.htmlKimiKimiSat, 01 Apr 2006 08:04:00 GMThttp://www.aygfsteel.com/kemi/archive/2006/04/01/38613.htmlhttp://www.aygfsteel.com/kemi/comments/38613.htmlhttp://www.aygfsteel.com/kemi/archive/2006/04/01/38613.html#Feedback0http://www.aygfsteel.com/kemi/comments/commentRss/38613.htmlhttp://www.aygfsteel.com/kemi/services/trackbacks/38613.html # Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#

# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=yes
#
# Uncomment this to allow local users to log in.
local_enable=YES
#local_root=/var/ftp
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#user_config_dir=/etc/vsftpd/userconf
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will

# obviously need to create a directory writable by the FTP user.
anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_world_readable_only=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!

##chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES

# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
 however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to Daphne Linux FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES

# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_local_user=yes
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=YES
user_config_dir=/etc/userconf
#enable for standalone mode
listen=yes
tcp_wrappers=yes



Kimi 2006-04-01 16:04 发表评论
]]>
VNCq程控制LINUX 之一http://www.aygfsteel.com/kemi/archive/2006/03/31/38432.htmlKimiKimiFri, 31 Mar 2006 03:55:00 GMThttp://www.aygfsteel.com/kemi/archive/2006/03/31/38432.htmlhttp://www.aygfsteel.com/kemi/comments/38432.htmlhttp://www.aygfsteel.com/kemi/archive/2006/03/31/38432.html#Feedback1http://www.aygfsteel.com/kemi/comments/commentRss/38432.htmlhttp://www.aygfsteel.com/kemi/services/trackbacks/38432.html [b]什么是VNC?[/b]


VNC是虚拟网l计Virtual Network Computing的羃? 他是一个远E控制程?允许用户在因特网的Q何地方用简单的E序来和一个特定的

计算?服务?q行交互. 两个交互的计机不一定非得是同一cd,所以你可以在家里的q行windows的PC上来察看办公室里q行LINUX的机?br />
。VNC可以自由获取q且有上百万的h在用,他们来自工业、学术和个h应用{不同层?

更多的信息请讉K [url]http://www.realvnc.com/[/url]

[b]我的pȝ中已l有q个软g了吗Q[/b]

键入下面的命令来查vnc客户端和服务器是否已l安装在你的pȝ中:

[tchung@tchung101 tchung]$ rpm -q vnc vnc-server
vnc-4.0-0.beta4.3.2
vnc-server-4.0-0.beta4.3.2
[tchung@tchung101 tchung]$

要把vnc配置成一系l服务,把你的用户名U加入到下面的配|文件中Q?br />
[code][tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html
                                                                                                   
# VNCSERVERS="1:myusername"
VNCSERVERS="1:tchung"[/code]
在启动vnc服务之前Q让我们用vncpasswdq个命o来创Z个vnc的口?br />
注意q将同时在你的home目录下,创徏一个隐藏的目录.vncQ其中有一个文件passwd保存着你的vnc口o.

[code][tchung@tchung101 tchung]$ vncpasswd
Password:
Verify:
[tchung@tchung101 tchung]$ ls -d .vnc
.vnc
[tchung@tchung101 tchung]$ ls .vnc
passwd
[tchung@tchung101 tchung]$[/code]

现在来启动vnc服务.

[code][tchung@tchung101 tchung]$ sudo /sbin/service vncserver start
Starting VNC server: 1:tchung                              [  OK  ]
[tchung@tchung101 tchung]$[/code]

察看一?vncq个目录的内容,应该cM于下面的东西.

[code][tchung@tchung101 tchung]$ cd .vnc
[tchung@tchung101 .vnc]$ ls
passwd  tchung101:1.log  tchung101:1.pid  xstartup
[tchung@tchung101 .vnc]$[/code]

~辑q个名ؓxstartup的脚本,注意C面红色的部分的注?br />这两行标记成[color=red]U色[/color]的内容前面的注释W号LQ否则你只能得C个什么都没有的灰屏?!/bin/sh
                                                                                                   
# Uncomment the following two lines for normal desktop:

[color=red]unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc[/color]

                                                                                                   
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

因ؓ我们已经修改了启动脚本,现在来重新启动vncserver.

[code][tchung@tchung101 tchung]$ sudo /sbin/service vncserver restart
Shutting down VNC server: 1:tchung                         [  OK  ]
Starting VNC server: 1:tchung                              [  OK  ]
[tchung@tchung101 tchung]$[/code]

那么怎样来连接到vncserver? 照下面用客L的vncviewer命o.


[tchung@tchung101 tchung]$ vncviewer localhost:1

输入你的vnc口oQ看一下结?br />
更新:
在用防火墙的情况下来连接到一个远E系l?需要打开端口5901.
加入以下U色的部分,然后重启iptables服务?br />
[tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/iptables

# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0]
:FORWARD ACCEPT [0]
:OUTPUT ACCEPT [0]
:RH-Firewall-1-INPUT - [0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
[color=red]-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT[/color]
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

[tchung@tchung101 tchung]$ sudo /sbin/service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
[tchung@tchung101 tchung]$

Forrest Taylor 提供的TIP

让vncserver接受两个不同的用?


   [code] VNCSERVERS="1:tchung 2:thomasc"[/code]

当然你要Z个用户分别运行vncpasswd来设|口? q且在你的防火墙修改中,你应该明白VNC使用端口5901l连?用,如果象上面一栯?br />
持两个用P应同时打开5901?902.


Kimi 2006-03-31 11:55 发表评论
]]>VNCq程控制LINUX 之二http://www.aygfsteel.com/kemi/archive/2006/03/31/38431.htmlKimiKimiFri, 31 Mar 2006 03:51:00 GMThttp://www.aygfsteel.com/kemi/archive/2006/03/31/38431.htmlhttp://www.aygfsteel.com/kemi/comments/38431.htmlhttp://www.aygfsteel.com/kemi/archive/2006/03/31/38431.html#Feedback0http://www.aygfsteel.com/kemi/comments/commentRss/38431.htmlhttp://www.aygfsteel.com/kemi/services/trackbacks/38431.htmlVNCq程控制

实现功能Qwindows电脑中远E控制LINUX?br />
工具 QVNC。图形界面,分服务器端和客户端,服务器端AS4默认安装?br />
环境Q?br />AS4U2、winXPl对{网?br />查看版本命o

[root@linux ~]# uname -a
Linux linux 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux

步骤Q?br />1.在linux电脑上启动VNC服务

[root@linux ~]# service vncserver start
启动 VNC 服务器: [ 定 ]

如要每次开机都启动vncserver服务Q可q行setupQ在pȝ服务里选中vncserverQ确定?br />
2.执行vncserver

[root@linux ~]# vncserver

New 'linux:1 (root)' desktop is linux:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/linux:1.log

W一ơ运行时会让你设|密码,输入一ơ,在确认一ơ?br />密码可以更改 命o是vncpasswd

[root@linux ~]# vncpasswd
Password:
Verify:

“New 'linux:1 (root)' desktop is linux:1?br />其中QLinux是我的计机名,1表示是第一个桌面?br />

3.客户端连?br />WINXP电脑下蝲vnc-4.0-x86_win32Q这是我扑ֈ的最新的版本啦,里面包含VNC客户端和服务器端Q这里我要连接LINUX的服务器端,所以我只安装客L卛_?br />
Run VNC Viewer

服务器里填写 linux:1 Q?1不能)然后点连接,输入前面配置服务器时的密码。OK?br />

具体怎么用,Q,和在本机一P其他的我q在研究呢,本来自己pQ急着和大家分享,所以脓了出来?br />

下面的内Ҏ我在|上扑ֈ的,有兴也一L看?br />
相关配置Q?修改/etc/sysconfig/vncservers
可以使用vncserver -kill来关掉指定的vnc server
VNCSERVERS="1:root"
ARGS="-geometry 1024x768 -alwaysshared "
在ARGS中修?1024x768"来适应自己的X桌面实际参数配置。可以在q里dM其他VNC服务器参数配|。在VNCSERVERS中修?jdimpsonZ希望q行VNC桌面的用戗VNCSERVERS中的1表示VNC以桌?q行Q如果希望添加其他的桌面Q可以修攚w|如下:
VNCSERVERS="1:jdimpson 2hred 3:sysadmin"

server端的讄是q么单,但如果你不想用xdm而想用更漂亮的gdm或kdm的话Q就要作一些修改了Q编辑~/.vnc/xstartup文gQ该文g在第一ơ运行“vncserver”命令的时候自动生。将xstartup文g中的行用?”全部注释掉Q在最后加上startkde或gnome-session卛_?

cleint?
windowsQ双L面的VNC VEIWER图标?
linuxQ在Xwindow中运行vnccleint命o?br />


Kimi 2006-03-31 11:51 发表评论
]]>
Linuxq程操控XDM认识和配|?/title><link>http://www.aygfsteel.com/kemi/archive/2006/03/30/38283.html</link><dc:creator>Kimi</dc:creator><author>Kimi</author><pubDate>Thu, 30 Mar 2006 09:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/kemi/archive/2006/03/30/38283.html</guid><wfw:comment>http://www.aygfsteel.com/kemi/comments/38283.html</wfw:comment><comments>http://www.aygfsteel.com/kemi/archive/2006/03/30/38283.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kemi/comments/commentRss/38283.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kemi/services/trackbacks/38283.html</trackback:ping><description><![CDATA[ <p> <font size="2"> <font face="Arial">一、引a<br />我们可以通过telnet、ssh{远E登录Linux服务器,但都是字W界面的。本文介l了通过XDMCP+XDM?br /><br />q程q接Linux服务器上的XFree86 ServerQ可以在囑Ş环境下远E管理Linux服务器?br /><br />二、基本概?br />1、什么是XFree86<br />XFree86是X Windowpȝ的一U开放源代码的实现。它提供了一U对鼠标、键盘、显卡和H口囑Ş环境<br /><br />的Client-Server接口。所以客LE序可以q行在不同的L上,׃台服务器提供X Window的Server服务?br />2、什么是XDMCP<br />XDMCP即“X Display Manager Control Protocol”,是一U网l协议。由它来建立囑Ş客户端程?br /><br />与X Window服务器的q接与通信?br />3、什么是XDM<br />XDM即“X Display Manager”,由它来启动X Window服务器,q管理图形客LE序的登录、会话?br /><br />启动H口理器(KDE、GnomeQ等。KDE和Gnome也提供了自己的xdm的实玎ͼ分别叫kdm和gdm?br />4、什么是XFS<br />XFS即“X Font Server”,可以q一台服务器来统一提供字体Q远E图形客LE序׃需要单?br /><br />安装所有的字体了?br /><br />三、配|过E?br />1、我们的环境<br />我们使用一台装有Mandrake Linux 8.1的计机作ؓX Window的服务器Q服务器上网卡地址<br /><br />?92.168.0.1/24。ƈ且在安装Linux时一起安装了XFree86相关软g包?br />我们在局域网中的另一台装有Windows 2000的计机上安装了X-Win32软gQ作为X Window的客<br /><br />L。还有很多Windows下的X客户端程序,但大多是商业E序Q如exceed只提?0天的试用期?br /><br />而X-Win32没有天数限制Q只是每ơ只能?0分钟Q这对于大多数基本的服务器维护操作也够了Q?br /><br />旉C再连接就是了。免费用商业程序不能要求太高了:-)<br /><br />2、配|服务器<br />(1)配置xfs<br />xfs的配|文件是/etc/X11/fs/configQ内容如下:<br />#<br /># Default font server configuration file for Mandrake Linux workstation<br />#<br /><br /># allow a max of 4 clients to connect to this font server<br />client-limit = 4<br /><br /># when a font server reaches its limit, start up a new one<br />clone-self = off<br /><br /># alternate font servers for clients to use<br />#alternate-servers = foo:7101,bar:7102<br /><br /># where to look for fonts<br /># Some of these are commented out, i.e. the TrueType and Type1<br /># directories in /usr/share, because they arent forced to be<br /># installed alongside X.<br />#<br />catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,<br />/usr/X11R6/lib/X11/fonts/75dpi:unscaled,<br />/usr/X11R6/lib/X11/fonts/100dpi:unscaled,<br />/usr/X11R6/lib/X11/fonts/misc:unscaled,<br />/usr/X11R6/lib/X11/fonts/Type1,<br />/usr/X11R6/lib/X11/fonts/Speedo,<br />/usr/X11R6/lib/X11/fonts/mdk:unscaled,<br />/usr/share/fonts/default/Type1,<br />/usr/share/fonts/ttf/big5,<br />/usr/share/fonts/ttf/gb2312,<br />/usr/share/fonts/ttf/decoratives,<br />/usr/share/fonts/ttf/western<br /><br /># in 12 points, decipoints<br />default-point-size = 120<br /><br /># 100 x 100 and 75 x 75<br />default-resolutions = 75,75,100,1<br /># how to log errors<br />use-syslog = on<br /><br />在配|文件中可以定义最大客Lq接数量Q这里缺省是4。配|文件中也指明了字体文g的位|,<br /><br />特别注意包含了中文字体,否则在客L无法正确昄中文字体?br />接下来修?etc/rc.d/init.d/xfs文gQ把所有?port -1”改为?port 7100”,q是xfs~省?br /><br />听的端口。用如下命令来重启xfsQ?br />service xfs stop<br />service xfs start<br />xfs启动成功后,可以使用netstat -ln命o来确?100端口已绑定:<br />tcp 0 0 0.0.0.0:7100 0.0.0.0:* LISTEN<br /><br />(2)配置xdm<br />xdm的配|文件在/etc/X11/xdm目录下?br />首先修改xdm-config文gQ找C行:DisplayManager.requestPort: 0<br />注释q行Q?DisplayManager.requestPort: 0<br />如果有这行,xdm׃会监听XDMCP的连接了?br />接下来修改Xaccess文gQ这是控制客L讉K的配|文Ӟ修改内容如下Q?br />#* #any host can get a login window(L前面?Q?br />现在可以直接使用xdm命o来启动xdm服务Q用netstat -ln命o来确?77端口Qxdm~省的端口)<br />已绑定:<br />udp 0 0 0.0.0.0:177 0.0.0.0:*<br /><br />/etc/X11/xdm/xdm-config:<br />!Display ManagerrequestPort=0(前面Q!Q?br /><br />/etc/X11/xdm/Xaccess:<br /># * # any host can get a login window(L前面#Q?br /><br /><br /><br />如果惌在服务器启动后自动运行xdmQ就需要修?etc/inittab文gQ启动后进入?”运行别,<br /><br />修改内容如下Q?br />id:5:initdefault:<br />respawn:/etc/X11/profile Ҏ respawn:/usr/bin/gdm<br /><br />/etc/X11/gdm/gdm.conf<br />(xdmp)Enable=true<br />         Port=177<br /><br />我一般用XmanagerQ觉的比较好</font> </font> </p> <img src ="http://www.aygfsteel.com/kemi/aggbug/38283.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kemi/" target="_blank">Kimi</a> 2006-03-30 17:10 <a href="http://www.aygfsteel.com/kemi/archive/2006/03/30/38283.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">ͨ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ƥ</a>| <a href="http://" target="_blank">ֵ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Į</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">տ</a>| <a href="http://" target="_blank">ϳ</a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank">ٺ</a>| <a href="http://" target="_blank">ͩ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">³ɽ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">ʯʨ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ľ˹</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>