<?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/">
<channel>
	<title>Blog Blog 齋</title>
	<link>http://fat-penguin.mocasting.com</link>
	<!-- iTunes -->
	
		
	<!-- iTunes -->
	<description>一個好 Dry 的 Blog</description>
	<pubDate>Wed, 08 Oct 2008 05:17:52 +0800</pubDate>
	<generator></generator>
	
	<item>
				<title>國慶跛腳黃金週</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/169706#comments</link>
		<pubDate>Mon, 06 Oct 2008 01:47:38 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>隨心</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/169706#</guid>
							<description>國慶當日去了行山，誰料跌了一大交。右腳扭傷。於是多了兩日假期，變相放了個國慶黃金週。最慘沒拿走 notebook（本來想反正國慶當日都外出，拿了 notebook 也沒用），不能 vpn 回公司。明天不知鈶司如何環境？！於是趁兩日假期，看了一些書，拆了埋積了大半年的銀行信件，和睡了很多覺。但仍睏。Zzzzz 還發現我的強積金進取基金原來年均回報率竟然接近兩巴仙，差不多有銀行定期存款利率一半，同期恒指也不過升了六十幾巴仙（年均回報率七巴仙多一點）。這一點幾巴仙，只可用珍貴來形容。相信短期內會變為虧蝕。 看了兩次跌打。不知公司的醫療保險包不包。如果不包的話，不知我的 AIA&amp;nbsp; 　意外保能否收到錢？！  </description>
			<content:encoded><![CDATA[	<p>國慶當日去了行山，誰料跌了一大交。右腳扭傷。</p>
	<p>於是多了兩日假期，變相放了個國慶黃金週。</p>
	<p>最慘沒拿走 notebook（本來想反正國慶當日都外出，拿了 notebook 也沒用），不能 vpn 回公司。明天不知鈶司如何環境？！</p>
	<p>於是趁兩日假期，看了一些書，拆了埋積了大半年的銀行信件，和睡了很多覺。</p>
	<p>但仍睏。Zzzzz </p>
	<p>還發現我的強積金進取基金原來年均回報率竟然接近兩巴仙，差不多有銀行定期存款利率一半，同期恒指也不過升了六十幾巴仙（年均回報率七巴仙多一點）。這一點幾巴仙，只可用珍貴來形容。相信短期內會變為虧蝕。 </p>
	<p>看了兩次跌打。不知公司的醫療保險包不包。如果不包的話，不知我的 AIA&nbsp;<img src="/main/wp-images/smilies/icon_eek.gif" border="0" /> <img src="/main/wp-images/smilies/icon_confused.gif" border="0" />　意外保能否收到錢？！</p>
<br/><br/><a id="more-169706"></a>
</p>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>黐孖根（一）</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/169327#comments</link>
		<pubDate>Wed, 01 Oct 2008 22:05:25 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>中國</dc:subject>
	<dc:subject>流行曲</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/169327#</guid>
							<description>黐孖根&amp;mdash;黃耀明 曲：黃耀明詞：周耀輝&amp;nbsp;&amp;nbsp; 在某國某鎮有孖生的兩個　從一出生已散失到兩岸 &amp;nbsp;&amp;nbsp; 快樂難過　總也遇過　有些差不太多　但異樣更多 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 在某國某鎮那孖生的兩個　如今手足已各走上兩路 &amp;nbsp;&amp;nbsp; 兩段時間　千變萬化　卻出於一個家　問誰人做化 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 同一般的眼睛一樣鼻子　說著異鄉的語氣 &amp;nbsp;&amp;nbsp; 同一般的髮膚一樣面子　這面是對那面或說非 &amp;nbsp;&amp;nbsp; 如一加一結果一樣是一　這樣道理相當趣緻 &amp;nbsp;&amp;nbsp; 同一根一蔃不一樣是一　各樣懷抱願望亦各有一個 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 在某國某鎮那孖生的兩個　在一天竟碰上於這窄路 &amp;nbsp;&amp;nbsp; 擦面而過　手腳無措　感觸差不太多　但無言互訴 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 同一般的眼睛一樣鼻子　說著異鄉的語氣 &amp;nbsp;&amp;nbsp; 同一般的髮膚一樣面子　這面是對那面或說非 &amp;nbsp;&amp;nbsp; ...</description>
			<content:encoded><![CDATA[	<p>黐孖根&mdash;黃耀明 </p>
	<p>曲：黃耀明<br />詞：周耀輝</p>
<br/><br/><a id="more-169327"></a>&nbsp;&nbsp; 在某國某鎮有孖生的兩個　從一出生已散失到兩岸 <br />&nbsp;&nbsp; 快樂難過　總也遇過　有些差不太多　但異樣更多 &nbsp;&nbsp; &nbsp;
<p>&nbsp;&nbsp; 在某國某鎮那孖生的兩個　如今手足已各走上兩路 <br />&nbsp;&nbsp; 兩段時間　千變萬化　卻出於一個家　問誰人做化 <br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; 同一般的眼睛一樣鼻子　說著異鄉的語氣 <br />&nbsp;&nbsp; 同一般的髮膚一樣面子　這面是對那面或說非 <br />&nbsp;&nbsp; 如一加一結果一樣是一　這樣道理相當趣緻 <br />&nbsp;&nbsp; 同一根一蔃不一樣是一　各樣懷抱願望亦各有一個 <br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; 在某國某鎮那孖生的兩個　在一天竟碰上於這窄路 <br />&nbsp;&nbsp; 擦面而過　手腳無措　感觸差不太多　但無言互訴 <br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; 同一般的眼睛一樣鼻子　說著異鄉的語氣 <br />&nbsp;&nbsp; 同一般的髮膚一樣面子　這面是對那面或說非 <br />&nbsp;&nbsp; 求一一得四九七三廿一　這樣道理相當趣緻 <br />&nbsp;&nbsp; 同一根一蔃即使一樣面子　最後或會剩下兩根刺</p>
	<p>&nbsp;&nbsp; 一一四九七三廿一　 一一四九七三廿一　 <br />&nbsp;&nbsp; 一一四九七三廿一　 一一四九七三廿一　 <br />&nbsp;&nbsp; 一一四九七三廿一　 一一四九七三廿一　 <br />&nbsp;&nbsp; &hellip; </p>
	<p>&nbsp;</p>
	<p>國慶快樂！</p>
	<p>（九日後翻炒 XD）</p>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>完成任務，感覺良好</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/169194#comments</link>
		<pubDate>Tue, 30 Sep 2008 23:07:37 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>學習</dc:subject>
	<dc:subject>Oracle</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/169194#</guid>
							<description>拖延了差不多半年，昨天終於考了個試。何解會拖延半年？說話我考的是所謂的 Beta Exam。正如電腦軟件，電腦考試也要經過測試，以找出有蟲、過深、過淺的問題。可能太少人報考關係，這個試原定四月頭完成 beta，經過再三延期，改了為十月尾完場。而小弟的溫書進度也跟隨著延期。何以要考 beta 試？最大好處是價錢&amp;hellip;原價千多元的試，四百元有交易 。另一好處是合格的話，會成為世上第一批獲得證書。至於缺點，則是準備時間不足。考試時間也較長，試題也較多（要在三小時答 223 題&amp;hellip;48 秒一題。有些題目寫滿一個畫面，看得老眼昏花&amp;hellip;）。另外也較無跡可尋，也沒有所謂的 braindump。還有要等快則兩三個月，慢則一年半載才知成績。三小時的考試，考得頭昏腦漲。饑寒交迫（在晚飯時間考，試場冷氣異常寒冷）了餘，更相當之急&amp;mdash;一來開始時較滋柔，中段開始擔心時間不足；二來三個多小時沒上廁所。勉強在鳴笛前完成全卷。三小時的試，十幾廿年前只是等閑事，難道真老了，不再適合考試？？試題不算太深，相當正路（又或陰濕到我不知道它陰濕）。暫時未公佈合格分數，但根據往績六七十巴仙的話，合格應該沒問題。不過，最快也要出年才有成績。萬一再延期的話，真的等到頸長。&amp;nbsp;Oracle EBS R12: Install, Patch and Maintain Applications&amp;nbsp;相關文章︰考試&amp;hellip;一拖再拖    </description>
			<content:encoded><![CDATA[	<p>拖延了差不多半年，昨天終於考了個試。</p>
	<p>何解會拖延半年？說話我考的是所謂的 Beta Exam。正如電腦軟件，電腦考試也要經過測試，以找出有蟲、過深、過淺的問題。可能太少人報考關係，這個試原定四月頭完成 beta，經過再三延期，改了為十月尾完場。而小弟的溫書進度也跟隨著延期。<img src="/main/wp-images/smilies/icon_redface.gif" border="0" /></p>
<br/><br/><a id="more-169194"></a>
<p>何以要考 beta 試？最大好處是價錢&hellip;原價千多元的試，四百元有交易 <img src="/main/wp-images/smilies/icon_biggrin.gif" border="0" />。另一好處是合格的話，會成為世上第一批獲得證書。</p>
	<p>至於缺點，則是準備時間不足。考試時間也較長，試題也較多（要在三小時答 223 題&hellip;48 秒一題。有些題目寫滿一個畫面，看得老眼昏花&hellip;）。另外也較無跡可尋，也沒有所謂的 braindump。還有要等快則兩三個月，慢則一年半載才知成績。</p>
	<p>三小時的考試，考得頭昏腦漲。饑寒交迫（在晚飯時間考，試場冷氣異常寒冷）了餘，更相當之急&mdash;一來開始時較滋柔，中段開始擔心時間不足；二來三個多小時沒上廁所。勉強在鳴笛前完成全卷。三小時的試，十幾廿年前只是等閑事，難道真老了，不再適合考試？？</p>
	<p>試題不算太深，相當正路（又或陰濕到我不知道它陰濕）。暫時未公佈合格分數，但根據往績六七十巴仙的話，合格應該沒問題。不過，最快也要出年才有成績。萬一再延期的話，真的等到頸長。</p>
	<p>&nbsp;</p>
	<p><a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&#038;p_org_id=1001&#038;lang=US&#038;p_exam_id=1Z0_238" target="_blank">Oracle EBS R12: Install, Patch and Maintain Applications</a>&nbsp;</p>
	<p>相關文章︰<a href="http://fat-penguin.mocasting.com/p/161971" target="_blank" >考試&hellip;一拖再拖 </a> </p>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>打風先黎落雨</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/168740#comments</link>
		<pubDate>Tue, 23 Sep 2008 21:06:50 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>隨心</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/168740#</guid>
							<description>今日去參加了一個 Oracle 的講座。原來，這個講座已經兩度改期，上兩次原定的舉行日期分別是八月六日和廿二日。為何落得兩度改期的田地？八月六日，強烈熱帶風暴北冕襲港。八月廿二日，颱風鸚鵡襲港。這兩日一早就八號風球高高掛，所有活動取消。九月廿三日，颱風黑格比襲港。可惜的是八號風球在晚上六時才掛起，活動不再改期（也就不能再看這個講座舉行的日子是否必掛八號風球&amp;hellip;又或這意味黑格比已經是今年最後一個八號風球？）。無論如何，這個講座三度和八號風球相逢，Oracle 預測天氣簡直準過天文台。講座內容，好像沒什麼值行一記&amp;hellip;可能太眼訓了？？最大得著是茶點時間可以吃到酒店的蝦餃燒買。另外就是請了假，避開了風雨。注︰今年至今共有四個八號風球&amp;hellip;另一次颱風風神襲港，在六月發生。再注︰今年至今共掛五次風球，四次八號。  </description>
			<content:encoded><![CDATA[	<p>今日去參加了一個 Oracle 的講座。</p>
	<p>原來，這個講座已經兩度改期，上兩次原定的舉行日期分別是八月六日和廿二日。</p>
	<p>為何落得兩度改期的田地？八月六日，<a href="http://zh.wikipedia.org/w/index.php?title=%E5%BC%B7%E7%83%88%E7%86%B1%E5%B8%B6%E9%A2%A8%E6%9A%B4%E5%8C%97%E5%86%95_(2008%E5%B9%B4)&#038;variant=zh-hk">強烈熱帶風暴北冕</a>襲港。八月廿二日，<a href="http://zh.wikipedia.org/w/index.php?title=%E9%A2%B1%E9%A2%A8%E9%B8%9A%E9%B5%A1&#038;variant=zh-hk">颱風鸚鵡</a>襲港。這兩日一早就八號風球高高掛，所有活動取消。</p>
	<p>九月廿三日，<a href="http://zh.wikipedia.org/w/index.php?title=%E9%A2%B1%E9%A2%A8%E5%93%88%E6%A0%BC%E6%AF%94_(2008%E5%B9%B4)&#038;variant=zh-hk">颱風黑格比</a>襲港。可惜的是八號風球在晚上六時才掛起，活動不再改期（也就不能再看這個講座舉行的日子是否必掛八號風球&hellip;又或這意味黑格比已經是今年最後一個八號風球？）。無論如何，這個講座三度和八號風球相逢，Oracle 預測天氣簡直準過天文台。</p>
	<p>講座內容，好像沒什麼值行一記&hellip;可能太眼訓了？？最大得著是茶點時間可以吃到酒店的蝦餃燒買。另外就是請了假，避開了風雨。</p>
	<p>注︰今年至今共有四個八號風球&hellip;另一次<a href="http://zh.wikipedia.org/w/index.php?title=%E9%A2%B1%E9%A2%A8%E9%A2%A8%E7%A5%9E_(2008%E5%B9%B4)&#038;variant=zh-hk" target="_blank" >颱風風神</a>襲港，在六月發生。</p>
	<p>再注︰今年至今共掛五次風球，四次八號。</p>
<br/><br/><a id="more-168740"></a>
</p>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>Running Oracle on a Windows Machine without Installation</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/168030#comments</link>
		<pubDate>Wed, 17 Sep 2008 02:02:48 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>教學</dc:subject>
	<dc:subject>Oracle</dc:subject>
	<dc:subject>Linux</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/168030#</guid>
							<description>Don&amp;#39;t be silly... You still need to install something. But not in Windows.This article discuss how to run a virtual machine on a windows machine under a Linux LiveCD, using ...</description>
			<content:encoded><![CDATA[	<p>Don&#39;t be silly&#8230; You still need to install something. But not in Windows.</p>
	<p>This article discuss how to run a virtual machine on a windows machine under a Linux LiveCD, using a virtualization software like VMWare or VirtualBox. As a result, it is possible to do whatever you want in the virtual machine, including run Oracle. Perfect when you are not allowed (or not preferred) to install something in your windows, but allowed reboot with CD and create some huge files.</p>
<br/><br/><a id="more-168030"></a><br />
<h1>Slax</h1>
	<p><a href="http://www.slax.org/">Slax</a> is a <a href="http://www.slackware.com/">slackware</a> based Linux LiveCD distribution. It&#39;s modular architecture makes it incredible easy to &#39;install&#39; software. By activating a module, which appears a single file, you install the software, as the files in module &#39;union&#39; into your own filesystem. </p>
	<h1>VirtualBox</h1>
	<p><a href="http://www.virtualbox.org/">VirtualBox</a> is a &#8220;semi open-source&#8221; virtualization software currently owned by Sun. It has <a href="http://www.virtualbox.org/wiki/Editions">two editions</a>: the open-source edition (OSE) and the freeware proprietary binary edition. The binary edition is free for personal use. I am using the binary edition. </p>
	<p>The technique discussed in this article also applies to other virtualization software, <a href="http://www.vmware.com/">VMWare</a>. Actually much work described here started with VMWare. I switched to VirtualBox because it consumes fewer resources and many people say it is faster (even though my own benchmark showed it slower).</p>
	<h1>Then What&#8230;</h1>
	<p>You guess it. Boot into Slax, activate VirtualBox, create a virtual machine and do whatever there.</p>
	<h2>Boot into Slax, Activate VirtualBox</h2>
	<p>Booting into Slax is an easy job. Activating VirtualBox should be easy after playing Slax for 1 min. The command is as follows:</p>
	<p><font face="courier new,courier"># activate /mnt/hda1/ubuntu704/slax6/virtualbox-2-0-0-k2-6-24-5.lzm</font></p>
	<h2>Create a Virtual Machine </h2>
	<p>Thanks to the <a href="http://www.ntfs-3g.org/">ntfs-3g</a> project, you can create a virtual machine on your windows partition without compatibility problem. There may be performance problem (even ntfs-3g is supposed to have high performance). But if you are really care about performance, you shouldn&#39;t be using a virtual machine.</p>
	<p>Please refer to <a href="http://www.virtualbox.org/wiki/Documentation">VirtualBox documentation</a> on creating virtual machine if you really need some to follow.</p>
	<p>Note: when I try to create virtual disk in the GUI, it dies. Eventually, I need to create it using command line:</p>
	<p><font face="courier new,courier"># VBoxManage createvdi -filename <em>filename.vdi </em>-size <em>size_in_MiB</em> [-static]</font></p>
	<p>If you specify the -static option, VirtualBox will pre-allocate disk space in the VDI file. Otherwise, the file size grows as space is used. </p>
	<p>I configured the virtual machine, surprisingly, to boot with a customized <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://www.ubuntu.com/getubuntu/releasenotes/606">6.06</a> LiveCD (yes, LiveCD on LiveCD). The reason is to preserve disk space in the virtual machine. And because the Ubuntu CD image is in the harddisk, the performance impact is minimal.</p>
	<p>Why 6.06? Because I worked with it. And anything newer that 6.10 does not support <a href="https://help.ubuntu.com/community/LiveCD/Persistence?action=show&#038;redirect=LiveCDPersistence">persistence</a>. I&#39;ve <a href="http://fat-penguin.mocasting.com/p/111421">customized it to start in persistent mode by default</a> (Warning: in Chinese). </p>
	<p>I created the following virtual harddisks:</p>
	<ul>
<li>11g-root.vdi: Used as the harddisk with the / filesystem, labeled casper-rw for persistence. </li>
	<li>11g-oracle.vdi: /u01 mount point.</li>
	<li>11g-tmp.vdi: /tmp mount point.</li>
	<li>11g-swap.vdi: Swapdevice</li>
</ul>
	<p>I create a single partition on all virtual harddisks. As a result, the file will not grow due to putting files in different partitions. In addition, the swap and /tmp are individual harddisks. When it grows due to usage, you can restore a backup to minimize file size. </p>
	<h2>Do Whatever There </h2>
	<p>In order to install Oracle, you need to install some additional packages. Please refer to the Release Notes. Follow the document to install the Oracle software.</p>
	<p>I faced a problem when I create the database with Database Vault. Please refer to <a href="http://fat-penguin.mocasting.com/?p=158916">this</a> for a solution. Of course, you may not be interested in running Database Vault in a virtual machine.</p>
	<p>Ubuntu by default runs Gnome. Slax by default runs KDE. This is a waste of precious memory (especially my computer has 1GiB RAM only). Therefore, I disabled X window on the virtual machine. In case I need to run some GUI program (e.g., sqldeveloper??), I can use SSH to tunnel the X protocol data to Slax.</p>
	<p>Therefore, we need to set up networking to allow communication between the host and guest&#8230;</p>
	<h2>Setup Host Networking</h2>
	<p>VirtualBox supports 4 modes of network connection of the guest:</p>
	<ul>
<li>Not attached: No network at all</li>
	<li>NAT: guest can access anything on the network but not visible from outside. Possible to forward specific ports to the guest though. </li>
	<li>Host Interface Networking: guest and anything on the network can communicate.</li>
	<li>Internal Networking: guests running on the same host can see each other.</li>
</ul>
	<p>I selected to use host interface networking (HIF), such that the guest looks like an independent computer.</p>
	<p>To set up HIF, it is necessary to create a virtual network interface on the host, called a TUN/TAP interface. Then virtual network device is than associated with a physical network interface through a &#8220;bridge&#8221;. The detailed procedure is as follows:</p>
	<ol>
<li>Load the tun module<br /><font face="courier new,courier"># modprobe tun</font></li>
	<li>Create a bridge<br /><font face="courier new,courier"># brctl addbr br0</font></li>
	<li>Create a TAP interface with VBoxAddIF. Note that a program VBoxTunctl was missing in the module. This will cause VBoxAddIF to fail. Fortunately,&nbsp; VBoxTunctl is just a re-branded tunctl.<br /><font face="courier new,courier"># </font><font face="courier new,courier">ln -sf /usr/bin/tunctl /usr/bin/VBoxTunctl<br /></font><font face="courier new,courier"># </font><font face="courier new,courier">VBoxAddIF tap0 root br0</font></li>
	<li>Configure the tap0 and eth0 interfaces in promiscuous mode.<br /><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig tap0 promisc<br /></font><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig eth0 0.0.0.0 promisc</font></li>
	<li>Assign an IP address to the br0 interface. Any method to assign IP address (e.g., dhcp or static) is OK.<br /><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig br0 10.0.2.100 netmask 255.255.255.224</font></li>
	<li>Associate br0 with eth0<br /><font face="courier new,courier"># </font><font face="courier new,courier">/sbin/brctl addif br0 eth0</font></li>
	<li>Bring up all the network interfaces, real or virtual<br /><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig tap0 up<br /></font><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig eth0 up<br /></font><font face="courier new,courier"># </font><font face="courier new,courier">ifconfig br0 up</font></li>
</ol>
	<p>When the Virutal Machine boots up, assign the Ethernet interface an IP in the same network as br0. Bi-directional communication between the host and the guest should be possible. </p>
	<p>I am not an expert on TUN/TAP. Here are something that I don&#39;t understand:</p>
	<ol>
<li>I can communicate with the guest even if eth0 is down. However, if eth0 is not associated with br0, the communication failed. Why?</li>
	<li>If there is no Ethernet adaptor, can I use HIF? I tried to tell it to work with lookback interface (lo) and brctl refused .</li>
</ol>
	<h2>Keeping VirtualBox Settings</h2>
	<p>Data in a LiveCD booted environment is volatile. As a result, VirtualBox configuration data loses after you reboot. Back up the configuration data to your windows partition. Unless you make further change to VirtualBox setting, you need to backup once only and restore whenever you need to boot the vritual machine.</p>
	<p><font face="courier new,courier"># </font><font face="courier new,courier">tar zcvf virtualbox ~/virtualbox ~/.VirtualBox </font></p>
	<h1>Sum it up</h1>
	<p>I&#39;ve created the following script to setup the environment and startup the virtual machine.</p>
	<blockquote><p><font face="courier new,courier">activate virtualbox-2-0-0-k2-6-24-5.lzm<br />tar zxf virtualbox-conf.tar.gz -C /root<br />modprobe tun<br />ln -sf /usr/bin/tunctl /usr/bin/VBoxTunctl<br />brctl addbr br0<br />VBoxAddIF tap0 root br0<br />ifconfig tap0 promisc<br />ifconfig eth0 0.0.0.0 promisc<br />ifconfig br0 10.0.2.100 netmask 255.255.255.224<br />/sbin/brctl addif br0 eth0<br />ifconfig tap0 up<br />ifconfig eth0 up<br />ifconfig br0 up<br />VBoxManage startvm Ubuntu-11g</font></p></blockquote>
	<p>That&#39;s all! </p>
	<p>Additional Information:</p>
	<ul>
<li><a href="http://www.slax.org/get_slax.php">Download Slax 2.0.7</a></li>
	<li><a href="http://www.slax.org/modules.php?action=detail&#038;id=867">Download VirtualBox 2.0.0 Slax Module</a></li>
	<li><a href="http://www.slax.org/modules.php?action=detail&#038;id=881">Download VirtualBox 2.0.2 Slax Module</a> (not tested by me)</li>
	<li><a href="http://www.virtualbox.org/wiki/Downloads">Download VirtualBox from official website</a> (latest version as of this writing: 2.0.2) </li>
	<li><a href="http://ftp.hostrino.com/pub/ubuntu/cdimage/dapper/">Download Ubuntu 6.06</a></li>
	<li><a href="http://www.oracle.com/technology/software/products/database/index.html">Download Oracle 11g </a></li>
	<li><a href="https://help.ubuntu.com/community/LiveCDCustomization?action=show&#038;redirect=LiveCDCustomization%2F6.06" target="_blank" >How to Customize the Ubuntu Desktop CD</a></li>
</ul>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>投了廢票</title>
				
								
				<link>http://fat-penguin.mocasting.com/p/167494#comments</link>
		<pubDate>Sun, 07 Sep 2008 22:30:30 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>新聞</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/167494#</guid>
							<description>廷續回歸以來傳統，在今日的立法會選舉投了廢票本來想在選票上寫「廢選舉廢過廢票」，明串有功能組別同分組點票制度的立法會根本不能發揮監察政府的作用，但入到投票區突然做了膽了鬼，胡亂打了幾個印就落荒而逃。畢竟沒有遮蔽，好驚被人見到，而且句口號個個字都好多筆劃！！記憶中的歷年口號（曾寫在選票或想過寫在選票）「不用一個橡皮圖章，選一群橡皮圖章」「選票廢，假選舉更廢」「有功能組別的立法會＝廢的立法會」「臨時立法，永久垃圾」「廢票投廢法會」（最後兩句乃諷刺臨時立法會還原惡法&amp;hellip;好明顯最多只有一句寫過落選票）可能有人會認為這樣浪費了「寶貴」的一票。但即使我的寶貴一票助我心儀的候選人進了了立法會，他對政府決策仍是沒有影響力的。對我來說，對無意義的「選舉」作出無聲抗議，更有意義。我估我仍會投多起碼十年廢票。  </description>
			<content:encoded><![CDATA[	<p>廷續回歸以來傳統，在今日的立法會選舉投了廢票</p>
	<p>本來想在選票上寫「廢選舉廢過廢票」，<span>明串有功能組別同分組點票制度的立法會根本不能發揮監察</span>政府的作用，但入到投票區突然做了膽了鬼，胡亂打了幾個印就落荒而逃。畢竟沒有遮蔽，好驚被人見到，而且句口號個個字都好多筆劃！！</p>
	<p>記憶中的歷年口號（曾寫在選票或想過寫在選票）</p>
	<ul>
<li>「不用一個橡皮圖章，選一群橡皮圖章」</li>
	<li>「選票廢，假選舉更廢」</li>
	<li>「有功能組別的立法會＝廢的立法會」</li>
	<li>「臨時立法，永久垃圾」</li>
	<li>「廢票投廢法會」</li>
</ul>
	<p>（最後兩句乃諷刺臨時立法會還原惡法&hellip;好明顯最多只有一句寫過落選票）</p>
	<p>可能有人會認為這樣浪費了「寶貴」的一票。但即使我的寶貴一票助我心儀的候選人進了了立法會，他對政府決策仍是沒有影響力的。對我來說，對無意義的「選舉」作出無聲抗議，更有意義。</p>
	<p>我估我仍會投多起碼十年廢票。</p>
<br/><br/><a id="more-167494"></a>
</p>
]]></content:encoded>
				
				
				</item>
		
	<item>
				<title>新玩具—Xerox WorkCentre 3119 </title>
				
								
				<link>http://fat-penguin.mocasting.com/p/167024#comments</link>
		<pubDate>Sun, 31 Aug 2008 22:10:47 +0800</pubDate>
				
						<dc:creator>肥企鵝</dc:creator>
		
	<dc:subject>Linux</dc:subject>						
				<guid isPermaLink="false">http://fat-penguin.mocasting.com/p/167024#</guid>
							<description>這篇文記述安裝 Xerox WorkCentre 3119 的經過。如果因為在 Linux 遇到安裝問題而找到這裡的話，可直接看「安裝驅動程式」一節。家中的舊打印機早已殘廢，經常 jam 紙，墨也早用了九九十十。但一來有時不 jam 紙，二來用得不多（據說跟機的碳粉盒可印 1500 張，未換過&amp;hellip;每張紙打印成本約 $1.5 &amp;gt;_&amp;lt;），三來不環保，四來懶（hehe 主要原因），遲遲沒有行動。家姐在電腦展中卻買了部 Xerox WorkCentre 3119，主要特性如下︰ 	 	 		 			Standard functions 			Copy, Print, Scan 		 		 			Resolution ...</description>
			<content:encoded><![CDATA[	<p>這篇文記述安裝 <a href="http://www.office.xerox.com/multifunction-printer/multifunction-under-30ppm/workcentre-3119/engb.html">Xerox WorkCentre 3119</a> 的經過。如果因為在 Linux 遇到安裝問題而找到這裡的話，可直接看「<a href="http://fat-penguin.mocasting.com/p/167024#installdriver">安裝驅動程式</a>」一節。</p>
	<p>家中的舊打印機早已殘廢，經常 jam 紙，墨也早用了九九十十。但一來有時不 jam 紙，二來用得不多（據說跟機的碳粉盒可印 1500 張，未換過&hellip;每張紙打印成本約 $1.5 >_<），三來不環保，四來懶（hehe 主要原因），遲遲沒有行動。</p>
	<p>家姐在電腦展中卻買了部 Xerox WorkCentre 3119，主要特性如下︰</p>
<br/><br/><a id="more-167024"></a><br />
<table border="1" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left">Standard functions</td>
	<td align="left">Copy, Print, Scan</td>
 		</tr>
	<tr>
<td align="left">Resolution (Print, Copy)</td>
	<td align="left">600 x 600 dpi</td>
 		</tr>
	<tr>
<td align="left">Resolution (Scan)</td>
	<td align="left">600 x 2400 dpi (Optical)</td>
</tr>
	<tr>
<td align="left">Connectivity</td>
	<td align="left">USB 2.0</td>
</tr>
	<tr>
<td align="left">Technology</td>
	<td align="left">Laser black and white</td>
</tr>
	<tr>
<td align="left">PDLs</td>
	<td align="left">GDI</td>
</tr>
	<tr>
<td align="left">Operating Systems</td>
	<td align="left">Windows 98/2000/Me/XP/Vista, Mac, Linux</td>
</tr>
	<tr>
<td align="left">Device memory</td>
	<td align="left">8 MB</td>
</tr>
	<tr>
<td align="left">Input Paper Capacity</td>
	<td align="left">Main Tray: 250 sheets<br />Bypass Tray: 1 sheet</td>
</tr>
	<tr>
<td align="left">Output tray capacity</td>
	<td align="left">50 sheets</td>
</tr>
	<tr>
<td align="left">Media types</td>
	<td align="left">Paper, envelopes, labels, transparencies</td>
</tr>
	<tr> 			</tr>
</tbody>
 </table></p>
	<p>最令我不安的是「GDI」一項&mdash;它的大部分工作要在驅動程式完成，缺點如下︰</p>
	<ul>
<li>影響電腦性能</li>
	<li>如果驅動程式有蟲，會影響電腦穩定</li>
	<li>只能在特定的作業系統使用。</li>
</ul>
	<p>但價錢太吸引了&hellip;而且有 linux 驅動程式。這個險，值得一冒。</p>
	<p>由於家姐要用，所以先裝 Windows 驅動程式。打印和掃描都沒問題。OCR 軟件也有，但極為弱雞。</p>
	<p>竟然有四隻 CD，加起來的容量好像裝不滿一隻 CD。當中有一隻寫明「Drivers CD－ROM Windows, Linux, Mac OS」，但只找到 Window 的驅動程式，沒有 Linux 的。沒問題，我自己下載最新版。</p>
	<p><img src="http://www.mocasting.com/main/getimage.php?f=5020/original/106847.jpg&#038;y=300&#038;x=300&#038;q=80&#038;sq=1b7ee8cb087665d711e07a5e59941850" border="0" alt="Driver CD&mdash;掃描效果尚可&hellip;不知強光會否損毁光碟 >_<" title="Driver CD&mdash;掃描效果尚可&hellip;不知強光會否損毁光碟 >_<" /><br />&nbsp;（Driver CD&mdash;掃描效果尚可&hellip;不知強光會否損毁光碟 >_<） </p>
	<p>Xerox 網站下載到的驅動程式竟是 2006 年的古董，果然問題多多。勉強無幸福，歷盡艱辛安裝了之後，用不到。</p>
	<p>於是下載了 Samsung SCX-4200 的驅動程式。據說兩部根本是相同的。雖然裝到但認不到我的 Xerox 打印機，大概兩部的分別在互不相認吧。</p>
	<p>無計可施，做了一件傻事︰把 Drivers 的 CD mount 起，竟然是 linux 驅動程式。沒想到 Xerox 竟然玩 mult-session CD 這種無聊玩意。檔案結構和 Samsung 的果然一樣，但較新。</p>
	<h3><a name="installdriver" title="installdriver"></a>安裝驅動程式</h3>
	<p>CD 上的驅動程式比網上新，還是第一次見。看來以後裝新硬體時，不能不理跟機 CD 了。正如 Samsung Driver，安裝過程極順利，但仍認不到打印機和掃描器。</p>
	<p>經過一番努力，得知這是需要 USB Printer 的支援。於是到 Kernel 的 Source make menuconfig，啟用以下選項︰</p>
	<p><font face="courier new,courier">&nbsp;&nbsp;&nbsp;&nbsp; -> Device Drivers<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -> USB support<br />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; -> USB Printer support</font></p>
	<p>make modules; make modules_install，產生 usblp 模組。</p>
	<p>用 root 來執行 xsane，果然成功了！也可用 scanimage -L 得知電腦認到打印機。</p>
	<p>但普通用戶就用不到（出現 /sbin/modprobe: Permission denied）。<a href="http://jacobo.tarrio.org/Samsung_SCX-4200_on_Debian">據說要把一個 libmfp.so 的程式庫改掉即可</a>，（再說一次，WorkCentere 3119 即是 Samsung SCX-4200！）但失敗，稍後再研究。（不&hellip;我不是打算用 root 來掃描&hellip;只是現在仍沒有掃描的需要）。</p>
	<p>打印卻沒有這樣簡單。安裝程式雖然建立了 print queue，卻是用不到的。經過一番折騰，用驅動程式提供的 MPF Configurator（/opt/Xerox/mfp/bin/Configurator）設定打印機，加上建立了以下 symbolic link，才可以打印（參以下注釋 1）︰</p>
	<p><font face="courier new,courier">ln -sf /dev/mpf/0 /dev/mpf0<br />ln -sf /dev/mpf/4 /dev/mpf4</font></p>
	<p>/dev/mpf/* 一般是不存在的，不用擔心。要用時就有得用。情況好像是負責和打印機溝通的 /usr/lib/cups/filter/rastertosamsungspl 不管 cups 設定，硬要用 /dev/mpf4，但負責建立虛擬列印埠的 /usr/lib/cups/backend/mpf 所產生的卻是 /dev/mpf/4，所以認不到吧。 </p>
	<p>不過，由於我是用 udev 的，這些 symbolic link 在 boot 機後便會消失，還要想想辦法&hellip; </p>
	<p>也有人說過用一個叫 <a href="http://splix.sourceforge.net/" target="_blank" >SpliX</a> 的驅動程式比較好，但現在我能印到東西就不理它了。</p>
	<p>2008-09-07 更新︰</p>
	<ol>
<li>udev 仍沒有 /dev/mfp/* （當然），但不需 symbolic link 也印到東西了。怪哉。</li>
	<li>證實改掉 libmfp.so 也不能讓一般用戶掃描，而必須用 root。再怪哉。</li>
</ol>
2008-09-13 更新︰
<ol>
<li>安裝驅動程式時會把 lpr 換掉。這是一個不支援 command line，而必須用 X Window 的 lpr「代替品」，簡單點說就是垃圾。安裝前緊記要把 lpr 備份！否則就要重裝 cups了。 </li>
</ol>
]]></content:encoded>
				
				
				</item>
	</channel>
</rss>
