<?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>Kenmingの鮮思維 &#187; 系統(含架站)安裝與設定</title>
	<atom:link href="http://www.kenming.idv.tw/category/misc-category/system-config-diary/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kenming.idv.tw</link>
	<description>不用牽掛過去，不必擔心未來，踏實於現在，就與過去和未來同在！</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>系統重灌兼桌面重整 (2010-08)</title>
		<link>http://www.kenming.idv.tw/os_reinstall_and_desktop_rearrange_201008</link>
		<comments>http://www.kenming.idv.tw/os_reinstall_and_desktop_rearrange_201008#comments</comments>
		<pubDate>Wed, 04 Aug 2010 15:06:31 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[應用軟體使用分享]]></category>
		<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[作業系統]]></category>
		<category><![CDATA[桌面]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1578</guid>
		<description><![CDATA[又到了差不多作業系統需要重新安裝的時候了。當應用程式執行效率不佳，以及不穩定、當機(重開機)現象增多時，就是該執行這個動作了。 將磁碟切分為兩個邏輯磁區的好處就是，只是將系統磁區格式化 (format)，再重灌作業系統即可。至於資料則是早已集中在 Disk-D，所以連事先備份都不需要，當然，多少還是要檢查注意一下，系統磁區原來的規劃，是否已經把如文件、桌面、我的最愛等位置早已轉移到 Disk-D 了。以及，是否有一些免安裝的綠色軟體，還有應用程式的設定資訊等，仍是需要先備份起來。總之，重灌系統對於不清楚 Windows-based 檔案結構的人，還是最好先給全備份下來比較保險。 重新安裝的過程就不提了。反正，包括安裝好作業系統、執行線上系統更新、下載與安裝必要的驅動程式 (drivers)。一般到此我就會利用 Image 的備份軟件將系統磁區給整個備份下來，耗費儲存空間大約 15~20 GB，還好；然後開始陸續安裝必要的應用程式，包括文書處理、多媒體、工具類，當然還有重要的遊戲等，這樣大概斷續下來，大概是花上一天左右，就可以有個全新安裝的穩定系統與工作環境。 除了當然對系統要做個最佳化的調教外，我總是不喜歡桌面有一大堆捷徑圖示有的沒的，所以，我利用之前從國外註冊購買的 True Launch Bar，將所有的捷徑整理放至快捷執行工具列 (quick launch toolbar)內，整個桌面乾淨素雅，只留下一個資源回收筒而已。 True Launch Bar 是我最鍾愛的桌面整理工具了。它完全利用快捷工具列，所以幾乎不會耗費系統資源。而且還有一些不錯的小工具 (widget)，例如我總是會在工具列上擺上一個可更換 skin 的小時鐘，以及一個喇叭的音量控制拉條，方便得很。 另外，為了整理方便也不想要太花俏，所以收納各類捷徑的資料夾，乾脆就自己自製、只標示文字的圖示資料夾即可。關於如何自製 Icon 圖示，這一套免費：Greenfish Icon Editor Pro，下載回來免安裝，功能又強大，非常方便。 對了，因為我是使用雙螢幕，又希望兩台螢幕都各自有不同的桌面背景，這個工具程式就可以作到：DisplayFusion。免費版是可以支援每個桌面各自都可以有不同的背景；而付費版則功能當然更強，可以定時隨機更換桌面，還可以支援包括從 Flickr 網路相簿讀取圖片影像。 每一次系統與桌面的整理，就好像家裡的大掃除一般，門面乾淨且煥然一新。同時當然也希望能藉此，轉變個工作心情，讓處理效率更好些、更有做事的慾望。 ^^ ※ 延伸參考 　o 我的桌上型電腦系統又重裝了~ (2009-01)。 延伸閱讀：Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統 Ubuntu 9.10 64-bit+ XBMC [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system' rel='bookmark' title='Permanent Link: Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統'>Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>又到了差不多作業系統需要重新安裝的時候了。當應用程式執行效率不佳，以及不穩定、當機(重開機)現象增多時，就是該執行這個動作了。</p>
<p>將磁碟切分為兩個邏輯磁區的好處就是，只是將系統磁區格式化 (format)，再重灌作業系統即可。至於資料則是早已集中在 Disk-D，所以連事先備份都不需要，當然，多少還是要檢查注意一下，系統磁區原來的規劃，是否已經把如文件、桌面、我的最愛等位置早已轉移到 Disk-D 了。以及，是否有一些免安裝的綠色軟體，還有應用程式的設定資訊等，仍是需要先備份起來。總之，重灌系統對於不清楚 Windows-based 檔案結構的人，還是最好先給全備份下來比較保險。</p>
<p>重新安裝的過程就不提了。反正，包括安裝好作業系統、執行線上系統更新、下載與安裝必要的驅動程式 (drivers)。一般到此我就會利用 Image 的備份軟件將系統磁區給整個備份下來，耗費儲存空間大約 15~20 GB，還好；然後開始陸續安裝必要的應用程式，包括文書處理、多媒體、工具類，當然還有重要的遊戲等，這樣大概斷續下來，大概是花上一天左右，就可以有個全新安裝的穩定系統與工作環境。</p>
<p>除了當然對系統要做個最佳化的調教外，我總是不喜歡桌面有一大堆捷徑圖示有的沒的，所以，我利用之前從國外註冊購買的 <a target="_blank" href="http://www.kenming.idv.tw/esfesmao_a_arpa_aile_a_a_a_c_ayfamya_ma_">True Launch Bar</a>，將所有的捷徑整理放至快捷執行工具列 (quick launch toolbar)內，整個桌面乾淨素雅，只留下一個資源回收筒而已。<br />
<a href="http://www.flickr.com/photos/kenming_wang/4859120523/" title="Flickr 上 kenming_wang 的 Kenming's Desktop (2010/08/04)"><img src="http://farm5.static.flickr.com/4143/4859120523_4bd7c8db0f.jpg" width="500" height="268" alt="Kenming's Desktop (2010/08/04)" /></a></p>
<p><span id="more-1578"></span><br />
True Launch Bar 是我最鍾愛的桌面整理工具了。它完全利用快捷工具列，所以幾乎不會耗費系統資源。而且還有一些不錯的小工具 (widget)，例如我總是會在工具列上擺上一個可更換 skin 的小時鐘，以及一個喇叭的音量控制拉條，方便得很。<br />
<a href="http://www.flickr.com/photos/kenming_wang/4862634885/" title="Flickr 上 kenming_wang 的 使用 True Launch Bar 快捷列"><img src="http://farm5.static.flickr.com/4140/4862634885_fc078b8547.jpg" width="500" height="198" alt="使用 True Launch Bar 快捷列" /></a></p>
<p>另外，為了整理方便也不想要太花俏，所以收納各類捷徑的資料夾，乾脆就自己自製、只標示文字的圖示資料夾即可。關於如何自製 Icon 圖示，這一套免費：<a target="_blank" href="http://greenfish.xtreemhost.com/downloads.php">Greenfish Icon Editor Pro</a>，下載回來免安裝，功能又強大，非常方便。</p>
<p>對了，因為我是使用雙螢幕，又希望兩台螢幕都各自有不同的桌面背景，這個工具程式就可以作到：<a target="_blank" href="http://www.displayfusion.com/">DisplayFusion</a>。免費版是可以支援每個桌面各自都可以有不同的背景；而付費版則功能當然更強，可以定時隨機更換桌面，還可以支援包括從 Flickr 網路相簿讀取圖片影像。</p>
<p>每一次系統與桌面的整理，就好像家裡的大掃除一般，門面乾淨且煥然一新。同時當然也希望能藉此，轉變個工作心情，讓處理效率更好些、更有做事的慾望。 ^^</p>
<p>※ 延伸參考<br />
　o <a target="_blank" href="http://www.kenming.idv.tw/a_c_ai_ac_a_e_re_bcsrcmpa_e_ep_ao_2009_01">我的桌上型電腦系統又重裝了~ (2009-01)</a>。</p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system' rel='bookmark' title='Permanent Link: Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統'>Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/os_reinstall_and_desktop_rearrange_201008/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[WordPress] 幾個主要版面功能的設定備忘註記</title>
		<link>http://www.kenming.idv.tw/wordpress_major_functions_setup_note</link>
		<comments>http://www.kenming.idv.tw/wordpress_major_functions_setup_note#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:51:23 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1536</guid>
		<description><![CDATA[一、側邊欄列出 RSS 訂閱方式 ： 跟隨潮流與為了網站訂閱功能的可攜性，所以也申請了 "Google FeedBurner"，讓自己的網站有一個唯一 (unique)的訂閱網址。 透過 FeedBurner 訂閱的方式有兩種： 以 Email 訂閱，或直接以 RSS 閱讀器訂閱。 另外我仍提供了 wordpress 預設的 RSS 訂閱方式。兩者的差別好像 (我也不清楚)是後者在遇到 {閱讀全文} 的標籤前，都可以列出本文的內容，而不像 feedburner 需事先設定本文的長度。 我的 RSS 訂閱網址為： 　o FeedBurner: http://feeds.feedburner.com/kenming 。 　o WordPress: http://www.kenming.idv.tw/feed 。 實現的效果參考下圖： 二、側邊欄實現 Tab 標籤內容切換： 參考這一篇：利用jQuery實現側邊欄Tab切換效果 。 我在 Tab 標籤實現了三個主要的效果： 本頁文章, 熱門文章, 隨機文章。 本頁文章：列出目前頁面上所有文章標題的列表。 &#60;ul&#62; &#60;?php $limit = get_option&#40;'posts_per_page'&#41;; [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/redesign_wordpress_them_layout' rel='bookmark' title='Permanent Link: 重新設計本站 WordPress Theme 版面'>重新設計本站 WordPress Theme 版面</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<h3>一、側邊欄列出 RSS 訂閱方式 ：</h3>
<p>跟隨潮流與為了網站訂閱功能的可攜性，所以也申請了 "<a target="_blank" href="http://www.feedburner.com/">Google FeedBurner</a>"，讓自己的網站有一個唯一 (unique)的訂閱網址。</p>
<p>透過 FeedBurner 訂閱的方式有兩種： 以 Email 訂閱，或直接以 RSS 閱讀器訂閱。</p>
<p>另外我仍提供了 wordpress 預設的 RSS 訂閱方式。兩者的差別好像 (我也不清楚)是後者在遇到 {閱讀全文} 的標籤前，都可以列出本文的內容，而不像 feedburner 需事先設定本文的長度。</p>
<p>我的 RSS 訂閱網址為：<br />
　o FeedBurner: <a target="_blank" href="http://feeds.feedburner.com/kenming">http://feeds.feedburner.com/kenming</a> 。<br />
　o WordPress: <a target="_blank" href="http://www.kenming.idv.tw/feed">http://www.kenming.idv.tw/feed</a> 。</p>
<p>實現的效果參考下圖：<br />
<img src="wp-content/medias/kenming_blog_sidebar_rss_20100727.png" alt="Sidebar RSS 訂閱提供" /></p>
<p><span id="more-1536"></span></p>
<h3>二、側邊欄實現 Tab 標籤內容切換：</h3>
<p>參考這一篇：<a target="_blank" href="http://www.ifenwen.com/wordpress-sidebar-tab-switch-with-jquery/">利用jQuery實現側邊欄Tab切換效果 </a>。</p>
<p>我在 Tab 標籤實現了三個主要的效果： 本頁文章, 熱門文章, 隨機文章。</p>
<ol>
<li>本頁文章：列出目前頁面上所有文章標題的列表。

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_per_page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$args</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_per_page'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$limit</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'paged'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$paged</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to 
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&amp;nbsp;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(1)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(%)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;br /&gt;&lt;/li&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>endif<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

</li>
<li>
熱門文章：列出網誌上最多人閱讀的文章標題列表。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_most_viewed<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>** 這只是調用 "<a target="_blank" href="http://fantasyworld.idv.tw/programs/wp_postviews_plus">WP-PostViews Plus</a>" plugin 的內建函式功能，所以需要先安裝此外掛。 **
</li>
<li>隨機文章：從所有文章隨機列出前 N 篇的標題列表。

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul class=&quot;hide&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'showposts'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'rand'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$customQuery</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$customQuery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$customQuery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  	<span style="color: #000088;">$customQuery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  	&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&amp;nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(1)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'(%)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;br /&gt;&lt;li&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>	<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

</li>
</ol>
<p>實現後的 TAB 標籤切換效果如下圖：<br />
<img src="wp-content/medias/kenming_blog_sidebar_tab-list_20100727.png" alt="Sidebar 實現 TAB 標籤切換功能" /></p>
<h3>三、側邊欄實現隨機廣告 AD：</h3>
<p>我希望每次載入網頁時，都能在所設定的 "Blog AD" 區塊 (block)內隨機載入廣告的鏈結 (或圖片)。</p>
<p>查看許多人的做法是利用 Javascript 先一次載入所有的圖片再定時隨機切換。我比較不喜歡這樣的作法，因為若是要切換的圖片很多，一次載入就會花許多的時間下載圖片。</p>
<p>後來找到已有 "<a target="_blank" href="http://www.datafeedr.com/random-ads-plugin/">Datafeedr Random Ads V2</a>" 這個 plugin，可以先在後台先設定好要展示的文字或圖片，然後會隨著每一次網頁的呼叫更新而隨機載入不同的內容。</p>
<p>設定非常簡單，參考該 plugin 的說明即可。除了它內建一個 wordpress widget，在後台拉到側邊欄即可以使用外，也可以針對每一個它所設定的 "群組 (Groups)"，一一載入至自行所客製化的區塊內容內。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
&lt;li id=&quot;ad_opus&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dfrads'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> dfrads<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'5624768'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/li&gt;&lt;/ul&gt;</pre></div></div>

<p>"Blog AD" Widget 目前所呈現的效果如下圖：<br />
<img src="wp-content/medias/kenming_blog_sidebar_adsense_20100727.png" alt="Sidebar Blog AD 隨機載入廣告圖片" /></p>
<h3>四、單一文章內的迴響 (comment)區塊，以 Tab 標籤區隔 "引用" 與 "迴響"：</h3>
<p>參考這一篇：<a target="_blank" href="http://www.xiaoxiaozi.com/2009/06/25/960/"> inove js改版之 ctrl enter提交，switchtab函數重寫</a>。</p>
<p>作者改以 jQuery (wordpress 內建) 實現 Tab 標籤切換功能，實作程式碼簡潔效果也佳。</p>
<p>實作後所呈現的效果如下圖：<br />
<img src="wp-content/medias/kenming_blog_comment_tab_20100727.png" alt="以 Tab 標籤區隔 引用 與 迴響" /></p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/redesign_wordpress_them_layout' rel='bookmark' title='Permanent Link: 重新設計本站 WordPress Theme 版面'>重新設計本站 WordPress Theme 版面</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/wordpress_major_functions_setup_note/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重新設計本站 WordPress Theme 版面</title>
		<link>http://www.kenming.idv.tw/redesign_wordpress_them_layout</link>
		<comments>http://www.kenming.idv.tw/redesign_wordpress_them_layout#comments</comments>
		<pubDate>Tue, 27 Jul 2010 07:59:57 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1533</guid>
		<description><![CDATA[<br />
<b>Warning</b>:  array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>287</b><br />
<br />
<b>Warning</b>:  join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>27</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>54</b><br />
<br />
<b>Warning</b>:  array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>287</b><br />
<br />
<b>Warning</b>:  join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>27</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>54</b><br />
我在約一年半前從 b2evolution 轉移到 wordpress 平台時，採用的版面是屬於「三欄式」，左邊為內容區 (content)、右邊兩側為 sidebar 側邊欄。而且，左邊的內容區寬度可以隨 browser 水平寬度的調整而變動。 當時頗以為這樣很富有彈性，尤其在 20" 以上的螢幕上觀看瀏覽內容區的視覺效果覺得不錯。但是沒想到當我在外教課從外連回 Blog，透過筆電連接投影機投射出來時的效果才發現到甚差，因為投機影一般最多僅到 1024x768，還有一些是 800x600 的尺寸，結果導致內容區的寬度變得極為狹窄，甚至貼在其內的影像圖片無法完全顯示出來。 這次就不想變甚麼花樣了，乖乖地採用固定式的版面，以 1024x768 為基準，並將其置中。側邊攔 (sidebar)改回一個置於右側，儘量不要放上太過花俏的側邊資訊；左側則是主要內容，構成比較常見的兩欄式版面。 CSS 樣式完全自己來、重新再寫過。不過在整個版面設計的期間，我起碼參考過 10數個以 wordpress 架站的部落格的版面設計。然後又委請 Cathy 的專任美工幫我設計了一個網站 Banner，除了表達出綠意清新的感覺之外，還特別放上一隻以前我網站名字 (矇矇的秘密基地)的黃金鼠卡通主角。 這次整個版面的色調期能表達以 "禪 (Zen)" 的意境為主，背景色以乳白色為底、框線則以土金黃色為線條。儘量能表達出整個網站的簡單、素雅為主。在此也貼個 screenshot 作為紀念。 ※ 延伸參考 　o Kenming's 三欄式版面 css template。 目前沒有相關連的文章.


目前沒有相關連的文章.]]></description>
			<content:encoded><![CDATA[<br />
<b>Warning</b>:  array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>287</b><br />
<br />
<b>Warning</b>:  join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>27</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/hsdctw/public_html/kenming.idv.tw/wp-content/plugins/yet-another-related-posts-plugin/magic.php</b> on line <b>54</b><br />
<p>我在約一年半前從 b2evolution 轉移到 wordpress 平台時，採用的版面是屬於「三欄式」，左邊為內容區 (content)、右邊兩側為 sidebar 側邊欄。而且，左邊的內容區寬度可以隨 browser 水平寬度的調整而變動。</p>
<p>當時頗以為這樣很富有彈性，尤其在 20" 以上的螢幕上觀看瀏覽內容區的視覺效果覺得不錯。但是沒想到當我在外教課從外連回 Blog，透過筆電連接投影機投射出來時的效果才發現到甚差，因為投機影一般最多僅到 1024x768，還有一些是 800x600 的尺寸，結果導致內容區的寬度變得極為狹窄，甚至貼在其內的影像圖片無法完全顯示出來。</p>
<p>這次就不想變甚麼花樣了，乖乖地採用固定式的版面，以 1024x768 為基準，並將其置中。側邊攔 (sidebar)改回一個置於右側，儘量不要放上太過花俏的側邊資訊；左側則是主要內容，構成比較常見的兩欄式版面。</p>
<p>CSS 樣式完全自己來、重新再寫過。不過在整個版面設計的期間，我起碼參考過 10數個以 wordpress 架站的部落格的版面設計。然後又委請 Cathy 的專任美工幫我設計了一個網站 Banner，除了表達出綠意清新的感覺之外，還特別放上一隻以前我網站名字 (矇矇的秘密基地)的黃金鼠卡通主角。</p>
<p>這次整個版面的色調期能表達以 "禪 (Zen)" 的意境為主，背景色以乳白色為底、框線則以土金黃色為線條。儘量能表達出整個網站的簡單、素雅為主。在此也貼個 screenshot 作為紀念。</p>
<p><a href="http://www.flickr.com/photos/kenming_wang/4833175625/" title="Flickr 上 kenming_wang 的 kenming_wordpress_blog_screenshot_20100727"><img src="http://farm5.static.flickr.com/4111/4833175625_bab276de54.jpg" width="500" height="314" alt="kenming_wordpress_blog_screenshot_20100727" /></a></p>
<p>※ 延伸參考<br />
　o <a target="_blank" href="http://www.kenming.idv.tw/kenming-blog-3columns-css-layout-template">Kenming's 三欄式版面 css template</a>。</p>


<p>目前沒有相關連的文章.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/redesign_wordpress_them_layout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統</title>
		<link>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system</link>
		<comments>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system#comments</comments>
		<pubDate>Thu, 25 Feb 2010 11:13:37 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[應用軟體使用分享]]></category>
		<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[ION]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1340</guid>
		<description><![CDATA[主要參考文件： 　o HOW-TO install XBMC for Linux on Ubuntu。 　o Complete &#038; Easy XBMC Install script for ION Based Systems。 (** 下列所有操作，均是以 xbmc user account 來操作 **) 因為按照上列 Wiki 文件直接下達 apt-get 安裝 XBMC 怪怪的，總是會出現一些 "Index Error" 之類的錯誤訊息，所以我改採先新增 XBMC 儲庫 (repository)與 PPA 的做法。 打開 Desktop → System → Administration → Software Sources，點選 [Third Party Sofware]，新增下列儲庫位置： deb [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統'>Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>主要參考文件：<br />
　o <a target="_blank" href="http://wiki.xbmc.org/index.php?title=HOW-TO_install_XBMC_for_Linux_on_Ubuntu,_a_Step-by-Step_Guide">HOW-TO install XBMC for Linux on Ubuntu</a>。<br />
　o <a target="_blank" href="http://forum.xbmc.org/showthread.php?t=69753">Complete &#038; Easy XBMC Install script for ION Based Systems</a>。</p>
<p>(** 下列所有操作，均是以 xbmc user account 來操作 **)</p>
<p>因為按照上列 Wiki 文件直接下達 apt-get 安裝 XBMC 怪怪的，總是會出現一些 "Index Error" 之類的錯誤訊息，所以我改採先新增 XBMC 儲庫 (repository)與 PPA 的做法。</p>
<ul>
<li>
打開 Desktop → System → Administration → Software Sources，點選 [Third Party Sofware]，新增下列儲庫位置：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>ppa.launchpad.net<span style="color: #000000; font-weight: bold;">/</span>team-xbmc<span style="color: #000000; font-weight: bold;">/</span>ppa<span style="color: #000000; font-weight: bold;">/</span>ubuntu karmic main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ppa.launchpad.net<span style="color: #000000; font-weight: bold;">/</span>team-xbmc<span style="color: #000000; font-weight: bold;">/</span>ppa<span style="color: #000000; font-weight: bold;">/</span>ubuntu karmic main</pre></div></div>

</li>
<li>新增 PPA Keys。打開 Terminal，輸入下列指令：

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> adv <span style="color: #660033;">--recv-keys</span> <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com 0x6d975c4791e7ee5e</pre></div></div>

</li>
<li>安裝 xbmc。打開 Terminal，輸入下列指令：

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xbmc xbmc-standalone
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

</li>
</ul>
<p><span id="more-1340"></span><br />
XBMC 安裝完畢後，強烈建議可以再安裝 XBMC SVN Repo 插件，它可以是其它插件的插件，安裝完畢後，XBMC 即可自動搜尋最新各類功能的插件，例如透過 Flickr 瀏覽照片、透過 YouTube 觀看影片等。</p>
<ul>
<li>下載 XBMC SVC Repo <a href="http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip">插件壓縮檔</a>。</li>
<li> 解壓縮至： ~/.xbmc/plugins/programs 路徑下。</li>
<li>啟動 XBMC 後，在選單中選擇 Programs → program plugins 內，即可選擇 SVN Repo Installer 插件，然後以此可再選擇新增其它類型的插件，如 Video。</li>
</ul>
<p>一些必要的 Ubuntu 硬體調教 for XBMC。諸如 Nvidia 顯卡驅動、聲音設定、MCE/USB 遙控器設定、CPU &#038; GPU 溫度感應 (Temperature Sensors)、Wifi 無線設定等。 透過執行下列 Script，即可啟動安裝選單，並達成自動化的安裝 (在 "Hardware Options" 內可自行選擇欲安裝的選項)。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>showmix<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>installer<span style="color: #000000; font-weight: bold;">/</span>xbmc-installer.sh; <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x xbmc-installer.sh; <span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>xbmc-installer.sh</pre></div></div>

<p>該安裝選單亦可選擇變更 Boot Screen, 藍光播放等功能。可在 "XBMC Options" 內選擇設定安裝的項目。</p>
<p><img src="http://farm5.static.flickr.com/4008/4387262328_6e9d8ca6f1.jpg" alt="XBMC Live Setup for Ubuntu 9.10" /></p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統'>Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統</title>
		<link>http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion</link>
		<comments>http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:18:16 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[ION]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nvidia]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1339</guid>
		<description><![CDATA[參考： XBMCBuntu: Install "restricted drivers" if you have an NVIDIA or ATI/AMD GPU。 Ubuntu's repository 並沒有放入最新的 Nvidia 驅動程式 (截至目前為止這邊的 Nvidia 驅動版本為 185)，要下載最新版本的，那當然就要到 Nvidia 的儲庫 (repository)來找。 下列指令除了新增 Nvidia 儲庫外，同時也安裝了最新版本的驅動程式。 新增 Nvidia 官方儲庫並搜尋最新釋出 (release)的版本。 &#62; sudo add-apt-repository ppa:nvidia-vdpau/ppa &#62; sudo apt-get update &#62; apt-cache search nvidia &#124; grep source 選擇欲安裝的釋出版本。目前最新釋出為 195，隨爾後搜尋到比之更高的版號改掉即可。 &#62; sudo apt-get install nvidia-195-kernel-source nvidia-glx-195 [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>參考： <a target="_blank" href="http://wiki.xbmc.org/?title=XBMCbuntu#Install_.22restricted_drivers.22_if_you_have_an_NVIDIA_or_ATI.2FAMD_GPU">XBMCBuntu: Install "restricted drivers" if you have an NVIDIA or ATI/AMD GPU</a>。</p>
<p>Ubuntu's repository 並沒有放入最新的 Nvidia 驅動程式 (截至目前為止這邊的 Nvidia 驅動版本為 185)，要下載最新版本的，那當然就要到 Nvidia 的儲庫 (repository)來找。</p>
<p>下列指令除了新增 Nvidia 儲庫外，同時也安裝了最新版本的驅動程式。</p>
<ul>
<li>新增 Nvidia 官方儲庫並搜尋最新釋出 (release)的版本。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:nvidia-vdpau<span style="color: #000000; font-weight: bold;">/</span>ppa
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">apt-cache</span> search nvidia <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">source</span></pre></div></div>

</li>
<li>選擇欲安裝的釋出版本。目前最新釋出為 195，隨爾後搜尋到比之更高的版號改掉即可。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nvidia-<span style="color: #000000;">195</span>-kernel-source nvidia-glx-<span style="color: #000000;">195</span> nvidia-settings mesa-utils libvdpau-dev</pre></div></div>

</li>
<li>Generate an xorg.conf file

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvidia-xconfig <span style="color: #660033;">-s</span> <span style="color: #660033;">--no-logo</span> <span style="color: #660033;">--force-generate</span> <span style="color: #660033;">--output-xconfig</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></div></div>

</li>
<li>Load the NVIDIA kernel module

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe nvidia</pre></div></div>

</li>
</ul>
<p>重新啟動系統，至 Xwindow 桌面工作列，系統 → 管理 → Nvidia X Server Settings 查看驅動程式版本。截至目前為止 (02/23)，最新釋出的版號為 195.36.03。</p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update' rel='bookmark' title='Permanent Link: Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)'>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</a></li>
<li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 64-bit+ XBMC 簡單安裝備註@ION 系統 (持續更新)</title>
		<link>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update</link>
		<comments>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:29:19 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[應用軟體使用分享]]></category>
		<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[ION]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1336</guid>
		<description><![CDATA[＊＊ 本篇文章僅是安裝簡易備註，目的是利用 Ubuntu + XBMC 系統打造客廳的多媒體 HTPC 用。使用的硬體設備為 華擎 ASRock ION 330 HT-BD。 關於 Ubuntu 9.10 64-bit Desktop 安裝： 只要下載 官方 ISO 文件，燒錄為 CD/DVD 後，一步一步安裝，非常簡單。(Ubuntu Desktop 堪稱是 Linux 系列超傻瓜級的安裝系統。 若是進階使用者，則可以參考此篇： How to Install minimall Ubuntu properly。利用文字模式個別設定較細部的項目，也可以過濾掉如 OpenOffice 應用軟件的安裝 (傻瓜模式則無法選擇)。 安裝後的首次設定與更新。 把不必要的應用程式移除 (利用 Ubuntu Software Center)；設定網路；至更新管理員更新系統；至硬體驅動程式啟用 (Activate) Nvidia 所提供的驅動程式，如此才能展現出 ION 的顯卡效能。 (後兩個步驟需要重新啟動系統) 安裝 Remastersys 套件。可以快速備份整個系統、製作成為 Live [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>＊＊ 本篇文章僅是安裝簡易備註，目的是利用 Ubuntu + XBMC 系統打造客廳的多媒體 HTPC 用。使用的硬體設備為 <a target="_blank" href="http://www.kenming.idv.tw/purchase_asrock-ion-330ht-bd_htpc">華擎 ASRock ION 330 HT-BD</a>。</p>
<ul>
<li>關於 Ubuntu 9.10 64-bit Desktop 安裝：
<p>只要下載 <a target="_blank" href="http://www.ubuntu.com/getubuntu/download">官方 ISO 文件</a>，燒錄為 CD/DVD 後，一步一步安裝，非常簡單。(Ubuntu Desktop 堪稱是 Linux 系列超傻瓜級的安裝系統。</p>
<p>若是進階使用者，則可以參考此篇： <a target="_blank" href="http://forum.xbmc.org/showpost.php?p=508078postcount=224">How to Install minimall Ubuntu properly</a>。利用文字模式個別設定較細部的項目，也可以過濾掉如 OpenOffice 應用軟件的安裝 (傻瓜模式則無法選擇)。
</li>
<li>安裝後的首次設定與更新。<br />
把不必要的應用程式移除 (利用 Ubuntu Software Center)；設定網路；至更新管理員更新系統；至硬體驅動程式啟用 (Activate) Nvidia 所提供的驅動程式，如此才能展現出 ION 的顯卡效能。 (後兩個步驟需要重新啟動系統)</li>
<li>安裝 Remastersys 套件。可以快速備份整個系統、製作成為 Live CD/DVD 成為還原光碟。<br />
安裝與設定可參考此篇： <a href="http://funp.com/t1423294#p=1423294">如何利用 Remastersys 製作快速還原光碟 (Ubuntu 9.10) </a>。</li>
<li>更新與安裝 Nvidia 驅動程式： <a target="_blank" href="http://www.kenming.idv.tw/ubuntu_9_10-install-nvidia-driver_on_ion">Ubuntu 9.10 安裝最新版本 Nvidia Driver on ION 系統</a>。
<li>
<li><a target="_blank" href="http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330">[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統。</a> (如果經過上一個更新顯卡步驟而有聲音的話，即不需此步驟。)</li>
<li><a target="_blank" href="http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx">Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a>。</li>
<p><span id="more-1336"></span></p>
<li>安裝影音解碼器與 mplayer，參考此篇：<a target="_blank" href="http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-9-10-karmic.html"> Install Mplayer and Multimedia Codecs in Ubuntu 9.10 (Karmic)</a>。
<p>從 Terminal 輸入下列指令：</p>
<ol>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">mplayer</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-mplayer</pre></div></div>

</li>
<li>新增 Medibuntu 儲庫 (repository) 與 GPG Key。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.medibuntu.org<span style="color: #000000; font-weight: bold;">/</span>sources.list.d<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span>lsb_release -cs<span style="color: #7a0874; font-weight: bold;">&#41;</span>.list  <span style="color: #660033;">--output-document</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list.d<span style="color: #000000; font-weight: bold;">/</span>medibuntu.list
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">-q</span> update
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">--yes</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">--allow-unauthenticated</span> <span style="color: #c20cb9; font-weight: bold;">install</span> medibuntu-keyring
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">-q</span> update</pre></div></div>

</li>
<li>安裝 Codecs (底下為 for 64-bit, 若為 i386 平台，則下列 w64 改 w32 即可)。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> w64codecs libdvdcss2</pre></div></div>

</li>
<li>安裝 mplayer plugin for Firefox.

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mozilla-mplayer</pre></div></div>

</li>
</ol>
</li>
<li>Unlock CD/DVD 光碟機鎖住無法跳出(Eject)。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;echo dev.cdrom.lock=0 &gt;&gt;/etc/sysctl.conf&quot;</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> sysctl dev.cdrom.lock=<span style="color: #000000;">0</span></pre></div></div>

</li>
<li>安裝 XBMC，參考：<br />
　o <a target="_blank" href="http://www.kenming.idv.tw/ubuntu-9-10_xbmc_install_note_on_ion_system">Ubuntu 9.10 XBMC 安裝步驟摘要 on ION 系統</a>。<br />
　o <a target="_blank" href="http://wiki.xbmc.org/?title=XBMCbuntu">Wiki: XBMCbuntu</a>。<br />
　o <a target="_blank" href="http://wiki.xbmc.org/index.php?title=HOW-TO_install_XBMC_for_Linux_on_Ubuntu,_a_Step-by-Step_Guide">HOW-TO install XBMC for Linux on Ubuntu</a> 。<br />
　o <a target="_blank" href="http://forum.xbmc.org/showthread.php?t=69753">Complete &#038; Easy XBMC Install script for ION Based Systems</a>。
</li>
</ul>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330' rel='bookmark' title='Permanent Link: [修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統'>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/ubuntu-9-10_xbmc_simple_install_continuous_update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[修正] Ubuntu 9.10 無法透過 HDMI 輸出聲音的問題 for ION 系統</title>
		<link>http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330</link>
		<comments>http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330#comments</comments>
		<pubDate>Mon, 22 Feb 2010 09:17:11 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[應用軟體使用分享]]></category>
		<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[ION]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1334</guid>
		<description><![CDATA[很奇怪，Ubuntu 9.10 於 ION-based 系統安裝完畢後，透過 HDMI 連結電視 (TV)僅能輸出視訊，但卻無法輸出音訊。估推是預設的 ALSA 音訊系統無法正確辨識位於 Nvidia 顯卡內的音訊晶片。爬文研究後，透過更新 Alsa 音訊驅動程式與更改一些設定，即可順暢自 HDMI 輸出至電視的喇叭聲效 (連結音響擴大器亦然)。 更新 Alsa 驅動程式至最新版。9.10 版本預設的 Alsa 驅動版本為 1.0.20，透過新增儲件庫 (repository)的方式，可以更新至最新版本。打開 Terminal，輸入下列指令： &#62; sudo add-apt-repository ppa:ricotz/unstable &#62; sudo apt-get update &#38;&#38; sudo apt-get upgrade 更新後，可以把 Alsa 驅動升級至 1.0.22 版本 (截至目前為止)。 輸入下列指令，啟動 Alsa-Mixer 畫面，解除 HDMI 靜音 (unmute)。 &#62; alsamixer 請注意，HDMI 埠名稱為 "S/PDIF [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>很奇怪，Ubuntu 9.10 於 ION-based 系統安裝完畢後，透過 HDMI 連結電視 (TV)僅能輸出視訊，但卻無法輸出音訊。估推是預設的 ALSA 音訊系統無法正確辨識位於 Nvidia 顯卡內的音訊晶片。爬文研究後，透過更新 Alsa 音訊驅動程式與更改一些設定，即可順暢自 HDMI 輸出至電視的喇叭聲效 (連結音響擴大器亦然)。</p>
<ol>
<li>更新 Alsa 驅動程式至最新版。9.10 版本預設的 Alsa 驅動版本為 1.0.20，透過新增儲件庫 (repository)的方式，可以更新至最新版本。打開 Terminal，輸入下列指令：

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:ricotz<span style="color: #000000; font-weight: bold;">/</span>unstable
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>更新後，可以把 Alsa 驅動升級至 1.0.22 版本 (截至目前為止)。</li>
<li>輸入下列指令，啟動 Alsa-Mixer 畫面，解除 HDMI 靜音 (unmute)。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> alsamixer</pre></div></div>

<p>請注意，HDMI 埠名稱為 "S/PDIF 1"，使用左右鍵移到該區塊後按下 "m" 鍵即可出現 "OO"，如此就可以解除靜音，參考下圖。<br />
<a href="http://www.flickr.com/photos/kenming_wang/4377921793/" title="Flickr 上 kenming_wang 的 Ubuntu 9.10 unmute the HDMI Mixer"><img src="http://farm3.static.flickr.com/2684/4377921793_25e235549a.jpg" width="500" height="309" alt="Ubuntu 9.10 unmute the HDMI Mixer" /></a></li>
<li>儲存 Alsa Mixer 的設定，輸入下列指令：

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> alsactl store</pre></div></div>

</li>
<li>新增並編輯 /etc/asound.conf 檔案。

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>asound.conf</pre></div></div>

<p>填入下列內容並存檔。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Tweak for HDMI sound ON</span>
pcm.<span style="color: #000000; font-weight: bold;">!</span>default <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">type</span> plug
   slave <span style="color: #7a0874; font-weight: bold;">&#123;</span>
       pcm <span style="color: #ff0000;">&quot;hdmi&quot;</span>
   <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

</li>
</ol>
<p>設定完畢後，記得要到 系統→偏好設定→聲音 更改硬體裝置為 HDMI 輸出。<br />
重新啟動 (Reboot)系統，登入後就會有聲音透過 HDMI 埠輸出至電視的喇叭了。</p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc' rel='bookmark' title='Permanent Link: 總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了'>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/fix_ubuntu-910_hdmi_no-sound_under_ion-330/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>總算可以讓 Ubuntu 9.10 XBMC 播放藍光(Blu-ray)碟片了</title>
		<link>http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc</link>
		<comments>http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc#comments</comments>
		<pubDate>Fri, 19 Feb 2010 16:35:50 +0000</pubDate>
		<dc:creator>Kenming Wang</dc:creator>
				<category><![CDATA[應用軟體使用分享]]></category>
		<category><![CDATA[系統(含架站)安裝與設定]]></category>
		<category><![CDATA[Blu-ray]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://www.kenming.idv.tw/?p=1332</guid>
		<description><![CDATA[先參考下圖 (電視為 Sony 40" 40Z5500 LCD)，這是我利用 AsRock ION 330 HT-BD 準系統，安裝 Ubuntu 9.10 64-bit + XBMC 系統，首次在其 Linux 環境下安裝設定成功，可以正常順暢地播放購買自「百視達」具版權保護的藍光碟片 (BD+ DISC) － 2012。真有些感動，特此作個紀念~ 話說，我那台 Asrock ION 330 HT-BD 準系統是可以讀取藍光碟片 (Blu-ray Disc)的。所以當我安裝好 Ubuntu 9.10 後，還興沖沖的到百事達購買了一片 "2012" 原版藍光碟片 (要價 NT$1100)，然後回家塞進 BD Combo 機後，系統卻跳出個訊息框說明無法辨識該光碟片格式。 實在令人掃興，原來在 PC 上要能播放藍光格式的碟片，有諸多限制，包括除了要有完整的編碼 (codec)外，播放器 (Player)要有取得 BD 聯盟的授權，才能播放具有版權保護的藍光碟片。而在 Windows-based 系統下，PowerDVD/WinDVD 均有取得授權，所以只要購買該商業軟件，即可以正常地在 Windows 作業系統環境下播放具保護的 (BD+)藍光碟片。 但是在 [...]


延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>先參考下圖 (電視為 Sony 40" 40Z5500 LCD)，這是我利用 AsRock ION 330 HT-BD 準系統，安裝 Ubuntu 9.10 64-bit + XBMC 系統，首次在其 Linux 環境下安裝設定成功，可以正常順暢地播放購買自「百視達」具版權保護的藍光碟片 (BD+ DISC) － 2012。真有些感動，特此作個紀念~<br />
<a href="http://www.flickr.com/photos/kenming_wang/4370782182/" title="Flickr 上 kenming_wang 的 藍光影片播放 by Ubuntu XBMC"><img src="http://farm3.static.flickr.com/2687/4370782182_61e03d3df7.jpg" width="500" height="322" alt="藍光影片播放 by Ubuntu XBMC" /></a></p>
<p>話說，我那台 Asrock ION 330 HT-BD 準系統是可以讀取藍光碟片 (Blu-ray Disc)的。所以當我安裝好 Ubuntu 9.10 後，還興沖沖的到百事達購買了一片 "2012" 原版藍光碟片 (要價 NT$1100)，然後回家塞進 BD Combo 機後，系統卻跳出個訊息框說明無法辨識該光碟片格式。</p>
<p>實在令人掃興，原來在 PC 上要能播放藍光格式的碟片，有諸多限制，包括除了要有完整的編碼 (codec)外，播放器 (Player)要有取得 BD 聯盟的授權，才能播放具有版權保護的藍光碟片。而在 Windows-based 系統下，PowerDVD/WinDVD 均有取得授權，所以只要購買該商業軟件，即可以正常地在 Windows 作業系統環境下播放具保護的 (BD+)藍光碟片。</p>
<p>但是在 Ubuntu Linux-based 的開放系統，BD 聯盟並沒有授權給 Open Source 社群准以播放 BD+ 碟片 (但請注意 Ubuntu 9.10 內建的 mplayer 倒是可以正常播放未具保護 Blu-ray 格式的檔案)，所以 Linux 系統下要能播放 BD+ 碟片，相當相當的麻煩。參考 Ubuntu Forum 這一篇：<a target="_blank" href="https://help.ubuntu.com/community/RestrictedFormats/BluRayAndHDDVD">Playing Blu-Ray and HD DVD Video</a>，約略可以知道，目前在 Linux 系統下，是採用 "RIP" 的方式，應該也算是破解吧，先把碟片的內容解碼後再存放至硬碟的緩衝區，然後再經由串流 (stream)的方式讓一般的播放器 (如 mplayer)可以播放已經解碼過的藍光影片。</p>
<p><span id="more-1332"></span><br />
依照該篇文章，發現可以安裝 <a target="_blank" href="http://www.makemkv.com/">MakeMKV</a> 的影音轉換軟件，就可以把 BD+ 碟片轉成 MKV 的開放格式。原來我是已經有下載並經由編譯 (compile)的程序，確實可以執行這個 MakeMKV 軟件。但是，我在 RIP "2012" BD+ 碟片，再透過 mplayer 播放出來，解碼速度非常之慢，就好像成為慢動作重播那樣的格放效果，根本無法接受。</p>
<p>本想說搞得這麼麻煩，吃力不討好，浪費時間。所以就打算先不要去想要在 Ubuntu 能播放 BD+ 碟片了，屆時再等一陣子，外接的藍光 Player 降價後再來添購就好了 (就好像當時 VCD 與 DVD 世代轉換時，DVD 一台都要上萬元；但等普及後，價錢即大幅的降下來)。</p>
<p>結果我今天正在查關於 XBMC 音效設定相關的討論串時，不經意看到這篇：<a target="_blank" href="http://forum.xbmc.org/showthread.php?t=69753"> Complete &#038; Easy XBMC Install script for ION Based Systems</a>。作者真乃神人，他也是正巧採用 AsRock ION 330 HT 準系統，作為 HTPC 之用。而為了方便安裝與設定 Ubuntu + XBMC，他都一股腦的寫成安裝的 script 檔案並持續維護中。而其中他就整理了在 XBMC 下播放藍光(Blu-ray)的功能。</p>
<p>抱著姑且一試的心情，在 Console 執行下列的安裝指令 (我的 XBMC 啟動是創建了一個 "xbmc" 的使用者來管理，所以需要先以該使用者帳號登入)：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>showmix<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>installer<span style="color: #000000; font-weight: bold;">/</span>xbmc-installer.sh; <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x xbmc-installer.sh; <span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>xbmc-installer.sh</pre></div></div>

<p>執行後，會自動至網路下載最新釋出的安裝 script 檔；然後會出現安裝/設定視窗，選擇 XBMC Setup Options → Setup Bluray Playbak，即可以自動化完成安裝。<br />
<a href="http://www.flickr.com/photos/kenming_wang/4370757292/" title="Flickr 上 kenming_wang 的 XBMC BluRay Playback install on Ubuntu."><img src="http://farm5.static.flickr.com/4048/4370757292_857c2c7da9.jpg" width="500" height="384" alt="XBMC BluRay Playback install on Ubuntu." /></a></p>
<p>原來，它也是安裝 MakeMKV 啦，只是可能又經過一些設定調教等，而使之成為插件 (Plugin)的方式，能在 XBMC 的環境下播放藍光碟片。</p>
<p>然後啟動 XBMC，放入 BD 藍光碟片，到 Video 選單，會發現列表內有 Video 插件，點選後就會看到有個 BluRay 的選項，點擊執行，等個幾秒後，竟然，可以成功且順暢地播放藍光片勒！</p>
<p>原來啦，我忘記要打開顯示卡 "硬解" 的功能，所以導致播放處理異常緩慢；而 ION 的 Nvidia 均有支援 "硬解" 功能，所以解碼的處理直接就交由顯卡處理即可，如此大大地降低 CPU 的負擔。而在最新版 XBMC (9.11) 在系統設置 → 視訊選項內，就有支援 "渲染模式 (render method)"內可以啟動 "VDPAU" 的選項，如此就可以啟動硬解加速的功能。</p>
<p>播放視訊效果正常，並不致於有停頓的現象；而聲音經過 RIP 後，可以選擇 DTS 5.1, AC3 的音效，然後透過 HDMI or 光纖將聲音輸出至 5.1 聲道喇叭。畫質的確清晰許多，但是在我的 Sony 40" 40Z5500 液晶電視看，感覺偏藍色調，不知道是甚麼原因，目前也無從比較從其它藍光播放器撥出的視訊效果；而比較困擾的就是，因為是串流 (stream)的方式播出，所以若要達成快速轉前或轉後，會停上許久 (但還是可以切換 2X,4X,8X 倍速快轉)。</p>
<p>整體效果算是可以接受，而便利性則嫌麻煩了些，但也算是可以接受的程度。能在 Ubuntu 的系統內，又是執行 XBMC 還能觀看藍光碟片，已經要偷笑了 >_<</p>
<p>所以再過一陣子吧，屆時買個便宜的藍光 Player，或者買台 PS3 打電玩又可播放藍光，都絕對會比目前在電腦系統上播放藍光碟片方便太多了。</p>


<p>延伸閱讀：<ul><li><a href='http://www.kenming.idv.tw/ubuntu-server_windows-os_remote-desktop-control_by-freenx' rel='bookmark' title='Permanent Link: Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX'>Ubuntu Server 與 Windows 系統的遠端桌面遙控 by FreeNX</a></li>
<li><a href='http://www.kenming.idv.tw/ubuntu-9-10_install_mame_emulator' rel='bookmark' title='Permanent Link: Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)'>Ubuntu 9.10 安裝 MAME 懷舊電玩模擬器(SDLMAME+GMAMEUI)</a></li>
<li><a href='http://www.kenming.idv.tw/purchase_patriot_8gb_flash_for_win7_readyboost' rel='bookmark' title='Permanent Link: [敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost'>[敗家]採購 Patriot 8GB 隨身碟 for Windows 7 ReadyBoost</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.kenming.idv.tw/ubuntu-9_1_0-xbmc-setup-bluray-disc/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
