<?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>小棗棧 &#187; server</title>
	<atom:link href="http://www.joe-ho.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joe-ho.com</link>
	<description>What I called myself is small potato. 一個士麼普爹圖既生活點滴</description>
	<lastBuildDate>Wed, 08 Feb 2012 01:47:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solution for slitaz tazpkg upgrade</title>
		<link>http://www.joe-ho.com/solution-for-slitaz-tazpkg-upgrade/</link>
		<comments>http://www.joe-ho.com/solution-for-slitaz-tazpkg-upgrade/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 01:11:00 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[slitaz]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=5133</guid>
		<description><![CDATA[<p>After the new release of slitaz cooking, version 20110531, it added new software packages, such as cherokee and nginx, etc. As the latest version of a testing release, testing environment is the best place for its living. However, I got 2 errors when doing tazpkg upgrade, the error messages are same as below:</p> <p>can&#8217;t open [...]]]></description>
			<content:encoded><![CDATA[<p>After the new release of slitaz cooking, version 20110531, it added new software packages, such as cherokee and nginx, etc. As the latest version of a testing release, testing environment is the best place for its living. However, I got 2 errors when doing tazpkg upgrade, the error messages are same as below:</p>
<blockquote><p>can&#8217;t open &#8216;libdnet/receipt&#8217;<br />
can&#8217;t open &#8216;snort/receipt&#8217;</p></blockquote>
<p>To simply fix this issue, just fix it by installing the outdated software packages manually. For example type:</p>
<blockquote><p>tazpkg get-install libdnet<br />
tazpkg get-install snort</p></blockquote>
<p>It is suggested clear the tazpkg cache and re-run the package list, below are the commands to complete the task easily.</p>
<blockquote><p>tazpkg -cc<br />
tazpkg recharge</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/solution-for-slitaz-tazpkg-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Cherokee in Slitaz</title>
		<link>http://www.joe-ho.com/install-cherokee-in-slitaz/</link>
		<comments>http://www.joe-ho.com/install-cherokee-in-slitaz/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 04:15:08 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[slitaz]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=2047</guid>
		<description><![CDATA[<p>Nowadays there is a new comer on web server market &#8211; cherokee, they said they won the benchmark and security measurement, plus a graphic admin interface for easy maintenance. It is a good choice with Slitaz to hold a web server, because both are small, young and growing.</p> <p>N.B. : This article helps people build [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays there is a new comer on web server market &#8211; cherokee, they said they won the benchmark and security measurement, plus a graphic admin interface for easy maintenance. It is a good choice with Slitaz to hold a web server, because both  are small, young and growing.</p>
<p>N.B. : This article helps people build cherokee in Slitaz stable or people who want to try the latest version of cherokee. For people who using cooking release please direct install cherokee by using tazpkg get-install cherokee.</p>
<p>Before install Cherokee, a Slitaz system must be ready. Other Linux distro sure works, too</p>
<p><span style="text-decoration: underline;">A. Install the development packages</span><br />
We need start installing development packages, libraries and 3rd party packages in order to compile our little toy.</p>
<blockquote><p>tazpkg get-install slitaz-toolchain</p></blockquote>
<p>It will continue to install the missing packages if any. When you saw the following question, just enter &#8220;No&#8221; to continue</p>
<blockquote><p>Do you want Bash for /bin/sh (yes/No) ? :</p></blockquote>
<p><span style="text-decoration: underline;">B. Install other packages</span><br />
Continue install the following packages after the previous steps finished.</p>
<blockquote><p>binutils<br />
python<br />
libsasl-modules<br />
libsasl<br />
libldap<br />
libkrb5<br />
libkr5support<br />
libcomerr3<br />
cyrus-sasl<br />
cyrus-sasl-dev<br />
openssl<br />
openssl-dev<br />
gettext<br />
php<br />
php-openssl<br />
php-mysql<br />
php-pear<br />
php-gd<br />
mysql<br />
mysql-dev<br />
ffmpeg<br />
ffmpeg-dev<br />
zlib<br />
zlib-dev</p></blockquote>
<p><span style="text-decoration: underline;">C. Install 3rd party package, geoip (C Library version)</span><br />
Download the geoip in the official site, http://www.maxmind.com/app/api. After un-tar the tarball file, execute the following code, default is installed in /usr/local/lib.</p>
<blockquote><p>./configure<br />
make<br />
make check<br />
make install</p></blockquote>
<p><span style="text-decoration: underline;">D. Compile and Install Cherokee</span><br />
Everything is ready and we start to build-up our toy. Type the following to compile</p>
<blockquote><p>./configure &#8211;localstatedir=/var     \<br />
&#8211;prefix=/usr/local      \<br />
&#8211;sysconfdir=/etc        \<br />
&#8211;with-wwwroot=/var/www  \<br />
&#8211;with-wwwuser=www       \<br />
&#8211;with-wwwgroup=www<br />
make<br />
make install</p></blockquote>
<p>All installation files will be placed under /usr/local. To execute Cherokee, execute the following command.</p>
<blockquote><p>/usr/local/sbin/cherokee</p></blockquote>
<p>Same way to run the admin mode, but sure execute cherokee-admin instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/install-cherokee-in-slitaz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slitaz 自己手動安裝 snort</title>
		<link>http://www.joe-ho.com/slitaz-%e8%87%aa%e5%b7%b1%e6%89%8b%e5%8b%95%e5%ae%89%e8%a3%9d-snort/</link>
		<comments>http://www.joe-ho.com/slitaz-%e8%87%aa%e5%b7%b1%e6%89%8b%e5%8b%95%e5%ae%89%e8%a3%9d-snort/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 15:46:20 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[slitaz]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1678</guid>
		<description><![CDATA[<p>有留意本欄既讀者都知道, Slitaz 是筆者喜愛既 distro 之一, 原因好簡單 &#8212; 硬件要求低.</p> <p>作為一般家用伺服器, Slitaz 提供了與其他 distro 無異既軟件, php, apache, mysql, samba 等. 但它只需要 1GB 空間與最少 64mb RAM 甚至更少, 曾經網上討論過差不多 16mb RAM 仍可運作. 當 1GB RAM 已是標準配置既時代, 要運行暢順當然無問題. 其實作為伺服器, 主要就是為其他機器或人提供服務，對 RAM 及硬碟要求低正可將多出既資源回饋給所運行既服務提高負載率。</p> <p>講返正題，因為 Slitaz 本身既 snort 並不支援 mysql，所以需要自行下載安裝程式。</p> <p>先下載所需程式: (可在 Google 尋找) Snort 主程式及 Snort rules &#8211; http://www.snort.org jpgraph Adodb [...]]]></description>
			<content:encoded><![CDATA[<p>有留意本欄既讀者都知道, Slitaz 是筆者喜愛既 distro 之一, 原因好簡單 &#8212; 硬件要求低.</p>
<p>作為一般家用伺服器, Slitaz 提供了與其他 distro 無異既軟件, php, apache, mysql, samba 等. 但它只需要 1GB 空間與最少 64mb RAM 甚至更少, 曾經網上討論過差不多 16mb RAM 仍可運作. 當 1GB RAM 已是標準配置既時代, 要運行暢順當然無問題. 其實作為伺服器, 主要就是為其他機器或人提供服務，對 RAM 及硬碟要求低正可將多出既資源回饋給所運行既服務提高負載率。</p>
<p>講返正題，因為 Slitaz 本身既 snort 並不支援 mysql，所以需要自行下載安裝程式。</p>
<p>先下載所需程式: (可在 Google 尋找)<br />
Snort 主程式及 Snort rules &#8211; http://www.snort.org<br />
jpgraph<br />
Adodb<br />
Base<br />
Barnyard2 (可選擇安裝與否)</p>
<ol>
<li>先安裝 Slitaz, 步驟太簡單不重複了</li>
<li>使用 tazpkg get-install 安裝下列套件<br />
- apache2<br />
- php, php-cli, php-apache, php-mysql, mysql<br />
- mysql-dev, libpcap, nmap, php-gd, php-pear, slitaz-toolschain</li>
<li>解壓 jpgraph 並將檔案抄至 /var/www/jpgraph<br />
- tar -zxvf jpgraph.tar.gz<br />
- copy jpgraph/src /var/www/jpgraph</li>
<li>解壓 barnyard2 並進行安裝<br />
- tar -xzvf barnyard2.tar.gz<br />
- cd barnyard2<br />
- ./configure withmysql<br />
- make<br />
- make install<br />
- cp etc/barnyard2.conf /usr/local/snort/etc<br />
- mkdir /var/log/barnyard2<br />
- 編輯 /usr/local/snort/etc/barnyard2.conf, 修改下列設定:<br />
config reference_file: /usr/local/snort/etc/reference.config<br />
config classification_file: /usr/local/snort/etc/classification.config<br />
config gen_file: /usr/local/snort/etc/genmsg.map<br />
config sid_file: /usr/local/snort/etc/sidmsg.map<br />
config hostname: localhost<br />
config interface: eth1<br />
output database: log, mysql, user=SNORT_USER password=SNORT_PASSWORD dbname=snort \ host=localhost</li>
<li>解壓 snort 檔案, 並進行手動安裝, 最後將完成編譯後的 etc 及 rules 兩個目綠抄至 /opt<br />
- tar -zxvf snort.tar.gz<br />
- ./configurate -with-mysql &#8211;prefix=/opt<br />
- make<br />
- make install<br />
- copy etc rules folders into /opt</li>
<li>建立獨立帳戶執行 snort<br />
- addgroup snort<br />
- adduse snort</li>
<li>使用 mysql 建立資料庫儲存資料, 並將資料庫建立使用者權限</li>
<li>修改 snort 設定檔<br />
- vi /opt/snort/etc/snort.conf</li>
<li>將 snort rules 抄至 /opt</li>
<li>測試 snort 設定</li>
<li>解壓 adodb 檔案, 抄至網頁目綠內</li>
<li>解壓 base 檔案, 抄至網頁目綠內</li>
</ol>
<p>Please click the following link for English version<br />
<a href="http://www.joe-ho.com/index.php/2010/08/compiling-snort-in-slitaz">Compiling snort in Slitaz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/slitaz-%e8%87%aa%e5%b7%b1%e6%89%8b%e5%8b%95%e5%ae%89%e8%a3%9d-snort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling snort in Slitaz</title>
		<link>http://www.joe-ho.com/compiling-snort-in-slitaz/</link>
		<comments>http://www.joe-ho.com/compiling-snort-in-slitaz/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 14:43:14 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[slitaz]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1684</guid>
		<description><![CDATA[<p>I always like to use Slitaz running server, because of the benefit from it&#8217;s tiny size and low hardware requirement. More resources can be reserved for server service in compare with other distro.</p> <p>With less than 1GB after installed in hard drive, it provides common server packages, including apache, php, mysql, samba, sure it contains [...]]]></description>
			<content:encoded><![CDATA[<p>I always like to use Slitaz running server, because of the benefit from it&#8217;s tiny size and low hardware requirement. More resources can be reserved for server service in compare with other distro.</p>
<p>With less than 1GB after installed in hard drive, it provides common server packages, including apache, php, mysql, samba, sure it contains a X windows. However, I need admit that it still missing some advanced features comparing with great distros like Ubuntu, Debian and Red Hat. One of the feature is IDS.</p>
<p>Although official package already provided snort, it just supports log file output instead of supporting database. To enjoy such advanced feature, we need download the tarball and install by ourselves. This article is to demonstrate the installation step-by-step. Please sit back and enjoy.</p>
<p>Pre-requirement: (Please prepare the following programs source)</p>
<ul>
<li>Snort</li>
<li>jpgraph</li>
<li>adodb</li>
<li>Base</li>
<li>Barnyard2 (Optional), by referring David Gullett&#8217;s setup guide, this tiny program can improve the efficiency of Snort</li>
</ul>
<p>Step-by-step:</p>
<ol>
<li>Install Slitaz, very simple</li>
<li>Install official packages by using tazpkg get-install<br />
- apache2<br />
- php, php-cli, php-apache, php-mysql, mysql<br />
- mysql-dev, libpcap, nmap, php-gd, php-pear, slitaz-toolschain</li>
<li>Untar jpgraph<br />
- tar -zxvf jpgraph.tar.gz<br />
- copy jpgraph/src /var/www/jpgraph</li>
<li>Untar barnyard2<br />
- tar -xzvf barnyard2.tar.gz<br />
- cd barnyard2<br />
- ./configure withmysql<br />
- make<br />
- make install<br />
- cp etc/barnyard2.conf /usr/local/snort/etc<br />
- mkdir /var/log/barnyard2<br />
- edit /usr/local/snort/etc/barnyard2.conf<br />
- change the following settings:&nbsp;</p>
<blockquote><p>config reference_file: /usr/local/snort/etc/reference.config<br />
config classification_file: /usr/local/snort/etc/classification.config<br />
config gen_file: /usr/local/snort/etc/genmsg.map<br />
config sid_file: /usr/local/snort/etc/sidmsg.map<br />
config hostname: localhost<br />
config interface: eth1<br />
output database: log, mysql, user=SNORT_USER password=SNORT_PASSWORD dbname=snort \<br />
host=localhost</p></blockquote>
</li>
<li>Untar snort tarball<br />
- tar -zxvf snort.tar.gz<br />
- ./configurate -with-mysql &#8211;prefix=/opt<br />
- make<br />
- make install<br />
- copy etc rules folders into /opt</li>
<li>Create user account for running snort<br />
- addgroup snort<br />
- adduse snort</li>
<li>Create mysql database<br />
- grant access right to snort account</li>
<li>Edit snort config file<br />
- vi /opt/snort/etc/snort.conf</li>
<li>Copy snort rules to /opt</li>
<li>Test snort config</li>
<li>Install adodb<br />
- untar downloaded file<br />
- copy file in web directory</li>
<li>Install base<br />
- untar downloaded file<br />
- copy file to web directory</li>
</ol>
<p>中文版可到這裡 (Please click the following link for chinese version)<br />
<a href="http://www.joe-ho.com/index.php/2010/08/slitaz-自己手動安裝-snort">Slitaz 自己手動安裝 snort</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/compiling-snort-in-slitaz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snort error: Failed to find LibVersion() in lib_sfdynamic_example_rule.so</title>
		<link>http://www.joe-ho.com/snort-error-failed-to-find-libversion-in-lib_sfdynamic_example_rule-so/</link>
		<comments>http://www.joe-ho.com/snort-error-failed-to-find-libversion-in-lib_sfdynamic_example_rule-so/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 03:55:22 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1663</guid>
		<description><![CDATA[<p>近日發現運行 snort 時出現這句錯誤提示:</p> <p>ERROR: Failed to find LibVersion() function in &#8230; snort_dynamicrules/lib_sfdynamic_example_rule.so</p> <p>原來解決方法很簡單, 只要將 snort_dynamicrules 目錄內包含 &#8220;example&#8221; 字眼既檔案移除就可解決.</p> <p>To solve the above error, just remove all files named &#8220;example&#8221; in snort_dynamicrules.</p> ]]></description>
			<content:encoded><![CDATA[<p>近日發現運行 snort 時出現這句錯誤提示:</p>
<blockquote><p>ERROR: Failed to find LibVersion() function in &#8230; snort_dynamicrules/lib_sfdynamic_example_rule.so</p></blockquote>
<p>原來解決方法很簡單, 只要將 snort_dynamicrules 目錄內包含 &#8220;example&#8221; 字眼既檔案移除就可解決.</p>
<p>To solve the above error, just remove all files named &#8220;example&#8221; in snort_dynamicrules.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/snort-error-failed-to-find-libversion-in-lib_sfdynamic_example_rule-so/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Privoxy 攔截廣告規則更新 / Privoxy rules update</title>
		<link>http://www.joe-ho.com/privoxy-%e6%94%94%e6%88%aa%e5%bb%a3%e5%91%8a%e8%a6%8f%e5%89%87%e6%9b%b4%e6%96%b0/</link>
		<comments>http://www.joe-ho.com/privoxy-%e6%94%94%e6%88%aa%e5%bb%a3%e5%91%8a%e8%a6%8f%e5%89%87%e6%9b%b4%e6%96%b0/#comments</comments>
		<pubDate>Sun, 02 May 2010 07:58:28 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1585</guid>
		<description><![CDATA[<p>自從使用了 privoxy 攔截廣告後, 大部份常去既網站都已經冇廣告顯示. 不過近日發現某大討論區內仍有廣告出現, 所以貼出此文去更新 privoxy 既規則. 開啟 default.action, 並更改如下設定:</p> 在 {-handle-as-image}, 改為 /.*\.(js&#124;php&#124;css&#124;.?html?&#124;.asp?) 在 {+block{Path matches generic block pattern.}}, 加入 /(.*/)?houseads.js /(.*/)?aeiou 在 {+block{Might be a web-bug.} +handle-as-empty-document -handle-as-image}, 加入 .overture.com 在 Site-specific block-as-image patterns 的 Banner farms 內， 加入 .yimg.com/(.*/)?a/ <p>儲存後重新啟動 privoxy 便可</p> <p>As privoxy is cool apps on blocking web banner [...]]]></description>
			<content:encoded><![CDATA[<p>自從使用了 privoxy 攔截廣告後, 大部份常去既網站都已經冇廣告顯示. 不過近日發現某大討論區內仍有廣告出現, 所以貼出此文去更新 privoxy 既規則. 開啟 default.action, 並更改如下設定:</p>
<ul>
<li>在 {-handle-as-image}, 改為<br />
/.*\.(js|php|css|.?html?|.asp?)</li>
<li>在 {+block{Path matches generic block pattern.}}, 加入<br />
/(.*/)?houseads.js<br />
/(.*/)?aeiou</li>
<li>在 {+block{Might be a web-bug.} +handle-as-empty-document -handle-as-image}, 加入<br />
.overture.com</li>
<li>在 Site-specific block-as-image patterns 的 Banner farms 內， 加入<br />
.yimg.com/(.*/)?a/</li>
</ul>
<p>儲存後重新啟動 privoxy 便可</p>
<p>As privoxy is cool apps on blocking web banner or ads, but it also need update regularly because of more and more ads coming out. The following settings are fitting for blocking ads in a popular Hong Kong forum.</p>
<p>In default action:</p>
<ul>
<li>Modify to &#8220;/.*\.(js|php|css|.?html?|.asp?)&#8221; without quotation mark in {-handle-as-image} section</li>
<li>Add &#8220;/(.*/)?houseads.js&#8221; and &#8220;/(.*/)?aeiou&#8221; in {+block{Path matches generic block pattern.}}</li>
<li>Add &#8220;.overture.com&#8221; in {+block{Might be a web-bug.} +handle-as-empty-document -handle-as-image}</li>
<li>Add &#8220;.yimg.com/(.*/)?a/&#8221; in Banner farms of Site-specific block-as-image patterns</li>
</ul>
<p>Remember effective the settings after restart privoxy service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/privoxy-%e6%94%94%e6%88%aa%e5%bb%a3%e5%91%8a%e8%a6%8f%e5%89%87%e6%9b%b4%e6%96%b0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>美軍在聖誕節前訂購 2200 部 PS3 遊戲機</title>
		<link>http://www.joe-ho.com/%e7%be%8e%e8%bb%8d%e5%9c%a8%e8%81%96%e8%aa%95%e7%af%80%e5%89%8d%e8%a8%82%e8%b3%bc-2200-%e9%83%a8-ps3-%e9%81%8a%e6%88%b2%e6%a9%9f/</link>
		<comments>http://www.joe-ho.com/%e7%be%8e%e8%bb%8d%e5%9c%a8%e8%81%96%e8%aa%95%e7%af%80%e5%89%8d%e8%a8%82%e8%b3%bc-2200-%e9%83%a8-ps3-%e9%81%8a%e6%88%b2%e6%a9%9f/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:29:11 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1392</guid>
		<description><![CDATA[<p>據外電報導, 美軍訂購了 2200 部 PS3 遊戲機, 而該批遊戲機會在聖誔節前付運. 大家都可能覺得奇怪, 為何美軍會訂購遊戲機, 是否因為要將遊戲當成模擬訓練? 非也, 其實那批遊戲機其實另有用途.</p> <p>PS3 除了是一部電玩外, 其實它可以被視為一部電腦, XBox 360亦然. 當中, PS3 已可安裝 Linux 作業系統. 美軍所訂購既 PS3 正正是為了利用它們建立一部 &#8220;超級電腦&#8221;. 可能會有人懷疑為什麼用 PS3 而棄用一般電腦, 說穿了是因為錢作怪. PS3 既運算能力其實不底, 一部 1u 大細 2 粒 3.2Ghz CPU 伺服器大約 US$8K, 但擁有差不多 3.2Ghz CPU 既 PS3 卻是大約 US$300, 這樣成本便大大降低. 而且測試過 PS3 所用既 CPU 為一般 CPU [...]]]></description>
			<content:encoded><![CDATA[<p>據外電報導, 美軍訂購了 2200 部 PS3 遊戲機, 而該批遊戲機會在聖誔節前付運. 大家都可能覺得奇怪, 為何美軍會訂購遊戲機, 是否因為要將遊戲當成模擬訓練? 非也, 其實那批遊戲機其實另有用途.</p>
<p>PS3 除了是一部電玩外, 其實它可以被視為一部電腦, XBox 360亦然. 當中, PS3 已可安裝 Linux 作業系統. 美軍所訂購既 PS3 正正是為了利用它們建立一部 &#8220;超級電腦&#8221;. 可能會有人懷疑為什麼用 PS3 而棄用一般電腦, 說穿了是因為錢作怪. PS3 既運算能力其實不底, 一部 1u 大細 2 粒 3.2Ghz CPU 伺服器大約 US$8K, 但擁有差不多 3.2Ghz CPU 既 PS3 卻是大約 US$300, 這樣成本便大大降低. 而且測試過 PS3 所用既 CPU 為一般 CPU 運算能力既 75%. 計算成本就明顯瞭解當中既意義.</p>
<p>當一般 netbook / Atom desktop 興起既時候, 唔知會唔會有人買一部 PS3 作為自己既 desktop 呢?</p>
<p>原文出處:<br />
<a href="http://blogs.zdnet.com/storage/?p=721&amp;tag=nl.e539">http://blogs.zdnet.com/storage/?p=721&amp;tag=nl.e539</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e7%be%8e%e8%bb%8d%e5%9c%a8%e8%81%96%e8%aa%95%e7%af%80%e5%89%8d%e8%a8%82%e8%b3%bc-2200-%e9%83%a8-ps3-%e9%81%8a%e6%88%b2%e6%a9%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用 privoxy 提高網絡安全性 (進階下篇)</title>
		<link>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e4%b8%8b%e7%af%87/</link>
		<comments>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e4%b8%8b%e7%af%87/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 15:18:41 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1386</guid>
		<description><![CDATA[<p>在進階上篇使用 regular expressions 去強化 privoxy, 在這篇會介紹如果用 URL Blacklist.com 所提供既其他資源去進一步強化 privoxy.</p> 先停止 privoxy 服務 因為 URL Blacklist.com 提供了大量分類網址, 為了簡單控制, 在 privoxy config 檔案的 actionsfile 段內加入獨立既 action 檔案. 例如: porn 會用 actionsfile porn.action 去區別. 建議參考 ads, malware, phishing, porn, spyware 及 virusinfected 在每一個新的 actionsfile 內, 將第一行設定為 block reason, 格式如下: {+block{Blacklist &#8211; (block reason).}} 將 URL Blacklist.com 中各分類內既檔案 [...]]]></description>
			<content:encoded><![CDATA[<p>在<a title="利用 privoxy 提高網絡安全性 (進階上篇)" href="http://www.joe-ho.com/index.php/2009/11/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e7%af%87" target="_self">進階上篇</a>使用 regular expressions 去強化 privoxy, 在這篇會介紹如果用 URL Blacklist.com 所提供既其他資源去進一步強化 privoxy.</p>
<ol>
<li>先停止 privoxy 服務</li>
<li>因為 URL Blacklist.com 提供了大量分類網址, 為了簡單控制, 在 privoxy config 檔案的 actionsfile 段內加入獨立既 action 檔案. 例如: porn 會用 actionsfile porn.action 去區別.</li>
<li>建議參考 ads, malware, phishing, porn, spyware 及 virusinfected</li>
<li>在每一個新的 actionsfile 內, 將第一行設定為 block reason, 格式如下:<br />
{+block{Blacklist &#8211; (block reason).}}</li>
<li>將 URL Blacklist.com 中各分類內既檔案 domain 或 url 既網址加入自定既 action 檔案內. 留意每一行都需要符合 regular expressions 格式. 即要將 abc.com 改為 .abc.com. 如果只直接加入網址, 會令程式出現問題, 或者只阻擋一部份網址.</li>
<li>建議使用匯入 excel 編輯, 之後再匯出回 text 格式.</li>
<li>重新啟動 privoxy</li>
</ol>
<p>因為 URL Blacklist.com 會定期為各分類更新資料, 全部更新會大大增加網絡管理員既工作壓力. 根據經驗, 往後只集中更新 spyware 及 virusinfected 便可. 因為 ads, malware 及 porn 已經在 default.action 中有 regular expressions 既過濾.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e4%b8%8b%e7%af%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用 privoxy 提高網絡安全性 (進階上篇)</title>
		<link>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e7%af%87/</link>
		<comments>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e7%af%87/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 16:17:47 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1369</guid>
		<description><![CDATA[<p>在基本篇介紹了怎樣安裝及增加基本設定, 在這一篇則介紹如果進一步使用 regular expression 去增加一些進階既設定. 因為 privoxy 本身依賴 regular expressions, 所以要參考 squidguard 方法, 到 URL Blacklist.com 下載分類網址, 其實主要使用其中幾個分類內的 expressions 檔 &#8212; ads, malware, 及 porn. 可因應需要更改, 注意以下設定與 URL Blacklist.com 所提供的有少少分別.</p> 在 default.action 中將 Generic block patterns by path 段落 comment 為失效, 只保留 phpads(new) 加入下列各行: /(ads/&#124;ad/&#124;banner/&#124;sponsor/&#124;event.ng/&#124;Advertisement/&#124;advertisement/&#124;adverts/) /(cgi-bin/nph-adclick\.exe&#124;ads/media/images/&#124;smartbanner/&#124;\.com/ads/banners/&#124;apfbanners/&#124;Realmedia/ads/&#124;realmedia/ads/&#124;event\.ng/) /(pics/banner/&#124;viewcgi?pool=&#124;clicktrack&#124;hittrack&#124;images\.go2net\.com/go2net/ads/&#124;\.com/banners/&#124;\.com/httpads/&#124;\.com/advertising/&#124;ads/adview\.php\?) /^(ads\.&#124;ad\.&#124;adserver\.&#124;k5ads\.) /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/search\?q=[0-9] /(adultos&#124;adultsight&#124;adultsite&#124;adultsonly&#124;adultweb&#124;blow-job&#124;bondage&#124;centerfold&#124;cumshot&#124;cyberlust&#124;cybercore&#124;hardcore&#124;incest&#124;masturbat&#124;obscene&#124;pedophil&#124;pedofil&#124;playmate&#124;pornstar&#124;sexdream&#124;showgirl&#124;softcore&#124;striptease&#124;penis&#124;vagina) 重新啟動 privoxy 令新設定生效 <p>參考文章: URL [...]]]></description>
			<content:encoded><![CDATA[<p>在<a title="利用 privoxy 提高網絡安全性" href="http://www.joe-ho.com/index.php/2009/11/%E5%88%A9%E7%94%A8-privoxy-%E6%8F%90%E9%AB%98%E7%B6%B2%E7%B5%A1%E5%AE%89%E5%85%A8%E6%80%A7" target="_self">基本篇</a>介紹了怎樣安裝及增加基本設定, 在這一篇則介紹如果進一步使用 regular expression 去增加一些進階既設定. 因為 privoxy 本身依賴 regular expressions, 所以要參考 squidguard 方法, 到 URL Blacklist.com 下載分類網址, 其實主要使用其中幾個分類內的 expressions 檔 &#8212; ads, malware, 及 porn. 可因應需要更改, 注意以下設定與 URL Blacklist.com 所提供的有少少分別.</p>
<ol>
<li>在 default.action 中將 Generic block patterns by path 段落 comment 為失效, 只保留 phpads(new)</li>
<li>加入下列各行:<br />
/(ads/|ad/|banner/|sponsor/|event.ng/|Advertisement/|advertisement/|adverts/)<br />
/(cgi-bin/nph-adclick\.exe|ads/media/images/|smartbanner/|\.com/ads/banners/|apfbanners/|Realmedia/ads/|realmedia/ads/|event\.ng/)<br />
/(pics/banner/|viewcgi?pool=|clicktrack|hittrack|images\.go2net\.com/go2net/ads/|\.com/banners/|\.com/httpads/|\.com/advertising/|ads/adview\.php\?)<br />
/^(ads\.|ad\.|adserver\.|k5ads\.)<br />
/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/search\?q=[0-9]<br />
/(adultos|adultsight|adultsite|adultsonly|adultweb|blow-job|bondage|centerfold|cumshot|cyberlust|cybercore|hardcore|incest|masturbat|obscene|pedophil|pedofil|playmate|pornstar|sexdream|showgirl|softcore|striptease|penis|vagina)</li>
<li>重新啟動 privoxy 令新設定生效</li>
</ol>
<p>參考文章:<br />
URL Blacklist.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7-%e9%80%b2%e9%9a%8e%e7%af%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用 privoxy 提高網絡安全性</title>
		<link>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7/</link>
		<comments>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 16:08:32 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1358</guid>
		<description><![CDATA[<p>近日對網絡安全既興趣越來越大, 所以都開始諗一諗點做. 近日發現到一個細小既 proxy server &#8211; privoxy, 佢既好處在於除了支援 linux 之外, 仲支援 windows 及其他平台. 有興趣就去 http://www.privoxy.org 研究一下. 佢本身除了係 proxy server 之外, 最緊要佢有 content filtering 既功能, 可以有效阻擋廣告及不良網站. 而且, 軟件作者都好好心機, 軟件完全零設定, 安裝完便可立即使用. 當然, 進一步既設定及優化軟件對安全性同防止誤報有幫助. 以下會用 windows 平台做示範, 各位有興趣都可以試一下或互相討論一下.</p> <p>安裝篇: (Windows) </p> 到官方網址下載 安裝軟件包 最新版已經支援 windows 服務, 在安裝後到 C:\Program Files\Privoxy, 執行 privoxy &#8211;install 便可 之後可以在服務中, 選擇自動啟動或者手動執行 <p>Linux 平台方面, 因為要由 compile [...]]]></description>
			<content:encoded><![CDATA[<p>近日對網絡安全既興趣越來越大, 所以都開始諗一諗點做. 近日發現到一個細小既 proxy server &#8211; privoxy, 佢既好處在於除了支援 linux 之外, 仲支援 windows 及其他平台. 有興趣就去 http://www.privoxy.org 研究一下. 佢本身除了係 proxy server 之外, 最緊要佢有 content filtering 既功能, 可以有效阻擋廣告及不良網站. 而且, 軟件作者都好好心機, 軟件完全零設定, 安裝完便可立即使用. 當然, 進一步既設定及優化軟件對安全性同防止誤報有幫助. 以下會用 windows 平台做示範, 各位有興趣都可以試一下或互相討論一下.</p>
<p><span style="text-decoration: underline;">安裝篇: (Windows)<br />
</span></p>
<ol>
<li>到官方網址下載</li>
<li>安裝軟件包</li>
<li>最新版已經支援 windows 服務, 在安裝後到 C:\Program Files\Privoxy, 執行 privoxy &#8211;install 便可</li>
<li>之後可以在服務中, 選擇自動啟動或者手動執行</li>
</ol>
<p>Linux 平台方面, 因為要由 compile 講起, 所以有機會至再開文詳講.</p>
<p><span style="text-decoration: underline;">基本<span><span style="text-decoration: underline;">設定篇:</span></span></span></p>
<ol>
<li><span style="text-decoration: line-through;">到 config.txt / config 修改 SSL by-pass, 基於安全考慮<br />
forward   :443   .<br />
*** 記往後面會有一點</span></li>
<li>將香港政府既網址加入白名單, 開啟 default.action, 並到 Exceptions for academia and non-profits 段<br />
加入 .gov.hk</li>
</ol>
<p>完成後重新啟動 privoxy, 新設定便會生效. 如果想進一步加強 privoxy 既 content filtering 功能, 請參考進階篇.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e5%88%a9%e7%94%a8-privoxy-%e6%8f%90%e9%ab%98%e7%b6%b2%e7%b5%a1%e5%ae%89%e5%85%a8%e6%80%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mini-Howto: Slitaz Squid + SquidGuard</title>
		<link>http://www.joe-ho.com/mini-howto-slitaz-squid-squidguard/</link>
		<comments>http://www.joe-ho.com/mini-howto-slitaz-squid-squidguard/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 09:30:28 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1343</guid>
		<description><![CDATA[<p>To enhance the content filtering feature in squid, Slitaz provides a package named SquidGuard. This mini-Howto shows a simple steps on adding SquidGuard to enhance the content filtering function.</p> Install and setup Squid (please refer to mini-Howto: Slitaz Squid) Install squidguard tazpkg get-install squidguard Check the last line of squid config file in /etc/squid/squid.conf, the [...]]]></description>
			<content:encoded><![CDATA[<p>To enhance the content filtering feature in squid, Slitaz provides a package named SquidGuard. This mini-Howto shows a simple steps on adding SquidGuard to enhance the content filtering function.</p>
<ol>
<li>Install and setup Squid (please refer to mini-Howto: Slitaz Squid)</li>
<li>Install squidguard<br />
tazpkg get-install squidguard</li>
<li>Check the last line of squid config file in /etc/squid/squid.conf, the following line should be added.<br />
redirect_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf</li>
<li>redirect_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf</li>
<li>Download the blacklist file at SquidGuard official site, suggest download the list offered by URL Blacklist.com</li>
<li>Unzip the file and put them in /var/lib/squidguard/db</li>
<li>Further enhance the advertising blocking by adding &#8220;/|advertisement|&#8221; in /var/lib/squidguard/db/ads/expressions, save the changes</li>
<li>edit /etc/squidGuard/squidGuard.conf, change the log file location from /var/lib/squidguard/log to /var/log/squidguard</li>
<li>add acl control for each category (refer the official documentation for details), save the changes when done</li>
<li>Move the log directory from /var/lib/squidguard/log to /var/log, so as to centralize the maintenance of system log files<br />
mv /var/lib/squidguard/log /var/log/squidguard</li>
<li>run squidGuard -C all in /var/lib/squidguard/db, fix all errors until it run smooth without error</li>
<li>make sure the access right is grand correctly<br />
chown nobody.root /var/lib/squidGuard/db -R</li>
<li>start squid server<br />
/etc/init.d/squid start</li>
</ol>
<p>You can add any domain name, URL, or any regular expression in the proper category. Update the list by running squidGuard command again, and restart the squid server to make the latest changes effective.</p>
<p>I found sometimes the proxy server may not work to block any blacklisted source. To fix this problem, please stop the squid service and follow the steps starting from steps 11.</p>
<p><em>[Last Modified by Joe Ho at 2009-11-14 12:49PM]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/mini-howto-slitaz-squid-squidguard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

