tag:blogger.com,1999:blog-3689877913129740962024-03-13T23:50:27.884+08:00手把手玩LinuxUbuntu & Arch Set-By-Set 教學與心得分享hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.comBlogger163125tag:blogger.com,1999:blog-368987791312974096.post-4867493119560062662015-09-03T18:50:00.001+08:002015-09-03T18:50:49.812+08:00【Linux】inxi 終端機下顯示系統設備資訊在 Linux 顯示系統設備資訊的軟體上有蠻多我用過好幾個,最近,用了一個在終端機上面的 inxi 覺得還不錯,他能分別顯示主機版、CPU、網路卡、顯示卡資訊,你也可以將指令互相結合起來,只顯示你需要的資訊就可以了。<br />
<br />
另外,它也可以分別設定 console、 terminal、irc, gui 依所需狀況去設定顏色主題相當的實用哦。<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;">inxi -c N<code></code></pre>N以下幾個數字,在依所需顏色主題去中入數字代號。<br />
<i>94 (console, no X - Unset); 95 (terminal, X - Unset);<br />
96 (irc, gui, X - Unset); 97 (irc, X, in terminal - Unset);<br />
98 (irc, no X - Unset); 99 (global - Unset)</i><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-KsQPsnmFQRc/VegivoOEMJI/AAAAAAAAE1A/o6ZOUfkX9BU/s1600/inxi-000.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="347" src="http://2.bp.blogspot.com/-KsQPsnmFQRc/VegivoOEMJI/AAAAAAAAE1A/o6ZOUfkX9BU/s400/inxi-000.png" width="400" /></a></div><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-B-KMH2dj3nM/VegivpSusXI/AAAAAAAAE1I/gYyEXg90bdI/s1600/inxi-001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="73" src="http://1.bp.blogspot.com/-B-KMH2dj3nM/VegivpSusXI/AAAAAAAAE1I/gYyEXg90bdI/s400/inxi-001.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">inxi</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-w5UkqVJP9T0/VegivvBnO3I/AAAAAAAAE1U/tUR2aubvBww/s1600/inxi-002.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="176" src="http://2.bp.blogspot.com/-w5UkqVJP9T0/VegivvBnO3I/AAAAAAAAE1U/tUR2aubvBww/s400/inxi-002.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">inxi 單一與複數指令結合</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-t_XqQQhhpdc/VegiwcxetJI/AAAAAAAAE1Y/Qo8g47nPCk0/s1600/inxi-003.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="187" src="http://4.bp.blogspot.com/-t_XqQQhhpdc/VegiwcxetJI/AAAAAAAAE1Y/Qo8g47nPCk0/s400/inxi-003.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">inxi -F 較完整的系統資訊</td></tr>
</tbody></table><br />
更多詳細設定請用:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;">inxi --help<code></code></pre><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-50657234920589263472015-08-28T23:02:00.000+08:002015-08-28T23:02:51.691+08:00Linux 安裝創建 PDU3 USB3.0 擴充卡我目前還是用主機板 ASUS M2NE 及 CPU K8 核心的舊電腦沒有 USB3.0 可以用,親朋好友常拿 USB3.0 隨身碟來 COPY 在沒有額外電源的情況下,插入我的 USB2 埠在我的電腦上都不能用,就為了這樣研究研國內外論壇看有沒有能裝在 LINUX 上的擴充卡,並在一個月前購買<a href="http://tw.transcend-info.com/Products/No-283" target="_blank">創見 PDU3 USB3.0擴充卡</a>來裝在舊的電腦上了。<br />
<br />
但是,我遇到一個特別的情況就是任何裝置熱插拔之後都會找不到,只有開機前就插入裝置才能使用,我來來回回測試幾種環境最終確認是我安裝的 powertop 問題,由於我 powertop 不是一個一個去設定,而是用 --auto-tune 自動關閉設備來達到省電的目地,我想是他關閉到某個裝置的問題。<br />
<br />
<a href="http://note.drx.tw/2013/09/working-on-gnu-linux-08-power-management-with-powertop.html" rel="nofollow" target="_blank">[完全用 GNU/Linux 工作] 08. 電源管理 - PowerTOP</a><br />
<blockquote class="tr_bq">"PowerTOP 是個分析、監控電力消秏的節能工具程式,它是由 Intel 於 2007 年以 GPLv2 授權釋出的開放原始碼專案。我們可以使用它找出 GNU/Linux 上秏電的套件,並透過停用不必要的功能以達到省電的效果,是筆記型電腦 (Laptop) 必裝的實用工具。"</blockquote><br />
速度方面我目前沒設備能測試,弄到熱插拔沒問題就算是達成我的目地。下面來簡單講一下讓他如何讓他在 Linux 上動起來吧。<br />
<br />
首先,你可以用 lspci 找到一個名為 <span style="color: #38761d;"><span style="background-color: #d9d2e9;">Renesas</span></span> 的裝置就是他了。<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lspci -v |grep Renesas -A10</code></pre><br />
<i>02:00.0 USB controller: <span style="color: #38761d;"><span style="background-color: #d9d2e9;">Renesas</span></span> Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02) (prog-if 30 [XHCI])</i><br />
<i>Subsystem: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller</i><br />
<i>Flags: bus master, fast devsel, latency 0, IRQ 16</i><br />
<i>Memory at fdefe000 (64-bit, non-prefetchable) [size=8K]</i><br />
<i>Capabilities: </i><access denied=""><i><br />
Kernel driver in use: <span style="color: red;">xhci_hcd</span><br />
Kernel modules: <span style="color: red;">xhci_pci</span></i><br />
<br />
這裡注意的是若是你自己編譯 Kernel 的的話,記得將 <span style="color: red;"> xhci_pci</span>、<span style="color: red;">xhci_hcd</span> 模組編進去哦,還有另一個 USB_UAS 記得也要加進去阿,聽說你的 USB 3.0 裝置有支援 USB Attached SCSI Protocol (<a href="http://www.usb.org/developers/presentations/pres0410/2-4_SSUSB_DevCon_UASP_Stevens.pdf" target="_blank">PDF</a>)速度會變快很多。<br />
<br />
再來我插入一個任意的 USB 設備用 lsusb 確認一下找不找的到<br />
</access><br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lsusb</code></pre><br />
<i>Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br />
Bus 003 Device 003: ID <span style="background-color: white;"><span style="color: blue;">0cf3:1002</span></span> Atheros Communications, Inc. TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n [Atheros AR9170]<br />
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 002 Device 002: ID 046d:c01a Logitech, Inc. M-BQ85 Optical Wheel Mouse<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub</i><br />
<br />
在來加入 -d ID -v 可以看到該裝置完整訊息。<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lsusb -d <span style="background-color: white;"><span style="color: blue;">0cf3:1002</span></span> -v</code></pre><br />
<i>Bus 003 Device 003: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n [Atheros AR9170]<br />
Couldn't open device, some information will be missing<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 255 Vendor Specific Class<br />
bDeviceSubClass 255 Vendor Specific Subclass<br />
bDeviceProtocol 255 Vendor Specific Protocol<br />
bMaxPacketSize0 64<br />
idVendor 0x0cf3 Atheros Communications, Inc.<br />
idProduct 0x1002 TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n [Atheros AR9170]</i><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><a href="http://ubuntuforums.org/showthread.php?t=2058351">Transcend TS PDU3 PCIe USB 3.0 expansion card 'Just Works'!</a><br />
<br />
</span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-13685530084201064922015-08-05T13:37:00.001+08:002015-08-05T13:37:50.308+08:00Chromium 安裝 Twitch HTML 5 Video Player 改變 Twitch 預設播放程式最近使用 Firefox 播放 Twitch 遊戲直播我覺得好慢阿,Flash 讀取那個圈圈在轉阿轉頭都快暈了他還是無法播放,我又開了我的除錯瀏器 Chromium 就能正常播放不知道是那卡到了。<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-8p3XU7hZyKc/VcGaH5SwBlI/AAAAAAAAEzw/rClcsA35KSg/s1600/twitch-01.png" style="margin-left: auto; margin-right: auto;"><img border="0" height="255" src="http://4.bp.blogspot.com/-8p3XU7hZyKc/VcGaH5SwBlI/AAAAAAAAEzw/rClcsA35KSg/s400/twitch-01.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Chromium default Flash</td></tr>
</tbody></table>
<br />
如果你慣用的瀏覽器是 Google Chrome / Chromium 可以試試看 <a href="https://chrome.google.com/webstore/detail/twitch-html-5-video-playe/hgcegaapnjdkkaboopicfhllkjkjpdhg" target="_blank">Twitch HTML 5 Video Player </a>,使用這個套件就不用 Flash 播放改用 Html5囉。<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-XxEdd6qVeYs/VcGaH1DiCkI/AAAAAAAAEz0/QDPZMiNK88w/s1600/twitch-02.png" style="margin-left: auto; margin-right: auto;"><img border="0" height="255" src="http://2.bp.blogspot.com/-XxEdd6qVeYs/VcGaH1DiCkI/AAAAAAAAEz0/QDPZMiNK88w/s400/twitch-02.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Chromium change to Html5</td></tr>
</tbody></table>
<br />
當然,這是 Twitch 官方的新功能,目前不是所有使用者都開放的,目前只是將內鑲的播放程式改掉讓你搶先使用。<br />
<br />
如果想了解原理可以看這篇文章 <a href="https://www.reddit.com/r/Twitch/comments/3e90li/how_to_integrate_the_new_html5_controls_in_any/" target="_blank">[How To] Integrate the new HTML5 controls in any Twitch channel page</a> ,其實我有照文章裡面的修改方法修改 Firefox 成功,內鑲播放器框架有改變,但是基底還是 Flash 不是 Html5 我想要在 Firefox 上用的願望還需在等等囉。<br />
<br />
另外,在文章內有說不用裝套件也能用,只要將網址紅色部份 <b><span style="color: red;">http://www.twitch.tv/</span></b>shortytone 改為 <b><span style="color: red;">http://player.twitch.tv/?channel=</span></b>shortytone 就能直接用新播放器囉。<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-icwF6o2WkE8/VcGaPjwOveI/AAAAAAAAE0A/yfXYx-B4luU/s1600/twitch-03.png" style="margin-left: auto; margin-right: auto;"><img border="0" height="255" src="http://3.bp.blogspot.com/-icwF6o2WkE8/VcGaPjwOveI/AAAAAAAAE0A/yfXYx-B4luU/s400/twitch-03.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">new player is Html 5</td></tr>
</tbody></table>
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span><br />
<span style="font-size: large;"><b> <a href="https://www.reddit.com/r/Twitch/comments/3e90li/how_to_integrate_the_new_html5_controls_in_any/" target="_blank">[How To] Integrate the new HTML5 controls in any Twitch channel page</a> </b></span> </div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-63965123440392797192015-07-28T02:05:00.000+08:002015-07-28T05:57:13.971+08:00【Windows/Linux】好用的小說下載器 JNovelDownloader 本來是想幫網友找看看有沒有寫小說的軟體,竟然找到一個好用的小說下載器 JNovelDownloader 他是以 Java 所寫,所以在 Windows / Linux 只要裝了 Java 都可以執行哦。<br />
<br />
官網介紹:<a href="http://www.pupuliao.info/jnoveldownloader-%E5%B0%8F%E8%AA%AA%E4%B8%8B%E8%BC%89%E5%99%A8/">JNovelDownloader 小說下載器</a><br />
<blockquote class="tr_bq"><b>起源</b><br />
這個計畫的構想,起源於 2012年5月中的一次畢業旅行,因為我有看網路小說的習慣,我平常的做法是在網路上找尋txt的版本來轉換後放入手機中閱讀,然而在這次的畢業旅行,我體驗到,有些小說我很難找到完整無缺的txt 版本,而在一些論壇有完整的版本,因此我產生了寫一個軟體去下載處理他的念頭,詢問了幾個朋友之後,本來打算使用python 來完成這次的目的,但是…..我不會用python阿….而且我也想做一個漂亮的UI介面 給大家最方便自己使用,所以最後我決定學習jcomicdownloader 使用JAVA 撰寫一個,在經過一周的摸索,我終於完成了 beta 版本,在那時的命名是novelDownload,在現在 我決定改名成JNovelDownloader </blockquote><br />
<h2>下載</h2><br />
首先請到 <a href="http://www.java.com/zh_TW/">Java 官網</a> 按下 <u>我有 Java 嗎? </u>驗證電腦上是否有安裝了沒有裝就需按 <u>免費下載 Java</u>,或者,他驗證完說你是安裝舊版的,最好也下載新版來安裝,因為 Java 漏洞還蠻多的…<br />
<br />
在來到 SourceForge.net <a href="http://sourceforge.net/projects/jnoveldownload/files/latest/download?source=files"> 下載 JNovelDownloader 主程式</a><br />
<br />
<h2>使用</h2><b><span style="font-size: x-small;"><span style="color: red;">請注意 版號不一定會一致 請自行替換為你下載的檔案名稱 </span></span></b> <br />
<br />
<h3>Windows</h3>直接點兩下 JNovelDownloader_v4_0.jar 執行檔即可,若無法正常啟動請看:<a href="http://momocorner.pixnet.net/blog/post/47141335-%5B%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88-java%5D-%E5%A6%82%E4%BD%95%E5%9F%B7%E8%A1%8C%E5%89%AF%E6%AA%94%E5%90%8D%E7%82%BAjar%E7%9A%84%E6%AA%94%E6%A1%88">[程式設計-java]-如何執行副檔名為jar的檔案</a>。<br />
<br />
<br />
<h3>Linux</h3>在終端機先切換到你檔案存放位置,接著輸入:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>java -jar JNovelDownloader_v4_0.jar</code></pre><br />
或者你也可以幫他建立一個選單方便以後開啟。請用文字編輯器建立一個檔案名稱為 JNovelDownloader.desktop,接著 Copy And Pass 後存檔,最後將檔案搬到 ~/.local/share/applications。<br />
<br />
<h4>注意</h4><ol><li>Exec 與 Icon 的路徑請勿照抄請修改為你實際存放位置,路徑請寫成絕對路徑。</li>
<li>Icon 我是到免費的<a href="http://www.iconspedia.com/">IconsPedia</a>找的,有需要請去找尋自己喜歡的 ico 或 png 都能用,但 png 下載<span style="color: red;"><u>不要直接按 Downlad .PNG</u></span> 那個是最大的,上方有尺寸可選不用太大的 32x32 就夠了。</li>
</ol><br />
<blockquote class="tr_bq">[Desktop Entry]<br />
Comment=小說下載器<br />
Name=JNovelDownloader<br />
Exec=java -jar<span style="background-color: #fff2cc;"> <span style="color: red;">/mnt/download/JNovelDownloader_v4_0.jar</span></span><br />
Icon=<span style="color: red;"><span style="background-color: #fff2cc;">/home/hepha/.icons/Downloads-folder.ico</span></span><br />
NoDisplay=false<br />
StartupNotify=true<br />
Type=Application<br />
Categories=Network;</blockquote><br />
建立完成後在系統的選單中><u>網際網路</u>>點擊 <u>JNovelDownloader</u> 開啟。<br />
<br />
<h4>介面</h4>右邊兩個對話框是設定功能,<span style="background-color: red;">紅色框</span>是設定要儲存位置,<span style="color: #8e7cc3;">紫色框</span>填入作者和書名。左邊就是下載完成我所開啟的範例。<br />
<br />
網址能填入 卡提諾 或 伊莉 的小說網址,作者是說同類型系統的都能用,這點請自行測試。<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-pYnRzRha4oQ/VbZvfJlS2RI/AAAAAAAAEyM/NGhG9Rh0CL0/s1600/JNovelDownloader-01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="http://1.bp.blogspot.com/-pYnRzRha4oQ/VbZvfJlS2RI/AAAAAAAAEyM/NGhG9Rh0CL0/s640/JNovelDownloader-01.png" width="640" /></a></div><br />
<h4>總結</h4>做事情不要像我不認真阿,下載到舊版然後去回報一堆修好問題<strike>好 丟 臉</strike>。<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-Dvl5dc1jJuI/VbZxpmmZ7fI/AAAAAAAAEyY/4bDiY6LYKX0/s1600/JNovelDownloader-02.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="397" src="http://1.bp.blogspot.com/-Dvl5dc1jJuI/VbZxpmmZ7fI/AAAAAAAAEyY/4bDiY6LYKX0/s400/JNovelDownloader-02.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">我所回報的問題</td></tr>
</tbody></table><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><br />
<a href="http://www.pupuliao.info/jnoveldownloader-%E5%B0%8F%E8%AA%AA%E4%B8%8B%E8%BC%89%E5%99%A8/">JNovelDownloader 小說下載器 </a><br />
</span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-68435123724160004252015-07-27T15:44:00.000+08:002015-07-27T15:44:35.428+08:00「手把手」 Firefox 開新的個人設定檔除錯用在 UBUNTU 社群剛好有人的 Firefox 有問題,我請他開著設定檔,可能沒使用過不知道要怎麼使用,就一併寫在部落格囉。<br>
<br>
新開一個設定檔,最主要就是排除套件或你使用過程出現的問題,讓 Firefox 使用預設的設定值,這樣找問題會比較快點,如果連預設的設定值都有問題,不排除它本身就有 BUG 。<br>
<br>
在 Windows 是把 Firefox 捷徑裡面的路徑最後加個 -p ,那在 Linux 呢?<br>
<h4><b><span style="color: red;"></span></b></h4><h4><b><span style="color: red;">2015.07.27 更新資訊請看最下方</span></b></h4><a href="http://playubuntu.blogspot.com/2010/02/firefox.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-42328428881783306892015-07-24T16:19:00.001+08:002015-07-24T16:31:55.808+08:00【android】如果用新版 Twitch App 播放直播是黑畫面可以試試 Vortex<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="https://play.google.com/store/apps/details?id=at.knorre.vortex&hl=zh_TW" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="320" src="http://1.bp.blogspot.com/-TYploOBAbGE/VbHrDBg4tuI/AAAAAAAAEwM/G6TfdLRR-1w/s320/QRCode.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">點擊圖片或掃描 QR Code 開啟安裝網址</td></tr>
</tbody></table>
<br />
<br />
<br />
<br />
前一陣子 Twitch 改版導致我開啟 Twitch 都是黑畫面無法順利看,剛好在 Google Player 找到了替代品 Vortex 終於可以跟黑畫面說掰掰了。<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-bF2TPVn8AG4/VbHy88uoSYI/AAAAAAAAExA/uX_pEi7KEq4/s1600/Screenshot_2015-07-24-16-06-04.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="http://3.bp.blogspot.com/-bF2TPVn8AG4/VbHy88uoSYI/AAAAAAAAExA/uX_pEi7KEq4/s400/Screenshot_2015-07-24-16-06-04.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">選擇遊戲類型</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-GtG4LuYUHYA/VbHy7hMKXNI/AAAAAAAAEw8/bdtLpOxqK_Y/s1600/Screenshot_2015-07-24-16-06-17.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="http://2.bp.blogspot.com/-GtG4LuYUHYA/VbHy7hMKXNI/AAAAAAAAEw8/bdtLpOxqK_Y/s400/Screenshot_2015-07-24-16-06-17.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">選擇觀看項目</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-Fq9mpnYjC98/VbHy6mL49aI/AAAAAAAAEw0/sCnCVOg4zSA/s1600/Screenshot_2015-07-24-16-06-58.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="http://4.bp.blogspot.com/-Fq9mpnYjC98/VbHy6mL49aI/AAAAAAAAEw0/sCnCVOg4zSA/s400/Screenshot_2015-07-24-16-06-58.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">進入後要調整畫質請輕點畫面,之後點擊右上角相機選取畫質</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-NKn61Wlldpo/VbHy5HNO3CI/AAAAAAAAEwo/Fhv-P36BURQ/s1600/Screenshot_2015-07-24-16-10-59.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="400" src="http://3.bp.blogspot.com/-NKn61Wlldpo/VbHy5HNO3CI/AAAAAAAAEwo/Fhv-P36BURQ/s400/Screenshot_2015-07-24-16-10-59.png" width="225" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">行動裝置放直向 點擊 Chat 展開聊天室就可以聊天了</td></tr>
</tbody></table>
<br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-32839000452824211082015-03-30T19:08:00.001+08:002015-03-30T19:09:27.230+08:00115 網路硬碟 for Linux 應用程式 115wangpan115wangpan 是 115.com 官方所開發的 Linux 端應用程式,雖說是官方所開發的但比起網友開發的<a href="http://playubuntu.blogspot.tw/2014/12/for-linux-bcloud.html" target="_blank">百度網路硬碟 for Linux 應用程式 bcloud</a>來講弱了許多,怎麼說呢?<br>
<br>
他下載不能改存放位置都是在~/Downloads 不吃系統設定的位置,若是用軟連結資料夾也沒用,這點太糟糕了。本來這篇在寫 bcloud 後就要推出,但是,因為這個原因導致有點不想寫,想等新版本看情況而定,今天,安裝了新的版本還是一樣,算了不等了將就用。<br>
<br>
<a href="http://playubuntu.blogspot.com/2015/03/115-for-linux-115wangpan.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-88996092131392792322015-03-30T17:08:00.002+08:002015-07-27T15:27:05.892+08:00跨平台的大陸網站影片播放器:Moonplayer在老電腦上開啟瀏覽器播放 Flash 影片有時是令人痛苦的一件事,由其是在 Linux 上頭更是令人煩腦,單單 CPU 佔用比率就高的嚇人,常常播放影片都會使畫面卡卡的操作不順利,就想找一些替代方案來用。<br>
<br>
今次在 Ubuntu 簡體中文論壇發現了 MoonPlayer 能支援一些大陸影片網站,只要在程式內播放就不會那麼卡了,他是先解析播放影片的網址再以 Mplayer 核心播放一些大陸網站影片,相同影片與在瀏覽器播放所佔資源對比有很大的差別。<br>
<br>
加上他是跨平台的,又有 Linux 上的瀏覽器專用外掛,有興趣的就來用用看囉。<br>
<h3>
<u>Moon Player </u></h3>
<blockquote class="tr_bq">
Moon Player 是一個有趣的視頻播放器,讓您輕鬆享受觀看視頻的樂趣。使用mplayer作為播放內核,可幾乎播放所有視頻格式。</blockquote>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-Ae11zlUgZaE/VRkGXf3ZJxI/AAAAAAAAEns/Wg80v4JHLHU/s1600/moonplayer-1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-Ae11zlUgZaE/VRkGXf3ZJxI/AAAAAAAAEns/Wg80v4JHLHU/s1600/moonplayer-1.png" height="179" width="320"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">較大影像是在瀏覽器播放;較小影像是用Moonplayer播放</td></tr>
</tbody></table>
<br>
<a href="http://playubuntu.blogspot.com/2015/03/moonplayer.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-88507506651299563632015-03-28T04:18:00.003+08:002015-03-28T04:18:48.474+08:00TeamViewer 在瀏覽器上直接搖控別人的電腦TeamViewer 以往都用電腦安裝的程式來遠端搖控別人的電腦,昨天,從網頁登入時發現一個好玩的功能,就是能用瀏覽器來搖控別人的電腦,他網頁是用 Flash 做的想當然爾要瀏覽器就需要 FlashPlayer Plugin,另外一個條件就是你要免費申請一個<a href="https://login.teamviewer.com/">TeamViewer 帳號</a>,而後開啟<a href="https://login.teamviewer.com/LogOn">TeamViewer遠端搖控網頁</a>登入。<br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-443B0CgJG_w/VRWKOZAOkvI/AAAAAAAAEls/kEXPb13fYVA/s1600/teamviewer-flash1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-443B0CgJG_w/VRWKOZAOkvI/AAAAAAAAEls/kEXPb13fYVA/s320/teamviewer-flash1.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">在頁面中輸入對方的 ID 與 密碼</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-UIptkOdFn0Y/VRWKOkTKWPI/AAAAAAAAElw/pdoo6fn1HWo/s1600/teamviewer-flash2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-UIptkOdFn0Y/VRWKOkTKWPI/AAAAAAAAElw/pdoo6fn1HWo/s320/teamviewer-flash2.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">搖控自已的電腦造成無限回圈XD</td><td class="tr-caption" style="text-align: center;"> </td></tr>
</tbody></table><br />
在 Load Flash 時我有跳出個錯誤不理他略過,不知道是否只有我這樣。還有他的 Flash 好吃資源哦,在我的 K8 跑都會 LAG(好啦我承認部份是無限回圈所引起的)。<br />
<br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-31354487146537451822015-01-28T14:31:00.001+08:002015-01-28T14:31:36.337+08:00lcd 測試程式 With lcdtest For Linux最近剛買了新螢幕需要測試亮點,不想用 Windows 版就找到了 Linux fa下的測試程式 <a href="https://www.brouhaha.com/~eric/software/lcdtest/" target="_blank">lcdtest</a> 雖說是英文,但簡單好用推薦給大家。<br />
<br />
<h3>從 AUR 源安裝</h3><pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S lcdtest</code></pre><br />
<h4>執行</h4><pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lcdtest</code></pre><br />
<h4>以視窗模式執行 </h4>為了抓圖我用視窗模式執行<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lcdtest --window</code></pre><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-_fbWiGVraEg/VMh-94tZLfI/AAAAAAAAEjU/JP9cVfltfsQ/s1600/lcdtest_02.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-_fbWiGVraEg/VMh-94tZLfI/AAAAAAAAEjU/JP9cVfltfsQ/s1600/lcdtest_02.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">按 ? 問號有說明</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-dEJeAdBINCE/VMh-_G60pEI/AAAAAAAAEjY/hu_9b1TVdbo/s1600/lcdtest_04.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://4.bp.blogspot.com/-dEJeAdBINCE/VMh-_G60pEI/AAAAAAAAEjY/hu_9b1TVdbo/s1600/lcdtest_04.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">按 0</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-zgsFHqMN108/VMh-_fyMKKI/AAAAAAAAEjc/nI3WCacVwPg/s1600/lcdtest_06.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-zgsFHqMN108/VMh-_fyMKKI/AAAAAAAAEjc/nI3WCacVwPg/s1600/lcdtest_06.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">按 S</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://1.bp.blogspot.com/-GmVeLwDuRGQ/VMh-9-xLkNI/AAAAAAAAEjM/PI3L6Utu09o/s1600/lcdtest_03.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://1.bp.blogspot.com/-GmVeLwDuRGQ/VMh-9-xLkNI/AAAAAAAAEjM/PI3L6Utu09o/s1600/lcdtest_03.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">按 9</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-40263799225792479322015-01-27T19:15:00.000+08:002015-01-27T19:15:25.863+08:00<更新2015/01/27>修改 grub、tty 文字大小 for arch linux首先你要了解你要修改的是什麼,載入核心前的選單是屬於 Grub 範圍,他包含你在選單按 C鍵(command) OR E鍵(edit);當載入核心後所出現的 console font,他包含開機訊息及 TTY。<br />
<br />
<br />
<a href="https://aur.archlinux.org/packages/ttf-powerline-fonts-git/"></a> <br />
<h3>Grub</h3>Grub 的文字我們能用 grub-mkfont 將 ttf 轉成 pcf 字型,我是用這個 <a href="http://unifoundry.com/unifont.html" target="_blank">unifont_csur-6.3.20140214.ttf</a>請點擊連擊到網頁取得。<br />
<br />
應用:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo grub-mkfont -s SIZE -o OUT-FONT-NAME.pcf INPUT-FONT-NAME.ttf</code></pre><br />
示例:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo grub-mkfont -s 32 -o unifont_csur.pcf unifont_csur-6.3.20140214.ttf</code></pre><br />
將檔案移動:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo mv unifont_csur.pcf /boot/grub/fonts/</code></pre><br />
修改 grub:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo vim /etc/default/grub</code></pre>在最後增加<br />
<b>GRUB_FONT=/boot/grub/fonts/unifont_csur.pcf</b><br />
<br />
更新 grub:<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo grub-mkconfig -o /boot/grub/grub.cfg</code></pre><br />
<h3>Console</h3>console fonts你可以先去瀏覽:<a class="external text" href="http://alexandre.deverteuil.net/consolefonts/consolefonts.html" rel="nofollow">Linux 終端機字型截圖 </a>將你喜歡的字型名稱拷背起來而後在 vconsole.conf 加入。<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo vim /etc/vconsole.conf</code></pre>加入<br />
<b>FONT=fontname</b><br />
<br />
<h4>加入後重新開機</h4>P.S 直到 systemd 載入 systemd-vconsole-setup.service 文字才會改變。<br />
<br />
我是覺得內建的字型太小不合我用,所以我額外安裝了 <a href="https://aur.archlinux.org/packages/powerline-fonts-git/" target="_blank">powerline-fonts-git</a><br />
,裝好後在 /usr/share/kbd/consolefonts/ 找到 ter-powerline 相關字型,沒有預覽圖沒關係,你可以先切換到 TTY N (Ctrl + Alt + N: N為1到6都可以)測試,假設要用 ter-powerline-v22b.psf.gz 為例:<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>setfont ter-powerline-v22b.psf.gz</code></pre><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-6UN-0B8aqt4/U1Pdp43y1YI/AAAAAAAAEV4/sEaw7U-n878/s1600/ter-powerline-v22b.psf.gz.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-6UN-0B8aqt4/U1Pdp43y1YI/AAAAAAAAEV4/sEaw7U-n878/s320/ter-powerline-v22b.psf.gz.png" height="250" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">1680 X 1050 - 32bit ter-powerline-v22b font</td></tr>
</tbody></table><br />
假設你要用這個的話 vconsole.conf 就是新增 <b>FONT=ter-powerline-v22b.psf.gz</b><br />
<br />
<h4><span style="color: red;">2015/01/27</span> 升級資訊</h4>名稱又改回去了請安裝<a href="https://aur.archlinux.org/packages/powerline-fonts-git/" target="_blank">powerline-fonts-git</a>。<br />
<br />
<h4><strike><span style="color: red;">2014/8/22</span> 升級資訊</strike></h4><strike>剛剛在在<a href="https://aur.archlinux.org/packages/ttf-powerline-fonts-git/">AUR Comment</a>看到套件原本在資料庫顯示的名稱從 powerline-fonts-git 改為 ttf-powerline-fonts-git,所以如果你要升級要先將powerline-fonts-git移除 。</strike><br />
<strike><br />
</strike> <strike>否則安裝時會出現 <i>ttf-powerline-fonts-git: 檔案系統中已存在 /usr/share/fonts/OTF/Sauce Code Powerline Black.otf </i>相關訊息。</strike><br />
<strike><br />
</strike> <blockquote><strike>Comment by jleclanche (2014-05-25 06:21)</strike><br />
<strike>Seeing as this is a set of fonts, you should rename this to powerline-fonts-git.</strike></blockquote><h4>For Ubuntu </h4>前面的 Grub 文字修改法應該能夠用,至於 console font 請到 <a href="http://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console?answertab=active#tab-top">How do I change the font or the font size in the TTY (console)? </a>觀看。<br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span><br />
<span style="background-color: #cfe2f3; color: #3d85c6;"> <a href="https://wiki.archlinux.org/index.php/Fonts_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)">Fonts (正體中文) - ArchWiki</a><br />
<a href="https://wiki.archlinux.org/index.php/GRUB2_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)#.E8.83.8C.E6.99.AF.E5.9C.96.E7.89.87.E5.92.8C.E5.AD.97.E9.AB.94.28Background_image_and_bitmap_fonts.29">GRUB2 (正體中文) - ArchWiki</a><br />
</span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-80340452762553449362015-01-26T20:21:00.000+08:002015-03-30T00:00:37.926+08:00arch 安裝 kde plasma 5因為不小心將原本的 KDE4 搞掛暫時不想還原,想說順便試一下新的 <a href="https://www.kde.org/announcements/plasma5.0/" target="_blank">plamsa 5</a> 看看好不好用嚐鮮一下,結果不是很滿意,寫完這篇我就要來還原了。<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/c8JYt_xkJuY?feature=player_detailpage&vq=hd720&autoplay=0" width="640"></iframe><br />
<br />
kde plasma 5 目前中文化尚未完備,有心幫忙翻譯的請到<a href="http://i18n.kde.org/stats/gui/trunk-kf5/team/zh_TW/" target="_blank"> Chinese Traditional</a>。<br />
<br />
plasma 5 所支援的 addons 目前並不多,plasma 4 上安裝的不能在 plasma 5 上使用,像是我慣用調整音量的 kdeplasma-applets-veromix 不能用就不太方便。<br />
<br />
另外,他的 Tray icon 整合不太完整,像是 teamviewer linux 版本是用 wine 來執行,但他已經無法縮到系統列;輸入法我是用 hime 他的圖示也是不正常沒有出現;另外 hime 的輸入框也是不正常有時都不會出現只能盲打。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/--7oL44_3XqI/VMYw1tuq18I/AAAAAAAAEi8/FFGK_BbsAkU/s1600/p5-treamviewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/--7oL44_3XqI/VMYw1tuq18I/AAAAAAAAEi8/FFGK_BbsAkU/s400/p5-treamviewer.png" /></a></div>
<br />
關於 hime 部份我想是 hime 沒有 <a href="https://github.com/hime-ime/hime/issues/476">hime-qt5-immodule</a> ,或許改用回 gcin 可以解決。<br />
<br />
<a href="http://hyperrate.com/thread.php?tid=30922">gcin source 2.8.3 released</a> <br />
<br />
<blockquote>
2.8.3 <br />
- tsa2d32如果有錯誤,改成忽略,而不是中斷。 <br />
- ctrl-space 倉頡等 gtab 輸入法拆碼輸入區內容沒有清除的問題<br />
- 英數詞庫可以加入 E-mail address: test@test.com<br />
- bug fix:英文預選詞選到 Elysée crash<br />
- bug fix: 在詞音的詞庫新增含 '@!' 的半形符號可能導致詞庫錯亂<br />
- 移除注音符號選擇中的英文字母。<br />
<b>- qt5 支援</b><br />
- 禁止「第一次內定」輸入法到「英數」,需要內定是英數者,請取消「直接進入中文輸入狀態」,內定就是取消<br />
- 「直接進入中文輸入狀態」在 LXDE 會有 gcin crash 的問題</blockquote>
<br />
<br />
最大的問題是視窗切換不太順暢有點卡卡的感覺,比如:切換操作視窗有時就會卡住要等好幾秒;螢幕鎖定後要解鎖輸入密碼後按解鎖也是要等待。看影片中操作很流暢或許是我電腦/顯示卡太老舊所導致。 <br />
<br />
<br />
綜合以上原因嚐鮮真的只能嚐鮮而己。<br />
<br />
<h3>
Kde plasma-5 install</h3>
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo pacman -S kf5 kf5-aids plasma-next
</code></pre>
<br />
<h3>
Install Desktop Display Manager</h3>
現經已經將 kdm 拿掉,使用者要另外安裝 Desktop Display Manager ,我看維基說 sddm 支援新版的比較高所以就裝這個囉,這個要從 aur 來源安裝,裝完後請開啟 KUser 將使用者加入 sddm群組。<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S sddm-kcm</code></pre>
<br />
<h4>
開機啟動 sddm</h4>
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo systemctl enable sddm </code></pre>
<i>Created symlink from /etc/systemd/system/display-manager.service to /usr/lib/systemd/system/sddm.service</i><br />
<br />
開機啟動 sddm 後選擇 plasma 進入。<br />
<br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><br />
<a href="https://wiki.archlinux.org/index.php/KDE#Plasma_5">KDE - ArchWiki</a><br />
<a href="http://kxbl.vipsinaapp.com/html/1714.html">【Ubuntu/KDE 5.1】Ubuntu 14.10&14.04安裝KDE Plasma 5.1 | Linux網.com</a><br />
</span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-64139250351361879942014-12-18T22:18:00.003+08:002014-12-18T22:18:37.064+08:00Windows Firefox 播放 Youtube 影片出現 An error has occurred, please try again later<span style="font-size: 14pt;">前幾天有朋友請我幫忙處理在 Windows 中使用 Firefox 播放 Youtube 影片 <a href="https://www.youtube.com/watch?v=PJy8JDHHokU" target="_blank">第二代原始點按摩器</a> 出現訊息: </span><i><span style="font-size: 14pt;">An error has occurred, please try again later </span></i><br />
<br />
網路上大都講用筆記本新增/修改 mms.cfg 在檔案新增一行 ProtectedMode=0 後重開瀏覽器,但這對我來講是無效的。<br />
<br />
<span style="font-size: x-small;"><b>Windows 32bit:</b> C:\windows\system32\macromed\flash\mms.cfg </span><br />
<span style="font-size: x-small;"><b>Windows 64bit:</b> C:\windows\syswow64\macromed\flash\mms.cfg</span> <br />
<br />
之後我往回推,剛好我知道 Adobe FlashPlayer 最近<a href="https://helpx.adobe.com/security/products/flash-player/apsb14-27.html">補漏洞升級</a>版本到v16.0.0.235電腦大都自動升級,有可能是這個問題所導致,概然是補漏洞那就不想降級舊版本此路不通。<br />
<br />
那就從 Firefox 著手一樣自動升級到 v34.0.5 ,到此有兩條路升級 <a href="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest-beta/win32/zh-TW/" target="_blank">Firefox Setup 35.0b4.exe </a>/ 降級 <a href="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/33.1.1/win32/zh-TW/">Firefox Setup 33.1.1.exe</a> ,升級一樣沒有改善最後靠降級 v33 來搞定,降級後我先將他的自動升級關掉,以後有時間在測試看其最新版本是否能正常工作。<br />
<br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><br />
<a href="https://forums.adobe.com/thread/1018071?tstart=0">How do I troubleshoot Flash Player's protected </a><br />
<a href="http://okplaymayday.pixnet.net/blog/post/30864552-%E8%A7%A3%E6%B1%BAfirefox%E6%92%AD%E6%94%BEyoutube%E5%BD%B1%E7%89%87%E6%99%82%EF%BC%8C%E5%87%BA%E7%8F%BE-%E2%80%9Can-error-occ">解決firefox播放youtube影片時,出現 「An error occurred,please try again later.」 的方法</a><br />
</span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-70169854369672712882014-12-17T18:57:00.000+08:002014-12-17T18:58:20.274+08:00arch fix direct rendering is not enabled for nvidia on playonlinux<br />
今天在 arch linux 裝上 playonlinux 使用分別出現 [Check OpenGL] Warning: 32/64bits <i>direct rendering is not enabled</i>只要補上所需套件即可解決<br />
<br />
<span style="color: white;"><span style="background-color: red;">2014-12-17</span></span> 如果你是跟我一樣顯示卡是 Nvidia 舊的不能安裝最新驅動程式,只能安裝 nvidia-304xx 者則 lib32-nvidia-libgl 不用裝,請改裝 lib32-nvidia-304xx-libgl 。<br />
<h4>
For 32bit</h4>
pacman.conf 中的 <b>multilib 來源</b>記得開<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo pacman -S lib32-nvidia-libgl</code></pre>
<br />
若出現取代 lib32-mesa-libgl 時按 Y<br />
<h4>
For 64bit </h4>
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo pacman -S nvidia-libgl</code></pre>
<br />
若出現取代 mesa-libgl 時按Y<br />
<br />
重啟 playonlinux 就沒錯誤訊息了<br />
<br />
<u><b>P.S</b> 如果是裝 ATI 官方的 catalyst 可能安裝 aur/catalyst-libgl aur/lib32-catalyst-libgl 能修複上面的問題</u><br />
<br />
<h4>
筆記</h4>
取得詳細錯誤訊息指令是<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>LIBGL_DEBUG=verbose playonlinux </code></pre>
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><a href="https://bbs.archlinux.org/viewtopic.php?id=155058">libGL error: failed to load driver: swrast </a></span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-44124533023345937882014-12-17T18:51:00.001+08:002014-12-17T18:51:26.289+08:00百度網路硬碟 for Linux 應用程式 bcloud bcloud 不是官方所出品的,是網友<a href="https://github.com/LiuLang/bcloud">LiuLang</a>所開發的,想在 Linux 抓百度網路硬碟檔案資料的千萬不可以錯過。程式不斷改版除錯,抓取檔案速度也愈來愈快了,最快讓我中華電信的 20M 滿載的實力大家快來使用吧。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-cCErtZa2wd0/VJFbi3hQnPI/AAAAAAAAEiA/r_WMYCX7O3g/s1600/bcloud.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-cCErtZa2wd0/VJFbi3hQnPI/AAAAAAAAEiA/r_WMYCX7O3g/s400/bcloud.png" /> </a></div>
<br />
<h2>
安裝 bcloud</h2>
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S bcloud</code></pre>
<br />
<br />
<h4>
從 aur 來源安裝</h4>
上方是官方所收錄版本,你也可以從 aur 來源安裝較新的版本<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S bcloud-git</code></pre>
<br />
<h4>
For Kde </h4>
記憶密碼需要加裝<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S kdebindings-python</code></pre>
<br />
<h4>
For Gnome</h4>
若無法記憶密碼請看:<a href="https://github.com/LiuLang/bcloud/issues/63">我这样子算是解开了 GNOME Keyring 了吗? · Issue #63</a><br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-14522944560517907582014-12-13T18:04:00.002+08:002015-07-28T03:00:07.309+08:00在 arch 安裝 esense AU9540 讀卡機並用玉山銀行 WebATM with firefox第一次在 arch 上想用網路 ATM,手上有一台老哥沒在用的 esense AU9540 讀卡機就拿來實驗了,會想用 玉山銀行 來做測試是因為之前就知道該行的網路 ATM能在 Linux 上使用,其它銀行沒在注意能不能在 Linux 上用就不得而知了。<br />
<br />
原以為安裝過程會很複雜沒想到看 WIKI 與該銀行的說明一下就搞定了,這裡一樣留下記錄以供參考。<br />
<br />
<b><span style="color: red;">20150728</span></b> 在這裡提供驅動程式支援列表<a href="http://pcsclite.alioth.debian.org/ccid/supported.html" target="_blank">Supported CCID readers/ICCD tokens</a><br />
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>lsusb</code></pre>確認是否有該讀卡機<br />
<i>Bus 001 Device 004: ID 058f:9540 Alcor Micro Corp. <b>AU9540</b> Smartcard Reader</i><br />
<br />
pcsc-tools 是從 aur 源安裝,你可將 yaourt 改為其它能從 aur 源來裝的程式<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>yaourt -S ccid pcsc-tools</code></pre><br />
開機自動執行與立刻啟動 pcscd<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo systemctl enable pcscd
sudo systemctl start pcscd</code></pre><br />
用 pcsc_scan 掃描看看是否有找到該讀卡機<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>pcsc_scan</code></pre><i>PC/SC device scanner<br />
V 1.4.23 (c) 2001-2011, Ludovic Rousseau <ludovic .rousseau="" free.fr=""><br />
Compiled with PC/SC lite version: 1.8.12<br />
Using reader plug'n play mechanism<br />
Scanning present readers...<br />
0: <b>Alcor Micro AU9540 00 00</b><br />
<br />
Sat Dec 13 17:38:37 2014<br />
Reader 0: <b>Alcor Micro AU9540 00 00</b><br />
Card state: Card removed,</ludovic></i><br />
<br />
請至 <a href="https://draft.blogger.com/Linux%20%E7%9B%B8%E9%97%9C%E5%95%8F%E9%A1%8C-%E5%B8%B8%E8%A6%8B%E5%95%8F%E7%AD%94%E9%9B%86">玉山銀行 Linux 相關問題</a>下載 firefox 擴充套件:<b>6.安裝玉山銀行Linux專用版WebATM plugin</b><br />
<br />
<a href="https://netbank.esunbank.com.tw/webatm/">玉山銀行網路ATM</a><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-pWaVTDVHBe0/VIwMwuDk4cI/AAAAAAAAEhU/KvgoVam1crs/s1600/atm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-pWaVTDVHBe0/VIwMwuDk4cI/AAAAAAAAEhU/KvgoVam1crs/s320/atm.png" width="400" /></a></div><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span><span style="background-color: #cfe2f3; color: #3d85c6;"><br />
<a href="https://wiki.archlinux.org/index.php/Common_Access_Card">Common Access Card - ArchWiki</a><br />
<a href="https://netbank.esunbank.com.tw/webatm/Q&A_016.htm">Linux 相關問題-常見問答集</a><br />
</span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-65135006682621097752014-11-30T07:57:00.002+08:002014-11-30T07:57:27.360+08:00opencc 新版 -c 參數設定opencc 新版 -c 參數設定有更改囉,若是之前有使用到 opencc 舊腳本,記得要將 -c 的參數改為新版的哦。比如 -c zhs2zhtw_vp.ini 就改成 -c s2twp.json。<br />
<blockquote>預設配置文件<br />
<br />
s2t.json Simplified Chinese to Traditional Chinese 簡體到繁體<br />
t2s.json Traditional Chinese to Simplified Chinese 繁體到簡體<br />
s2tw.json Simplified Chinese to Traditional Chinese (Taiwan Standard) 簡體到臺灣正體<br />
tw2s.json Traditional Chinese (Taiwan Standard) to Simplified Chinese 臺灣正體到簡體<br />
s2hk.json Simplified Chinese to Traditional Chinese (Hong Kong Standard) 簡體到香港繁體(香港小學學習字詞表標準)<br />
hk2s.json Traditional Chinese (Hong Kong Standard) to Simplified Chinese 香港繁體(香港小學學習字詞表標準)到簡體<br />
s2twp.json Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom 簡體到繁體(臺灣正體標準)並轉換爲臺灣常用詞彙<br />
tw2sp.json Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom 繁體(臺灣正體標準)到簡體並轉換爲中國大陸常用詞彙</blockquote><br />
<br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><a href="https://github.com/BYVoid/OpenCC">BYVoid/OpenCC</a></span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-68083746415457628752014-10-10T00:34:00.002+08:002014-10-10T00:36:51.944+08:00sudo mode editor gui can not switch the input methodLinux EDITOR 到底能不能在 sudo 狀態下輸入中文?Ctrl + Space 或者其它快速鍵就是不能切換輸入法?是 sudo 的問題還是輸入法的問題?<br />
<br />
以上幾點在我在 Ubuntu + gedit + gcin 就存在的疑問,到轉用 Arch + qvim + hime 還是存在這問題,不禁想問,天啊,在 sudo 狀態下切換個輸入都就那麼難嗎?<br />
<br />
<h4>
編輯 sudoers 問題</h4>
<br />
介紹解法之前我們來先了解一個非常重要的問題點, 直接用 sudo vim/qvim/geidt 這類的文字編輯器來修改 /etc/sudoers 是好的嗎?普通我們都用這類方法來修改它,但這樣是沒有 debug 的功能,只要你有地方寫錯,很容易將 sudo 搞掛!若是,su 在當時沒設定密碼無法切換到 root,你就跟 root 說掰掰要修正也沒辦法沒權限嘛。<br />
<br />
<blockquote class="tr_bq">
掰掰實例<br />
>>> /etc/sudoers: syntax error near line 70 <<< sudo: parse error in /etc/sudoers near line 70 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin</blockquote>
<br />
<span style="font-size: x-small;"><u>關於 visudo 的 debug 可以看 @凍仁的: <a href="http://note.drx.tw/2008/01/linuxsudo.html">sudo 指令使用說明</a></u></span><br />
<br />
那要修改它到底要用什麼指令呢?答案是 visudo 囉。<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo visudo</code></pre>
<br />
<br />
通常 visudo 啟用的文字編輯器是 vi 那用不習慣要改怎麼辦?不用怕只要指定想要用的編輯器即可。<br />
<br />
<ul>
<li> 修改 editor 為你想要的編輯器,若是 qvim/gvim 要記得加參數 -f 詳細作用請看<a href="http://playubuntu.blogspot.tw/2014/09/qvimgvim-use-f-nofork.html">此篇</a><br />
<span style="color: #e06666;">EDITOR="/usr/bin/vim"</span><br />
OR<br />
<span style="color: #e06666;">EDITOR="/usr/bin/qvim -f"'</span><br />
OR<br />
<span style="color: #e06666;">EDITOR='gedit'</span><br />
</li>
</ul>
這裡以 qvim 為範例<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo EDITOR='/usr/bin/qvim -f' visudo</code></pre>
<br />
上面是暫時性的使用,要讓 visudo 以後都是用你指定的編輯器,請在執行 visudo 後編輯該檔添加下面那行文字。<br />
<blockquote class="tr_bq">
Defaults <span style="color: #e06666;"> editor="/usr/bin/qvim -f"</span>, !env_editor</blockquote>
<br />
<h4>
輸入法切換問題 </h4>
<br />
那麼接下來就是切換輸入法的問題囉,這裡提供兩個解法,一個一樣用 visudo 來修改 sudoers ,另一個是每次用 sudo 都需要加入各別參數的解法。<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo visudo</code></pre>
<br />
搜尋此行將開頭的<span style="color: red;">#</span>註解刪掉,或者直接添加此行。<br />
<blockquote class="tr_bq">
Defaults env_keep += "HOME"</blockquote>
現在立即用測試 sudo 到底能不能切換輸入法囉。<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>sudo qvim</code></pre>
<br />
從圖片中用紅色框框處的差異來區別兩者的差異,兩者皆能正常切換輸入法輸入中文了。我用 hime 另外試過 ibus 都沒有問題。<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://3.bp.blogspot.com/-LLYdNXYQdvk/VDayyWRpAeI/AAAAAAAAEgM/R0mzxOblkvo/s1600/vim-1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://3.bp.blogspot.com/-LLYdNXYQdvk/VDayyWRpAeI/AAAAAAAAEgM/R0mzxOblkvo/s320/vim-1.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">沒用 sudo </td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-G5GwNuyXAMQ/VDayyXkRPeI/AAAAAAAAEgI/4QTpM1hmB5I/s1600/vim-2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-G5GwNuyXAMQ/VDayyXkRPeI/AAAAAAAAEgI/4QTpM1hmB5I/s320/vim-2.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">有用 sudo</td></tr>
</tbody></table>
若是暫時性的請在 <b>sudo</b> 後面增加 <b>-E -H</b> 參數<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;">sudo -E -H qvim -f<code></code></pre>
<br />
<i>-H, --set-home set HOME variable to target user's home dir</i><br />
<i>-E, --preserve-env preserve user environment when running</i><br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <br />
<a href="https://wiki.archlinux.org/index.php/Sudo_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E4.BD.BF.E7.94.A8sudo.E8.BF.90.E8.A1.8CX11.E7.A8.8B.E5.BA.8F">Sudo (简体中文) - ArchWiki</a><br />
<a href="https://bbs.archlinux.org/viewtopic.php?id=97866">visudo does not respect VISUAL or EDITOR</a><br />
<span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-23660295819304647852014-09-22T19:53:00.001+08:002014-09-22T19:53:52.644+08:00qvim/gvim use -f | --nofork 與 EDITOR 設定不知道大家有沒有遇過,類似在終端機下指令執行 qvim/gvim 時,希望開啟檔案後不直接執行下個指令,等程式關閉在執行下個指令的功能?<br>
<br>
這時啟動加入參數 -f 就能達成<br>
<br>
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>qvim -f file</code></pre>
<br>
<br>
<blockquote>
<span style="font-size: x-small;"><b>:help --nofork@tw</b></span><br>
<span style="font-size: x-small;">*--nofork*</span><br>
<span style="font-size: x-small;">--nofork GUI: 不分叉。和 |-f| 相同。</span><br>
</blockquote><a href="http://playubuntu.blogspot.com/2014/09/qvimgvim-use-f-nofork.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-86982002697913011372014-09-19T13:09:00.001+08:002014-09-19T13:10:31.742+08:00programs watch and ps<div class="tr_bq">
在 linux 中 ps 這指令我想大家都很熟悉,但是指定輸出某些資訊,我想就比較少人在用,我也是因為要監看某個一直當掉的程式的 cpu 、memory、command 才特別去學會的。另外加上 watch 就變成動態監看變化相當好用。</div>
<br>
<br>
<a href="http://playubuntu.blogspot.com/2014/09/programs-watch-and-ps.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-79557025557422690712014-09-11T17:01:00.002+08:002014-09-11T17:01:28.364+08:00vim 滑鼠移到網址按下快速自動在鍵瀏覽器開啟網頁本人想說在 vim 遇到文字內有網址要立即開啟網頁,先要複製網址>開瀏覽器>貼上網址有點麻煩,如果有辦法直接打開網址就好囉!<br>
<br>
我想 vim 一定有辦法做的到,必竟 vim 那麼多人用應該有很好的解決方法,是的,我有找到但有些遇到現在 mega 網址就沒折 https://mega.co.nz/<u>#!</u> 光開頭網址 <u>#!</u> 這兩個符號就要跳脫(逃逸?)兩個都是 linux 內建指令(沒記錯的話)啊。<br>
<a href="http://playubuntu.blogspot.com/2014/09/vim.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-12439721427107887962014-09-09T10:33:00.000+08:002014-09-09T10:33:32.214+08:00定時監視特定軟體(有Desktop檔),在重開機後自動執行這是既 <a href="http://playubuntu.blogspot.tw/2010/09/ubuntugdm.html">Ubuntu從GDM登入後,進入桌面時間愈來愈長?</a>、<a href="http://playubuntu.blogspot.tw/2010/12/ubuntu.html">改善 Ubuntu 登入桌面時間過長另一解法</a>,的續章,及<a href="http://playubuntu.blogspot.tw/2013/09/kdedesktop.html">KDE:利用kioclient在終端機執行.desktop檔</a>實作部份。<br>
<br>
但是,我並不滿足於改善進入桌面時間,深深覺得開機後如果能開啟我想要執行的軟體那該有多好。<br>
<br>
於是寫了個 bash script 來監視某些我想在重開機後執行軟體的功能,另外加上 crontab 定時執行這個 bash script 保持抓取資料是最新的狀態(這是預防突然當機,而沒有紀錄到資料),最後,在把該 bash script 位置寫入 auto-run 檔即可。<br>
<br>
P.S1 此方法只適用 KDE<br>
<br>
<a href="http://playubuntu.blogspot.com/2014/09/desktop.html#more">按我讀更多</a>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-50134010557116601622014-08-31T01:52:00.002+08:002014-08-31T01:54:36.627+08:00userscripts.org 掛了不知去那找腳本?介紹你四個好所在自從 <a href="http://userscripts.org/">userscripts.org</a> 掛了之後頓時我的 Firefox 套件 Greasemonkey or Scriptish 少了腳本來源,於是找到了四個新的好所在,之前隨手就加入書籤,但在沒分類的情況下找的有點久…,現在已經整理好了順手貼出來跟大家分享。<br />
<ol>
<li><a href="https://openuserjs.org/">OpenUserJS</a></li>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dsdDBL6ecvQ/VAII9gi7WQI/AAAAAAAAEb4/l6bAi97J_50/s1600/firefox-us-open.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-dsdDBL6ecvQ/VAII9gi7WQI/AAAAAAAAEb4/l6bAi97J_50/s400/firefox-us-open.png" /> </a></div>
<li><a href="https://greasyfork.org/zh-TW/">Greasy Fork</a></li>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-nVozU093qX8/VAII8hu4uyI/AAAAAAAAEbw/0Tk-UaEeeWs/s1600/firefox-us-greasy.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-nVozU093qX8/VAII8hu4uyI/AAAAAAAAEbw/0Tk-UaEeeWs/s400/firefox-us-greasy.png" /> </a></div>
<li><a href="https://monkeyguts.com/">MonkeyGuts Userscripts</a></li>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-st4nDxdL-Lo/VAII8drodTI/AAAAAAAAEbo/49sK9LJz6lY/s1600/firefox-us-monkey.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-st4nDxdL-Lo/VAII8drodTI/AAAAAAAAEbo/49sK9LJz6lY/s400/firefox-us-monkey.png" /> </a></div>
<li><a href="http://userscripts-mirror.org/">userscripts-mirror</a></li>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1s-LC2wXwmU/VAII8RSKYJI/AAAAAAAAEb0/jTspbr8qUoU/s1600/firefox-us-mirror.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-1s-LC2wXwmU/VAII8RSKYJI/AAAAAAAAEb0/jTspbr8qUoU/s400/firefox-us-mirror.png" /></a></div>
</ol>
<br />
這裡特別提一下第四個 <a href="http://userscripts-mirror.org/">userscripts-mirror</a> 他內部的搜尋引擎無法使用,但你可以利用 gooogle site 站內搜尋功能,打開 google 搜尋網頁,將字填入搜尋框:<b><u>site:http://userscripts-mirror.org/scripts/show/ keyword</u></b> 其中 <b><u>keyword</u> </b>請改為你要搜尋的關鍵字如 <i>youtue</i> 。<br />
<br />
或者你可以用 Firefox 內建的關鍵字搜尋,將以下文字填入對應輸入框中<br />
<br />
<ul>
<li>名稱:自訂<br />
</li>
<li>網址:https://www.google.com.tw/?gws_rd=ssl#q=site:http:%2F%2Fuserscripts-mirror.org%2Fscripts%2Fshow%2F+%s<br />
</li>
<li> 關鍵字:自訂</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-X5RykFytbFw/VAINpiEwqUI/AAAAAAAAEcA/Co75F5RE_N8/s1600/firefox-us-bookmark.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-X5RykFytbFw/VAINpiEwqUI/AAAAAAAAEcA/Co75F5RE_N8/s1600/firefox-us-bookmark.png" height="215" width="320" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
像我關鍵字設為<i> su</i> 那我就在地址列輸入:<i>su youtube</i> 他就會在 <a href="http://userscripts-mirror.org/">userscripts-mirror</a>站內搜尋 <u>youtube</u> 相關的腳本囉。<br />
<br />
P.S 對 Firefox 關鍵字搜尋功能不熟悉的請看參考資料,我也是剛學…<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><br />
<a href="http://blog.xuite.net/ubuntu/linux/8314257">Firefox小技巧(二)──自訂關鍵字搜尋</a><br />
</span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-84064411614313293242014-08-26T17:33:00.003+08:002014-08-26T17:33:33.378+08:00有網友在批踢踢實業坊<a href="https://www.ptt.cc/bbs/Free_box/M.1405107653.A.584.html">[問題] Jdownloader 2 如何設定字體大小?</a>,讓我用一張圖來解答,但我不是好鄉民沒帳號無法回覆,有朋友能順便回覆他嗎:)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-MPcenfpQA_c/U_xS-Byx4OI/AAAAAAAAEbI/4ZSIKtaJtaQ/s1600/Jdownloader2-font.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-MPcenfpQA_c/U_xS-Byx4OI/AAAAAAAAEbI/4ZSIKtaJtaQ/s1600/Jdownloader2-font.png" height="403" width="640" /></a></div>
<br />
<br />
<div style="background-color: #6fa8dc; color: white;">
<span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"></span></div>
hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0tag:blogger.com,1999:blog-368987791312974096.post-58141284894059236272014-08-20T10:33:00.000+08:002014-08-20T10:49:53.448+08:00修複oh-my-zsh 無法更新<span style="color: red;"> 2014/08/20 新增 git status 除錯</span><br />
oh my zsh提示更新執行時遇到錯誤<br />
<blockquote>Cannot pull with rebase: You have unstaged changes.<br />
Please commit or stash them.</blockquote><br />
只要將~/.oh-my-zsh/tools/upgrade.sh修改就能修複<br />
搜尋<br />
<blockquote>if git pull --rebase origin master</blockquote>將<b>--rebase</b>刪掉存檔,在執行一次更新即可<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>~/.oh-my-zsh/tools/upgrade.sh</code></pre><br />
08/20 又遇上了不能升級的錯誤,但這次沒有跳錯誤訊息指出那裡版本不相同,這次用 git status 找出跟 git 不相同的部份<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>~/.oh-my-zsh
git status</code></pre><br />
<i><b>Untracked files:</b></i><br />
<br />
<i>completion/<br />
lib/wordchars.zsh<br />
plugins/dbox/<br />
plugins/dkms/<br />
plugins/modprobed/<br />
themes/junkfood.zsh-theme.old<br />
themes/my.zsh-theme</i><br />
<br />
最後將以上檔案移到 ~/.oh-my-zsh/custom 手動升級就沒問題<br />
<pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: #38761d; font-size: 12px; line-height: 120%; margin: 5px 0 0 20px; max-height: 130%; overflow: auto; padding: 10px 10px 10px 21px; width: 90%;"><code>git pull</code></pre><br />
<div style="background-color: #6fa8dc; color: white;"><span style="font-size: large;"><b>參考資料:</b></span> <span style="background-color: #cfe2f3; color: #3d85c6;"><a href="https://github.com/robbyrussell/oh-my-zsh/issues/1991">Can't update using upgrade_oh_my_zsh </a></span></div>hephahttp://www.blogger.com/profile/04795290635754291432noreply@blogger.com0