<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2681314685955532678</id><updated>2024-10-25T18:58:38.463+08:00</updated><category term="FreeBSD"/><category term="BackBlaze"/><category term="Windows"/><category term="CentOS"/><category term="Apache"/><category term="Linux"/><category term="Postfix"/><category term="Apple"/><category term="DNS"/><category term="Duplicate Finder"/><category term="Flash"/><category term="OSX"/><category term="Perl"/><category term="RAID"/><category term="Squid"/><category term="protocase"/><category term="ASUS"/><category term="Backplanes"/><category term="Bonding"/><category term="CPU"/><category term="Chrome"/><category term="DOS"/><category term="Dropbox"/><category term="Eraser"/><category term="Explorer"/><category term="Ext4"/><category term="FTP"/><category term="Google Drive"/><category term="HDD"/><category term="HP X1600"/><category term="Header"/><category term="Hichannel"/><category term="IE9"/><category term="Java"/><category term="Log Server"/><category term="MAC"/><category term="MP4"/><category term="MTA"/><category term="Mac Mini"/><category term="Mail System"/><category term="MediaPlayer"/><category term="Microsoft"/><category term="NTP"/><category term="Office 2016"/><category term="PDF"/><category term="PHP"/><category term="Photoshop"/><category term="Publisher"/><category term="Putty"/><category term="Redhat"/><category term="SSH"/><category term="Safari"/><category term="Timezone"/><category term="TrueCrypt"/><category term="USB"/><category term="Uptech"/><category term="WD"/><category term="WebMail SquirreMail"/><category term="awk"/><category term="clamAV"/><category term="cpan"/><category term="dmidecode"/><category term="http"/><category term="iCloud"/><category term="iTunes"/><category term="idle3"/><category term="mdadm"/><category term="mirror"/><category term="mySQL"/><category term="parted"/><category term="phpBB"/><category term="postsuper"/><category term="proftpd"/><category term="proxy"/><category term="selinux"/><category term="sshd"/><category term="stdtime"/><category term="wget"/><category term="記憶體"/><title type='text'>MIS is my Dep.</title><subtitle type='html'>Let&#39;s make a BackBlaze Pod Storage!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>58</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-2191887853050216057</id><published>2015-09-30T20:57:00.000+08:00</published><updated>2015-09-30T20:57:33.849+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 2016"/><category scheme="http://www.blogger.com/atom/ns#" term="PDF"/><category scheme="http://www.blogger.com/atom/ns#" term="Publisher"/><title type='text'>如何在 MAC 上面修改 .pub 檔案</title><content type='html'>最近發現老闆有做了一些 PDF 檔案，今天才知道老闆是用微軟的 Publisher 做完之後，再輸出為 PDF 檔案，可惜的是 Publisher 並沒有被包含在 Office 2016 for MAC，真的太過份了，今天 Google 了很久，找到一個最有參考價值的文件，有此需求的人可以參考看看&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://machow2.com/publisher-for-mac/&quot;&gt;http://machow2.com/publisher-for-mac/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/2191887853050216057/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2015/09/mac-pub.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/2191887853050216057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/2191887853050216057'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2015/09/mac-pub.html' title='如何在 MAC 上面修改 .pub 檔案'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-515667660299654953</id><published>2015-09-23T16:37:00.000+08:00</published><updated>2015-09-23T16:58:19.056+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="Dropbox"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Drive"/><category scheme="http://www.blogger.com/atom/ns#" term="iCloud"/><title type='text'>利用 iCloud 來納管所有的資料，備份備份再備份</title><content type='html'>最近 Apple 推出了 iCloud 的 APP，開始認真的在思考，是不是該把 Google Drive 跟 Dropbox 的資料都同步一份到 iCloud 來，畢竟租了 200GB 但其實只用到 70GB 也挺浪費的！&lt;br /&gt;
&lt;br /&gt;
我在 iCloud 上面的空間是 200GB，Google Drive 的空間是 30GB，在 Dropbox 的空間是 2GB，所以我決定把所有的檔案都放在 iCloud 的肚子裡，再分別把 Google 的丟到 Google 去，把 Dropbox 的丟到 Dropbox 去。&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;解除&amp;nbsp;iCloud 帳戶連結&lt;/li&gt;
&lt;li&gt;將整個 Google Drive 目錄拉到 iCloud 裡面(此時 iCloud 就會開始備份新增的資料)&lt;/li&gt;
&lt;li&gt;重新設定 Google Drive 帳號，並指定使用 iCloud 裡的 Google Drive 目錄&lt;/li&gt;
&lt;li&gt;Dropbox 的部份只需要重新設定 Dropbox 位置到 iCloud 目錄裡面，程式會自動把舊有的資料都拉進去&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
設定完之後會有一陣子電腦處於大亂鬥狀態，我的 MBPr 風扇整個超忙的，好久風扇都沒有狂吹過了&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/515667660299654953/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2015/09/icloud.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/515667660299654953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/515667660299654953'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2015/09/icloud.html' title='利用 iCloud 來納管所有的資料，備份備份再備份'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-7967172503696315323</id><published>2014-01-22T16:33:00.001+08:00</published><updated>2015-09-23T16:59:47.314+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="selinux"/><title type='text'>關閉 SELINUX 的方法</title><content type='html'>因為常遇到，筆記一下關閉 selinux 的方式&lt;br /&gt;
&lt;br /&gt;
編輯設定檔 /etc/selinux/conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果不想重開機，可直接下指令：setenforce 0</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/7967172503696315323/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2014/01/selinux.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7967172503696315323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7967172503696315323'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2014/01/selinux.html' title='關閉 SELINUX 的方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-4841458939484288273</id><published>2013-01-17T05:23:00.003+08:00</published><updated>2013-01-17T05:23:49.809+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cpan"/><category scheme="http://www.blogger.com/atom/ns#" term="Perl"/><category scheme="http://www.blogger.com/atom/ns#" term="proxy"/><title type='text'>幫 cpan 設定 proxy server</title><content type='html'>最近幾天在機房工作，常常遇到臨時要裝一個 perl 套件，但是沒網路可以用，今天老大又灌了一台 proxy，叫我用那台連比較快，可是我要灌 perl 的套件怎麼辦？&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# perl -MCPAN -e shell&lt;/blockquote&gt;
進入 cpan 介面之後下&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
o conf init /proxy/&lt;br /&gt;&amp;nbsp;&amp;lt;ftp_proxy&amp;gt;&lt;br /&gt;Your ftp_proxy? []&lt;br /&gt;&amp;nbsp;&amp;lt;http_proxy&amp;gt;&lt;br /&gt;Your http_proxy? []&lt;br /&gt;&amp;nbsp;&amp;lt;no_proxy&amp;gt;&lt;br /&gt;Your no_proxy? []&lt;/blockquote&gt;
&lt;br /&gt;
看你想要設定哪一個，就把它填上去，最後再來一個&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
o conf commit&lt;/blockquote&gt;
把設定存起來，再下指令&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
install package::name&lt;/blockquote&gt;
看看是不是有順利安裝進去&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/4841458939484288273/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2013/01/cpan-proxy-server.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4841458939484288273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4841458939484288273'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2013/01/cpan-proxy-server.html' title='幫 cpan 設定 proxy server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-1583063439168503654</id><published>2013-01-11T13:19:00.001+08:00</published><updated>2013-01-11T13:19:37.322+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP 時區修改</title><content type='html'>同事在抱怨說程式記錄的時間不是現在的時間，查了一下系統時間正確，Apache Log 的時間也正確，看起來應該是 PHP 本身的問題。Google 之後才發現，PHP5 以後，系統都是以&amp;nbsp;GMT+0 為預設值，時區要手動修改，編輯 php.ini 檔案。&lt;br /&gt;
&lt;br /&gt;
;date.timezone =&lt;br /&gt;
修改為&lt;br /&gt;
date.timezone = &quot;Asia/Taipei&quot;&lt;br /&gt;
&lt;br /&gt;
存檔後重新啟動 apache 即可</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/1583063439168503654/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2013/01/php.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/1583063439168503654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/1583063439168503654'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2013/01/php.html' title='PHP 時區修改'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-3673772799155105153</id><published>2013-01-10T13:29:00.001+08:00</published><updated>2013-01-10T13:29:23.722+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IE9"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>完完全全徹徹底底的移除 IE9</title><content type='html'>最近發現，使用 IE9 的人連公司的某些網頁會有問題，所以筆記一下如何移除！&lt;br /&gt;
&lt;br /&gt;
在開始=&amp;gt;執行=&amp;gt;appwiz.cpl=&amp;gt;檢視安裝的更新&lt;br /&gt;
&lt;br /&gt;
從清單中就會看到 IE9，移除之後重新開機，就會看到 IE8 回來了</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/3673772799155105153/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2013/01/ie9.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/3673772799155105153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/3673772799155105153'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2013/01/ie9.html' title='完完全全徹徹底底的移除 IE9'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-4703566549875711035</id><published>2013-01-05T23:31:00.000+08:00</published><updated>2013-01-05T23:31:11.610+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eraser"/><category scheme="http://www.blogger.com/atom/ns#" term="TrueCrypt"/><category scheme="http://www.blogger.com/atom/ns#" term="USB"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>將資料徹徹底底的刪除！</title><content type='html'>最近因為需要，在找一個可以把硬碟資料清除乾淨的程式，原本預定花錢購買，沒想到就被我找到&amp;nbsp;&lt;a href=&quot;http://eraser.heidi.ie/&quot; target=&quot;_blank&quot;&gt;Eraser&lt;/a&gt;！他提供許多種演算法，支援許多官方跟軍方規格的標準演算法！而且不用錢！我的媽呀～怎麼可以這麼佛心的來呢！唯一可惜的地方是只有 Windows 版本，Apple 的使用者還無福消受。&lt;br /&gt;
&lt;br /&gt;
使用方法可以&lt;a href=&quot;http://izaka.pixnet.net/blog/post/24962177-%5B%E6%95%99%E5%AD%B8%5D%E5%BE%B9%E5%BA%95%E5%88%AA%E9%99%A4%E7%A1%AC%E7%A2%9F%E8%B3%87%E6%96%99,-%E5%80%8B%E4%BA%BA%E8%B3%87%E6%96%99%E4%B8%8D%E5%A4%96%E6%B4%A9-%3A-er&quot; target=&quot;_blank&quot;&gt;參考這裡&lt;/a&gt;！同場加映隨身碟加密程式&amp;nbsp;&lt;a href=&quot;http://www.truecrypt.org/&quot; target=&quot;_blank&quot;&gt;TrueCrypt&lt;/a&gt;，不過在我的 MAC 竟然一直灌不起來，只好請大家自行試用，同時支援 Windows OSX Linux 三種作業系統。</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/4703566549875711035/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2013/01/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4703566549875711035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4703566549875711035'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2013/01/blog-post.html' title='將資料徹徹底底的刪除！'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-1663087048447731973</id><published>2012-10-29T14:58:00.001+08:00</published><updated>2012-10-29T14:58:47.320+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="iTunes"/><title type='text'>安裝 iTunes 一直遇到 windows installer 封裝有問題</title><content type='html'>今天幫老闆更新 iTunes，windows 一直給我噴&amp;nbsp;windows installer 封裝有問題！原本還以為是下載的 iTunes 安裝程式有問題，試了二台電腦下載都一樣，最後又換了一台肯定不會有問題的電腦下載，我才開始覺得可能是老闆的電腦有問題！&lt;br /&gt;
&lt;br /&gt;
上網查了一下，有人說要把 iTunes 修復再安裝，失敗！&lt;br /&gt;
有人說要把 Quicktime 修復再安裝，失敗！&lt;br /&gt;
最後是把&amp;nbsp;Apple software update 修復，再安裝 iTunes，成功！</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/1663087048447731973/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/10/itunes-windows-installer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/1663087048447731973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/1663087048447731973'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/10/itunes-windows-installer.html' title='安裝 iTunes 一直遇到 windows installer 封裝有問題'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-7479970427920089771</id><published>2012-10-06T11:57:00.000+08:00</published><updated>2012-10-06T11:59:56.907+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="idle3"/><category scheme="http://www.blogger.com/atom/ns#" term="WD"/><title type='text'>WD 綠標硬碟關閉 idle</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://www.synology.com/support/faq_show.php?lang=enu&amp;amp;q_id=407&quot; target=&quot;_blank&quot;&gt;windows 可以參考這裡&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://idle3-tools.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;Linux 可以參考這裡&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
由於我們是用在 CentOS 上面&lt;br /&gt;
所以我就先試了 idle3ctl&lt;br /&gt;
&lt;br /&gt;
下載 idle3-tools-0.9.1.tgz&lt;br /&gt;
# tar xzvf idle3-tools-0.9.1.tgz&lt;br /&gt;
# cd idle3-tools-0.9.1&lt;br /&gt;
# make install&lt;br /&gt;
即安裝完畢&lt;br /&gt;
&lt;br /&gt;
查看 idle 設定&lt;br /&gt;
# idle3ctl -g /dev/sdb&lt;br /&gt;
Idle3 timer set to 80 (0x50)&lt;br /&gt;
&lt;br /&gt;
取消 idle 設定&lt;br /&gt;
# idle3ctl -d /dev/sdb&lt;br /&gt;
Idle3 timer disabled&lt;br /&gt;
Please power cycle your drive off and on for the new setting to be taken into account. A reboot will not be enough!&lt;br /&gt;
所以要重開機設定才能生效！</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/7479970427920089771/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/10/wd-idle.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7479970427920089771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7479970427920089771'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/10/wd-idle.html' title='WD 綠標硬碟關閉 idle'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-3897210309782708348</id><published>2012-08-17T15:32:00.000+08:00</published><updated>2012-08-17T15:32:33.910+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="Postfix"/><category scheme="http://www.blogger.com/atom/ns#" term="postsuper"/><title type='text'>一次刪除多封 queue</title><content type='html'>常常會遇到 mail server 上積了幾萬封信件來不及處理，通常這時候都是有某一個地方出錯，導致信寄個沒完沒了，如何一次刪除不想要的那些信件？&lt;blockquote class=&quot;tr_bq&quot;&gt;
mailq | grep MAILER-DAEMON&lt;/blockquote&gt;
&lt;div&gt;
可以抓出你想刪除的信，但是還有一堆雜七雜八的資料在裡頭。&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mailq | grep MAILER-DAEMON | awk &#39;{print $1}&#39;&lt;/blockquote&gt;
&lt;div&gt;
這時候就只剩下 mailq ID 了，一行一個，非常乾淨～&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mailq | grep MAILER-DAEMON | awk &#39;{print $1}&#39; | postsuper -d -&lt;/blockquote&gt;
這一行就可以讓你把剛剛找到的信件通通刪除，眼不見為淨！</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/3897210309782708348/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/08/queue.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/3897210309782708348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/3897210309782708348'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/08/queue.html' title='一次刪除多封 queue'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-6699754846241489783</id><published>2012-06-23T01:02:00.000+08:00</published><updated>2012-06-23T01:02:30.153+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bonding"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><title type='text'>CentOS 5.8 NIC Bonding configure</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;1. 編輯&amp;nbsp;/etc/modprobe.conf 設定檔&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
alias bond0 bonding&lt;/div&gt;
&lt;div&gt;
options bond0 miimon=80 mode=1&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. 新增&amp;nbsp;/etc/sysconfig/network-scripts/ifcfg-bond0 設定檔&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
DEVICE=bond0&lt;/div&gt;
&lt;div&gt;
IPADDR=&amp;lt;your.ip.address&amp;gt;&lt;/div&gt;
&lt;div&gt;
NETMASK=&amp;lt;255.255.255.x&amp;gt;&lt;/div&gt;
&lt;div&gt;
NETWORK=&lt;/div&gt;
&lt;div&gt;
BROADCAST=&lt;/div&gt;
&lt;div&gt;
GATEWAY=&amp;lt;gate.way.ip&amp;gt;&lt;/div&gt;
&lt;div&gt;
ONBOOT=yes&lt;/div&gt;
&lt;div&gt;
BOOTPROTO=none&lt;/div&gt;
&lt;div&gt;
USERCTL=no&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
3. 修改第一張網卡&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;/etc/sysconfig/network-scripts/&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ifcfg-eth0 設定檔&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;DEVICE=eth0&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;div&gt;
ONBOOT=yes&lt;/div&gt;
&lt;div&gt;
BOOTPROTO=none&lt;/div&gt;
&lt;div&gt;
USERCTL=no&lt;/div&gt;
&lt;div&gt;
MASTER=bond0&lt;/div&gt;
&lt;div&gt;
SLAVE=yes&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
4. 修改第二張網卡&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;/etc/sysconfig/network-scripts/&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ifcfg-eth1 設定檔&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;DEVICE=eth1&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;div&gt;
ONBOOT=yes&lt;/div&gt;
&lt;div&gt;
BOOTPROTO=none&lt;/div&gt;
&lt;div&gt;
USERCTL=no&lt;/div&gt;
&lt;div&gt;
MASTER=bond0&lt;/div&gt;
&lt;div&gt;
SLAVE=yes&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;(此步驟看你有幾張卡想要設定就做幾次)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5. 重新開機！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
在設定&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;bonding mode 的時候要注意：&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;mode=1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;active-backup 模式&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;一次只有一張網卡在工作&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;經過測試，二張網卡輪流斷線&lt;/span&gt;&lt;br /&gt;
基本上 ping 都不會斷！&lt;br /&gt;
&lt;br /&gt;
其他參考資料：&lt;br /&gt;
&lt;a href=&quot;http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s3-modules-bonding-directives.html&quot; target=&quot;_blank&quot;&gt;41.5.2.1. bonding Module Directives  &lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.howtoforge.com/network_card_bonding_centos&quot; target=&quot;_blank&quot;&gt;Network Card Bonding On CentOS&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/6699754846241489783/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/06/centos-58-nic-bonding-configure.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6699754846241489783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6699754846241489783'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/06/centos-58-nic-bonding-configure.html' title='CentOS 5.8 NIC Bonding configure'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-7422032171664683581</id><published>2012-05-31T17:49:00.000+08:00</published><updated>2012-05-31T17:49:15.379+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CPU"/><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="記憶體"/><title type='text'>FreeBSD 查 CPU 與記憶體資料</title><content type='html'>&lt;br /&gt;
經常會被問到某一台機器的 CUP 是多少，或是記憶體夠不夠，臨時要查又忘了指令，今天筆記一下！&lt;br /&gt;
&lt;br /&gt;
原本用 dmesg 可以查的出來，有時機器開機太久，會有別的資料把 dmesg 塞滿，這時候可用&lt;br /&gt;
cat /var/run/dmesg.boot | less&lt;br /&gt;
就可以查到原本開機時的資訊&lt;br /&gt;
&lt;br /&gt;
sysctl hw.model 可以查 CPU 型號規格&lt;br /&gt;
&lt;br /&gt;
sysctl kern.smp.cpus 可以查 CPU 數量&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/7422032171664683581/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/05/freebsd-cpu.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7422032171664683581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/7422032171664683581'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/05/freebsd-cpu.html' title='FreeBSD 查 CPU 與記憶體資料'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-5361405874493645254</id><published>2012-04-19T09:16:00.003+08:00</published><updated>2012-04-19T09:16:58.698+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mirror"/><category scheme="http://www.blogger.com/atom/ns#" term="wget"/><title type='text'>用 wget 砍站！</title><content type='html'>以前最常用 mirror 來咪二個不同的目錄，或網站，或 FTP Site，不過 mirror 似乎不再更新，而且有些時候主機就是沒辦法讓你安裝新程式，這時候只能利用主機現有的程式來想辦法，一開始我從 fetch 下手，好像功能很陽春，後來想到 wget！&lt;br /&gt;
&lt;br /&gt;
wget -m -nH ftp://user:passwd@192.168.1.1/目錄/目錄/&lt;br /&gt;
&lt;br /&gt;
-m 是 mirror 的意思&lt;br /&gt;
-nH 不產生遠端目錄架構&lt;br /&gt;
&lt;br /&gt;
不過我試了一下，在我下指令的目錄裡，還是產生了遠端主機的目錄結構！以後有空再來深入研究～</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/5361405874493645254/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/04/wget.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5361405874493645254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5361405874493645254'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/04/wget.html' title='用 wget 砍站！'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-6326424237407554433</id><published>2012-03-29T10:25:00.000+08:00</published><updated>2012-03-29T10:27:38.425+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BackBlaze"/><category scheme="http://www.blogger.com/atom/ns#" term="HDD"/><title type='text'>硬碟大缺貨！</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;因為泰國水患的關係，導致從去年底到現在，硬碟大缺貨！只好先買 2T 應急～現在 2T 的硬碟，比去年 3T 硬碟還要貴！真是要命啊～&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXwGYDY5irvo74hupMmLzkzxzUPYjhpLj1nVWrAI37XLmvrFLrsG4XijKLzzeKT7BaXxPkPcyNX9FpNjTbmhCwj91SfWEBmw66LuUKtp3qQ0R2tKiJuxD_T4yOmWVIB3jLDPd1WEJBFM/s1600/2012-03-28+13.58.06.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXwGYDY5irvo74hupMmLzkzxzUPYjhpLj1nVWrAI37XLmvrFLrsG4XijKLzzeKT7BaXxPkPcyNX9FpNjTbmhCwj91SfWEBmw66LuUKtp3qQ0R2tKiJuxD_T4yOmWVIB3jLDPd1WEJBFM/s320/2012-03-28+13.58.06.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/6326424237407554433/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/03/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6326424237407554433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6326424237407554433'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/03/blog-post.html' title='硬碟大缺貨！'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXwGYDY5irvo74hupMmLzkzxzUPYjhpLj1nVWrAI37XLmvrFLrsG4XijKLzzeKT7BaXxPkPcyNX9FpNjTbmhCwj91SfWEBmw66LuUKtp3qQ0R2tKiJuxD_T4yOmWVIB3jLDPd1WEJBFM/s72-c/2012-03-28+13.58.06.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-5185785303590654212</id><published>2012-01-12T17:26:00.001+08:00</published><updated>2012-01-12T17:26:31.832+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Header"/><title type='text'>Apache 隱藏 header 的方法</title><content type='html'>原本的 header 如下：&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
curl -I http://localhost&lt;br /&gt;HTTP/1.1 200 OK&lt;br /&gt;Date: Mon, 09 Jan 2012 08:55:09 GMT&lt;br /&gt;Server: Apache/2.0.59 (FreeBSD) PHP/4.4.4 with Suhosin-Patch mod_ssl/2.0.59 OpenSSL/0.9.7e-p1&lt;br /&gt;Last-Modified: Mon, 07 Mar 2011 18:36:38 GMT&lt;br /&gt;ETag: &quot;cabcb3-180-c6ac5980&quot;&lt;br /&gt;Accept-Ranges: bytes&lt;br /&gt;Content-Length: 384&lt;br /&gt;Connection: close&lt;br /&gt;Content-Type: text/html&lt;/blockquote&gt;
隱藏的設定：&lt;br /&gt;
編輯httpd.conf：&lt;br /&gt;
ServerTokens = Full，也就是所有的資訊都會公佈，改成&lt;br /&gt;
ServerTokens = Prod&lt;br /&gt;
ServerSignature = On，改成&lt;br /&gt;
ServerSignature = Off&lt;br /&gt;
編輯php.ini&lt;br /&gt;
expose_php = On，改成&lt;br /&gt;
expose_php = Off&lt;br /&gt;
重新啟動Apache&lt;br /&gt;
&lt;br /&gt;
改完之後&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
curl -I http://localhost&lt;br /&gt;HTTP/1.1 200 OK&lt;br /&gt;Date: Mon, 09 Jan 2012 08:51:41 GMT&lt;br /&gt;Server: Apache&lt;br /&gt;Last-Modified: Mon, 07 Mar 2011 18:36:38 GMT&lt;br /&gt;ETag: &quot;cabcb3-180-c6ac5980&quot;&lt;br /&gt;Accept-Ranges: bytes&lt;br /&gt;Content-Length: 384&lt;br /&gt;Connection: close&lt;br /&gt;Content-Type: text/html&amp;nbsp;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/5185785303590654212/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2012/01/apache-header.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5185785303590654212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5185785303590654212'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2012/01/apache-header.html' title='Apache 隱藏 header 的方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-5431731755133805809</id><published>2011-12-09T13:33:00.000+08:00</published><updated>2011-12-09T13:33:13.172+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="proftpd"/><title type='text'>取消 Proftpd DNS Lookup</title><content type='html'>今天遇到一個問題，就是沒有 dns 的環境裡，proftpd 在連線時會等很久！原本以為在 hosts 裡加上設定就好，想不到沒效！&lt;br /&gt;
&lt;br /&gt;
後來找到 protftpd 的設定&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;IdentLookups off&lt;br /&gt;
UseReverseDNS off&lt;/blockquote&gt;加上之後就解決了！&lt;br /&gt;
但是不知道為什麼，啟動 proftpd 的時間變長了，不知道是哪裡怪怪的。</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/5431731755133805809/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/12/proftpd-dns-lookup.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5431731755133805809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/5431731755133805809'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/12/proftpd-dns-lookup.html' title='取消 Proftpd DNS Lookup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-4782346703178153642</id><published>2011-11-14T19:28:00.000+08:00</published><updated>2011-11-14T19:28:13.633+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="parted"/><title type='text'>如何在 linux 裡切出 2T 以上的 partition</title><content type='html'>上次做過一次，忘了筆記， 今天在使用 fdisk 的時候，才想起來 fdisk 沒辦法切超過 2T 的空間！找了好久，一看到 parted 這個關鍵字～我才想起來！就是它！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;# &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;parted /dev/md0&lt;/span&gt;&lt;br /&gt;
GNU Parted 2.1&lt;br /&gt;
Using /dev/md0&lt;br /&gt;
Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&lt;br /&gt;
(parted) &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;mklabel&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
New disk label type? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;gpt&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Warning: The existing disk label on /dev/md0 will be destroyed and all data on this disk will be lost. Do you want to continue?&lt;br /&gt;
Yes/No? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;y&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
(parted) mkpart &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Partition name? &amp;nbsp;[]? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;primay&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
File system type? &amp;nbsp;[ext2]? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;xfs&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Start? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;0&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
End? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;-1&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Warning: The resulting partition is not properly aligned for best performance.&lt;br /&gt;
Ignore/Cancel? &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;i&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
(parted) &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;p&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Model: Unknown (unknown)&lt;br /&gt;
Disk /dev/md0: 33.0TB&lt;br /&gt;
Sector size (logical/physical): 512B/512B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
Number &amp;nbsp;Start &amp;nbsp; End &amp;nbsp; &amp;nbsp; Size &amp;nbsp; &amp;nbsp;File system &amp;nbsp;Name &amp;nbsp; &amp;nbsp;Flags&lt;br /&gt;
&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;17.4kB &amp;nbsp;33.0TB &amp;nbsp;33.0TB &amp;nbsp;xfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;primay&lt;br /&gt;
(parted) &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;q&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Information: You may need to update /etc/fstab.&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/4782346703178153642/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/11/linux-2t-partition.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4782346703178153642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4782346703178153642'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/11/linux-2t-partition.html' title='如何在 linux 裡切出 2T 以上的 partition'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-8785515167063517606</id><published>2011-09-19T13:52:00.000+08:00</published><updated>2011-09-19T13:52:59.261+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FTP"/><title type='text'>ProFTPD 限制流量設定</title><content type='html'>今天早上接到客戶的電話，說主機的網路有 package loss，一查才發現，有一台 FTP 主機把所有流量都吃光光！二話不說，馬上來研究一下 ProFTPD 的相關設定！&lt;br /&gt;
&lt;br /&gt;
原來在 proftpd.conf 裡可以設定流量管制：&lt;br /&gt;
&lt;br /&gt;
限制上傳頻寬設定&lt;br /&gt;
TransferRate STOR 300&lt;br /&gt;
限制下載頻寬設定&lt;br /&gt;
TransferRate RETR 300&lt;br /&gt;
&lt;br /&gt;
後面的數字是 KB/sec&lt;br /&gt;
如果想要針對某 user 或是某 group 做限制&lt;br /&gt;
可以在數字後面再加上 user or group&lt;br /&gt;
TransferRate RETR 300 user sam&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
參考資料：&lt;a href=&quot;http://www.proftpd.org/docs/directives/linked/config_ref_TransferRate.html&quot;&gt;TransferRate&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/8785515167063517606/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/09/proftpd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8785515167063517606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8785515167063517606'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/09/proftpd.html' title='ProFTPD 限制流量設定'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-8196363701849485663</id><published>2011-09-08T17:00:00.000+08:00</published><updated>2011-09-08T17:00:17.318+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BackBlaze"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="RAID"/><title type='text'>如何得知到底是哪一顆硬碟有問題？</title><content type='html'>剛剛找到一個辦法了！&lt;br /&gt;
先找出來是哪一顆硬碟壞掉&lt;br /&gt;
&lt;blockquote&gt;# more /proc/mdstat&lt;br /&gt;
md0 : active raid6 sdl[11] sdn[13] sdk[10](F) sdo[14](S) sdm[12] sdh[7] sdf[5] sdc[2] sdj[9] sdg[6] sde[4] sda[0] sdd[3] sdb[1] sdi[8]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 21488642560 blocks super 1.2 level 6, 512k chunk, algorithm 2 [13/12] [UUUUUUUUUU_UU]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; [=&amp;gt;...................] &amp;nbsp;recovery = &amp;nbsp;7.3% (143145472/1953512960) finish=1996.5min speed=15112K/sec&lt;/blockquote&gt;從上面看出來是 sdk[10](F) 這顆壞掉&lt;br /&gt;
再用 smartctl 查出來這顆硬碟的序號&lt;br /&gt;
&lt;blockquote&gt;# smartctl --all /dev/sdk&lt;br /&gt;
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (local build)&lt;br /&gt;
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net&lt;br /&gt;
=== START OF INFORMATION SECTION ===&lt;br /&gt;
Device Model: &amp;nbsp; &amp;nbsp; ST2000DL003-9VT166&lt;br /&gt;
Serial Number: &amp;nbsp; &amp;nbsp;5YD4SGVK&lt;/blockquote&gt;&lt;br /&gt;
這樣我就可以順利找出來壞掉的硬碟是哪一顆了！</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/8196363701849485663/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/09/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8196363701849485663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8196363701849485663'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/09/blog-post.html' title='如何得知到底是哪一顆硬碟有問題？'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-4974591499540267863</id><published>2011-08-29T13:08:00.000+08:00</published><updated>2011-08-29T13:08:15.644+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Ext4"/><title type='text'>如何在 CentOS6 裡建立 ext4 的 file system</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #dee3e7; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;postbody&quot; style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;如何在 CentOS6 裡建立 ext4 的 file system&lt;br /&gt;
雖然&lt;a class=&quot;postlink&quot; href=&quot;https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Creating_ext4_filesystems&quot; style=&quot;color: #006699; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;最後發現&lt;/a&gt;目前的 ext4 還不支援大於 16TB 的 file system&lt;br /&gt;
還是先筆記一下，未來也許可以用到！&lt;br /&gt;
&lt;br /&gt;
[root@localhost ~]# parted /dev/sdb # 使用parted来对GPT磁盘操作，进入交互式模式&lt;br /&gt;
GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type ‘help’ to view a list of commands.&lt;br /&gt;
(parted) mklabel gpt # 将MBR磁盘格式化为GPT&lt;br /&gt;
(parted) print #打印当前分区&lt;br /&gt;
(parted) mkpart primary 0 4.5TB # 分一个4.5T的主分区&lt;br /&gt;
(parted) mkpart primary 4.5TB 12TB # 分一个7.5T的主分区&lt;br /&gt;
(parted) print #打印当前分区&lt;br /&gt;
(parted) quit 退出&lt;br /&gt;
Information: Don’t forget to update /etc/fstab, if necessary.&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;genmed&quot; style=&quot;color: black; font-size: 13px;&quot;&gt;&lt;b&gt;代碼:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot; style=&quot;background-color: #fafafa; border-bottom-color: rgb(209, 215, 220); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(209, 215, 220); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(209, 215, 220); border-top-style: solid; border-top-width: 1px; border-width: initial; color: #006600; font-family: Courier, &#39;Courier New&#39;, sans-serif; font-size: 13px;&quot;&gt;[root@eblaze00 home]# parted /dev/md1&lt;br /&gt;
GNU Parted 2.1&lt;br /&gt;
Using /dev/md1&lt;br /&gt;
Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&amp;nbsp;&lt;br /&gt;
(parted) mklabel&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
New disk label type? y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
parted: invalid token: y&lt;br /&gt;
New disk label type? gpt&lt;br /&gt;
(parted) mkpart primary&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
File system type?&amp;nbsp; [ext2]? ext4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Start? 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
End? -1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Warning: The resulting partition is not properly aligned for best performance.&lt;br /&gt;
Ignore/Cancel? i&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
(parted) print&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Model: Unknown (unknown)&lt;br /&gt;
Disk /dev/md1: 22.0TB&lt;br /&gt;
Sector size (logical/physical): 512B/512B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number&amp;nbsp; Start&amp;nbsp; &amp;nbsp;End&amp;nbsp; &amp;nbsp; &amp;nbsp;Size&amp;nbsp; &amp;nbsp; File system&amp;nbsp; Name&amp;nbsp; &amp;nbsp; &amp;nbsp;Flags&lt;br /&gt;
1&amp;nbsp; &amp;nbsp; &amp;nbsp; 17.4kB&amp;nbsp; 22.0TB&amp;nbsp; 22.0TB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;primary&lt;br /&gt;
&lt;br /&gt;
(parted) quit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Information: You may need to update /etc/fstab.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot; style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
參考資料：&lt;br /&gt;
&lt;a class=&quot;postlink&quot; href=&quot;https://ext4.wiki.kernel.org/index.php/Ext4_Howto&quot; style=&quot;color: #006699; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Ext4 Howto&lt;/a&gt;&lt;br /&gt;
&lt;a class=&quot;postlink&quot; href=&quot;http://www.netadmin.com.tw/article_content.aspx?sn=1108100007&quot; style=&quot;color: #006699; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;伺服器安裝第一首選 CentOS 6帶來寧靜革命&lt;/a&gt;&lt;br /&gt;
&lt;a class=&quot;postlink&quot; href=&quot;http://twed2k.org/viewthread.php?tid=292184&quot; style=&quot;color: #006699; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Ext4系統格式介紹&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/4974591499540267863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/centos6-ext4-file-system.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4974591499540267863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4974591499540267863'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/centos6-ext4-file-system.html' title='如何在 CentOS6 裡建立 ext4 的 file system'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-677871776340439341</id><published>2011-08-25T17:09:00.001+08:00</published><updated>2011-08-25T17:11:07.249+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASUS"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="mdadm"/><category scheme="http://www.blogger.com/atom/ns#" term="RAID"/><category scheme="http://www.blogger.com/atom/ns#" term="Uptech"/><title type='text'>CentOS 6.0 Soft RAID</title><content type='html'>主機板使用 ASUS P8H61-M Plus V2 (保固三年)&lt;br /&gt;
Uptech SR400 PCI 4Port SATA CARD x 1 (保固一年)&lt;br /&gt;
Uptech SR202 PCI-e 2Port SATA CARD x 3 (保固一年)&lt;br /&gt;
&lt;br /&gt;
安裝 CentOS 6.0 x86_64&lt;br /&gt;
&lt;br /&gt;
在開機時應該可以看到有偵測到四張 sata 卡&lt;br /&gt;
然後開完機使用 fdisk -l 可以看到一大串還沒有被使用的硬碟&lt;br /&gt;
從 /dev/sda ~ /dev/sdas&lt;br /&gt;
一共是 45 顆&lt;br /&gt;
&lt;br /&gt;
先切出 Partition&lt;br /&gt;
# fdisk /dev/sda ### fdisk sda 這顆硬碟&lt;br /&gt;
# p &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 列出磁區清單，因為是全新的，所以是空的&lt;br /&gt;
# n &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 建立新的磁區&lt;br /&gt;
# p &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 選擇建立主要磁區&lt;br /&gt;
# 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 建立第1個主要磁區&lt;br /&gt;
# 連續安二個 enter ### 因為是整個硬碟做一個主要磁區，所以使用內建值即可&lt;br /&gt;
# t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 變更碟區型態&lt;br /&gt;
# fd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### fd Linux raid auto&lt;br /&gt;
# w &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### 儲存並離開 fdisk&lt;br /&gt;
全部 45 顆都要做完&lt;br /&gt;
&lt;br /&gt;
之後利用 mdadm 建立 raid&lt;br /&gt;
&lt;blockquote&gt;# mdadm --create --auto=yes /dev/md0 --level=6 --raid-devices=13 --spare-devices=2 /dev/sd{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}&lt;/blockquote&gt;選項與參數：&lt;br /&gt;
--create ：為建立 RAID 的選項；&lt;br /&gt;
--auto=yes ：決定建立後面接的軟體磁碟陣列裝置，亦即 /dev/sda, /dev/sdb...&lt;br /&gt;
--raid-devices=N ：使用幾個磁碟 (partition) 作為磁碟陣列的裝置&lt;br /&gt;
--spare-devices=N ：使用幾個磁碟作為備用 (spare) 裝置&lt;br /&gt;
--level=[015] ：設定這組磁碟陣列的等級。&lt;br /&gt;
--detail ：後面所接的那個磁碟陣列裝置的詳細資訊&lt;br /&gt;
可以透過 {} 將重複的部份簡化&lt;br /&gt;
&lt;br /&gt;
/dev/md0 第一座&lt;br /&gt;
/dev/md1 第二座&lt;br /&gt;
/dev/md2 第三座&lt;br /&gt;
&lt;br /&gt;
上面的指令做三次之後&lt;br /&gt;
建立三座 raid 磁區&lt;br /&gt;
因為我們建立的磁區非常大&lt;br /&gt;
估計要花上一整天來初始化&lt;br /&gt;
在還沒完成之前&lt;br /&gt;
可以使用 cat /proc/mdstat 來查看目前的狀態&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;# cat /proc/mdstat&lt;br /&gt;
Personalities : [raid6] [raid5] [raid4]&lt;br /&gt;
md2 : active raid6 sdas[14](S) sdar[13](S) sdaq[12] sdap[11] sdao[10] sdan[9] sdam[8] sdal[7] sdak[6] sdaj[5] sdai[4] sdah[3] sdag[2] sdaf[1] sdae[0]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 21488642560 blocks super 1.2 level 6, 512k chunk, algorithm 2 [13/13] [UUUUUUUUUUUUU]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;gt;....................] &amp;nbsp;resync = &amp;nbsp;0.0% (42496/1953512960) finish=3829.2min speed=8499K/sec&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
md1 : active raid6 sdad[14](S) sdac[13](S) sdab[12] sdaa[11] sdz[10] sdy[9] sdx[8] sdw[7] sdv[6] sdu[5] sdt[4] sds[3] sdr[2] sdq[1] sdp[0]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 21488642560 blocks super 1.2 level 6, 512k chunk, algorithm 2 [13/13] [UUUUUUUUUUUUU]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;gt;....................] &amp;nbsp;resync = &amp;nbsp;0.0% (966784/1953512960) finish=1787.6min speed=18204K/sec&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
md0 : active raid6 sdo[14](S) sdn[13](S) sdm[12] sdl[11] sdk[10] sdj[9] sdi[8] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb[1] sda[0]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 21488642560 blocks super 1.2 level 6, 512k chunk, algorithm 2 [13/13] [UUUUUUUUUUUUU]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;gt;....................] &amp;nbsp;resync = &amp;nbsp;0.0% (1817472/1953512960) finish=2131.5min speed=15260K/sec&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
unused devices: &amp;lt;none&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
上面顯示的資料裡，我以 md0 做例子：&lt;br /&gt;
狀態是 active&lt;br /&gt;
使用 raid6&lt;br /&gt;
硬碟的組成是 sdo[14](S) sdn[13](S) sdm[12] sdl[11] sdk[10] sdj[9] sdi[8] sdh[7] sdg[6] sdf[5] sde[4] sdd[3] sdc[2] sdb[1] sda[0]&lt;br /&gt;
sdo[14](S) sdn[13](S) 是此 raid group 裡的 spare&lt;br /&gt;
[UUUUUUUUUUUUU] 表示有 13 顆硬碟，全部正常運作&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
參考資料：&lt;br /&gt;
&lt;a href=&quot;http://linux.vbird.org/linux_basic/0420quota.php&quot;&gt;第十五章、磁碟配額(Quota)與進階檔案系統管理&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://tc.wangchao.net.cn/bbs/detail_1789248.html&quot;&gt;CentOS 4.4如何利用Mdadm建立Raid5存儲&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/677871776340439341/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/eblaze-raid.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/677871776340439341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/677871776340439341'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/eblaze-raid.html' title='CentOS 6.0 Soft RAID'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-6698037919489017346</id><published>2011-08-14T14:44:00.001+08:00</published><updated>2011-08-14T14:53:04.994+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="OSX"/><category scheme="http://www.blogger.com/atom/ns#" term="Safari"/><title type='text'>網頁廣告 我擋！擋！擋！</title><content type='html'>這個星期，我的 MBP 送修，回家沒有電腦用，暫時借用小朱的 MBA，不知道是型號太舊還是怎樣，常常會有 CPU 100% 的情形，這時候做什麼都很慢，而且電腦也很燙，今天上 &lt;a href=&quot;http://www.mobile01.com/topicdetail.php?f=481&amp;amp;t=2301412&amp;amp;last=29969115&quot;&gt;mobile01&lt;/a&gt; 去發問，目前是還沒有徹底的解決方法，不過我先把 Safari 跟 Google Chorme 的 Falsh 先擋起來，看看情況會不會好一點。&lt;br /&gt;
&lt;br /&gt;
Safari：&lt;a href=&quot;http://clicktoflash.com/&quot;&gt;ClickToFlash&lt;/a&gt;&lt;br /&gt;
我在自己的電腦上已經用很久了，擋掉 Flash 之後，除了網頁 Load 很快，也少掉那些煩人的廣告，不過，當你連到 Youtube 的時候，因為它都是用 Flash 的影片怎麼辦？點一下畫面，就可以順利播放，或是在 Flash 上面按一下滑鼠右鍵，可以把 Youtube 加到白名單，下次再連進來就可以自動播放 Flash 了&lt;br /&gt;
&lt;br /&gt;
Google Chrome：&lt;a href=&quot;https://chrome.google.com/webstore/detail/gighmmpiobklfepjocnamgkkbiglidom&quot;&gt;adBlock&lt;/a&gt;&lt;br /&gt;
這是我第一次使用，主要是擋廣告，由於現在的網頁廣告，大部份都用 Flash 製作，也就順利的把 Flash 擋起來了，至於網頁上其他使用 Flash 就不會被擋掉。&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/6698037919489017346/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/blog-post_14.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6698037919489017346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6698037919489017346'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/blog-post_14.html' title='網頁廣告 我擋！擋！擋！'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-8545709021431552724</id><published>2011-08-05T12:38:00.000+08:00</published><updated>2011-08-05T12:38:13.761+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><title type='text'>如何在 FreeBSD 一次刪除很多檔案</title><content type='html'>&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;在管理 Linux/UNIX/FreeBSD 的時候，常常會遇到想要一次刪掉很多檔案，卻給你噴出錯誤訊息：Argument list too long. 的情形，尤其是莫明奇妙有一堆信寄不出去的時候，不僅造成主機的忙錄，也導致其他服務異常，今天又遇到這樣的情況，mqueue 裡有 33 萬個檔案，都沒有人跳出來說是他幹的好事！二話不說：砍！&lt;/div&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;先把檔名都過濾出來：&lt;/div&gt;&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #fffada; background-image: url(http://s1.wp.com/wp-content/themes/pub/digg3/images/bg_blockquote.gif); background-origin: initial; background-position: 5px 7px; background-repeat: no-repeat no-repeat; color: #736926; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; padding-top: 10px;&quot;&gt;# ls -la|awk ‘{print $9}’ &amp;gt; rmlist.sh&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; padding-top: 10px;&quot;&gt;# vim rmlist.sh&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; padding-top: 10px;&quot;&gt;:%s/dfmB/rm -Rf dfmB/&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; padding-top: 10px;&quot;&gt;:%s/qfmB/rm -Rf qfmB/&lt;/div&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;還要記得在第一行加上&lt;/div&gt;&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #fffada; background-image: url(http://s1.wp.com/wp-content/themes/pub/digg3/images/bg_blockquote.gif); background-origin: initial; background-position: 5px 7px; background-repeat: no-repeat no-repeat; color: #736926; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 10px; padding-top: 10px;&quot;&gt;#!/bin/sh&lt;/div&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;之後再把檔安改為可執行即可！其實，應該可以在 awk 之後直接把檔案刪掉，就不必這麼麻煩，只是我一時還找不到正確的方法，試了十幾分鐘，才改用這麼複雜的方式，等我找到一行就可以做到的指令，再上來補一下&lt;/div&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;參考網址：&lt;/div&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;http://blog.wu-boy.com/2006/12/30/56/&lt;/div&gt;&lt;div style=&quot;color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;&quot;&gt;http://www.study-area.org/tips/vim/Vim-10.html&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/8545709021431552724/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/freebsd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8545709021431552724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/8545709021431552724'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/freebsd.html' title='如何在 FreeBSD 一次刪除很多檔案'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-6948869332554753532</id><published>2011-08-02T18:04:00.003+08:00</published><updated>2011-08-02T18:04:00.164+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DNS"/><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="sshd"/><title type='text'>ssh 登入會 delay</title><content type='html'>&lt;div style=&quot;font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; line-height: 24px;&quot;&gt;上星期六來公司加班，灌了二台主機都沒有網路連線，每次當我要 ssh 進去的時候，都要等很久才會跳出來，一開始我是設定 hosts 騙它，後來換用筆電登入，那 DHCP 怎麼辦？原來 SSHD 裡面有設定的地方！&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; line-height: 24px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; line-height: 24px;&quot;&gt;# vi /etc/ssh/sshd_config&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; line-height: 24px;&quot;&gt;把&amp;nbsp;UseDNS 設定成 no 即可&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/6948869332554753532/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/ssh-delay.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6948869332554753532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/6948869332554753532'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/ssh-delay.html' title='ssh 登入會 delay'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2681314685955532678.post-4382989811086603731</id><published>2011-08-02T13:34:00.001+08:00</published><updated>2011-08-05T16:25:46.214+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BackBlaze"/><title type='text'>暖機中</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgktjzV9aCDRNPdvWzT8UE0l_mIoih04lv_zQrEZ0cuHzyUlCcGoxsbZMcjuG4CragtX91RGlSVJWzVPismtf-paKtUU2mC8IYh5QQaTUwioCW6nKRP7nLV_p8Ef7mR0BV30mn7GYjzzQY/s1600/R0013103.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgktjzV9aCDRNPdvWzT8UE0l_mIoih04lv_zQrEZ0cuHzyUlCcGoxsbZMcjuG4CragtX91RGlSVJWzVPismtf-paKtUU2mC8IYh5QQaTUwioCW6nKRP7nLV_p8Ef7mR0BV30mn7GYjzzQY/s320/R0013103.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;裝上從網路上訂來的專用開關，感覺真的很不賴！在網站上看到有白光，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;藍光&lt;/span&gt;，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;綠光&lt;/span&gt;，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;紅光&lt;/span&gt;，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;紫光&lt;/span&gt;&lt;s&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;任務&lt;/span&gt;&lt;/s&gt;，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ffe599;&quot;&gt;琥珀色的光&lt;/span&gt;！我選的是圈狀發光，還有是中間發光，甚至連線材都可以選顏色與長度，這個台灣買不到嗎？我在光華問了好久，都沒有人知道哪裡有賣，最後我不得不先從&lt;a href=&quot;http://www.frozencpu.com/products/6273/ele-302/Prewired_Bulgin_Vandal_Power_Switch_w_LED.html&quot;&gt;網站&lt;/a&gt;上訂一顆回來，然後才想到：應該訂二顆！這樣我還可以拿一顆去找廠商，裝上開關之後，是不是更像一個樣子了？已經開機 12 天了，看起來硬體間的互相搭配似乎沒有問題，現在就等 Power Supply Unit 的出貨通知，還有硬碟的採購。</content><link rel='replies' type='application/atom+xml' href='http://eltablaze.blogspot.com/feeds/4382989811086603731/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://eltablaze.blogspot.com/2011/08/12-power-supply-unit.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4382989811086603731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681314685955532678/posts/default/4382989811086603731'/><link rel='alternate' type='text/html' href='http://eltablaze.blogspot.com/2011/08/12-power-supply-unit.html' title='暖機中'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08315423899578506335</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgktjzV9aCDRNPdvWzT8UE0l_mIoih04lv_zQrEZ0cuHzyUlCcGoxsbZMcjuG4CragtX91RGlSVJWzVPismtf-paKtUU2mC8IYh5QQaTUwioCW6nKRP7nLV_p8Ef7mR0BV30mn7GYjzzQY/s72-c/R0013103.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>