<?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; linux</title>
	<atom:link href="http://www.joe-ho.com/tag/linux/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>New Ubuntu interface &#8211; Heads-up Display</title>
		<link>http://www.joe-ho.com/new-ubuntu-interface-heads-up-display/</link>
		<comments>http://www.joe-ho.com/new-ubuntu-interface-heads-up-display/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 00:50:12 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=5655</guid>
		<description><![CDATA[<p>Ubuntu 正籌備將於今年 4 月發佈的 Ubuntu 12.04 LTS. 當中有一個稱為 Heads-up Display (HUD) 既功能, 主要是強化了現有的功能表單, 使用者可以透過功能表單直接對相應程式下達執行指令. 以下就是操作示範, 似乎好似好強但要點時間令軟件配合.</p> <p></p> ]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 正籌備將於今年 4 月發佈的 Ubuntu 12.04 LTS. 當中有一個稱為 Heads-up Display (HUD) 既功能, 主要是強化了現有的功能表單, 使用者可以透過功能表單直接對相應程式下達執行指令. 以下就是操作示範, 似乎好似好強但要點時間令軟件配合.</p>
<p><iframe src="http://www.youtube.com/embed/w_WW-DHqR3c" frameborder="0" width="560" height="315"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/new-ubuntu-interface-heads-up-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>解決 Slitaz 出現 Failed to execute login command</title>
		<link>http://www.joe-ho.com/%e8%a7%a3%e6%b1%ba-slitaz-%e5%87%ba%e7%8f%be-failed-to-execute-login-command/</link>
		<comments>http://www.joe-ho.com/%e8%a7%a3%e6%b1%ba-slitaz-%e5%87%ba%e7%8f%be-failed-to-execute-login-command/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 08:33:04 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slitaz]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=4533</guid>
		<description><![CDATA[<p>近日小棗試用 Slitaz 時發現仍未解決 Failed to execute login command 問題. 上網找資料後得知原因與 USB partition 的格式有關. 要最直接解決問題當然是將手上既 USB 格式由 FAT32 轉至 ext3. 步驟好似複雜但實際簡單, 今次小棗會示範怎樣在文字指令模式將 slitaz cooking 放在 2GB USB 手指內.</p> 首先到 Slitaz 官方網頁下載 iso 檔, 今次小棗以 slitaz cooking 做例子 將 iso 轉為 CD, 並利用 CD 啟動電腦 在 slitaz boot 機畫面, 鍵入 slitaz screen=text 以 root 登入, 密碼請參考 slitaz [...]]]></description>
			<content:encoded><![CDATA[<p>近日小棗試用 Slitaz 時發現仍未解決 Failed to execute login command 問題. 上網找資料後得知原因與 USB partition 的格式有關. 要最直接解決問題當然是將手上既 USB 格式由 FAT32 轉至 ext3. 步驟好似複雜但實際簡單, 今次小棗會示範怎樣在文字指令模式將 slitaz cooking 放在 2GB USB 手指內.</p>
<ol>
<li>首先到 Slitaz 官方網頁下載 iso 檔, 今次小棗以 slitaz cooking 做例子</li>
<li>將 iso 轉為 CD, 並利用 CD 啟動電腦</li>
<li>在 slitaz boot 機畫面, 鍵入 slitaz screen=text</li>
<li>以 root 登入, 密碼請參考 slitaz 說明文件</li>
<li>插入 USB 手指, 建議最少 1GB. 因為要預留位置安裝往後既更新, 當然容量越大越好</li>
<li>因為在文字指令模式, 先檢查一下 USB 手指既位置<br />
- 進入 /dev/disk/by-id/<br />
- 執行 ls -lah<br />
- 查看 USB 手指代號, 通常以 USB Flash Disk 顯示. 小棗的例子是 /dev/sdb</li>
<li>執行 fdisk /dev/sdb 或之前檢查既USB 手指代號</li>
<li>按 p 檢視原來既分割區資料再次確認一下, 如果有任何問題可按 q 離開並維持原來分割區設定</li>
<li>清除 USB 手指內所有分割區<br />
- 先按 d 代表刪除分割區再按分割區數字完成<br />
- 可隨時按 p 檢查分割目情況</li>
<li>全部刪除後先新增一個 FAT32 分割區. 建立這個分割區主要是避免 Windows 因不能讀取 ext3 分割區而建議 format 既提示<br />
- 先按 n 再按 p 代表新增主分割區, 鍵入第一個分割區號碼 1<br />
- 鍵入大小, 最小為 32mb</li>
<li>將剛少完成的分割區轉為 Win95 FAT32 格式 (Partition type: b)</li>
<li>及後新增一個另一個 ext3 分割區</li>
<li>將新分割區轉為 Linux (Partition type: 83)</li>
<li>當完成後按 p 應該會出兩個分割區, 一個為 Wind95 FAT32, 另一個為 Linux</li>
<li>按 a 設定開機分割區, 並設定 Linux partition 為預設開機分割區</li>
<li>按 w 寫入新分割區資料</li>
<li>最後按 q 離開 fdisk 程式</li>
<li>執行 tazusb format /dev/sdb2</li>
<li>執行 tazusb get-liveusb /dev/sdb2</li>
<li>最後重新啟動電腦並以 USB 開機裝置</li>
<li>成功後 slitaz 會以 tux 帳戶自動開啟 X</li>
</ol>
<p>FAQ:<br />
問: 怎樣解決開機時有不能啟動情況?<br />
答: 這主要是電腦未能以 /dev/sdb2 開機. 只要以 slitaz cooking CD 開機並執行 fdisk, 將開機裝置設定為 /dev/sdb2 便可.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e8%a7%a3%e6%b1%ba-slitaz-%e5%87%ba%e7%8f%be-failed-to-execute-login-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slitaz wifi 設定篇 &#8211; iwl3945</title>
		<link>http://www.joe-ho.com/slitaz-wifi-%e8%a8%ad%e5%ae%9a%e7%af%87-iwl3945/</link>
		<comments>http://www.joe-ho.com/slitaz-wifi-%e8%a8%ad%e5%ae%9a%e7%af%87-iwl3945/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 01:21:00 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slitaz]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/2011/08/slitaz-wifi-%e8%a8%ad%e5%ae%9a%e7%af%87-iwl3945</guid>
		<description><![CDATA[<p>近日小棗再次重拾對 Slitaz 的興趣, 開始慢慢研究怎樣令 slitaz 支援 wifi. 今次小棗利用 Dell D430 講解 slitaz cooking 怎樣支援 Intel(R) PRO/Wireless 3945ABG/BG Network Connection. 本文假設各位對安裝 slitaz 非常熟悉, 所以沒有提及基本安裝步驟.</p> <p>注意: 暫時 slitaz stable 還未支援 Intel 3945 chipset. 小棗亦未知這個 firmware 檔案可否在 slitaz stable 上使用.</p> <p>1. 先到 slitaz.org 下載 3945 chipset 既檔案或直接在 slitaz 執行下列指令</p> <p>tazpkg get-install firmware-iwlwifi-3945</p> <p>2. 安裝成功後 iwlwifi-3945-ucode-2.ucode 檔案儲存在 /lib/firmware 3. [...]]]></description>
			<content:encoded><![CDATA[<p>近日小棗再次重拾對 Slitaz 的興趣, 開始慢慢研究怎樣令 slitaz 支援 wifi. 今次小棗利用 Dell D430 講解 slitaz cooking 怎樣支援 Intel(R) PRO/Wireless 3945ABG/BG Network Connection. 本文假設各位對安裝 slitaz 非常熟悉, 所以沒有提及基本安裝步驟.</p>
<p>注意: 暫時 slitaz stable 還未支援 Intel 3945 chipset. 小棗亦未知這個 firmware 檔案可否在 slitaz stable 上使用.</p>
<p>1. 先到 slitaz.org 下載 3945 chipset 既檔案或直接在 slitaz 執行下列指令</p>
<blockquote><p>tazpkg get-install firmware-iwlwifi-3945</p></blockquote>
<p>2. 安裝成功後 iwlwifi-3945-ucode-2.ucode 檔案儲存在 /lib/firmware<br />
3. 先將 iwl3956 及 iwlcore 兩個原先載入既 module 移除</p>
<blockquote><p>rmmod iwl3945; rmmod iwlcore</p></blockquote>
<p>4. 重新載入 iwl3945 及 iwlcore</p>
<blockquote><p>modprobe iwlcore; modprobe iwl3945</p></blockquote>
<p>5. 進入系統工具 &gt; 無線網路設定<br />
6. 輸入正確無線網絡資料<br />
7. 按 Start connect 鍵<br />
8. 可在指令模式鍵入 ifconfig 查看 wlan0 情況</p>
<p>如對 slitaz 設定無線網絡有任何問題可留言互相討論.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/slitaz-wifi-%e8%a8%ad%e5%ae%9a%e7%af%87-iwl3945/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[轉載] First Look: Ubuntu 11.04 (Natty Narwhal) Beta 1</title>
		<link>http://www.joe-ho.com/%e8%bd%89%e8%bc%89-first-look-ubuntu-11-04-natty-narwhal-beta-1/</link>
		<comments>http://www.joe-ho.com/%e8%bd%89%e8%bc%89-first-look-ubuntu-11-04-natty-narwhal-beta-1/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 02:35:20 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[zdnet]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=2479</guid>
		<description><![CDATA[<p>Canonical have unveiled the beta 1 of the latest incarnation of its Linux operating system &#8211; Ubuntu 11.04 (Natty Narwhal). Time to take it for a test spin.</p> <p>Since this is a beta it is not intended for real usage, and neither is it fair to carry out a full review. So I’ll just go [...]]]></description>
			<content:encoded><![CDATA[<p>Canonical have unveiled the beta 1 of the latest incarnation of its Linux operating system &#8211; Ubuntu 11.04 (Natty Narwhal). Time to take it for a test spin.</p>
<p>Since this is a beta it is not intended for real usage, and neither is it fair to carry out a full review. So I’ll just go as far as to say that the installation was short and sweet. I particularly liked the way that I could enter details such as time zone info, keyboard choice, and user name/password while the install was going on in the background. It’s an interesting twist and a handy way to save time during the install.</p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/u_natty-008sm.png" alt="" width="440" height="330" /></p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/u_natty-010sm.png" alt="" width="440" height="330" /></p>
<p>Here’s a quick what’s new:</p>
<ul>
<li>Ubuntu 11.04 beta 1 features Linux kernel 2.6.38, Gnome 2.32, Compiz 0.9.4 and Xserver 1.10.</li>
<li>New Unity interface.</li>
<li>Firefox 4, Banshee 1.9.5 and LibreOffice 3.3.2 installed as default.</li>
<li>Ubuntu Software Center features review and rating system for applications.</li>
<li>Windows snapping by dragging windows to screen edges (a la Windows 7).</li>
<li>Imporoved multi-touch support.</li>
<li>New wallpapers.</li>
</ul>
<p>I did run into a few problems &#8211; I had troubles getting the Unity interface working both on standalone systems and in a virtual machine. I also had issues where the OS would boot into a blank screen as shown below:</p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/u_natty-032sm.png" alt="" width="440" height="330" /></p>
<p>I’m still investigating why this might be the case. But it does say beta on the tin, so problems are to be expected. Later I’ll try upgrading a working Ubuntu install later to 11.04 Beta 1 later and see what happens … stay tuned!</p>
<p><span style="text-decoration: underline;">UPDATE:</span></p>
<p>Redownloaded the .ISO and things seem happier on a physical machine. now going to try installing 10.04 beta 1 into VirtualBox which should (fingers crossed) allow Unity to work if I follow these (or maybe these) instructions.</p>
<p><span style="text-decoration: underline;">UPDATE 2:</span></p>
<p>Success! After following these instructions (which despite being in Portugese are pretty easy to follow) I got Unity working in VirtualBox 4.0.4:</p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/01-04-2011-14-29-55_sm.png" alt="" width="447" height="364" /></p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/01-04-2011-14-20-22_sm.png" alt="" width="450" height="337" /></p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/01-04-2011-14-20-46_sm.png" alt="" width="450" height="337" /></p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/01-04-2011-14-51-43_sm.png" alt="" width="450" height="337" /></p>
<p><img class="alignnone" src="http://i.zdnet.com/blogs/01-04-2011-14-51-57_sm.png" alt="" width="450" height="337" /></p>
<p>&nbsp;</p>
<p>By Adrian Kingsley-Hughes</p>
<p>Adrian Kingsley-Hughes is an internationally published technology author who has devoted over a decade to helping users get the most from technology.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e8%bd%89%e8%bc%89-first-look-ubuntu-11-04-natty-narwhal-beta-1/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>Perl CPAN in Slitaz</title>
		<link>http://www.joe-ho.com/perl-cpan-in-slitaz/</link>
		<comments>http://www.joe-ho.com/perl-cpan-in-slitaz/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 02:12:25 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slitaz]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1834</guid>
		<description><![CDATA[<p>After my previous article about compiling snort in Slitaz, I want go further on CPAN modules of Perl in Slitaz. The CPAN shell is bundled in perl package when installation is done. To launch the CPAN shell, I prefer the traditional way:</p> perl -MCPAN -e shell <p>The first thing to do should be upgrade the CPAN [...]]]></description>
			<content:encoded><![CDATA[<p>After my previous article about <a title="Compiling snort in Slitaz" href="http://www.joe-ho.com/index.php/2010/08/compiling-snort-in-slitaz">compiling snort in Slitaz</a>, I want go further on CPAN modules of Perl in Slitaz. The CPAN shell is bundled in perl package when installation is done. To launch the CPAN shell, I prefer the traditional way:</p>
<blockquote>
<div>perl -MCPAN -e shell</div>
</blockquote>
<p>The first thing to do should be upgrade the CPAN modules, instead of playing around in the shell. Remember don&#8217;t shy to keep press &#8220;yes&#8221; to continue the upgrade process.</p>
<blockquote>
<div>install Bundle::CPAN</div>
</blockquote>
<p>Normally, most of the CPAN modules can be installed by using the standard installation method. However, there is another way to install the modules &#8211; compile. Below is an example on how to compile Geo::IP modules in Slitaz.</p>
<ol>
<li>Install the core development package of Slitaz<br />
tazpkg get-install slitaz-toolchain</li>
<li>Install the requirement package source code (zlib-dev)<br />
tazpkg get-install zlib-dev</li>
<li>Download the required library, C library in Author&#8217;s website:
<p>http://www.maxmind.com/app/c</li>
<li>Compile and install the library<br />
- untar the downloaded file<br />
- Type the following command one-by one inside the tarball directory to compile the modules (libraries will be install at /usr/local/lib):</li>
<blockquote>
<div>perl Makefile.PL -LIBS=&#8217;-L/usr/local/lib&#8217;<br />
make<br />
make check<br />
make install</div>
</blockquote>
<li>download source from below (Official CPAN website):
<p>http://search.cpan.org/~borisz/Geo-IP-1.38/lib/Geo/IP.pm</li>
<li>Install module<br />
- untar the downloaded file<br />
- Type the following command one-by one inside the tarball directory to compile the modules (libraries will be install at /usr/local/lib):</li>
</ol>
<blockquote>
<div>perl Makefile.PL -LIBS=&#8217;-L/usr/local/lib&#8217;<br />
make<br />
make check<br />
make install</div>
</blockquote>
<p>Hope you like and it works for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/perl-cpan-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>好書推介 – Ubuntu Manual</title>
		<link>http://www.joe-ho.com/%e5%a5%bd%e6%9b%b8%e6%8e%a8%e4%bb%8b-%e2%80%93-ubuntu-manual/</link>
		<comments>http://www.joe-ho.com/%e5%a5%bd%e6%9b%b8%e6%8e%a8%e4%bb%8b-%e2%80%93-ubuntu-manual/#comments</comments>
		<pubDate>Sun, 02 May 2010 17:32:19 +0000</pubDate>
		<dc:creator>Joe Ho</dc:creator>
				<category><![CDATA[電腦]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.joe-ho.com/?p=1598</guid>
		<description><![CDATA[<p>雖然係一本用家 &#8220;聖經&#8221;, 但係對各位 Ubuntu 既初學者應該幾有用. 其實甚麼 &#8220;寶典&#8221; 都係介紹相同既東西. 加上免費而且係 PDF 格式, 放在流動裝置上睇都唔會麻煩. 有興趣可以到下列網址下載:</p> <p>http://ubuntu-manual.org/downloads</p> ]]></description>
			<content:encoded><![CDATA[<p>雖然係一本用家 &#8220;聖經&#8221;, 但係對各位 Ubuntu 既初學者應該幾有用. 其實甚麼 &#8220;寶典&#8221; 都係介紹相同既東西. 加上免費而且係 PDF 格式, 放在流動裝置上睇都唔會麻煩. 有興趣可以到下列網址下載:</p>
<p>http://ubuntu-manual.org/downloads</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joe-ho.com/%e5%a5%bd%e6%9b%b8%e6%8e%a8%e4%bb%8b-%e2%80%93-ubuntu-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

