<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT log &#187; network</title>
	<atom:link href="http://zuolo.info/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://zuolo.info</link>
	<description>If we say that we have no sin, we deceive ourselves, and the truth is not in us.</description>
	<lastBuildDate>Thu, 09 Sep 2010 11:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CentOS GNOME Settings</title>
		<link>http://zuolo.info/2009/07/centos-gnome-settings/</link>
		<comments>http://zuolo.info/2009/07/centos-gnome-settings/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 09:27:59 +0000</pubDate>
		<dc:creator>Leon Tsang</dc:creator>
				<category><![CDATA[Live - Work and Struggle]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://zuolo.info/?p=1304</guid>
		<description><![CDATA[学习使用 centos 5.3 中的 gnome 操作的笔记： 1. startx #从字符界面启动可视桌面； 2. 屏幕太大看着难受。通过菜单 System/Perferences/Screen Resolution 弹出窗口中修改分辨率 Resolution 1280&#215;1024 为 1028&#215;768，刷新率 Refresh rate 60Hz 为 75Hz； 3. 查看文件和目录时总是弹出新窗口。 过菜单 System/Perferences/File Management 弹出窗口，选择 Behavior 标签分页，勾选 Alwa open in browser windows 后，即可用浏览模式在同一窗口中查看文件不会由于双击而打开新窗口了； 4. 使用 firefox 浏览网页时中文字体发虚： 1. 从网上下载微软宋体或微软雅黑体； 2. 由于字体文件是rar压缩包，又从 http://dag.wieers.com/rpm/packages/unrar/unrar-3.6.8-1.el4.rf.i386.rpm 下载 rar 解压缩的RPM安装包，在 gnome 中双击该rpm包即可自动安装； 3. 打开字体的rar压缩文件，解压到目录 /usr/share/fonts/chinese/TrueType 中，即可使用了。 [...]]]></description>
			<content:encoded><![CDATA[<h2>学习使用 centos 5.3 中的 gnome 操作的笔记：</h2>
<p>1. <strong>startx</strong> #从字符界面启动可视桌面；</p>
<p>2. 屏幕太大看着难受。通过菜单 <strong>System/Perferences/Screen Resolution</strong> 弹出窗口中修改分辨率 Resolution 1280&#215;1024 为 1028&#215;768，刷新率 Refresh rate 60Hz 为 75Hz；</p>
<p>3. 查看文件和目录时总是弹出新窗口。 过菜单 <strong>System/Perferences/File Management</strong> 弹出窗口，选择 <strong>Behavior</strong> 标签分页，勾选 Alwa open in browser windows 后，即可用浏览模式在同一窗口中查看文件不会由于双击而打开新窗口了；</p>
<p>4. <strong><span style="color: #008000;">使用 firefox 浏览网页时中文字体发虚：</span></strong></p>
<p>1. 从网上下载微软宋体或微软雅黑体；</p>
<p>2. 由于字体文件是rar压缩包，又从 <strong>http://dag.wieers.com/rpm/packages/unrar/unrar-3.6.8-1.el4.rf.i386.rpm</strong> 下载 rar 解压缩的RPM安装包，在 gnome 中双击该rpm包即可自动安装；</p>
<p>3. 打开字体的rar压缩文件，解压到目录 <span style="color: #ff0000;"><span style="text-decoration: underline;">/usr/share/fonts/chinese/TrueType</span></span> 中，即可使用了。</p>
<p>firefox 字体设置在长常用菜单工具栏 <strong>Edit/Preference </strong>的弹出窗口, Content 标签 <strong>Fonts &amp; Colors</strong> Advanced 按钮 &#8230;</p>
<p>如果要整个 <strong>GNOME Desktop</strong> 程序使用指定中文字体，则需通过顶部 Panel 菜单<span style="text-decoration: underline;"> System/Preference/Fonts</span> 来实现了。</p>
<p><strong>5. 避免网卡从DHCP服务器获取IP时也绑定DNS。</strong>之前我所学习到的方法是在 <em>http://zuolo.info/2009/05/work-study-diary-centos-setup-3/ </em>：</p>
<p><strong>禁止修改 /etc/resolv.conf 的2种方法:</strong></p>
<blockquote><p>1. 编辑 /sbin/dhclient-script 文件把其中的make_resolv_conf 函数注释掉;<br />
2.增加flag禁止修改: chattr +i /etc/resolv.conf<br />
网上说的第三种方法我无法找到所需的目录和文件.</p></blockquote>
<p>但现在，我从菜单 <span style="text-decoration: underline;">System/Administration/Network</span> 弹出窗口 <strong>Network Configuration</strong> 中，双击 Devices 标签页中的 eth0 打开 <strong>Ethernet Device</strong> 窗口， 勾销<em> Automatically obtain DNS information from provider </em>前的选择框，最后关闭 <strong>Network Configuration </strong>窗口后，就会发现网卡配置文件 <span style="text-decoration: underline;">/etc/sysconfig/network-scripts/ifcfg-eth0</span> 的最低端增加了三行参数代码：</p>
<blockquote><p>USERCTL=no<br />
IPV6INIT=no<br />
PEERDNS=no</p></blockquote>
<p>其中 PEERDNS 默认为yes时，如果DNS项被设定，修改 <em>/etc/resolv.conf</em></p>
<a href="http://zuolo.info/2009/07/centos-gnome-settings/#comments" title="to the comments">To the comments</a>, Author: <a href="http://zuolo.info" >Leon Tsang</a>
<br />
If we say that we have no sin, we deceive ourselves, and the truth is not in us. <1 John 1:8>
<br />
<hr /><small>Copyright &copy; 2006-2010 <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-Noncommercial-Share Alike 3.0 Unported</a><br /> 
This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. <br />
(Digital Fingerprint: 5f393dfa8cc2aecf3e2c7170441553ad)</small><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://zuolo.info/2009/05/work-study-diary-centos-setup-3/" title="Work &#038; Study Diary: CentOS Setup 3">Work &#038; Study Diary: CentOS Setup 3</a></li><li><a href="http://zuolo.info/2009/06/setup-zend-optimizer-in-linux-centos/" title="setup zend optimizer in linux centos">setup zend optimizer in linux centos</a></li><li><a href="http://zuolo.info/2009/05/download-file-and-compress-file-by-linuxs-command-line/" title="download file and compress file by linux&#8217;s command line">download file and compress file by linux&#8217;s command line</a></li><li><a href="http://zuolo.info/2009/05/finalize-centos-53-log-2/" title="finalize centos 5.3 log-2">finalize centos 5.3 log-2</a></li><li><a href="http://zuolo.info/2009/05/finalize-centos-53-log-1/" title="finalize centos 5.3 log-1">finalize centos 5.3 log-1</a></li><li><a href="http://zuolo.info/2009/05/healing-centos-gnome-display/" title="healing centos gnome display">healing centos gnome display</a></li><li><a href="http://zuolo.info/2009/05/work-study-diary-centos-setup-2/" title="Work &#038; Study Diary: CentOS Setup 2">Work &#038; Study Diary: CentOS Setup 2</a></li><li><a href="http://zuolo.info/2009/05/study-work-diary-centos-53-setup/" title="Study &#038; Work Diary: CentOS 5.3 Setup">Study &#038; Work Diary: CentOS 5.3 Setup</a></li><li><a href="http://zuolo.info/2009/04/vista-chinese-font-fix/" title="Vista Chinese Font Fix">Vista Chinese Font Fix</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zuolo.info/2009/07/centos-gnome-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IT log(qh001)之个人电脑网络安全</title>
		<link>http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/</link>
		<comments>http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 16:47:22 +0000</pubDate>
		<dc:creator>Leon Tsang</dc:creator>
				<category><![CDATA[Live - Work and Struggle]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[magzine]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[safe]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://zuolo.info/?p=1142</guid>
		<description><![CDATA[这是为公司内部杂志《晴海》而写的第二篇文章的草稿，第一篇文章草稿原文《IT log(qh000)之从电视剧和游戏开始》，第一篇的正式刊行版照片《IT log(qh000)从电视剧开始》。 IT log(qh001)之个人电脑网络安全 上篇文章还不知道反响如何，作为一个IT人事来谈娱乐的确有点扯了，本篇文章将回归正业来关注一下个人电脑的网络信息安全。我想这次关于上网的话题也许会吸引大家的眼球吧，文中谈到的观点实属个人偏见，异议人事有权保留自己的意见. 名称解释 木马：一种恶意程序，通常在电脑用户不知情的情况下窃取各种密码、帐号或重要文件。我想大部分QQ或邮箱密码被盗过的人对于这次词不会太陌生。 肉鸡： 比喻中木马后可被黑客随意控制的电脑像待宰肉鸡一样，显然这个词的命名者喜欢吃鸡，如果是我就叫它”土豆“了。 艳照门：2008新年伊始，陈冠希和多位女艺人之间OOXX的自拍照片泄露。 瑞星&#38;微点案：2005年7月5日起，被瑞星收买的北京网监处前处长于兵就开始用各种方法找微点公司麻烦，包括做伪证而将微点公司副总田亚葵刑事拘留。2008年11月20日，真相大白。 江民硬盘锁：1997年6月，江民为了反盗版而在升级病毒库代码中加入被称为”L++硬盘逻辑锁“的恶意代码，盗版杀毒软件或正版用户的误操作都会导致硬盘被死锁从而所有数据无法访问，当时据说只有拿硬盘去江民公司才能解锁，许多用户也只能忍痛把硬盘直接进行低级格式化所有资料全部丢失。 文件粉碎：我们一般从”回收站“中删除的文件其实还是存在于硬盘中的，只是被隐藏起来了，而使用文件粉碎软件，则可以把文件原有二进制结构打得稀烂后再删除，即使文件被特殊软件恢复后也只是一砣神仙也看不懂的乱码而已。 流氓软件： 通常指那些不经用户同意就安装在电脑上的各种IE工具条或其他会弹出广告窗口的恶意软件。 开源软件： 指公开了程序源代码的软件，程序员可以在软件指定授权标准下根据源代码修改或改进程序功能，开源软件不等于免费软件，有的也会要求用户交纳商业授权费用。 今年央视的3.15晚会上，揭露了一个可怕的事实：黑客疯狂侵蚀互联网，利用木马进行“肉鸡”攻击，从而盗取个人信息达到非法牟利的目的。这一次木马被央视曝光，国内的网络安全环境已经到了十分严峻的地步。 去年的”艳照门“事件应该没有人还不知道吧，我猜想以后陈冠希可能再不敢送修电脑了，不过如果他知道如何使用文件粉碎软件，就不用再担心送修电脑时其中已删除的照片会被人为恢复了。 对于网络网络安全，仅仅是安装一个杀毒软件是远远不够的，尤其当安装的杀毒软件是如瑞星、江民之类的，此处并不对其杀毒功能进行评价，只是当我了解”瑞星&#38;微点案“、”江民硬盘锁“事件后就无法不怀疑其商业道德。 篇幅有限，不能在此对各种安全软件一一评价，仅以我在本机上曾经使用过的几套安全组合抛砖引玉地推荐一番（此处只介绍正版免费软件，请盗版软件支持者绕开）： 一、东方不败： 1.360安全卫士标准版，反流氓软件首选及其他方便的系统设置功能，http://www.360.cn/down/soft_down2-3.html； 2.Vista 优化大师，Vista系统优化软件且带文件粉碎和加密工具，http://www.vista123.com/vistamaster/； 注：6，7年前我就有多次使用”超级兔子“和”Windows优化大师“而导致系统崩溃的惨痛经历，所以就算听说如今它们功能改进了不少也不会再去尝试了。 3.墨者安全专家，可免费使用趋势科技的杀毒引擎并附带病毒防火墙，； 二、绝地武士： 1.PeerGuardian，前端防火墙可对不安全IP连接进行过滤但在Vista中不太稳定，http://phoenixlabs.org/pg2/； 2.Avira AntiVir Personal，来自德国”小红伞“杀毒软件传承了德国人严谨的做事风格且免费授权码每年都会自动更新不用像其他免费软件要到官方网站重新申请，http://www.free-av.com/； 3.Comodo Firewall，被很多媒体誉为No.1的主动防火墙，http://personalfirewall.comodo.com/download_firewall.html； 注：此防火墙虽然功能强大，但使用之繁复比起 Vista的UAC控制功能有过之而无不及，我也只坚持了一年就改用其他防火墙了； 4.Advanced SystemCare Free，系统优化软件只是整体功能比起”Vista优化大师“还有不小差距，http://www.iobit.com/advancedwindowscareper.html； 5.Ad-Aware Anniversary Edition，国外最知名的一款免费反木马软件不过界面好难看且需手动点击相应功能后才能升级， 6.File Shredder，非常专业的文件粉碎软件安装后在文件或文件夹上点击右键就可以看到相关功能，http://www.fileshredder.org/； 三、最终幻想： 1.Avira AntiVir Personal； 2.PC Tools Firewall Plus，操作方便的主动防火墙，http://www.pctools.com/firewall/download/； 3.Vista优化大师； 4.File [...]]]></description>
			<content:encoded><![CDATA[<p>这是为公司内部杂志《晴海》而写的第二篇文章的草稿，第一篇文章草稿原文《<a href="http://zuolo.info/2009/03/it-log-qh000-从电视剧和游戏开始、">IT log(qh000)之从电视剧和游戏开始</a>》，第一篇的正式刊行版照片《<a href="http://www.flickr.com/photos/zuolo/3590775051/">IT log(qh000)从电视剧开始</a>》。</p>
<p><strong>IT log(qh001)之个人电脑网络安全</strong><br />
<em>上篇文章还不知道反响如何，作为一个IT人事来谈娱乐的确有点扯了，本篇文章将回归正业来关注一下个人电脑的网络信息安全。我想这次关于上网的话题也许会吸引大家的眼球吧，文中谈到的观点实属个人偏见，异议人事有权保留自己的意见.</em></p>
<p><strong>名称解释</strong></p>
<hr /><strong>木马：</strong>一种恶意程序，通常在电脑用户不知情的情况下窃取各种密码、帐号或重要文件。我想大部分QQ或邮箱密码被盗过的人对于这次词不会太陌生。<br />
<strong>肉鸡：</strong> 比喻中木马后可被黑客随意控制的电脑像待宰肉鸡一样，显然这个词的命名者喜欢吃鸡，如果是我就叫它”土豆“了。<br />
<strong>艳照门：</strong>2008新年伊始，陈冠希和多位女艺人之间OOXX的自拍照片泄露。<br />
<strong>瑞星&amp;微点案：</strong>2005年7月5日起，被瑞星收买的北京网监处前处长于兵就开始用各种方法找微点公司麻烦，包括做伪证而将微点公司副总田亚葵刑事拘留。2008年11月20日，真相大白。<br />
<strong>江民硬盘锁：</strong>1997年6月，江民为了反盗版而在升级病毒库代码中加入被称为”L++硬盘逻辑锁“的恶意代码，盗版杀毒软件或正版用户的误操作都会导致硬盘被死锁从而所有数据无法访问，当时据说只有拿硬盘去江民公司才能解锁，许多用户也只能忍痛把硬盘直接进行低级格式化所有资料全部丢失。<br />
<strong>文件粉碎：</strong>我们一般从”回收站“中删除的文件其实还是存在于硬盘中的，只是被隐藏起来了，而使用文件粉碎软件，则可以把文件原有二进制结构打得稀烂后再删除，即使文件被特殊软件恢复后也只是一砣神仙也看不懂的乱码而已。<br />
<strong>流氓软件：</strong> 通常指那些不经用户同意就安装在电脑上的各种IE工具条或其他会弹出广告窗口的恶意软件。<br />
<strong>开源软件：</strong> 指公开了程序源代码的软件，程序员可以在软件指定授权标准下根据源代码修改或改进程序功能，开源软件不等于免费软件，有的也会要求用户交纳商业授权费用。</p>
<p>今年央视的3.15晚会上，揭露了一个可怕的事实：黑客疯狂侵蚀互联网，利用木马进行“肉鸡”攻击，从而盗取个人信息达到非法牟利的目的。这一次木马被央视曝光，国内的网络安全环境已经到了十分严峻的地步。</p>
<p>去年的”艳照门“事件应该没有人还不知道吧，我猜想以后陈冠希可能再不敢送修电脑了，不过如果他知道如何使用文件粉碎软件，就不用再担心送修电脑时其中已删除的照片会被人为恢复了。</p>
<p>对于网络网络安全，仅仅是安装一个杀毒软件是远远不够的，尤其当安装的杀毒软件是如瑞星、江民之类的，此处并不对其杀毒功能进行评价，只是当我了解”瑞星&amp;微点案“、”江民硬盘锁“事件后就无法不怀疑其商业道德。</p>
<p>篇幅有限，不能在此对各种安全软件一一评价，仅以我在本机上曾经使用过的几套安全组合抛砖引玉地推荐一番（此处只介绍正版免费软件，请盗版软件支持者绕开）：<br />
<strong>一、东方不败：</strong><br />
1.360安全卫士标准版，反流氓软件首选及其他方便的系统设置功能，http://www.360.cn/down/soft_down2-3.html；<br />
2.Vista 优化大师，Vista系统优化软件且带文件粉碎和加密工具，http://www.vista123.com/vistamaster/；<br />
注：6，7年前我就有多次使用”超级兔子“和”Windows优化大师“而导致系统崩溃的惨痛经历，所以就算听说如今它们功能改进了不少也不会再去尝试了。<br />
3.墨者安全专家，可免费使用趋势科技的杀毒引擎并附带病毒防火墙，；</p>
<p><strong>二、绝地武士：</strong><br />
1.PeerGuardian，前端防火墙可对不安全IP连接进行过滤但在Vista中不太稳定，http://phoenixlabs.org/pg2/；<br />
2.Avira AntiVir Personal，来自德国”小红伞“杀毒软件传承了德国人严谨的做事风格且免费授权码每年都会自动更新不用像其他免费软件要到官方网站重新申请，http://www.free-av.com/；<br />
3.Comodo Firewall，被很多媒体誉为No.1的主动防火墙，http://personalfirewall.comodo.com/download_firewall.html；<br />
注：此防火墙虽然功能强大，但使用之繁复比起 Vista的UAC控制功能有过之而无不及，我也只坚持了一年就改用其他防火墙了；<br />
4.Advanced SystemCare Free，系统优化软件只是整体功能比起”Vista优化大师“还有不小差距，http://www.iobit.com/advancedwindowscareper.html；<br />
5.Ad-Aware Anniversary Edition，国外最知名的一款免费反木马软件不过界面好难看且需手动点击相应功能后才能升级，<br />
6.File Shredder，非常专业的文件粉碎软件安装后在文件或文件夹上点击右键就可以看到相关功能，http://www.fileshredder.org/；</p>
<p><strong>三、最终幻想：</strong><br />
1.Avira AntiVir Personal；<br />
2.PC Tools Firewall Plus，操作方便的主动防火墙，http://www.pctools.com/firewall/download/；<br />
3.Vista优化大师；<br />
4.File  Shredder。</p>
<p>上述只是推荐的安全软件组合，但只是靠这些软件还是不够，个人用户最好能慢慢改变使用盗版或不安全软件的习惯，推荐几款我经常使用的常用软件：<br />
1.OpenOffice，用来代替微软的Office 办公套件（Word、Excel、Access、PowerPoint），显然此软件还无法比拟你现在使用的盗版 Office ，但最起码使用时可以问心无愧，该软件可以另存为兼容 Office 2000的文件格式，且可直接把文件导出为PDF格式，http://download.openoffice.org/；<br />
2.Firefox，用来代替Windows系统自带的Internet Explorer（请不要说可以使用Maxthon，因为其同样调用的是IE核心，所以同样被我鄙视），该软件几万个插件功能是最吸引人可打造远超IE功能的超级浏览器，且不会像IE那样总被强制更改主页弹出不雅窗口或是被安装很多工具条导致页面浏览缓慢，http://www.mozilla.com；<br />
3.Thunderbird，用来代替 Office Outlook邮件终端，当然你如果愿意使用Foxmail也没问题，只是此软件和Firefox同样支持很多插件，我们可以通过插件把它打造成远超Outlook 和 Foxmail 功能的超级邮件终端，http://www.mozilla.com；<br />
4.7-zip，用来代替WinRAR或WinZip的压缩软件，http://www.7-zip.org/；<br />
5.XnView，用来代替AcdSee的看图软件，Google Picasa功能也凑合，http://www.xnview.com/en/index.html；</p>
<p>注：上述软件都是多语言版本（可支持中文），虽然中文版本由于部分功能或插件被预置从而使用更方便，但如果大家像我一样喜欢DIY的话，就推荐下载英文原版，亲手打造最适合自己的软件环境。</p>
<p>写在最后：<br />
在Windows系统中不管安装多少软件都不可能达到我心目中完美的安全，即便是使用了专业电脑安全公司的商业软件也同样，只因为微软的Windows系统不是开源软件的，所有软件程序都无法对其进行内核级的最底层加密，这一点只有Linux之类的开源系统才能做到。<br />
其实关于网络安全的话题，我还有好多话要说，比如文件备份管理，密码安全管理，邮件安全设置，聊天安全设置，系统环境优化等等，只是说得太多难免适得其反，今天就到这里吧&#8230;&#8230;</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"><span id="sample-permalink">http://zuolo.info/2009/03/<span id="editable-post-name" title="Click to edit this part of the permalink">it-log-qh000-从电视剧和游戏开始</span></span></div>
<hr /><h2>Comments</h2><ul><li><a href="http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/#comment-26">June 14, 2009</a>, <a href='http://zuolo.info/2009/06/some-things-do-not-smooth-%ef%bc%8d-diary-2009-06-14/' rel='external nofollow' class='url'>IT log &raquo; Some things do not smooth － Diary 2009-06-14</a> writes: [...] 为写完《IT log(qh001)之个人电脑网络安全》初稿知道凌晨3点才从办公室回宿舍睡觉（之前的时间主要是忙着写关于 Kerry SPC 项目的说明书）； [...]</li></ul><a href="http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/#comments" title="to the comments">To the comments</a>, Author: <a href="http://zuolo.info" >Leon Tsang</a>
<br />
If we say that we have no sin, we deceive ourselves, and the truth is not in us. <1 John 1:8>
<br />
<hr /><small>Copyright &copy; 2006-2010 <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-Noncommercial-Share Alike 3.0 Unported</a><br /> 
This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. <br />
(Digital Fingerprint: 5f393dfa8cc2aecf3e2c7170441553ad)</small><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://zuolo.info/2009/06/jotting-2009-06-10/" title="jotting 2009-06-10">jotting 2009-06-10</a></li><li><a href="http://zuolo.info/2009/09/after-vista-upgrade-to-win7/" title="after Vista upgrade to Win7">after Vista upgrade to Win7</a></li><li><a href="http://zuolo.info/2009/07/centos-gnome-settings/" title="CentOS GNOME Settings">CentOS GNOME Settings</a></li><li><a href="http://zuolo.info/2009/07/excel-sum-functions/" title="excel sum functions">excel sum functions</a></li><li><a href="http://zuolo.info/2009/07/think-about-the-email-encryption/" title="Think about the Email encryption">Think about the Email encryption</a></li><li><a href="http://zuolo.info/2009/06/the-junk-software-is-similar-to-green-dam/" title="the junk software is similar to Green Dam">the junk software is similar to Green Dam</a></li><li><a href="http://zuolo.info/2009/06/setup-avira-antivir-for-msn/" title="Setup Avira AntiVir Personal for MSN">Setup Avira AntiVir Personal for MSN</a></li><li><a href="http://zuolo.info/2009/06/it-logqh001%e8%8d%89%e7%a8%bf%e7%ac%ac%e4%ba%8c%e7%89%88/" title="IT log(qh001)草稿第二版">IT log(qh001)草稿第二版</a></li><li><a href="http://zuolo.info/2009/06/analysis-of-the-green-dam-censorware-system/" title="Analysis of the Green Dam Censorware System">Analysis of the Green Dam Censorware System</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Work &amp; Study Diary: CentOS Setup 3</title>
		<link>http://zuolo.info/2009/05/work-study-diary-centos-setup-3/</link>
		<comments>http://zuolo.info/2009/05/work-study-diary-centos-setup-3/#comments</comments>
		<pubDate>Fri, 01 May 2009 13:38:09 +0000</pubDate>
		<dc:creator>Leon Tsang</dc:creator>
				<category><![CDATA[Library - Knowledge and Power]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://blog.mottoes.org/?p=850</guid>
		<description><![CDATA[继续学习常用指令, 并记下自己的学习笔记如下: hwclock/clock 查看cmos硬件时钟, clock应该是hwclock命令的别名 hwclock/clock  &#8211;set &#8211;date=&#8221;09/05/01 17:20:30&#8243; 设置硬件时钟 date -s 2009/05/01 或 date -s 17:20:30 用date -s来更改系统时间, 等过一段时间后系统会自动同步到cmos时钟 clock -w 把系统时间立即同步到cmos中 hostname 显示主机名 hostname set leon.zuolo 临时把主机名设置为leon.zuolo, 重启后被恢复 /etc/hosts 设置本地的dns解析, 和windows中的hosts文件功能应该一样, 修改主机名后这个文件也有必要修改, 避免每次都要求DNS server来解析本机名 /etc/sysconfig/network 这个文件才是真正用来保存主机名的, 修改其中的HOSTNAME属性值即可, 其中显示IPV6默认没有使用. ps: 完整的修改主机名,  在没有设置DNS情况下, 是需要把上述三种方法都做到的 netstat -tln 查看当前服务监听的端口, 常用功能 netstat &#124;more 查看当前激活的连接 ping test.local -c 3 [...]]]></description>
			<content:encoded><![CDATA[<p>继续学习常用指令, 并记下自己的学习笔记如下:</p>
<p><strong>hwclock/clock</strong> 查看cmos硬件时钟, clock应该是hwclock命令的别名<br />
<strong>hwclock/clock  &#8211;set &#8211;date=&#8221;09/05/01 17:20:30&#8243;</strong> 设置硬件时钟<br />
date -s 2009/05/01 或 date -s 17:20:30 用date -s来更改系统时间, 等过一段时间后系统会自动同步到cmos时钟<br />
<strong>clock -w</strong> 把系统时间立即同步到cmos中</p>
<p><strong>hostname</strong> 显示主机名<br />
hostname set leon.zuolo 临时把主机名设置为leon.zuolo, 重启后被恢复<br />
<strong>/etc/hosts</strong> 设置本地的dns解析, 和windows中的hosts文件功能应该一样, 修改主机名后这个文件也有必要修改, 避免每次都要求DNS server来解析本机名<br />
<strong>/etc/sysconfig/network</strong> 这个文件才是真正用来保存主机名的, 修改其中的HOSTNAME属性值即可, 其中显示IPV6默认没有使用.<br />
ps: 完整的修改主机名,  在没有设置DNS情况下, 是需要把上述三种方法都做到的</p>
<p><strong>netstat -tln</strong> 查看当前服务监听的端口, 常用功能<br />
netstat |more 查看当前激活的连接</p>
<p>ping test.local -c 3 测试网络连通<br />
ifconfig 显示当前活动网卡状态, 这个和windows中的ipconfig不同, 我多次输入错误<br />
ifconfig eth0 查看第一块网卡状态<br />
ifconfig -a |more 就等同于windows中的ipconfig -all<br />
<strong>Ifconfig eth0 192.168.1.101 netmask 255.255.255.0 | broadcast 192.168.1.255</strong> 临时设置网卡静态IP地址保存到内存,<span class="infoContent"> netmask和broadcast只要设置一个就可以了</span><br />
route 查看路由表,和 ip route类似<br />
<strong>route   add   default   gw   192.168.1.1</strong> 临时设置默认网关<br />
route add -net 192.168.10.0 netmask 255.255.255.0 临时设置192.168.10/24的网段网关<br />
ifconfig eth0:0 192.168.10.101 netmask 255.255.255.0  临时在第一块网卡再 绑定另一个IP</p>
<p>永久的设置网络IP和网关, 还是需要修改脚本文件, 或者把临时命令写入自启动脚本:<br />
<strong>/etc/sysconfig/network-scripts/ifcfg-lo</strong> 网络回路设备, 让本地ip或域名能指向自己<br />
<strong>/etc/sysconfig/network-scripts/ifcfg-eth0</strong> 中当设置为dhcp时的默认内容为:<br />
<em>DEVICE=eth0<br />
BOOTPROTO=dhcp<br />
HWADDR=00:00:11:11:22:22<br />
ONBOOT=yes<br />
TYPE=Ethernet</em><br />
手动设置静态ip地址后的内容为:<br />
<em>DEVICE=eth0<br />
BOOTPROTO=none<br />
HWADDR=00:00:11:11:22:22<br />
ONBOOT=yes<br />
<strong>NETMASK=255.255.255.0<br />
IPADDR=192.168.22.12<br />
GATEWAY=192.168.22.1<br />
TYPE=Ethernet</strong></em></p>
<p><strong>dhclient</strong> 所有网卡从dhcp服务器获取IP, 如果网卡没启动则启动网卡<br />
<strong>dhclient eth0</strong> 仅eht0要求从dhcp获得IP<br />
<strong>/etc/resolv.conf </strong> 为DNS服务器地址, 使用DHCP后内容会自动改变, 例如:<br />
<em>nameserver 192.168.4.1</em></p>
<p><strong>禁止修改 /etc/resolv.conf 的2种方法:</strong><br />
1. 编辑 /sbin/dhclient-script 文件把其中的make_resolv_conf 函数注释掉;<br />
2.增加flag禁止修改: chattr +i /etc/resolv.conf<br />
网上说的第三种方法我无法找到所需的目录和文件.</p>
<p>setup 可以进行一个文本图形界面设置防火墙/网卡/DNS/分辨率/时区/键盘等<br />
iptables –L 查看防火墙设置, 或使用 service iptables status<br />
iptables -F 临时清空所有防火墙规则相当于关闭防火墙, 使用 service iptables start 可恢复<br />
service iptables stop 停止防火墙程序运行</p>
<p><strong>在不重启电脑的情况下重启网络(网卡重启)的方法:</strong><br />
service network restart 重启网络服务<br />
ifconfig eth0 down 禁用eth0 和 ifconfig eth0 up  启用eth0</p>
<p>man iptables 查看iptables令的帮助手册</p>
<hr /><h2>Comments</h2><ul><li><a href="http://zuolo.info/2009/05/work-study-diary-centos-setup-3/#comment-108">July 30, 2009</a>, <a href='http://zuolo.info/2009/07/centos-gnome-settings/' rel='external nofollow' class='url'>IT log &raquo; CentOS GNOME Settings</a> writes: [...]    Categories: Live - Work and Struggle Tags: centos, DNS, font, linux, network    Related PostsWork &amp; Study Diary: CentOS Setup 3setup zend optimizer in linux centosdownload file and compress file by linux&#8217;s command [...]</li></ul><a href="http://zuolo.info/2009/05/work-study-diary-centos-setup-3/#comments" title="to the comments">To the comments</a>, Author: <a href="http://zuolo.info" >Leon Tsang</a>
<br />
If we say that we have no sin, we deceive ourselves, and the truth is not in us. <1 John 1:8>
<br />
<hr /><small>Copyright &copy; 2006-2010 <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-Noncommercial-Share Alike 3.0 Unported</a><br /> 
This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. <br />
(Digital Fingerprint: 5f393dfa8cc2aecf3e2c7170441553ad)</small><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://zuolo.info/2009/07/centos-gnome-settings/" title="CentOS GNOME Settings">CentOS GNOME Settings</a></li><li><a href="http://zuolo.info/2009/06/setup-zend-optimizer-in-linux-centos/" title="setup zend optimizer in linux centos">setup zend optimizer in linux centos</a></li><li><a href="http://zuolo.info/2009/05/download-file-and-compress-file-by-linuxs-command-line/" title="download file and compress file by linux&#8217;s command line">download file and compress file by linux&#8217;s command line</a></li><li><a href="http://zuolo.info/2009/05/finalize-centos-53-log-2/" title="finalize centos 5.3 log-2">finalize centos 5.3 log-2</a></li><li><a href="http://zuolo.info/2009/05/finalize-centos-53-log-1/" title="finalize centos 5.3 log-1">finalize centos 5.3 log-1</a></li><li><a href="http://zuolo.info/2009/05/work-study-diary-centos-setup-2/" title="Work &#038; Study Diary: CentOS Setup 2">Work &#038; Study Diary: CentOS Setup 2</a></li><li><a href="http://zuolo.info/2009/05/study-work-diary-centos-53-setup/" title="Study &#038; Work Diary: CentOS 5.3 Setup">Study &#038; Work Diary: CentOS 5.3 Setup</a></li><li><a href="http://zuolo.info/2009/06/it-log-qh001-%e4%b9%8b%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8/" title="IT log(qh001)之个人电脑网络安全">IT log(qh001)之个人电脑网络安全</a></li><li><a href="http://zuolo.info/2009/06/trip-delay/" title="Trip delay">Trip delay</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zuolo.info/2009/05/work-study-diary-centos-setup-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
