<?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>ROOTLAU.COM &#187; I.T.</title>
	<atom:link href="http://blog.rootlau.com/wp/category/i-t/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rootlau.com/wp</link>
	<description>Root Lau Offical Blog</description>
	<lastBuildDate>Sat, 29 Nov 2014 05:45:31 +0000</lastBuildDate>
	<language>zh-TW</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>如何改變VirtualBox VDI的UUID/ How to Change UUID of VDI files</title>
		<link>http://blog.rootlau.com/wp/%e5%a6%82%e4%bd%95%e6%94%b9%e8%ae%8avirtualbox-vdi%e7%9a%84uuid-how-to-change-uuid-of-vdi-files/</link>
		<comments>http://blog.rootlau.com/wp/%e5%a6%82%e4%bd%95%e6%94%b9%e8%ae%8avirtualbox-vdi%e7%9a%84uuid-how-to-change-uuid-of-vdi-files/#comments</comments>
		<pubDate>Wed, 16 Jan 2013 05:46:43 +0000</pubDate>
		<dc:creator><![CDATA[rootlau]]></dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/wp/?p=251</guid>
		<description><![CDATA[先做好一個Windows XP的vdi，再複製一份VDI要分別做Office 2000和Office 2003的VM，出現UUID重覆的訊息，要如何處理呢？ &#8220;c:\Program Files\Oracle\VirtualBox\VBoxManage.exe&#8221; internalcommands sethduuid 檔案名稱 就這麼簡單，收工！ I made a Windows XP vm, copy the VDI file for other VM，alert &#8220;hard disk with UUID is already registered.&#8221; You can do this way: &#8220;c:\Program Files\Oracle\VirtualBox\VBoxManage.exe&#8221; internalcommands sethduuid [filename] That&#8217;s it! http://blog.tenyi.com/2010/12/virtualbox-vdiuuid-how-to-change-uuid.html]]></description>
				<content:encoded><![CDATA[<h3></h3>
<div id="post-body-1671239763860436289">先做好一個Windows XP的vdi，再複製一份VDI要分別做Office 2000和Office 2003的VM，出現UUID重覆的訊息，要如何處理呢？</p>
<blockquote><p>&#8220;c:\Program Files\Oracle\VirtualBox\VBoxManage.exe&#8221; internalcommands sethduuid 檔案名稱</p></blockquote>
<p>就這麼簡單，收工！</p>
<p>I made a Windows XP vm, copy the VDI file for other VM，alert &#8220;hard disk with UUID is already registered.&#8221;<br />
You can do this way:</p>
<blockquote><p>&#8220;c:\Program Files\Oracle\VirtualBox\VBoxManage.exe&#8221; internalcommands sethduuid [filename]</p></blockquote>
</div>
<div id="post-body-1671239763860436289">That&#8217;s it!</div>
<div></div>
<div><a href="http://blog.tenyi.com/2010/12/virtualbox-vdiuuid-how-to-change-uuid.html">http://blog.tenyi.com/2010/12/virtualbox-vdiuuid-how-to-change-uuid.html</a></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/%e5%a6%82%e4%bd%95%e6%94%b9%e8%ae%8avirtualbox-vdi%e7%9a%84uuid-how-to-change-uuid-of-vdi-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenLDAP-Postfix With SASL2 SMTP Auth 設定</title>
		<link>http://blog.rootlau.com/wp/openldap-postfix-with-sasl2-smtp-auth-%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://blog.rootlau.com/wp/openldap-postfix-with-sasl2-smtp-auth-%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Tue, 18 Dec 2012 10:02:50 +0000</pubDate>
		<dc:creator><![CDATA[rootlau]]></dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/wp/?p=244</guid>
		<description><![CDATA[前言 談到 [E-Mail] 就不得不提一下這三個名詞 [MTA]、[MDA]、[MUA]，關於 [E-Mail] 從使用者發信到收信如何運作可參考 [ twbsd.org - Wang, Chun-Pin 第十六章 郵件伺服器圖解] 了解。 MTA，Mail Transfer Agent：郵件轉送代理人，負責傳送、轉送郵件 (Relay)，如：[Sendmail]、[Postfix]、[Qmail] MDA，Mail Delivery Agent：郵件遞送代理人，負責把進來的郵件遞送、過濾到使用者信箱內，如：[Procmail]、[MailDrop] MUA，Mail User Agent：郵件使用者代理人，使用者用來發信、收信的程式，如：[Outlook Express]、[SquirrelMail] E-Mail 相關服務聆聽埠號 (Listen Port) [SMTP]：25 SMTPs (SMTP Over SSL)：465 [POP3]：110 POP3s (POP3 Over SSL)：995 [IMAP]：143 IMAPs (IMAP Over SSL)：993 實作環境 FreeBSD 6.1-STABLE postfix-2.3.1,1 cyrus-sasl-saslauthd-2.1.22 安裝及設定 步驟1.安裝 Postfix 套件 切換至 Ports Tree 路徑安裝 postfix 套件 #cd /usr/ports/mail/postfix //切換至套件路徑 #make install clean //安裝 postfix [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2 id="Heading1">前言</h2>
<p>談到 <a href="http://zh.wikipedia.org/w/index.php?title=%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6&amp;variant=zh-tw" target="_blank">[E-Mail]</a> 就不得不提一下這三個名詞 <a href="http://en.wikipedia.org/wiki/Mail_transfer_agent" target="_blank">[MTA]</a>、<a href="http://en.wikipedia.org/wiki/Mail_delivery_agent" target="_blank">[MDA]</a>、<a href="http://en.wikipedia.org/wiki/Mail_user_agent" target="_blank">[MUA]</a>，關於 <a href="http://zh.wikipedia.org/w/index.php?title=%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6&amp;variant=zh-tw" target="_blank">[E-Mail]</a> 從使用者發信到收信如何運作可參考 <a href="http://www.twbsd.org/cht/book/images/ch16_02.png" target="_blank">[ twbsd.org - Wang, Chun-Pin 第十六章 郵件伺服器圖解]</a> 了解。</p>
<ul>
<li><strong>MTA</strong>，<strong>M</strong>ail <strong>T</strong>ransfer <strong>A</strong>gent：郵件轉送代理人，負責傳送、轉送郵件 (Relay)，如：<a href="http://en.wikipedia.org/wiki/Sendmail" target="_blank">[Sendmail]</a>、<a href="http://zh.wikipedia.org/w/index.php?title=Postfix&amp;variant=zh-tw" target="_blank">[Postfix]</a>、<a href="http://zh.wikipedia.org/w/index.php?title=Qmail&amp;variant=zh-tw" target="_blank">[Qmail]</a></li>
<li><strong>MDA</strong>，<strong>M</strong>ail <strong>D</strong>elivery <strong>A</strong>gent：郵件遞送代理人，負責把進來的郵件遞送、過濾到使用者信箱內，如：<a href="http://en.wikipedia.org/wiki/Procmail" target="_blank">[Procmail]</a>、<a href="http://en.wikipedia.org/wiki/Maildrop" target="_blank">[MailDrop]</a></li>
<li><strong>MUA</strong>，<strong>M</strong>ail <strong>U</strong>ser <strong>A</strong>gent：郵件使用者代理人，使用者用來發信、收信的程式，如：<a href="http://zh.wikipedia.org/w/index.php?title=Outlook_Express&amp;variant=zh-tw" target="_blank">[Outlook Express]</a>、<a href="http://en.wikipedia.org/wiki/SquirrelMail" target="_blank">[SquirrelMail]</a></li>
</ul>
<p><strong>E-Mail 相關服務聆聽埠號 (Listen Port)</strong></p>
<ul>
<li><a href="http://zh.wikipedia.org/w/index.php?title=%E7%AE%80%E5%8D%95%E9%82%AE%E4%BB%B6%E4%BC%A0%E8%BE%93%E5%8D%8F%E8%AE%AE&amp;variant=zh-tw" target="_blank">[SMTP]</a>：25
<ul>
<li>SMTPs (SMTP Over SSL)：465</li>
</ul>
</li>
<li><a href="http://zh.wikipedia.org/w/index.php?title=POP3&amp;variant=zh-tw" target="_blank">[POP3]</a>：110
<ul>
<li>POP3s (POP3 Over SSL)：995</li>
</ul>
</li>
<li><a href="http://zh.wikipedia.org/w/index.php?title=IMAP&amp;variant=zh-tw" target="_blank">[IMAP]</a>：143
<ul>
<li>IMAPs (IMAP Over SSL)：993</li>
</ul>
</li>
</ul>
<h2 id="Heading2">實作環境</h2>
<ul>
<li>FreeBSD 6.1-STABLE</li>
<li>postfix-2.3.1,1</li>
<li>cyrus-sasl-saslauthd-2.1.22</li>
</ul>
<h2 id="Heading3">安裝及設定</h2>
<h3 id="Heading4">步驟1.安裝 Postfix 套件</h3>
<p>切換至 Ports Tree 路徑安裝 postfix 套件</p>
<pre> #cd /usr/ports/mail/postfix      //切換至套件路徑
 #make install clean              //安裝 postfix 並勾選下列項目
 [X] PCRE      Perl Compatible Regular Expressions   
 [X] SASL2     Cyrus SASLv2 (Simple Auth. and Sec. Layer)   
 [X] TLS       Enable SSL and TLS support                    
 [X] BDB       Berkeley DB (choose version with WITH_BDB_VER)   
 [X] OPENLDAP  OpenLDAP maps (choose ver. with WITH_OPENLDAP_VER)</pre>
<p>安裝途中將會尋問二個問題</p>
<pre> 1.You need user "postfix" added to group "mail".Would you like me to add it [y]? y   //是否將 postfix 加入 mail 群組，此例回答 y
 2.Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y                 //是否在 /etc/mail/mailer.conf 中啟動 Postfix，此例回答 y</pre>
<p>安裝完後系統還會貼心的提醒說 <strong>如果使用 SASL 認證的方式，必須確定 postfix 這個代理使用者有權力讀取 sasldb 的檔案</strong></p>
<pre> If you are using SASL, you need to make sure that postfix has access to read the sasldb file.
 This is accomplished by adding postfix to group mail and making the /usr/local/etc/sasldb* file(s) readable by group mail (this shouldbe the default for new installs).</pre>
<h3 id="Heading5">步驟2.設定 Postfix 能讀取 SASL 設定檔</h3>
<p>查看 SASL 設定檔知道其擁有人 (owner) 及群組 (groups) 為 cyrus 因此我們將 postfix 加入此群組 (cyrus) 內，以便屆時 postifx 服務能順利讀取 SASL 設定檔。</p>
<pre> #ls -l /usr/local/etc/sasldb*                    //查看 sasldb 權限
 -rw-r-----  1 cyrus  mail  16384  7 27 11:36 /usr/local/etc/sasldb2.db</pre>
<p>修改群組 (group) 檔案將 postfix 加入 cyrus 群組</p>
<pre> #vi /etc/group                                   //修改群組檔案
 cyrus:*:60:postfix                               //將 postfix 加入 cyurs 群組內</pre>
<h3 id="Heading6">步驟3.安裝 Cyrus-Sasl2-Saslauthd 套件</h3>
<p>切換至 Ports Tree 路徑安裝 Cyrus-Sasl2-Saslauthd 套件</p>
<pre> #cd /usr/ports/security/cyrus-sasl2-saslauthd    //切換至套件路徑
 #make install clean                              //安裝 SASL2 套件</pre>
<p>安裝完後系統仍貼心提醒你要使用 SASL 功能記得在 rc.conf 內加上 saslauthd_enable=&#8221;YES&#8221;</p>
<pre> To run saslauthd from startup, add saslauthd_enable="YES" in your /etc/rc.conf.</pre>
<h3 id="Heading7">步驟4.檢查 /etc/master.passwd 及 /etc/group</h3>
<p>由於安裝 postfix 時系統會新增 postfix 這個使用者及群組，但這樣的動作將會我們破壞我們在 <a href="http://www.weithenn.org/cgi-bin/wiki.pl?OpenLDAP-PAM_NSS_%e8%a8%ad%e5%ae%9a">OpenLDAP-PAM NSS 設定</a> 這篇的設定，因此記得修改回來吧!! (否則將造成登入失敗)</p>
<p>修改系統使用者密碼及群組檔案，將認證部份導至 LDAP</p>
<pre> #vipw
 postfix:*:125:125::0:0:Postfix Mail System:/var/spool/postfix:/usr/sbin/nologin
 +:*::::::::                //確保此行在最後一行
 #vim /etc/group
 postfix:*:125:
 +:*:0:                     //確保此行在最後一行</pre>
<h3 id="Heading8">步驟5.修改 /etc/rc.conf</h3>
<p>修改 /etc/rc.conf 加入啟動相關服務設定，以便系統重新開機時能自動帶起 Postfix、SASL 服務，由於我們 <a href="http://en.wikipedia.org/wiki/Mail_transfer_agent" target="_blank">[MTA]</a> 採用 Postfix 所以記得將 Sendmail 服務關閉。</p>
<pre> #vi /etc/rc.conf
 sendmail_enable="NO"       //關閉 Sendmail
 postfix_enable="YES"       //啟動 Postfix 服務
 saslauthd_enable="YES"     //啟動 SASL 服務</pre>
<p>關於 Sendmail 於 rc.conf 內設定 None、No、Yes 意義？</p>
<ol>
<li>None：將 Sendmail 完全關閉</li>
<li>NO：Sendmail 只監聽 Localhost (127.0.0.1:25)</li>
<li>YES：啟用 Sendmail</li>
</ol>
<h3 id="Heading9">步驟6.建立 smtpd.conf</h3>
<p>修改 SMTP 設定檔</p>
<pre> #vi /usr/local/lib/sasl2/smtpd.conf                        //修改 SMTP 設定檔
 pwcheck_method: saslauthd                                  //修改認證方法
 mech_list: plain login cram-md5 digest-md5                 //修改認證方式</pre>
<h3 id="Heading10">步驟7.修改 postfix 設定檔 main.cf</h3>
<p>修改 Postfix 設定檔 main.cf，以下僅列出基本設定 (即僅列出修改項目)</p>
<pre> myhostname = mail.weithenn.org
 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
 mynetworks_style = subnet
 mynetworks = 192.168.1.0/24, 127.0.0.0/8, 61.60.59.58/32   //指定 LAN 網段及 Public IP
 alias_maps = hash:/usr/local/etc/postfix/aliases           //預設使用 /etc/aliases
 home_mailbox = Maildir/                                    //採用 MailDir 方式收取 E-Mail</pre>
<p>啟動 Authenticated Relay 功能</p>
<pre> broken_sasl_auth_clients = yes
 smtpd_sasl_auth_enable = yes
 smtpd_sasl_security_options = noanonymous
 smtpd_sasl_local_domain = $myhostname
 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains,
 smtpd_client_restrictions = permit_sasl_authenticated</pre>
<h3 id="Heading11">步驟8.建立別名 (Aliases) 資料庫</h3>
<p>建立 E-Mail 別名 (Aliases) 資料庫也就是產生 /usr/local/etc/postfix/aliases.db 檔案鍵入如下指令即可，或執行 newaliases 指令。</p>
<pre> #postalias /usr/local/etc/postfix/aliases</pre>
<h3 id="Heading12">步驟9.停止/啟動相關服務</h3>
<p>由於我們 <a href="http://en.wikipedia.org/wiki/Mail_transfer_agent" target="_blank">[MTA]</a> 採用 Postfix 所以在啟動 Postfix 服務以前記得先將 Sendmail 服務關閉。</p>
<pre> #/etc/rc.d/sendmail stop                     //停止 Sendmail 服務 
 Stopping sendmail_submit.
 #/usr/local/etc/rc.d/postfix start           //啟動 Postfix 服務
 postfix/postfix-script: starting the Postfix mail system
 #/usr/local/etc/rc.d/saslauthd start         //啟動 SASL 服務
 Starting saslauthd.</pre>
<h3 id="Heading13">步驟10.測試 SMTP Auth 功能</h3>
<p>Postfix 及 SASL 服務成功啟動後可依如下方式來測試 SMTP Authentication 機制是否作用了</p>
<pre> #telnet localhost 25                         //連結至本機 SMTP
 Trying ::1...
 Trying 127.0.0.1...
 Connected to localhost.weithenn.org.      
 Escape character is '^]'.
 220 mail.weithenn.org ESMTP Postfix          //若前述步驟未執行 postalias 將不會出現此行也就是 postfix 啟動但卻找不到 DB
 ehlo localhost                               //測試 SASL 機制 (此行為自行輸入)
 250-mail.weithenn.org
 250-PIPELINING
 250-SIZE 10240000
 250-VRFY
 250-ETRN
 250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5     //主機回應 SMTP AUTH LOGIN 成功
 250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5     
 250-ENHANCEDSTATUSCODES
 250-8BITMIME
 250 DSN
 quit                                         //離開 (此行為自行輸入)
 221 2.0.0 Bye
 Connection closed by foreign host.</pre>
<p>若使用的 <a href="http://en.wikipedia.org/wiki/Mail_user_agent" target="_blank">[MUA]</a> 為 Outlook Express 則請勾選 <strong>我的伺服器需要驗證</strong> 項目才能順利使用 Outlook Express 發送信件，如下圖所示</p>
<p><a href="http://picasaweb.google.com/weithenn/FreeBSD#5344864511426734930" target="_blank"><img title="Outlook Express - 我的伺服器需要驗證" src="http://lh3.ggpht.com/_GTuTuBNvS8s/SizF9HAuq1I/AAAAAAAAY2g/69Fw0nvau6M/s220/openldap_postfix_sasl.jpg" alt="Outlook Express - 我的伺服器需要驗證" /></a></p>
<p>當 <a href="http://en.wikipedia.org/wiki/Mail_user_agent" target="_blank">[MUA]</a> 通過 SASL 驗證機制寄信成功 Maillog 訊息，類似如下</p>
<pre> Aug 26 13:57:42 ldap postfix/smtpd[51569]: 8722B5C3A: client=weithenn.lan.home[192.168.1.11], sasl_method=LOGIN, sasl_username=weithenn@weithenn.org



轉載自：<a href="http://www.weithenn.org/cgi-bin/wiki.pl?OpenLDAP-Postfix_With_SASL2_SMTP_Auth_%E8%A8%AD%E5%AE%9A#Heading15">http://www.weithenn.org/cgi-bin/wiki.pl?OpenLDAP-Postfix_With_SASL2_SMTP_Auth_%E8%A8%AD%E5%AE%9A#Heading15</a>

</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/openldap-postfix-with-sasl2-smtp-auth-%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网易免费企业邮 / 域名邮箱 IMAP 设置</title>
		<link>http://blog.rootlau.com/wp/%e7%bd%91%e6%98%93%e5%85%8d%e8%b4%b9%e4%bc%81%e4%b8%9a%e9%82%ae-%e5%9f%9f%e5%90%8d%e9%82%ae%e7%ae%b1-imap-%e8%ae%be%e7%bd%ae/</link>
		<comments>http://blog.rootlau.com/wp/%e7%bd%91%e6%98%93%e5%85%8d%e8%b4%b9%e4%bc%81%e4%b8%9a%e9%82%ae-%e5%9f%9f%e5%90%8d%e9%82%ae%e7%ae%b1-imap-%e8%ae%be%e7%bd%ae/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 06:35:07 +0000</pubDate>
		<dc:creator><![CDATA[rootlau]]></dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[163.com]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[网易]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/wp/?p=224</guid>
		<description><![CDATA[网易免费邮箱（126、163、Yeah.net）在国内较早推出支持 IMAP 的免费邮箱，大家已非常了解，另外网易的免费企业邮 / 域名邮箱也是支持 IMAP 的，但网易免费企业邮的首页都没有推介和介绍，所以很多人不知道免费企业邮也有对这个功能的支持。 相关参数如下： 接收服务器 imap.ym.163.com，端口 993， 服务器要求安全连接（SSL 接收所有证书)；发信服务器smtp.ym.163.com，端口 465 或者 994， 服务器要求安全连接（SSL）。 支持 IMAP 的邮件客户端有 Outlook Express (Windows)、Outlook 2003 (Windows)、Outlook 2007 (Windows)、Apple Mail 2、Apple Mail 3、Apple Mail 4、Windows Mail、Thunderbird 2、Thunderbird 3 等。 另外 Android、iPhone、黑莓手机、Palm webOS、Symbian、Windows Mobile 5、Windows Mobile 6、SnapperMail 等移动设备也支持 IMAP 收发邮件。 &#160;]]></description>
				<content:encoded><![CDATA[<p>网易免费邮箱（126、163、Yeah.net）在国内较早推出支持 IMAP 的免费邮箱，大家已非常了解，另外网易的免费企业邮 / 域名邮箱也是支持 IMAP 的，但网易免费企业邮的首页都没有推介和介绍，所以很多人不知道免费企业邮也有对这个功能的支持。</p>
<p><strong>相关参数如下：</strong></p>
<p>接收服务器 imap.ym.163.com，端口 993， 服务器要求安全连接（SSL 接收所有证书)；发信服务器smtp.ym.163.com，端口 465 或者 994， 服务器要求安全连接（SSL）。</p>
<p>支持 IMAP 的邮件客户端有 Outlook Express (Windows)、Outlook 2003 (Windows)、Outlook 2007 (Windows)、Apple Mail 2、Apple Mail 3、Apple Mail 4、Windows Mail、Thunderbird 2、Thunderbird 3 等。</p>
<p>另外 Android、iPhone、黑莓手机、Palm webOS、Symbian、Windows Mobile 5、Windows Mobile 6、SnapperMail 等移动设备也支持 IMAP 收发邮件。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/%e7%bd%91%e6%98%93%e5%85%8d%e8%b4%b9%e4%bc%81%e4%b8%9a%e9%82%ae-%e5%9f%9f%e5%90%8d%e9%82%ae%e7%ae%b1-imap-%e8%ae%be%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore file association settings and default icons to Windows XP</title>
		<link>http://blog.rootlau.com/wp/restore-file-association-settings-and-default-icons-to-windows-xp/</link>
		<comments>http://blog.rootlau.com/wp/restore-file-association-settings-and-default-icons-to-windows-xp/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 13:07:32 +0000</pubDate>
		<dc:creator><![CDATA[rootlau]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/wp/?p=195</guid>
		<description><![CDATA[Go to Start/Run and type in: regsvr32 shimgvw.dll or regsvr32 /i  shimgvw.dll Added info: Manually Edit: Right Click On image file. Choose Open With, then Choose Program. Select your favorite image viewer program. Check the &#8220;always use selected program&#8221; box Click OK. To get a new copy: EXPAND X:\i386\shimgvw.dl_ C:\Windows\system32\shimgvw.dll http://www.tomshardware.com/forum/22592-45-restore-file-association-settings-default-icons]]></description>
				<content:encoded><![CDATA[<p>Go to Start/Run and type in:</p>
<p><em>regsvr32 shimgvw.dll or regsvr32 /i  shimgvw.dll</em></p>
<p>Added info:</p>
<p>Manually Edit: Right Click On image file. Choose Open With, then Choose Program. Select your favorite image viewer program. Check the &#8220;always use selected program&#8221; box Click OK.</p>
<p>To get a new copy:</p>
<p><em>EXPAND X:\i386\shimgvw.dl_ C:\Windows\system32\shimgvw.dll</em></p>
<p><a href="http://www.tomshardware.com/forum/22592-45-restore-file-association-settings-default-icons"><span style="color: #888888;">http://www.tomshardware.com/forum/22592-45-restore-file-association-settings-default-icons</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/restore-file-association-settings-and-default-icons-to-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AVG 誤報 userenv.dll 為木馬病毒</title>
		<link>http://blog.rootlau.com/wp/avg-%e8%aa%a4%e5%a0%b1-userenv-dll-%e7%82%ba%e6%9c%a8%e9%a6%ac%e7%97%85%e6%af%92/</link>
		<comments>http://blog.rootlau.com/wp/avg-%e8%aa%a4%e5%a0%b1-userenv-dll-%e7%82%ba%e6%9c%a8%e9%a6%ac%e7%97%85%e6%af%92/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 04:34:56 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/43-guid.html</guid>
		<description><![CDATA[AVG 大誤判 一早就連續接到幾通 AVG 抓到 c:\windows\system32\userenv.dll 有木馬的電話，本來接到第一通還問他昨天是不是有用隨身碟或是下載什麼程式，等到接到第二通、第三通就直覺應該是誤判，於是趕緊打開自己的電腦果然出現一樣的警示： 找到特洛伊木馬 Downloader.Generic8.8RZC 出現這個請直接【忽略】就好，只是會一直出現很煩耶！ 或者是這個，請不要按「移除所選的感染檔案」或是「移除所有未修復的感染檔案」，直接按【關閉】就好了。 已經無法開機了怎麼辦？ 如果你已經整台電腦掃毒然後 AVG 告訴你要重開機你也照辦了，那看到這篇就有一點太晚了，因為你的電腦應該已經無法開機了！ 遇到這種情形也還不到重灌的地步，只要把被 AVG 防毒殺掉的 userenv.dll 補回去就正常了，但是你要有可以開機的光碟才能作這件事。 我是習慣用 XPE 來救，但是因為不是合法的版權所以不方便在這裡提供，請你自行用搜尋引擎找找看有沒有下載點，另外你也可以試試看用 Ubuntu Live CD 開機，然後將 userenv.dll 複製到 c:\windows\system32 即可。 沒有 userenv.dll 的話，這裡有提供 userenv.dll的壓縮檔 可以下載，這是WinXP SP3的版本，其他的請自行設法從別台電腦取得。 這個問題應該在新的病毒碼出來之後就會消失了，但就怕已經很多人已經中招無法開機了 XD 2009/09/18 10:30PM 更新 更新最新版的病毒碼之後這一次的誤報事件算是落幕了，請你檢查一下你的病毒琰是不是已經升級到 2380，如果還沒的話快手動更新一下就不會再出現誤判警告了。 AVG 免費版防毒軟體：http://www.avgtaiwan.com AVG 誤判官方討論串：http://forums.avg.com userenv.dll 檔案下載：http://www.dll-files.com/dllindex/dll-files.shtml?userenv]]></description>
				<content:encoded><![CDATA[<h2>AVG 大誤判</h2>
<p>一早就連續接到幾通 AVG 抓到 c:\windows\system32\userenv.dll 有木馬的電話，本來接到第一通還問他昨天是不是有用隨身碟或是下載什麼程式，等到接到第二通、第三通就直覺應該是誤判，於是趕緊打開自己的電腦果然出現一樣的警示：</p>
<p>找到特洛伊木馬 Downloader.Generic8.8RZC</p>
<p align="&quot;center&quot;"><!-- s9ymdb:32 --><img class="&quot;serendipity_image_center&quot;" style="&quot;border:" src="&quot;http://blog.rootlau.com/blog/uploads/userenv-1.png&quot;" border="0" alt="&quot;AVG" hspace="0" vspace="0" width="500" height="331" /></p>
<p><span id="&quot;more-317&quot;"> </span></p>
<p>出現這個請直接【忽略】就好，只是會一直出現很煩耶！</p>
<p>或者是這個，請不要按「移除所選的感染檔案」或是「移除所有未修復的感染檔案」，直接按【關閉】就好了。</p>
<p align="&quot;center&quot;"><!-- s9ymdb:33 --><img class="&quot;serendipity_image_center&quot;" style="&quot;border:" src="&quot;http://blog.rootlau.com/blog/uploads/userenv-2.png&quot;" border="0" alt="&quot;AVG" hspace="0" vspace="0" width="512" height="487" /></p>
<h2>已經無法開機了怎麼辦？</h2>
<p>如果你已經整台電腦掃毒然後 AVG 告訴你要重開機你也照辦了，那看到這篇就有一點太晚了，因為你的電腦應該已經無法開機了！</p>
<p>遇到這種情形也還不到重灌的地步，只要把被 AVG 防毒殺掉的 userenv.dll 補回去就正常了，但是你要有可以開機的光碟才能作這件事。</p>
<p>我是習慣用 XPE 來救，但是因為不是合法的版權所以不方便在這裡提供，請你自行用搜尋引擎找找看有沒有下載點，另外你也可以試試看用 Ubuntu Live CD 開機，然後將 userenv.dll 複製到 c:\windows\system32 即可。</p>
<p>沒有 userenv.dll 的話，這裡有提供 <a href="&quot;http://home.anet.net.tw/yu661/userevn.zip&quot;">userenv.dll的壓縮檔</a> 可以下載，這是WinXP SP3的版本，其他的請自行設法從別台電腦取得。</p>
<p>這個問題應該在新的病毒碼出來之後就會消失了，但就怕已經很多人已經中招無法開機了 XD</p>
<h2>2009/09/18 10:30PM 更新</h2>
<h2>
<h5>更新最新版的病毒碼之後這一次的誤報事件算是落幕了，請你檢查一下你的病毒琰是不是已經升級到 2380，如果還沒的話快手動更新一下就不會再出現誤判警告了。</h5>
<p align="&quot;center&quot;"><!-- s9ymdb:34 --><img class="&quot;serendipity_image_center&quot;" style="&quot;border:" src="&quot;http://blog.rootlau.com/blog/uploads/userenv-3.png&quot;" border="0" alt="&quot;AVG" hspace="0" vspace="0" width="214" height="134" /></p>
<div></div>
</h2>
<p>AVG 免費版防毒軟體：<a href="&quot;http://www.avgtaiwan.com/&quot;">http://www.avgtaiwan.com</a></p>
<p>AVG 誤判官方討論串：<a href="&quot;http://forums.avg.com/cn-zt.avg-free-forum?sec=thread&amp;act=show&amp;id=401&quot;" target="&quot;_blank&quot;">http://forums.avg.com</a></p>
<p>userenv.dll 檔案下載：<a href="&quot;http://www.dll-files.com/dllindex/dll-files.shtml?userenv&quot;" target="&quot;_blank&quot;">http://www.dll-files.com/dllindex/dll-files.shtml?userenv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/avg-%e8%aa%a4%e5%a0%b1-userenv-dll-%e7%82%ba%e6%9c%a8%e9%a6%ac%e7%97%85%e6%af%92/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 Linux 的 shell 上搜尋文字並替代</title>
		<link>http://blog.rootlau.com/wp/%e5%9c%a8-linux-%e7%9a%84-shell-%e4%b8%8a%e6%90%9c%e5%b0%8b%e6%96%87%e5%ad%97%e4%b8%a6%e6%9b%bf%e4%bb%a3/</link>
		<comments>http://blog.rootlau.com/wp/%e5%9c%a8-linux-%e7%9a%84-shell-%e4%b8%8a%e6%90%9c%e5%b0%8b%e6%96%87%e5%ad%97%e4%b8%a6%e6%9b%bf%e4%bb%a3/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 22:49:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/5-guid.html</guid>
		<description><![CDATA[今天真的忙過死去活來！在決定放棄使用 Pacific Internet 的寬頻而改用 PCCW 的一刻，已經知道會有這一天的來臨‧‧‧ 無耐 Pacific Internet 實在不爭氣，連我這個 Reseller Partner 也要‧‧‧ 接著就是要將我的 Servers (幾部) 的網絡設定，DNS，HTTPD，SENDMAIL，‧‧‧ 全部也要將 IP 更換下來，痛苦‧‧‧ 幸好徙網路上找到了一個可以將文字更換的程式，工作就可以比較輕鬆地完成！ #!/bin/bash #       This script will search and replace all regular files for a string #       supplied by the user and replace it with another string. # #       Written by Daniel McCarthy # daniel.mccarthy@linuxphile.org # [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span class="&quot;title&quot;"> </span></p>
<p><span id="&quot;zoom&quot;"> </span></p>
<p>今天真的忙過死去活來！在決定放棄使用 Pacific Internet 的寬頻而改用 PCCW 的一刻，已經知道會有這一天的來臨‧‧‧ 無耐 Pacific Internet 實在不爭氣，連我這個 Reseller Partner 也要‧‧‧</p>
<p>接著就是要將我的 Servers (幾部) 的網絡設定，DNS，HTTPD，SENDMAIL，‧‧‧ 全部也要將 IP 更換下來，痛苦‧‧‧</p>
<p>幸好徙網路上找到了一個可以將文字更換的程式，工作就可以比較輕鬆地完成！</p>
<p>#!/bin/bash<br />
#       This script will search and replace all regular files for a string<br />
#       supplied by the user and replace it with another string.<br />
#<br />
#       Written by Daniel McCarthy<br />
# daniel.mccarthy@linuxphile.org<br />
#<br />
function usage {<br />
echo &#8220;&#8221;<br />
echo &#8220;Search/replace script&#8221;<br />
echo &#8221;    Written by Daniel McCarthy&#8221;<br />
echo &#8221; daniel.mccarthy@linuxphile.org&#8221;<br />
echo &#8221; http ://linuxphile.org&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;Not enough parameters provided.&#8221;<br />
echo &#8220;Usage: ./$0 searchstring replacestring&#8221;<br />
echo &#8220;Remember to escape any special characters in the searchstring or the replacestring&#8221;<br />
echo &#8220;&#8221;<br />
}</p>
<p>#check for required parameters<br />
if  [ ${ #1 } -gt 0  ]  &amp;&amp;  [ ${ #2 } -gt 0  ];<br />
then<br />
for f in `find  -type f`;<br />
do<br />
if grep -q $1 $f;<br />
then<br />
cp $f $f.bak<br />
echo &#8220;The string $1 will be replaced with $2 in $f&#8221;<br />
sed s/$1/$2/g &lt; $f.bak &gt; $f<br />
rm $f.bak<br />
fi<br />
done</p>
<p>else<br />
#print usage informamtion<br />
usage<br />
fi</p>
<p>參考：<a href="http://linuxphile.org/node/13"></a><a href="http://linuxphile.org/node/13" target="_blank">http://linuxphile.org/node/13</a></p>
<p><a href="&quot;http://linuxphile.org/node/13&quot;" target="&quot;_blank&quot;"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/%e5%9c%a8-linux-%e7%9a%84-shell-%e4%b8%8a%e6%90%9c%e5%b0%8b%e6%96%87%e5%ad%97%e4%b8%a6%e6%9b%bf%e4%bb%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IT佬 vs 通渠佬</title>
		<link>http://blog.rootlau.com/wp/it%e4%bd%ac-vs-%e9%80%9a%e6%b8%a0%e4%bd%ac/</link>
		<comments>http://blog.rootlau.com/wp/it%e4%bd%ac-vs-%e9%80%9a%e6%b8%a0%e4%bd%ac/#comments</comments>
		<pubDate>Sat, 20 Jan 2007 11:05:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/8-guid.html</guid>
		<description><![CDATA[從其他的 forum 聽到以下的一段關於 I.T. 工作的評價；心感切身，原來入錯行，怪不得客人都不願意付出分文地不斷的打電話來問東問西，但說要收費安排技術員上門解決問題時，連數百元服務費也不願付出&#8230; 公司爆屎渠搵個通渠佬用真空 pump 通渠 + 執走 D 屎    收費 HKD 2000.00 (都係做 3 個鐘到) 公司個 SQL down 左唔肯做 replication 搵個 IT SQL2000 expert 執過晒都係 收費 HKD 1500.00 (註: 500蚊個鍾架) 大家都係執屎一個小學程度, 一個大學畢業 + MSDBA 但收費平過 小學生]]></description>
				<content:encoded><![CDATA[<p><span class="&quot;title&quot;"> </span><span class="&quot;date&quot;"> </span><span id="&quot;zoom&quot;"></p>
<div>從其他的 forum 聽到以下的一段關於 I.T. 工作的評價；心感切身，原來入錯行，怪不得客人都不願意付出分文地不斷的打電話來問東問西，但說要收費安排技術員上門解決問題時，連數百元服務費也不願付出&#8230;</div>
<div></div>
<div>公司爆屎渠搵個通渠佬用真空 pump 通渠 + 執走 D 屎    收費 HKD 2000.00 (都係做 3 個鐘到)</div>
<div></div>
<div>公司個 SQL down 左唔肯做 replication 搵個 IT SQL2000 expert 執過晒都係 收費 HKD 1500.00 (註: 500蚊個鍾架)</div>
<div></div>
<div>大家都係執屎一個小學程度, 一個大學畢業 + MSDBA 但收費平過 小學生</div>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/it%e4%bd%ac-vs-%e9%80%9a%e6%b8%a0%e4%bd%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Information about the nslookup command (MS-DOS)</title>
		<link>http://blog.rootlau.com/wp/information-about-the-nslookup-command-ms-dos/</link>
		<comments>http://blog.rootlau.com/wp/information-about-the-nslookup-command-ms-dos/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 09:32:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/9-guid.html</guid>
		<description><![CDATA[SYNTAX Commands: (identifiers are shown in uppercase, [ ] means optional) NAME print info about the host/domain NAME using default server NAME1 NAME2 as above, but use NAME2 as server help or ? print info on common commands set OPTION set an option all print options, current server and host [no]debug print debugging information [no]d2 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span style="color: #005cb9;"><strong>SYNTAX</strong></span></p>
<p>Commands: (identifiers are shown in uppercase, [ ] means optional)</p>
<table border="1" cellspacing="0" cellpadding="0" bordercolor="#cfcfcf">
<tbody>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">NAME</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">print info about the host/domain NAME using default server</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">NAME1 NAME2 </span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">as above, but use NAME2 as server</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">help or ?</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">print info on common commands</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">set OPTION</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">set an option</p>
<p></span></p>
<table border="1" cellspacing="0" cellpadding="0" bordercolor="#cfcfcf">
<tbody>
<tr>
<td><strong><span style="font-size: x-small;">all</span></strong></td>
<td><span style="font-size: x-small;">print options, current server and host</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]debug</span></strong></td>
<td><span style="font-size: x-small;">print debugging information</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]d2</span></strong></td>
<td><span style="font-size: x-small;">print exhaustive debugging information</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]defname</span></strong></td>
<td><span style="font-size: x-small;">append domain name to each query</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]recurse</span></strong></td>
<td><span style="font-size: x-small;">ask for recursive answer to query</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]search</span></strong></td>
<td><span style="font-size: x-small;">use domain search list</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]vc</span></strong></td>
<td><span style="font-size: x-small;">always use a virtual circuit</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">domain=NAME</span></strong></td>
<td><span style="font-size: x-small;">set default domain name to NAME</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">srchlist=N1[/N2/.../N6] </span></strong></td>
<td><span style="font-size: x-small;">set domain to N1 and search list to N1,N2, etc.</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">root=NAME</span></strong></td>
<td><span style="font-size: x-small;">set root server to NAME</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">retry=X</span></strong></td>
<td><span style="font-size: x-small;">set number of retries to X</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">timeout=X</span></strong></td>
<td><span style="font-size: x-small;">set initial time-out interval to X seconds</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">type=X</span></strong></td>
<td><span style="font-size: x-small;">set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">querytype=X</span></strong></td>
<td><span style="font-size: x-small;">same as type</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">class=X</span></strong></td>
<td><span style="font-size: x-small;">set query class (ex. IN (Internet), ANY)</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">[no]msxfr</span></strong></td>
<td><span style="font-size: x-small;">use MS fast zone transfer</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">ixfrver=X</span></strong></td>
<td><span style="font-size: x-small;">current version to use in IXFR transfer request</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">server NAME</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">set default server to NAME, using current default server</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">lserver NAME</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">set default server to NAME, using initial server</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">finger [USER]</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">finger the optional NAME at the current default host</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">root</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">set current default server to the root</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">ls [opt] DOMAIN [&gt; FILE] </span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">list addresses in DOMAIN (optional: output to FILE)</p>
<p></span></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%" bordercolor="#cfcfcf">
<tbody>
<tr>
<td><strong><span style="font-size: x-small;">-a</span></strong></td>
<td><span style="font-size: x-small;">list canonical names and aliases</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">-d</span></strong></td>
<td><span style="font-size: x-small;">list all records</span></td>
</tr>
<tr>
<td><strong><span style="font-size: x-small;">-t TYPE </span></strong></td>
<td><span style="font-size: x-small;">list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">view FILE</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">sort an &#8216;ls&#8217; output file and view it with pg</span></td>
</tr>
<tr>
<td align="left" valign="top"><strong><span style="font-size: x-small;">exit</span></strong></td>
<td align="left" valign="top"><span style="font-size: x-small;">exit the program</span></td>
</tr>
</tbody>
</table>
<p><a name="04"></a><span style="color: #005cb9;"><strong>EXAMPLES</strong></span></p>
<p><strong>C:\&gt;nslookup computerhope.com</strong><br />
Server: ns.computerhope.com<br />
Address: 1.1.1.1</p>
<p>Name: computerhope.com<br />
Address: 204.228.150.3</p>
<p><span style="font-size: xx-small;">( from: </span><span style="font-size: xx-small;"><a href="http://www.computerhope.com/nslookup.htm" target="_blank">http://www.computerhope.com/nslookup.htm</a></span><span style="font-size: xx-small;"> )</span></p>
<p><span style="font-size: xx-small;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/information-about-the-nslookup-command-ms-dos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>伺服又被 Hack 了‧‧‧</title>
		<link>http://blog.rootlau.com/wp/%e4%bc%ba%e6%9c%8d%e5%8f%88%e8%a2%ab-hack-%e4%ba%86%e2%80%a7%e2%80%a7%e2%80%a7/</link>
		<comments>http://blog.rootlau.com/wp/%e4%bc%ba%e6%9c%8d%e5%8f%88%e8%a2%ab-hack-%e4%ba%86%e2%80%a7%e2%80%a7%e2%80%a7/#comments</comments>
		<pubDate>Mon, 13 Mar 2006 14:40:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/10-guid.html</guid>
		<description><![CDATA[今早反公司途中，接到老丁的電話說我的網站 (即伺服) 被 hacker 入侵了，過以為他說笑；怎知回到公司後一打開 IE，入到自己的網站後，心裡暗叫不妙，看到： You Are HACKED BY ALEKS 再查看所有的網站，有十數個中招，幸好都集中在一台伺服上，其餘的都沒有發現被 hack，但這樣並不代表沒事‧‧‧ 在這台伺服上，大部份的 index.html 及 index.php 都被置換了，雖然可以被補救，但此終都覺得這一台 server 已經不大可靠了，而且她還是 Redhat 9，很早已經看她不順眼呢！ 在沒有多大的信心下，就將她安裝成為 Fedora Core 4；實在太多的設定都變了，天啊~~ 單是 DNS 都給她用上二、三個小時，還有那個 VSFTP，喔~不是它的錯！都是 SeLinux 的問題，又再花上數小時‧‧‧ 今晚氣溫急降，只有 9oC，唉~~~]]></description>
				<content:encoded><![CDATA[<p>今早反公司途中，接到老丁的電話說我的網站 (即伺服) 被 hacker 入侵了，過以為他說笑；怎知回到公司後一打開 IE，入到自己的網站後，心裡暗叫不妙，看到：</p>
<table border="1" cellspacing="1" cellpadding="10" align="&quot;center&quot;">
<tbody>
<tr>
<td>You Are HACKED BY ALEKS</td>
</tr>
</tbody>
</table>
<p>再查看所有的網站，有十數個中招，幸好都集中在一台伺服上，其餘的都沒有發現被 hack，但這樣並不代表沒事‧‧‧ 在這台伺服上，大部份的 index.html 及 index.php 都被置換了，雖然可以被補救，但此終都覺得這一台 server 已經不大可靠了，而且她還是 Redhat 9，很早已經看她不順眼呢！</p>
<p>在沒有多大的信心下，就將她安裝成為 Fedora Core 4；實在太多的設定都變了，天啊~~ 單是 DNS 都給她用上二、三個小時，還有那個 VSFTP，喔~不是它的錯！都是 SeLinux 的問題，又再花上數小時‧‧‧</p>
<p>今晚氣溫急降，只有 9oC，唉~~~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/%e4%bc%ba%e6%9c%8d%e5%8f%88%e8%a2%ab-hack-%e4%ba%86%e2%80%a7%e2%80%a7%e2%80%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 PHP 去 Upload 的上限</title>
		<link>http://blog.rootlau.com/wp/%e4%bd%bf%e7%94%a8-php-%e5%8e%bb-upload-%e7%9a%84%e4%b8%8a%e9%99%90/</link>
		<comments>http://blog.rootlau.com/wp/%e4%bd%bf%e7%94%a8-php-%e5%8e%bb-upload-%e7%9a%84%e4%b8%8a%e9%99%90/#comments</comments>
		<pubDate>Fri, 17 Feb 2006 11:05:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[I.T.]]></category>

		<guid isPermaLink="false">http://blog.rootlau.com/blog/index.php?/archives/11-guid.html</guid>
		<description><![CDATA[原來使用網頁寄存商的網頁寄存服務都幾多限制的，例如使用 PHP 程式作上存檔案時只可以上存到 2M 的，如果是自已的 Server 就很容易解決，修改 /etc/php.ini 便可以。 但是，使用網頁寄存服務就沒可能修改到 php.ini 了‧‧‧ 找了很久，終於找到方法了，就是修改 .htaccess 了，只需要加入以下設定即可： php_value upload_max_filesize 12M 可以說，在我使用的主機上可以用得上，希望你們也可以！]]></description>
				<content:encoded><![CDATA[<p>
<span class=&quot;title&quot;></span><span class=&quot;date&quot;></span><span id=&quot;zoom&quot;>
<p>原來使用網頁寄存商的網頁寄存服務都幾多限制的，例如使用 PHP 程式作上存檔案時只可以上存到 2M 的，如果是自已的 Server 就很容易解決，修改 /etc/php.ini 便可以。</p>
<p>但是，使用網頁寄存服務就沒可能修改到 php.ini 了‧‧‧</p>
<p>找了很久，終於找到方法了，就是修改 .htaccess 了，只需要加入以下設定即可：</p>
<blockquote dir=&quot;ltr&quot; style=&quot;margin-right: 0px;&quot;><div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;><font color=&quot;#c00000&quot;>php_value upload_max_filesize 12M</font></div>
</blockquote>
<div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;>可以說，在我使用的主機上可以用得上，希望你們也可以！</div>
<div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;></div>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rootlau.com/wp/%e4%bd%bf%e7%94%a8-php-%e5%8e%bb-upload-%e7%9a%84%e4%b8%8a%e9%99%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
