<?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>kubuntu &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/kubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 14 Mar 2024 01:38:33 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Raspberry 4 Pi + Kubuntu</title>
		<link>https://richliu.com/2019/11/01/4212/raspberry-4-pi-kubuntu/</link>
					<comments>https://richliu.com/2019/11/01/4212/raspberry-4-pi-kubuntu/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 01 Nov 2019 08:01:04 +0000</pubDate>
				<category><![CDATA[ARM]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[Raspberry pi]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=4212</guid>

					<description><![CDATA[<p>買了二塊 Raspberry 4 Pi 回來，本來是準備裝 K8s 的，但是在這之前要先跑個 ubuntu i [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/11/01/4212/raspberry-4-pi-kubuntu/">Raspberry 4 Pi + Kubuntu</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="alignright is-resized"><img decoding="async" src="https://richliu.com/wp-content/uploads/2019/11/image-1024x576.png" alt="" class="wp-image-4213" width="254" height="142" srcset="https://richliu.com/wp-content/uploads/2019/11/image-1024x576.png 1024w, https://richliu.com/wp-content/uploads/2019/11/image-300x169.png 300w, https://richliu.com/wp-content/uploads/2019/11/image-768x432.png 768w, https://richliu.com/wp-content/uploads/2019/11/image.png 1920w" sizes="(max-width: 254px) 100vw, 254px" /></figure></div>



<p>買了二塊 Raspberry 4 Pi 回來，本來是準備裝 K8s 的，但是在這之前要先跑個 ubuntu image 才對.<br /><br />我買 Raspberry 4 Pi 的時候知道他要用 5V3A 的電源，但是我沒有想到我自己沒有 5V3A 的 USB 變壓器，手機用的含 Apple 87W USB-C 變壓器都不足瓦<br />Apple 87W 只能輸出 5V 2.4A <br />最後找了一個 Sony 可以輸出 5V 2.7A 才可以用，所以如果要買 Raspberry Pi 4 的人請注意一下<br /><br />另外這一塊的外接是 Micro-HDMI，我也忘了買，記得還要加買 SD Card </p>



<span id="more-4212"></span>



<p>Image 看 Ubuntu 網站上的說明，應該給 Pi 3 的就可以用，可以到這邊<br /> <a href="http://cdimage.ubuntu.com/ubuntu/releases/18.04.3/release/" target="_blank" rel="noopener">http://cdimage.ubuntu.com/ubuntu/releases/18.04.3/release/</a> <br />下載  <a href="http://cdimage.ubuntu.com/ubuntu/releases/18.04.3/release/ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img.xz" target="_blank" rel="noopener">ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img.xz</a>  解開之後燒到 flash 上就可以用了<br /><br />我是用 <a rel="noreferrer noopener" aria-label="Raspberry Pi 4 Ubuntu Server / Desktop 18.04.3 Image (unofficial) (opens in a new tab)" href="https://jamesachambers.com/raspberry-pi-4-ubuntu-server-desktop-18-04-3-image-unofficial/" target="_blank">Raspberry Pi 4 Ubuntu Server / Desktop 18.04.3 Image (unofficial)</a> 這個網站的 Image，下載 ubuntu-18.04.3-preinstalled-server-arm64+raspi4.img 燒到 Flash 上就可以。如果你是 Windows ，可以用 <a rel="noreferrer noopener" aria-label="Refus  (opens in a new tab)" href="https://rufus.ie/" target="_blank">Refus </a> 燒錄 image 到 SD Card 上. <br /><br />將 Micro-HDMI 接到螢幕上，應該就可以看到訊息，預設的帳號和密碼是 ubuntu/ubuntu <br />看起來是 cloud-image 改的。</p>



<h4 class="wp-block-heading">Install KDE Desktop</h4>



<p>安裝 KDE Desktop 也很簡單</p>



<pre class="wp-block-preformatted">apt update
apt install -y kubuntu-desktop
/etc/init.d/sddm restart</pre>



<p>記得接上 USB Keyboard/ Mouse ，這樣應該就會看到 Login 畫面了<br /><br />我用這個 image 看起來 audio 輸出有問題，我試過耳機輸出沒有聲音，早先一點拿 Raspberry 4 Pi 用的 Game emulator 玩起來是沒有問題的。<br /><br />不過也不是真的要拿來跑 desktop ，所以無所謂<br />看 Youtube 的速度也很慢，當 Aspire One 那個年代的小電腦玩一下可以，或是架架實驗環境很好，要當 desktop 不要拿來跑大型程式應該沒問題.</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/11/01/4212/raspberry-4-pi-kubuntu/">Raspberry 4 Pi + Kubuntu</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2019/11/01/4212/raspberry-4-pi-kubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</title>
		<link>https://richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/</link>
					<comments>https://richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 05 Apr 2019 15:43:23 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gcin]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[hime]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[PyCharm]]></category>
		<category><![CDATA[中文輸入]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=3980</guid>

					<description><![CDATA[<p>這個故事有點長，先講結論好了， hime 似乎會影響某些 GTK 程式運作 我常用的是 Kubuntu 的 D [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/">Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>這個故事有點長，先講結論好了， hime 似乎會影響某些 GTK 程式運作</p>



<span id="more-3980"></span>



<p>我常用的是 Kubuntu 的 Desktop （題外話，最近有些 KDE 18.04 似乎memory leak 的問題，好像沒人修）<br />之前要在 Kubuntu 18.04 裝個中文輸入法，反正試了 gcin/fcitx/hime 等等，但是怎麼裝都裝不起來，因為跑 im-config 都沒有反應，後來不知道怎麼弄的，只有 hime 會動，因為會動還不知道原因就算了，就放在那邊</p>



<p>最近因為有寫 python 程式，有用 pycharm-community 一陣子<br />上個月的事，好像 pycharm-community 不知道是不是更新了什麼套件，然後突然就無法正確的顯示在螢幕上，如果這邊講不能啟動不太正確，因為是有啟動的<br />試過重灌，拿關鍵字餵狗，或是 Download .gz 下來直接執行都找不到問題<br /><br />百般無奈可是還是要寫 python 程式，所以就裝了另一套 Kubuntu 18.10 再裝 pycharm 就正常了</p>



<p>今天因為要用中文查點東西，覺得切來切去有點麻煩，就在 Kubuntu 18.10 下裝了 hime ，pycharm 它又不會顯示了</p>



<p>這下犯人就很明顯了，所以丟了關鍵字餵狗，就有得到正確的訊息，犯人就是 hime ，移除 hime 就好了(ref. <a href="https://www.ptt.cc/bbs/Linux/M.1540316842.A.0E8.html" target="_blank" rel="noopener">Re: [問題] Ubuntu有的程式點開啟/另存會卡住</a>)</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>GLib-GObject-WARNING **: cannot register existing type &#8216;GtkIMContext&#8217; GLib-CRITICAL **: g_once_init_leave: assertion &#8216;result != 0&#8217; failed GLib-GObject-CRITICAL **: g_type_register_dynamic: assertion &#8216;parent_type &gt; 0&#8217; failed GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion &#8216;G_TYPE_IS_OBJECT (object_type)&#8217; failed </p>
</blockquote>



<p>至於安裝了 gcin 之後再 im-config 設定 gcin 為輸入法就正常了，我也不知道怎麼一回事</p>



<p> gcin 預設是沒有我自己改的 dayi4 + 3 碼好用，所以在每個人都要有一個順手的 dayi 碼表格外，我使用自己建的<br />可以到 github 下載我用的 <a href="https://github.com/richliu/PIME/blob/bde95c3b171911bafbed24f144daa80954f409c1/python/cinbase/cin/dayi4.cin" target="_blank" rel="noopener">dayi4.cin</a>，下載完之後放到 /usr/share/gcin/table</p>



<pre class="wp-block-preformatted">cd /usr/share/gcin/table
wget https://raw.githubusercontent.com/richliu/PIME/bde95c3b171911bafbed24f144daa80954f409c1/python/cinbase/cin/dayi4.cin</pre>



<p>然後將以下這二行對調，對調完如下</p>



<pre class="wp-block-preformatted">%ename DaYi3:en;大易三码:zh_CN;大易三碼:zh; 
%cname 大易三碼</pre>



<p>移除以下這一部份，這是 OXIM 的設定，gcin 不能用 (ref. <a href="https://hyperrate.com/thread.php?tid=27625" target="_blank" rel="noopener">提供可在 gcin 使用下的大易輸入法【四碼加三碼】總共13053字！</a>)</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p> %setting begin<br />        AutoCompose &#8220;Yes&#8221;<br />        AutoUpChar &#8220;Yes&#8221;<br />        AutoFullUp &#8220;Yes&#8221;<br />        SpaceAutoUp &#8220;No&#8221;<br />        SelectKeyShift &#8220;Yes&#8221;<br />        SpaceIgnore &#8220;Yes&#8221;<br />        SpaceReset &#8220;Yes&#8221;<br />        WildEnable &#8220;Yes&#8221;<br />        EndKey &#8220;No&#8221;<br />        DisableSelectList &#8220;None&#8221;<br />%setting end </p>
</blockquote>



<p>然後再執行</p>



<pre class="wp-block-preformatted">gcin2tab dayi4.cin
mv dayi4.gtab dayi3.gtab</pre>



<p>重新啟動 gcin 後，就可以在 gcin 底下用大易三碼的版本<br /><br />至於 KDE 下程式不吃中文<s>和常常不能顯示拆碼視窗就算了</s><br />我在 Linux 下沒有很常用這個功能<br /><br />目前碰到只有 telegram 不支援中文</p>



<h4 class="wp-block-heading">KDE 安裝 gcin</h4>



<p>請用 gcin 官網的方式設定[ref:<a aria-label="Ubuntu 20.04/18.04/16.04/ 安裝最新的 gcin 中文輸入的完整步驟 (opens in a new tab)" href="https://hyperrate.com/thread.php?tid=28044" target="_blank" rel="noreferrer noopener">Ubuntu 20.04/18.04/16.04/ 安裝最新的 gcin 中文輸入的完整步驟</a>]</p>



<pre class="wp-block-preformatted">如果是用 Xfce or KDE，需要執行&amp;設定 gcin-tools→外觀設定→面板狀態→GTK雙圖示</pre>



<p>這樣至少可以顯示拆碼視窗</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/">Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>NetworkManager inactive</title>
		<link>https://richliu.com/2017/08/14/2161/networkmanager-inactive/</link>
					<comments>https://richliu.com/2017/08/14/2161/networkmanager-inactive/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sun, 13 Aug 2017 16:05:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[inactive]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[networkmanager]]></category>
		<category><![CDATA[nmcli]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=2161</guid>

					<description><![CDATA[<p>最近發生一件怪事, VM suspend 當掉之後, networkmanager 顯示 inactive 用 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/08/14/2161/networkmanager-inactive/">NetworkManager inactive</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>最近發生一件怪事, VM suspend 當掉之後, networkmanager 顯示 inactive<br />
<span id="more-2161"></span></p>
<p>用 nmcli 看系統, 所有的 interface 都是 unmanaged </p>
<pre lang="text">
$ nmcli
ens33: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:AC, hw, mtu 1500

ens38: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:B6, hw, mtu 1500

ens39: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:C0, hw, mtu 1500

ens40: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:CA, hw, mtu 1500

lo: unmanaged
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

</pre>
<p>nmcli 看 general, 狀況是 asleep, 找了許多網路上的方法都沒有用</p>
<pre lang="text">
# nmcli g
STATE   CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN    
asleep  none          enabled  enabled  enabled  enabled 
</pre>
<p>最後自己亂試指令, 果然回來了</p>
<pre lang="bash">
$ nmcli networking on
</pre>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/08/14/2161/networkmanager-inactive/">NetworkManager inactive</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2017/08/14/2161/networkmanager-inactive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Vmware Guest Os Ubuntu 15.04 Vmware Tool 的問題</title>
		<link>https://richliu.com/2015/09/07/1858/vmware-guest-os-ubuntu-15-04-vmware-tool-%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
					<comments>https://richliu.com/2015/09/07/1858/vmware-guest-os-ubuntu-15-04-vmware-tool-%e7%9a%84%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Mon, 07 Sep 2015 06:02:20 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware-tools]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1858</guid>

					<description><![CDATA[<p>Kubuntu/ubuntu 15.04 如果是當 guest OS , 要安裝 vmware tool. 不 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/09/07/1858/vmware-guest-os-ubuntu-15-04-vmware-tool-%e7%9a%84%e5%95%8f%e9%a1%8c/">Vmware Guest Os Ubuntu 15.04 Vmware Tool 的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Kubuntu/ubuntu 15.04 如果是當 guest OS , 要安裝 vmware tool. </p>
<p>不過 compile 時會錯誤. 所以要安裝新的 vmware tool.<br />
以下是步驟. </p>
<p>確認沒有裝 open-vm-tools , 並且安裝 git.<br />
# sudo apt-get remove open-vm-tools<br />
# sudo apt-get update<br />
# sudo git clone https://github.com/rasa/vmware-tools-patches.git<br />
# cd vmware-tools-patches<br />
# sudo ./download-tools.sh<br />
# sudo ./untar-and-patch.sh<br />
# sudo ./compile.sh</p>
<p><a href="https://communities.vmware.com/message/2510025#2510025" target="_blank" rel="noopener"><br />
Error VMware Tools Installation (Shared Folder) &#8211; Ubuntu 15.04 [SOLVED!]</a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/09/07/1858/vmware-guest-os-ubuntu-15-04-vmware-tool-%e7%9a%84%e5%95%8f%e9%a1%8c/">Vmware Guest Os Ubuntu 15.04 Vmware Tool 的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2015/09/07/1858/vmware-guest-os-ubuntu-15-04-vmware-tool-%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Kubuntu 15.04 + Broadwell / Intel i7-5775C 的問題</title>
		<link>https://richliu.com/2015/08/28/1849/kubuntu-15-04-broadwell-intel-i7-5775c-%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
					<comments>https://richliu.com/2015/08/28/1849/kubuntu-15-04-broadwell-intel-i7-5775c-%e7%9a%84%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 28 Aug 2015 13:05:06 +0000</pubDate>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Broadwell]]></category>
		<category><![CDATA[i7-5775c]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unstable]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1849</guid>

					<description><![CDATA[<p>之前升級了 Broadwell 架構的 i7-5775C 之後, 裝了 Windows 7 並且也升級到 Wi [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/08/28/1849/kubuntu-15-04-broadwell-intel-i7-5775c-%e7%9a%84%e5%95%8f%e9%a1%8c/">Kubuntu 15.04 + Broadwell / Intel i7-5775C 的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>之前升級了 Broadwell 架構的 i7-5775C 之後, 裝了 Windows 7 並且也升級到 Windows 10 . （見 <a href="https://richliu.com/2015/08/06/1827/" target="_blank">電腦升級 i7 5775c + ASUS Z97-A/USB3.1</a> ) 似乎沒有太大的問題.<br />
問題在於, 我就是手賤, 喜歡裝 Linux 來用. 這下慘了, 折磨了我一個月才搞定這個問題.<br />
<span id="more-1849"></span></p>
<p>首先, Kubutun 15.04 支援 UEFI, 所以這部份安裝完後可以正常 Dual Boot 到 Windows/Linux.<br />
Linux 對於 Broadwell i7-5775C 的支援, 大家的講法不一, 目前看起來應該是這個 URL 比較常見<br />
<a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=core-i7-5775c-oc-fixed-mode" target="_blank" rel="noopener">Working Around The Intel Core i7 5775C Broadwell Stability Issue On Linux</a><br />
圖中貼了一個 crash , 我也在舊版的 Kernel 見過, 文章表示 enable CPU OC Fix mode 就可以解決這個問題.</p>
<p>我的血淚史是: ASUS 在我裝完機之後又新出一個 BIOS, 這個 BIOS 解決了 i7 5775 一直會出現 Machine Exception Check 的問題.<br />
這個問題只要是在機器上執行 Linux 就會出現, 而且如果是裝 Virtual Machine 時, 再裝 Linux 也會出現 (真是神祕啊).<br />
還沒有安裝新的 BIOS 之前, 這問題搞倒我了, 最後還是靠上面那一篇的類似解決方法才可以正常完成安裝(ASUS BIOS 沒有這個選項, 所以我是關 SpeedStep <a href="http://unix.stackexchange.com/questions/215164/does-linux-run-correctly-with-speedstep-on-broadwell" target="_blank" rel="noopener">Does Linux run correctly with SpeedStep on Broadwell?</a>)而且還是不穩定.<br />
然後我在將近一個月後之才看到有新的 BIOS Release.<br />
ASUS 你不可以早點做嗎?</p>
<p><del>另一個問題就是上面那篇文章的錯誤訊息, 我本來想回報到 Linux kernel team bug system , 但是想想是不是應該先換到最新版的 Linux kernel 再試呢?</del><br />
<del> Kubuntu 15.04 最新的 Kernel 是 3.19.0-26-generic</del><br />
<del> 這時候就要找 <a href="https://wiki.ubuntu.com/Kernel/MainlineBuilds" target="_blank" rel="noopener">Ubuntu mainline kernel </a>了, 客倌看到這邊應該會想, 要我編 Linux kernel , 殺了我吧.</del></p>
<p><del>沒錯, 不過不用殺頭, 我自己也很久沒有下去看/編 Kernel 的東西了, 中間有個連結 Upstream kernels archive <a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D" target="_blank" rel="noopener">http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D</a> 點下去就對了.</del></p>
<p><del>會看到很多目錄, 我是選最新的 v4.2-rc7-unstable (註: 一直會更新, 所以不見得最新的會和我一樣)</del><br />
<del> 下載 generic 的就好了, 我是 x64 的系統, 所以下的是 amd64 image .</del><br />
<del> linux-image-4.2.0-040200rc7-generic_4.2.0-040200rc7.201508162030_amd64.deb</del><br />
<del> linux-headers-4.2.0-040200rc7-generic_4.2.0-040200rc7.201508162030_i386.deb</del><br />
<del> 下載完之後再用 root 執行 dpkg -i 就好了</del><br />
<del> # sudo dpkg -i linux-image-4.2.0-040200rc7-generic_4.2.0-040200rc7.201508162030_amd64.deb</del></p>
<p><del>換了 Linux kernel 4.2RC 之後, Working Around The Intel Core i7 5775C Broadwell Stability Issue On Linux 這個問題就沒有再出現過了.</del></p>
<p>以上解決方案有錯, 仍然會出現 MCE.<br />
根據 Linux Kernel Bug Report 上的說法,<br />
在 bootup 時的 kernel 參數加上 &#8220;processor.max_cstate=0 intel_idle.max_cstate=0 idle=poll&#8221; 就可以暫時避開這個問題.<br />
以上這個暫時解決方案會讓 CPU 滿載, 所以建議可以在安裝的時候使用. </p>
<p>如果要穩定一點的解決方案, 可以換到最新版的 Microcode , 原因可能是 Intel 在 Broadwell 仍然未解 TSX 的 Bug<br />
而且也沒有更新 Microcode(目前最新是今年一月), 所以各家 Linux Distributions 也無法更新 Microcode 解決這個問題.<br />
如果 glibc compile 時並未打開 TSX support, 看起來不會踏到這個 BUG<br />
但是如果是有 enable TSX support 的 Linux Distribution , 就會踏到這個 BUG</p>
<p>Ubuntu 下的解決方式如下<br />
1) 下載 iucode-tool<br />
   $ sudo apt-get install iucode-tool<br />
2) 下載新版的 Microcode<br />
   $ git clone https://github.com/bgw/bdw-ucode-update-tool.git<br />
   $ cd bdw-ucode-update-tool<br />
   $ sudo ./install.sh &#8211;persist-debian<br />
3) 驗證, microcode 版本是 0x13<br />
   $ cat /proc/cpuinfo | grep microcode<br />
   microcode       : 0x13</p>
<p>這還是有缺點,<br />
1) 新裝系統<br />
2) 更新 Kernel<br />
都還是要跑一次這樣的流程, 最好還是跟主機板廠商連絡請他們更新 BIOS .<br />
這邊我就要抱怨 ASUS 了, 搞了一個多月來來回回還是在講同一個問題, 至現在 (11/9) 為止仍然沒有更新 BIOS.</p>
<p>更新完後系統穩定, 並未碰到當機事件了. </p>
<p>後記, 個人覺得以 SoC Errata 的處理, Intel 非常槽糕, 我知道新功能的確可能會有問題.<br />
但是出廠前 Linux/Windows 都應該要測試過才會出門吧.<br />
沒有想到只有 Windows OK. </p>
<p>我在以前根本沒有想到買新 CPU 要先考慮在 Linux 上會不會有問題.<br />
真是 WTF</p>
<p>ref.<br />
<a href="https://bugzilla.kernel.org/show_bug.cgi?id=103351" target="_blank" rel="noopener">Bug 103351 &#8211; Machine check exception on Broadwell quad-core with SpeedStep enabled </a><br />
<a href="https://bugzilla.kernel.org/show_bug.cgi?id=90301" target="_blank" rel="noopener">[haswell] Unable obtain Package Cstates C3 or lower</a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/08/28/1849/kubuntu-15-04-broadwell-intel-i7-5775c-%e7%9a%84%e5%95%8f%e9%a1%8c/">Kubuntu 15.04 + Broadwell / Intel i7-5775C 的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2015/08/28/1849/kubuntu-15-04-broadwell-intel-i7-5775c-%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[Kubuntu] 15.04 synergy system tray is unavailable quitting</title>
		<link>https://richliu.com/2015/08/28/1846/kubuntu-15-04-synergy-system-tray-is-unavailable-quitting/</link>
					<comments>https://richliu.com/2015/08/28/1846/kubuntu-15-04-synergy-system-tray-is-unavailable-quitting/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 28 Aug 2015 12:43:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[synergy]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1846</guid>

					<description><![CDATA[<p>在 Kubuntu 碰到這個問題, 重新啟動電腦 Synergy 都會出現這個訊息. 找了很久也沒有找到原因, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/08/28/1846/kubuntu-15-04-synergy-system-tray-is-unavailable-quitting/">[Kubuntu] 15.04 synergy system tray is unavailable quitting</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>在 Kubuntu 碰到這個問題, 重新啟動電腦 Synergy 都會出現這個訊息.</p>
<p>找了很久也沒有找到原因, 後來靈機一動, 關掉 KDE restore session 的功能就可以了.<br />
原因是因為 KDE restore session 的時候並不會帶入執行時的正確參數.</p>
<p><span id="more-1846"></span></p>
<p>開機時不會 restore session 對我來說 OK.<br />
如果想要進入該 User 時自動執行, 可以在 Automatically Started Applications 下加入一個新的 Application</p>
<p>首先執行你的 synergy GUI 程式, 順利的話應該會躲在 tray 下.<br />
在 command 下找到你的 synergy 程式, 像我是執行 client 就是像下方這樣<br />
[TEXT] # ps aux | grep synergy<br />
1575 0.1 0.0 130636 7796 ? Sl 20:23 0:01 /usr/bin/synergyc -f &#8211;no-tray &#8211;debug INFO &#8211;name synergy-desktop 10.1.1.49:24800<br />
[/TEXT]</p>
<p>在 System Setting -> Automatically Started Applications  新增一個程式(Add Program), 選擇 Synergy, 如下圖, 將 synergy 那一行命令 Copy 進去 Command 那邊.<br />
<a href="https://richliu.com/wp-content/uploads/2015/08/snapshot1.png"><img fetchpriority="high" decoding="async" src="https://richliu.com/wp-content/uploads/2015/08/snapshot1-300x247.png" alt="kubuntu synergy" width="300" height="247" class="aligncenter size-medium wp-image-1847" srcset="https://richliu.com/wp-content/uploads/2015/08/snapshot1-300x247.png 300w, https://richliu.com/wp-content/uploads/2015/08/snapshot1-1024x842.png 1024w, https://richliu.com/wp-content/uploads/2015/08/snapshot1.png 1087w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>下次重開的時候就會自動執行了. </p>
<p>如果 client 無法進入 screen save 的狀態, 將 synergy server 內的 sync screen saver 的選項關閉即可</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2015/08/28/1846/kubuntu-15-04-synergy-system-tray-is-unavailable-quitting/">[Kubuntu] 15.04 synergy system tray is unavailable quitting</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2015/08/28/1846/kubuntu-15-04-synergy-system-tray-is-unavailable-quitting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
