<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BlueT / Matthew Lien 練喆明 on Medium]]></title>
        <description><![CDATA[Stories by BlueT / Matthew Lien 練喆明 on Medium]]></description>
        <link>https://medium.com/@bluet?source=rss-b7bcf46792b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bPhV0-7l4q5tw2-G.</url>
            <title>Stories by BlueT / Matthew Lien 練喆明 on Medium</title>
            <link>https://medium.com/@bluet?source=rss-b7bcf46792b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 13:19:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bluet/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[10 週瘦身術，輕鬆健康減重 13+ kg]]></title>
            <link>https://bluet.medium.com/%E5%8D%81%E9%80%B1%E5%81%A5%E5%BA%B7%E8%BC%95%E9%AC%86%E6%B8%9B-13-kg-793df00f58e1?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/793df00f58e1</guid>
            <category><![CDATA[healthy]]></category>
            <category><![CDATA[lose-weight-fast]]></category>
            <category><![CDATA[lose-weight]]></category>
            <category><![CDATA[healthy-lifestyle]]></category>
            <category><![CDATA[eating]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Sun, 14 Apr 2019 11:14:39 GMT</pubDate>
            <atom:updated>2021-04-12T19:40:41.442Z</atom:updated>
            <content:encoded><![CDATA[<h4>我從 96~100kg 減重到 83kg 的方法，至今沒復胖</h4><p>兩三年前，因為幾位敬愛的親友突然生病去世，對心理有很大的衝擊，加上正逢暑假所以學生及朋友們大多都不在，覺得該找點事情來做，所以開始讀相關資料，希望在「<em>不需大幅改變生活方式</em>」的狀況下找到「<em>能輕鬆達成</em>」的「<em>健康</em>」減重方式。當然，花錢的手術、減肥食品、健身房那類都不在我的考慮範圍內。</p><blockquote>Keywords: 阿宅、租屋、外食、減重、健康、輕鬆</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*SvTeUd51_HMwzIiqSxo2Yw.jpeg" /><figcaption>“Hjärtlig Gratulation!” by Bohusläns museum is licensed under CC PDM 1.0. To view a copy of this license, visit: <a href="https://creativecommons.org/publicdomain/mark/1.0/">https://creativecommons.org/publicdomain/mark/1.0/</a></figcaption></figure><p>我身高約 180cm，減重前最後一次量體重 96kg，不過最重時應該超過。<br>當時爬樓梯到三樓房間會覺得很喘、會膝蓋痛，皮帶扣到最外面一格，而且吃飽得解開，另外彎腰撿東西或剪腳趾甲很困難、很怕熱、容易流汗。<br>另外，看鏡中的自己，越來越覺得噁心厭惡。</p><p>在參考了許多中英文的文件、報導、說法、論文、實驗、分享及紀錄片等等，我為自己做了以下調整。當然有時心血來潮可能會多做一點運動，不過以「有持續性」的部份來說詳列如下。</p><ol><li><strong>起床喝</strong>：睡醒先喝一杯水（300~500cc，懶惰的話就一個馬克杯），溫水最好，室溫也可。附帶清宿便。</li><li><strong>少冰甜</strong>：不太喝冰的、果糖調的飲料，事實上很少喝飲料了。</li><li><strong>順序吃</strong>：吃東西順序：飯前一杯水，然後湯，蔬菜，肉，最後還餓的部份才吃澱粉到七八分飽。便利商變的食物都會標示營養價值和熱量，可以稍微看一下，看起來差不多的東西可能實際熱量和脂肪含量差很多。選蛋白質多、脂肪熱量少、鈉（鹽）少一點的。</li><li><strong>選宵夜</strong>：吃宵夜時會稍微選一下，比較少油炸澱粉類，改為蔬菜或肉類，畢竟宵夜只是一種口腹之慾，要享受吃東西的過程也要減少負擔。</li><li><strong>輕鬆動</strong>：看電視電影之類時，一邊騎二手折疊健身車流流汗，也避免膝蓋關節退化，以及避免自己整個晚上都廢在電視前 XD</li><li><strong>算一算</strong>：有想到時，稍微加一下整天攝取的熱量，控制在 1600~1800 卡，一餐大約 600 卡。不用非常嚴格，視能力和情況來做。這基本上是要養成一種習慣，畢竟是希望能長期維持的。</li><li><strong>放縱日</strong>：* <strong>重要</strong> * 一週裡面選一天選一餐「 <em>放縱日</em> 」，想吃什麼就盡量大吃特吃紓解壓力，才能長久。人在一定時間內能吸收的量是有上限的，超過會無法吸收利用而被排出，所以一週裡有一餐放縱是完全沒問題的。</li></ol><p>其他嘗試：</p><ul><li>也嘗試過間歇性斷食。不過因為以前長期飲食不正常，對胃的影響不太好，所以後來沒繼續，也不會推薦給各位。</li><li>看電視電影時如果騎車騎累了（或是血液壓著不流通ㄍㄞㄅㄧ麻麻），可以下來換成啞鈴動動上半身，擺脫鬆軟垂。</li><li>我想當時玩 <a href="https://www.ingress.com/">Ingress</a> 也幫了不少忙，讓我會出門走走路打打塔，畢竟做事情有沒有「動機」差很多！如果有興趣一起玩 Ingress 的話，請給我 email 讓我邀請賺成就 XDDD</li></ul><p>我當時從開始調整到開始產生效果大概只花了一週，然後在兩三個月內健康地減了超過 13kg、皮帶少三四格、體力精神也好多了，期間痛苦指數很低，達成率很高。而且即便現在仍然作息不正常、一年多前搬家後沒地方放健身車運動、每週吃大餐，但直到今日都沒有復胖，體檢結果也從滿江紅變成只剩輕度脂肪肝 — 外食和少運動無法避免的…</p><p>因為朋友問起，所以記錄下來與大家分享。希望能幫助到有需要的人、拯救荷包、省時間、避免冤枉路，順便救救幾顆大樹或是小貓咪之類的。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fbluet_lien%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fbluet_lien&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href">https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href</a></iframe><p>如果你喜歡這邊文章，請不吝拍拍手、存書籤或是分享給身邊的朋友們。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=793df00f58e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[教學: 用 Ubuntu Linux (64bit) 環境使用 Juniper SSL VPN (免裝 32bit Java) (zh_TW)]]></title>
            <link>https://medium.com/geeky-log/%E6%95%99%E5%AD%B8-%E7%94%A8-ubuntu-linux-64bit-%E7%92%B0%E5%A2%83%E4%BD%BF%E7%94%A8-juniper-ssl-vpn-%E5%85%8D%E8%A3%9D-32bit-java-zh-tw-adabd9b298e4?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/adabd9b298e4</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[juniper]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Mon, 28 Mar 2016 23:52:00 GMT</pubDate>
            <atom:updated>2018-10-08T09:41:31.271Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><strong>Juniper SSL VPN</strong> 常被用在各種地方，包括台灣各國立大學也都有由 <a href="http://noc.twaren.net/noc_2008/Services/SSLVPN/index.php">TWAREN</a> 所提供的服務。<br>因為它對於 64bit Linux 的支援問題，要在 <strong>Ubuntu (Linux) 64bit</strong> 上使用並<em>不容易</em>。<br>如果你<em>不希望</em>只為了用它而得<em>多裝一套肥大的 32bit Java</em>，這篇就是<em>你要的教學文</em>。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fbluet_lien%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fbluet_lien&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href">https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href</a></iframe><p>If you want English HOWTO, check English version <a href="https://medium.com/geeky-log/howto-ubuntu-linux-64bit-client-connect-to-juniper-ssl-vpn-without-32bit-java-en-32544ab73ad4#.43744do88">HERE</a> or <a href="http://blog.geeky.name/post/2016/03/29/HOWTO%3A-Ubuntu-Linux-64bit-Client-connect-to-Juniper-SSL-VPN-without-32bit-Java-%28en%29">HERE</a></p><h4>概要</h4><pre># 安裝函式庫<br>sudo apt-get install libc6:i386 zlib1g:i386 libgtk2-perl libwww-perl</pre><pre># 取得檔案<br>wget <a href="https://raw.github.com/madscientist/msjnc/master/msjnc">https://raw.github.com/madscientist/msjnc/master/msjnc</a><br>wget <a href="http://mad-scientist.net/junipernc">http://mad-scientist.net/junipernc</a><br>chmod +x msjnc junipernc</pre><pre># 瀏覽器開 SSLVPN 網站並下載 jar 檔</pre><pre># 解出檔案<br>./msjnc</pre><pre># 啟動 VPN<br>junipernc --nojava</pre><h3>SSL VPN 是什麼</h3><h4>VPN</h4><p><strong>VPN</strong> (<strong>虛擬私有網路</strong>) 是個讓人們能<em>存取 </em><strong><em>NAT 防火牆</em></strong><em>內，位在 </em><strong><em>LAN</em></strong><em> (</em><strong><em>區域網路</em></strong><em>) 裡的主機和服務</em>的方法。例如：從家裡或是出差時連線到公司的電腦。 有許多不同種類的 VPN，例如 PPTP、OpenVPN、Cicso OpenConnect 等等。</p><h4>SSL VPN</h4><p><strong>SSL VPN</strong> 是其中一種 VPN，原本被設計來讓使用者只要有瀏覽器就能夠使用。<br> 有些人將它視作是使用者<em>最容易使用的方法</em>，但<em>前提是</em>所有使用者都用 M$ Windows，或是廠商提供了<em>足夠的跨平台支援</em>。<br> 可惜的是 <strong>Juniper SSLVPN</strong> 的方案 (<strong>NetworkConnect</strong> client) 並沒有對 <em>64 位元 Linux</em> 的良好支援，所以我們得自己動手做點小修改。</p><h3>工具</h3><p>我們需要這些東西：</p><ul><li>junipernc</li><li>msjnc</li><li>瀏覽器 (Firefox 或 Chromium)</li><li>Java (你系統裡原本的 64bit Java 以及隨附的瀏覽器外掛)</li><li>一點點基本的 32 位元函式庫</li><li>幾個基本的 Perl 函式庫，這是為了支援圖形化的對話框。 (有了這個才能避免使用 32 位元 Java 提供的圖形界面)</li></ul><p>在這個例子中，我們會使用 <strong>junipernc</strong> 來協助我們安裝，以及幫我們自動執行一些複雜的指令。 msjnc 只是用來取得我們需要的檔案。</p><p>瀏覽器只是用來下載 Juniper 的 SSLVPN 客戶端軟體 <strong>NetworkConnect</strong>。</p><p>Java 只是用來處理一些安裝流程。若你還沒有安裝 Java，可以看看 <a href="http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html">這篇</a> 有關 Oracle Java 的安裝教學文。</p><pre>sudo apt-get install libc6:i386 zlib1g:i386<br>sudo apt-get install libgtk2-perl libwww-perl<br>wget <a href="https://raw.github.com/madscientist/msjnc/master/msjnc">https://raw.github.com/madscientist/msjnc/master/msjnc</a><br>wget <a href="http://mad-scientist.net/junipernc">http://mad-scientist.net/junipernc</a><br>chmod +x msjnc junipernc</pre><p>或是你也可以從 <a href="http://blog.geeky.name/public/junipernc">這裡</a> 下載 junipernc 及 <a href="http://blog.geeky.name/public/msjnc">這裡</a> 下載 msjnc 。</p><h3>流程</h3><h4>準備所需資訊</h4><p>我們需要一些資訊來讓工具幫我們登入：</p><ul><li>Network Connect URL or Server</li><li>username</li><li>Realm</li></ul><p><strong>Network Connect URL or Server</strong> 是你瀏覽器開啟 SSLVPN 登入頁面時的網址。 在我的例子中，長得像是這樣：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*5qAYmu0todetxwfboPapdA.png" /><figcaption>TWAREN’s Juniper SSLVPN Login page</figcaption></figure><p>我們得將所有需要的檔案放在系統裡。</p><p>1. 取得 .jar 以及其他檔案</p><p>登入 SSLVPN 後，你會看到 Network Connect -&gt; Start，請<em>點擊 Start</em>。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/0*lcvRWGiPf8Gt8CXr.jpg" /></figure><p>點選<em>頁面右上角的「允許」</em>讓 Java 執行。<em>一路點允許、繼續</em>。最後它會<em>安裝失敗</em>並有關於 <em>32 位元相關的錯誤</em>。<br><em>莫驚慌！莫害怕！</em>這是意料中的事，因為我們正在用 64 位元系統，而那個 Java 應用程式需要 32 位元的環境。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/0*AUcolWx9aGAJIc-q.png" /></figure><p>檢查一下你家目錄中的這個目錄，你會看到 <strong>ncLinuxApp.jar</strong> 就安靜地躺在那裡，像個睡著的孩子：</p><pre>bluet@clean:~$ ls -al .juniper_networks<br>總計 2032<br>drwxrwxr-x  2 bluet bluet    4096  3月 29 01:01 .<br>drwxr-xr-x 20 bluet bluet    4096  3月 29 01:00 ..<br>-rw-rw-r--  1 bluet bluet 2065489  6月 25  2014 ncLinuxApp.jar<br>-rw-rw-r--  1 bluet bluet      19  3月 29 01:01 whitelist.txt</pre><p>2. 將檔案抽取出來</p><p>_msjnc__ 這工具會像用了吸星大法一樣，幫我們把需要的檔案從 ncLinuxApp.jar 裡汲取出來</p><pre>./msjnc</pre><p>執行後它會無聲無息地結束，但若再檢查一下剛才的目錄，你會發現世界變得不一樣。</p><pre>bluet@Zorya:~$ find ~/.juniper_networks/<br>/home/bluet/.juniper_networks/<br>/home/bluet/.juniper_networks/networkconnect.gif<br>/home/bluet/.juniper_networks/network_connect<br>/home/bluet/.juniper_networks/network_connect/version.txt<br>/home/bluet/.juniper_networks/network_connect/libncui.so<br>/home/bluet/.juniper_networks/network_connect/xlaunchNC.sh<br>/home/bluet/.juniper_networks/network_connect/ncsvc<br>/home/bluet/.juniper_networks/network_connect/ncdiag<br>/home/bluet/.juniper_networks/network_connect/NC.jar<br>/home/bluet/.juniper_networks/network_connect/META-INF<br>/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.RSA<br>/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.SF<br>/home/bluet/.juniper_networks/network_connect/META-INF/MANIFEST.MF<br>/home/bluet/.juniper_networks/network_connect/installNC.sh<br>/home/bluet/.juniper_networks/network_connect/ncsvc.log<br>/home/bluet/.juniper_networks/network_connect/getx509certificate.sh<br>/home/bluet/.juniper_networks/getx509certificate.sh<br>/home/bluet/.juniper_networks/ncLinuxApp.jar</pre><p>3. 使用 32 位元 Java 執行 msjnc (請略過這個步驟，如果你不想多裝一個累贅的 32 位元 Java)</p><p>我<em>不</em>想安裝<em>多一個累贅癡肥的 Java</em>，<em>只為了這個</em> 32 位元的鬼東西。<br>我用的是 240G SSD。速度快但是西北貴，我真的不想<em>浪費我的硬碟空間</em>在這<em>幾乎用不到的 32 位元 Java</em>。<br>但如果你堅持，或是你覺得你有<em>一狗票硬碟可浪費，還有浪費電、浪費網路頻寬</em>，那就這麼做吧。我制止不了你。<br>不然，<em>別這麼做</em>。</p><p>安裝多餘的 32 位元 Java：</p><pre>sudo apt-get install openjdk-7-jdk:i386</pre><p>msjnc 有它自己的圖形界面，讓使用者能較容易地控制 VPN 連線，但它需要 32 位元 Java。<br>現在你可以在 <strong>Dash</strong> 中搜尋 <strong>Network Connect</strong> 並開始使用閃亮亮的圖形界面了。（歧視表情）</p><p>但我不是腦殘，指令列又酷又炫。好 CLI，不用嗎？</p><h3>啟動 VPN，開始享受</h3><p>現在我們該設定 VPN 並讓它執行了。</p><h4>設定 VPN</h4><p><strong>Ubuntu 16.10 或更新的版本（Linux Kernel 4.5 及之後的版本）請先執行這個指令</strong>，因為一個 <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343091">NetworkConnect bug</a> ，解法取自 <a href="https://bugzilla.kernel.org/show_bug.cgi?id=121131#c24">Kernel 討論串</a>。</p><pre>echo 0 | sudo tee /proc/sys/net/ipv6/conf/default/router_solicitations</pre><p>執行 <strong>junipernc</strong> <em>且不要用 32 位元 Java</em></p><pre>junipernc --nojava</pre><p><em>第一次執行</em>時，你會看到一些跳出的圖形對話框，詢問你有關 <em>VPN 的資訊</em>。<br>我們在<em>第一步驟</em>時就已經準備好這些資訊了，此時不用更待何時，所以現在輸入吧。<br> 一旦完成，系統裡會多出一個<em>新的網路界面</em>。</p><pre>bluet@clean:~$ ifconfig tun0<br>tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  <br>          inet addr:10.99.1.30  P-t-P:10.99.1.30  Mask:255.255.255.255<br>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1<br>          RX packets:16363 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:500 <br>          RX bytes:20952021 (20.9 MB)  TX bytes:777393 (777.3 KB)</pre><p>現在你可以 <em>ping 看看你的辦公室電腦</em>或是<em>上 </em><a href="https://www.whatismyip.com/"><em>WhatIsMyIP</em></a><em> 看看你的 IP</em>，你已經進入 VPN 的裏世界了。 你也看看這兩個檔案中所儲存的 VPN 設定： ~/.vpn.default.crt</p><h4>啟動 VPN</h4><p>下次想要啟動 VPN 連線時，用<em>一樣的指令</em>即可。</p><pre>junipernc --nojava</pre><p>輸入密碼後，你就再度進入那神秘美好的世界了。</p><h4>停止 VPN</h4><p>當你工作完畢，想要斬斷魂結、斷開鎖鏈時，用這個指令<em>斬斷 VPN 執行程序</em>以斷開 VPN</p><pre>sudo killall ncsvc</pre><h3>後記</h3><p>我花了好幾個小時搞定讓它能動，然後花了整晚重複確認步驟、寫英文版 HOWTO，然後又寫中文版到早上... 希望這篇教學能為你節省時間，節能省碳，救了隻小貓、少砍一顆樹，促進世界和平大同。</p><p><strong>享受吧！阿宅！</strong></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2016/03/29/%E6%95%99%E5%AD%B8%3A-%E7%94%A8-Ubuntu-Linux-%2864bit%29-%E7%92%B0%E5%A2%83%E4%BD%BF%E7%94%A8-Juniper-SSL-VPN-%28%E5%85%8D%E8%A3%9D-32bit-Java%29-%28zh_TW%29"><em>blog.geeky.name</em></a><em> on March 28, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adabd9b298e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/%E6%95%99%E5%AD%B8-%E7%94%A8-ubuntu-linux-64bit-%E7%92%B0%E5%A2%83%E4%BD%BF%E7%94%A8-juniper-ssl-vpn-%E5%85%8D%E8%A3%9D-32bit-java-zh-tw-adabd9b298e4">教學: 用 Ubuntu Linux (64bit) 環境使用 Juniper SSL VPN (免裝 32bit Java) (zh_TW)</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO: Ubuntu Linux (64bit) Client connect to Juniper SSL VPN, without 32bit Java (en)]]></title>
            <link>https://medium.com/geeky-log/howto-ubuntu-linux-64bit-client-connect-to-juniper-ssl-vpn-without-32bit-java-en-32544ab73ad4?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/32544ab73ad4</guid>
            <category><![CDATA[juniper]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Mon, 28 Mar 2016 16:13:00 GMT</pubDate>
            <atom:updated>2018-10-08T09:43:06.751Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><strong>Juniper SSL VPN</strong> is widely been used in many places, including almost every National University in Taiwan, provided by <a href="http://noc.twaren.net/noc_2008/Services/SSLVPN/index.php">TWAREN</a>.<br>Using <strong>Ubuntu (Linux) 64bit</strong> as client to connect to it is <em>not painless, but Pain-in-the-Ass</em>.<br>If you <em>don’t want to install another HUGE 32bit Java</em> just for it, this is <em>the right HOWTO Guide for you</em>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fbluet_lien%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fbluet_lien&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href">https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href</a></iframe><p>If you want Chinese HOWTO, check <a href="https://medium.com/geeky-log/%E6%95%99%E5%AD%B8-%E7%94%A8-ubuntu-linux-64bit-%E7%92%B0%E5%A2%83%E4%BD%BF%E7%94%A8-juniper-ssl-vpn-%E5%85%8D%E8%A3%9D-32bit-java-zh-tw-adabd9b298e4#.oy4abhho6">中文版教學</a> or <a href="http://blog.geeky.name/post/2016/03/29/%E6%95%99%E5%AD%B8%3A-%E7%94%A8-Ubuntu-Linux-%2864bit%29-%E7%92%B0%E5%A2%83%E4%BD%BF%E7%94%A8-Juniper-SSL-VPN-%28%E5%85%8D%E8%A3%9D-32bit-Java%29-%28zh_TW%29">中文版教學</a></p><h4>Synopsis</h4><pre># Install libs<br>sudo apt-get install libc6:i386 zlib1g:i386 libgtk2-perl libwww-perl</pre><pre># Get files<br>wget <a href="https://raw.github.com/madscientist/msjnc/master/msjnc">https://raw.github.com/madscientist/msjnc/master/msjnc</a><br>wget <a href="http://mad-scientist.net/junipernc">http://mad-scientist.net/junipernc</a><br>chmod +x msjnc junipernc</pre><pre># Using browser to download jar files from SSLVPN website</pre><pre># Extract files<br>./msjnc</pre><pre># Start VPN<br>junipernc --nojava</pre><h3>What’s SSL VPN</h3><h4>VPN</h4><p>A <strong>VPN</strong> (<strong>Virtual Private Network</strong>) is a way for people to <em>access services in </em><strong><em>LAN</em></strong><em> (</em><strong><em>Local Area Network</em></strong><em>) behind </em><strong><em>NAT Firewall</em></strong>. For example, to connect to your office computer when you’re at home or travelling. There are many kinds of VPN you can use, like PPTP, OpenVPN, Cicso OpenConnect, and else.</p><h4>SSL VPN</h4><p><strong>SSL VPN</strong> is one of them which was designed to be usable as long as you <em>have a browser</em>.<br> Some people consider it as <em>the easiest way</em> for users, but it’s <em>only true when</em> all their users use M$ Windows, or when they provide <em>enough cross-platform support</em>.<br> Sadly <strong>Juniper SSLVPN</strong> solution (<strong>NetworkConnect</strong> client) <em>doesn’t have</em> good-enough support for <em>64bit Linux</em>. So we have to do some hacks.</p><h3>Tools</h3><p>You’re ganna need these:</p><ul><li>junipernc</li><li>msjnc</li><li>Browser (Firefox or Chromium)</li><li>Java (your original 64bit Java with browser plugin installed)</li><li>few really basic 32bit lib</li><li>some basic perl libs for GUI (to avoid using Java GUI which needs more 32bit support)</li></ul><p>We’ll be using <strong>junipernc</strong> in this case. It is a command line script which setup and run neccessary commands automatically. msjnc is for extracting files we need.</p><p>Browser is only used for downloading Juniper’s SSLVPN client <strong>NetworkConnect</strong>.</p><p>Java is only used for it’s auto-install process. You can find another article about how to install Oracle Java <a href="http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html">HERE</a>.</p><pre>sudo apt-get install libc6:i386 zlib1g:i386<br>sudo apt-get install libgtk2-perl libwww-perl<br>wget <a href="https://raw.github.com/madscientist/msjnc/master/msjnc">https://raw.github.com/madscientist/msjnc/master/msjnc</a><br>wget <a href="http://mad-scientist.net/junipernc">http://mad-scientist.net/junipernc</a><br>chmod +x msjnc junipernc</pre><p>Or you can download junipernc <a href="http://blog.geeky.name/public/junipernc">HERE</a> and msjnc <a href="http://blog.geeky.name/public/msjnc">HERE</a>.</p><h3>Steps</h3><h4>Prepare Information</h4><p>We need some info for our tool to login for us:</p><ul><li>Network Connect URL or Server</li><li>username</li><li>Realm</li></ul><p><strong>Network Connect URL or Server</strong> is the url where you can see the login page in your browser. In my case it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*5qAYmu0todetxwfboPapdA.png" /><figcaption>TWAREN’s Juniper SSLVPN Login page</figcaption></figure><h4>Settle Files</h4><p>We need to get all needed files settled in your system.</p><p>1.Get .jar and files</p><p>Now login to the SSLVPN.<br> When you see Network Connect -&gt; Start, just <em>click the Start</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/0*dq5Mr-3t6sYXEfLI.jpg" /></figure><p>Click <em>Permit at the page top</em> to allow Java to run, <em>keep clicking Yes</em>. In the end it will fail and show an <em>error about 32bit</em>.<br><em>DON’T PANIC</em>, it’s normal as we’re using 64bit system and the Java application wants 32bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/0*0MCrm5DIAWXP8KVp.png" /></figure><p>Check the folder in your home dir, you’ll see <strong>ncLinuxApp.jar</strong> is laying right there:</p><pre>bluet@clean:~$ ls -al .juniper_networks<br>總計 2032<br>drwxrwxr-x  2 bluet bluet    4096  3月 29 01:01 .<br>drwxr-xr-x 20 bluet bluet    4096  3月 29 01:00 ..<br>-rw-rw-r--  1 bluet bluet 2065489  6月 25  2014 ncLinuxApp.jar<br>-rw-rw-r--  1 bluet bluet      19  3月 29 01:01 whitelist.txt</pre><p>2. Extract files</p><p>The tool <strong>msjnc</strong> can extract all the files we need from the original ncLinuxApp.jar</p><pre>./msjnc</pre><p>It will finish without any warning or message, but when you check the folder again, you’ll see the difference.</p><pre>bluet@Zorya:~$ find ~/.juniper_networks/<br>/home/bluet/.juniper_networks/<br>/home/bluet/.juniper_networks/networkconnect.gif<br>/home/bluet/.juniper_networks/network_connect<br>/home/bluet/.juniper_networks/network_connect/version.txt<br>/home/bluet/.juniper_networks/network_connect/libncui.so<br>/home/bluet/.juniper_networks/network_connect/xlaunchNC.sh<br>/home/bluet/.juniper_networks/network_connect/ncsvc<br>/home/bluet/.juniper_networks/network_connect/ncdiag<br>/home/bluet/.juniper_networks/network_connect/NC.jar<br>/home/bluet/.juniper_networks/network_connect/META-INF<br>/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.RSA<br>/home/bluet/.juniper_networks/network_connect/META-INF/IMPORTED.SF<br>/home/bluet/.juniper_networks/network_connect/META-INF/MANIFEST.MF<br>/home/bluet/.juniper_networks/network_connect/installNC.sh<br>/home/bluet/.juniper_networks/network_connect/ncsvc.log<br>/home/bluet/.juniper_networks/network_connect/getx509certificate.sh<br>/home/bluet/.juniper_networks/getx509certificate.sh<br>/home/bluet/.juniper_networks/ncLinuxApp.jar</pre><p>3. Use 32bit Java to run msjnc (Skip This if you don’t want to install additional 32bit Java)</p><p>I <em>don’t</em> want to install <em>another HUGE Java</em> in 32bit <em>just for this</em>.<br>I’m using a 240G SSD. It’s fast but expensive, I really don’t want to <em>waste my disk space</em> on the <em>rarely used 32bit Java</em>.<br>But if you insist, or you think you have <em>bunches of disks to waste, waste electricity and network bandwidth</em>, then do this. I can’t stop you.<br>Otherwise, <em>Don’t Do This</em>.</p><p>Install an additional 32bit Java:</p><pre>sudo apt-get install openjdk-7-jdk:i386</pre><p>msjnc has it’s own GUI interface for users to easily control VPN connections, but it needs 32bit Java.<br> Now you can search <strong>Network Connect</strong> in your <strong>Dash</strong>.</p><h3>Start VPN and Enjoy</h3><p>Now let’s setup the VPN and let it run.</p><h4>Setup VPN</h4><p><strong>For Ubuntu 16.10 and later (Linux Kernel version 4.5 and above) please Run This Before Next Command</strong> due to a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343091">NetworkConnect bug</a>. Solution from <a href="https://bugzilla.kernel.org/show_bug.cgi?id=121131#c24">Kernel discussion thread</a> .</p><pre>echo 0 | sudo tee /proc/sys/net/ipv6/conf/default/router_solicitations</pre><p>Run <strong>junipernc</strong> without 32bit Java</p><pre>junipernc --nojava</pre><p>You’ll see GUI prompt boxes asking <strong><em>VPN info</em></strong><em> at the first time</em>.<br> We have them ready in the <em>first step</em>, so just type them in.<br> Once finished, there will be a <em>new network interface</em> in your system.</p><pre>bluet@clean:~$ ifconfig tun0<br>tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  <br>          inet addr:10.99.1.30  P-t-P:10.99.1.30  Mask:255.255.255.255<br>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1<br>          RX packets:16363 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:500 <br>          RX bytes:20952021 (20.9 MB)  TX bytes:777393 (777.3 KB)</pre><p>Now <em>ping your office computer</em> or <em>check </em><a href="https://www.whatismyip.com/"><em>WhatIsMyIP</em></a>, you’re now in the VPN world. Also you’ll see VPN info stored in ~/.vpn.default.crt</p><h4>Start VPN</h4><p>Next time you want to start the VPN, just type the same command</p><pre>junipernc --nojava</pre><p>Enter the password, and you’re ON.</p><h4>Stop VPN</h4><p>When you finished your works, use this command to kill VPN process to stop VPN</p><pre>sudo killall ncsvc</pre><p>I’ve spend hours figuring out how to make it work, and then whole night to double-check and write this article. Hope this HOWTO can save your time, save a kitten and a tree.</p><p><strong>Enjoy!</strong></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2016/03/29/HOWTO%3A-Ubuntu-Linux-64bit-Client-connect-to-Juniper-SSL-VPN-without-32bit-Java-%28en%29"><em>blog.geeky.name</em></a><em> on March 28, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32544ab73ad4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-ubuntu-linux-64bit-client-connect-to-juniper-ssl-vpn-without-32bit-java-en-32544ab73ad4">HOWTO: Ubuntu Linux (64bit) Client connect to Juniper SSL VPN, without 32bit Java (en)</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO — Set Tag color on Taiga.io]]></title>
            <link>https://medium.com/geeky-log/howto-set-tag-color-on-taiga-io-ade9f86052cf?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ade9f86052cf</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[taiga]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Sun, 20 Mar 2016 18:58:00 GMT</pubDate>
            <atom:updated>2016-04-23T21:18:51.284Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>HOWTO — Set Tag color on Taiga.io</h3><h3>Synopsis</h3><pre># Install tools<br>sudo apt-get install curl jq<br>wget <a href="http://blog.geeky.name/public/taiga.user_token.sh">http://blog.geeky.name/public/taiga.user_token.sh</a><br>chmod +x taiga.user_token.sh</pre><pre># Get Token<br>./taiga.user_token.sh</pre><pre># Get Project ID<br>curl -X GET \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br> https://api.taiga.io/api/v1/projects/by_slug?slug=${PROJECT_SLUG}</pre><pre># Set color<br>curl -X PATCH \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br> -d \<br>&#39;{<br>    &quot;tags_colors&quot;: {<br>        &quot;normal&quot;: &quot;#0000ff&quot;,<br>        &quot;important&quot;: &quot;#fcaf3e&quot;,<br>        &quot;high&quot;: &quot;#ff0000&quot;<br>    }<br>}&#39; \<br> https://api.taiga.io/api/v1/projects/${PROJECT_ID}</pre><h3>What’s Taiga?</h3><p><a href="http://taiga.io/">Taiga.io</a> is a cool <strong>OpenSource Project Management tool</strong> for <strong>Scrum</strong> / <strong>Agile Development</strong>.</p><p>I use it in my company, side projects, and also introduce it in my classes in university. It offers Free Hosting service for public project, and paid version for private project.</p><h4>Tags</h4><p>In my teams we use Tags to prioritize Tasks, High with color Red, Normal with color Blue, etc.</p><p>But there’s no place in it’s UI for setting tag color, so have to set it manually via <strong>REST interface</strong>.</p><p>You can’t set the color when adding Tags to the Tasks, it’s generated by system automatically, so we’ll guide you to change tags_colors to fit your needs here.</p><p>We use <strong>Ubuntu Linux </strong>in this guide, but it should be the same on other Linux distro and Mac OSX.</p><h3>Tools</h3><p>Two tools you need:</p><ul><li>curl</li><li>jq</li></ul><p>You can install by using the following command:</p><pre>$ sudo apt-get install curl jq</pre><h3>Prepare Information</h3><p>You have to be an Admin of the project you wanna modify.<br>You need two informations prepared before you can change color:</p><ul><li>Login Token</li><li>Project ID</li></ul><h4>1. Getting your own Login Token / Credential</h4><p>Use the script on <a href="http://taigaio.github.io/taiga-doc/dist/api.html#_authentication">their site</a> or download it <a href="http://blog.geeky.name/public/taiga.user_token.sh">HERE</a>.<br>Run it and follow it’s steps:</p><pre>$ chmod +x ./taiga.user_token.sh &amp;&amp; ./taiga.user_token.sh</pre><p>Then you’ll get something like this:</p><pre>Username or email: BlueTxxx@xxx.xxx<br>Password: xxxx<br>auth_token is XXXXXXXXX</pre><p>Save the token for later use.<br>Let’s call it <em>${AUTH_TOKEN}</em>.</p><h4>2. Get the Project ID</h4><p>Use your project <strong>slug</strong> to find ID. Taiga use the word slug but you can treat it as the Name of your project.<br>When you open your project in browser, you can see something like <a href="https://tree.taiga.io/project/bluet-test-project"><em>https://tree.taiga.io/project/bluet-test-project</em></a> where the “bluet-test-project” is the slug.<br>Let’s call it <em>${PROJECT_SLUG}</em>.</p><p>Now run the command in your Terminal.<br>Remember to replace <em>${AUTH_TOKEN}</em> and <em>${PROJECT_SLUG}</em> to your actual string.</p><pre>$ curl -X GET \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br>https://api.taiga.io/api/v1/projects/by_slug?slug=${PROJECT_SLUG}</pre><p>Find the Project ID “id” at the 1st level. Save it for later use.<br>You can also use <a href="https://jsonformatter.curiousconcept.com/">THIS</a> online JSON prettifier to help you find it more easier. Scroll up from the bottom (end of the file) so you can find it quicker.<br>Let’s call it <em>${PROJECT_ID}</em>.</p><h3>Working on Tag Color</h3><p>There are two things you need to keep in mind:</p><ul><li>The Tag must be created and exist (already using on some Tasks). If not, next time when you (firstly) use this tag on tasks, will trigger the creating process and overwrite current settings.</li><li>If you remove the tag from all tasks, the tag itself and it’s settings will be removed.</li><li>You can create a “Tag Color Holder” Task to ensure above cases won’t happen.</li></ul><h4>1. Retrieve Current Settings</h4><p>Run the command to check the data format and ensure everything’s prepared.</p><pre>$ curl -X GET \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br>https://api.taiga.io/api/v1/projects/${PROJECT_ID}/tags_colors</pre><p>You’ll see something like this:</p><pre>{&quot;normal&quot;: &quot;#75507b&quot;, &quot;important&quot;: &quot;#fcaf3e&quot;, &quot;high&quot;: &quot;#4e9a06&quot;}</pre><p>As you can see, we have “high” and “normal” tags exist, but not the color I want.</p><h4>2. Set the Color You Want</h4><p>Be careful of the POST data structure. It’s a little different from what we got in previous command.</p><pre>$ curl -X PATCH \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br> -d \<br>&#39;{<br>    &quot;tags_colors&quot;: {<br>        &quot;normal&quot;: &quot;#0000ff&quot;,<br>        &quot;important&quot;: &quot;#fcaf3e&quot;,<br>        &quot;high&quot;: &quot;#ff0000&quot;<br>    }<br> }&#39; \<br> https://api.taiga.io/api/v1/projects/${PROJECT_ID}</pre><p>The whole project data with new settings will show on the screen, but we don’t care, if there’s no error.<br>Retrieve your tags_colors settings again to check if they’ve been modified correctly.<br>The same command in previous section:</p><pre>$ curl -X GET \<br> -H &quot;Content-Type: application/json&quot; \<br> -H &quot;Authorization: Bearer ${AUTH_TOKEN}&quot; \<br>https://api.taiga.io/api/v1/projects/${PROJECT_ID}/tags_colors</pre><p>Bingo! The result is:</p><pre>{&quot;normal&quot;: &quot;#0000ff&quot;, &quot;important&quot;: &quot;#fcaf3e&quot;, &quot;high&quot;: &quot;#ff0000&quot;}</pre><h3>Confirm and Enjoy</h3><p>Now go to your <em>https://tree.taiga.io/projects/${PROJECT_ID}</em> in your browser and check task colors in your Sprint.</p><h3>Ref</h3><ul><li><a href="http://taigaio.github.io/taiga-doc/dist/api.html#_authentication">http://taigaio.github.io/taiga-doc/dist/api.html#_authentication</a></li><li><a href="http://taigaio.github.io/taiga-doc/dist/api.html#projects-get-by-slug">http://taigaio.github.io/taiga-doc/dist/api.html#projects-get-by-slug</a></li><li><a href="https://groups.google.com/forum/#!topic/taigaio/gRoO-RVeKo8">https://groups.google.com/forum/#!topic/taigaio/gRoO-RVeKo8</a></li></ul><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2016/03/21/HOWTO-Set-Tag-color-on-Taiga.io"><em>blog.geeky.name</em></a><em> on March 20, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ade9f86052cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-set-tag-color-on-taiga-io-ade9f86052cf">HOWTO — Set Tag color on Taiga.io</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[在 Ubuntu Linux + Firefox 上使用「台新銀行網路 ATM」]]></title>
            <link>https://medium.com/geeky-log/%E5%9C%A8-ubuntu-linux-firefox-%E4%B8%8A%E4%BD%BF%E7%94%A8-%E5%8F%B0%E6%96%B0%E9%8A%80%E8%A1%8C%E7%B6%B2%E8%B7%AF-atm-b0623085853e?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0623085853e</guid>
            <category><![CDATA[atm-services]]></category>
            <category><![CDATA[firefox]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Fri, 25 Dec 2015 19:29:00 GMT</pubDate>
            <atom:updated>2016-12-11T20:39:00.083Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>我已經過了十年沒有 M$ Windows 的生活了，近年使用<em>玉山銀行 WebATM</em> 都很<strong>順暢</strong>，<br>我同時也有用其他幾家的帳戶，包括有支援 Linux 但是<strong>做得很應付</strong>的<em>台新銀行</em>， 但有時要查台新的帳戶時，就不得不又要重新處理這鳥問題…</p><p>（順便附上<a href="http://blog.geeky.name/public/npTaishinBank-fixed.deb">修正後的 deb 安裝擋</a>了。）</p><p>更新：台新似乎改了某些東西，但是給 Linux 的 plugin 卻沒有更新。 如同網站上說的，請大家一起打電話去反應吧！</p><p>若仍無法交易，請您撥打客服專線：02–26553355</p><h4><strong>緣由</strong></h4><p>我已經過了十年沒有 M$ Windows 的生活了，近年使用玉山銀行 WebATM 都很<strong>順暢</strong>，<br> 我同時也有用其他幾家的帳戶，包括有支援 Linux 但是<strong>做得很應付</strong>的台新銀行， 但有時要查台新的帳戶時，就不得不又要重新處理這鳥問題…</p><h4>環境</h4><p>通常沒安裝 plugin 時一連上會看到這個畫面：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/0*agL72Pgkb9F7-0jr.jpg" /></figure><p>順著點下去，會看到這個畫面，我們下載並安裝後會碰到問題：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/0*fI4550Hfy90Ile-u.jpg" /></figure><p>指令列安裝會發現問題在於 deb 中的 debian/control 檔案沒寫好。</p><pre>matthew@0xB1uE7:~/下載/npTaishinBank$ sudo dpkg -i ./npTaishinBank.deb<br>dpkg: error processing archive ./npTaishinBank.deb ( — install):<br>分析檔案 ‘/var/lib/dpkg/tmp.ci/control’ 的第 10 行附近，套件為’nptaishinbank’：<br>欄位’Description’ 的值中有空白行<br>處理時發生錯誤：<br>./npTaishinBank.deb</pre><p>這個問題應該打包時就會跳出錯誤了，打包完測試時應該也會發現，不知道是為什麼會把這樣的東西放出來….</p><p><strong>修正方法</strong>：</p><p>1.解開 deb</p><pre>$ mkdir npTaishinBank<br>$ dpkg-deb -x npTaishinBank.deb npTaishinBank<br>$ dpkg-deb -e npTaishinBank.deb npTaishinBank/DEBIAN</pre><p>2.修改 debian/control 檔案（刪除多餘的空行）</p><pre><em>$ vim npTaishinBank/DEBIAN/control</em></pre><p>3. 重新打包</p><pre>$ dpkg-deb -b npTaishinBank/ npTaishinBank-fixed.deb<br>dpkg-deb：把套件 `nptaishinbank’製作為 `npTaishinBank-fixed.deb’。</pre><p>4. 安裝修正後的檔案</p><pre>$ sudo dpkg -i ./npTaishinBank-fixed.deb<br>選取了原先未選的套件 nptaishinbank。<br>（讀取資料庫 … 目前共安裝了 892267 個檔案和目錄。）<br>準備解開 ./npTaishinBank-fixed.deb …<br>解開 nptaishinbank (1.0.0.1) 中…<br>設定 nptaishinbank (1.0.0.1) …</pre><p>重開 Firefox 後應該就好了。</p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2015/12/26/%E5%9C%A8-Ubuntu-Linux-Firefox-%E4%B8%8A%E4%BD%BF%E7%94%A8%E3%80%8C%E5%8F%B0%E6%96%B0%E9%8A%80%E8%A1%8C%E7%B6%B2%E8%B7%AF-ATM%E3%80%8D"><em>blog.geeky.name</em></a><em> on December 25, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0623085853e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/%E5%9C%A8-ubuntu-linux-firefox-%E4%B8%8A%E4%BD%BF%E7%94%A8-%E5%8F%B0%E6%96%B0%E9%8A%80%E8%A1%8C%E7%B6%B2%E8%B7%AF-atm-b0623085853e">在 Ubuntu Linux + Firefox 上使用「台新銀行網路 ATM」</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO: Ubuntu 14.04 安裝 嘸蝦米輸入法]]></title>
            <link>https://medium.com/geeky-log/howto-ubuntu-14-04-boshiamy-gcin-%E5%AE%89%E8%A3%9D%E5%98%B8%E8%9D%A6%E7%B1%B3%E8%BC%B8%E5%85%A5%E6%B3%95-a0413f9db1b3?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0413f9db1b3</guid>
            <category><![CDATA[chinese]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Mon, 21 Apr 2014 02:27:00 GMT</pubDate>
            <atom:updated>2016-12-11T20:31:01.213Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>很多人習慣用嘸蝦米輸入法，順手寫了安裝介紹，希望能有幫助。(iBus 沒試成功，請用 gcin)</p><p>安裝 gcin 輸入法框架，並切換預設為 gcin：<br>在桌面左上角的 Ubuntu 圖示點一下，會出現搜尋框，在裏面輸入「terminal」就會出現黑色的圖示「終端機」，請點擊打開。<br>(指令中的 $ 請不要輸入，那是代表指令模式的開頭)</p><pre>$ sudo apt-get install gcin im-switch<br>$ im-switch -s gcin</pre><p>這個步驟也可以改成：</p><ol><li>在「軟體中心」搜尋 gcin 這個軟體並安裝</li><li>在「軟體中心」搜尋 im-switch 並安裝</li><li>到「語言支援」裡將 iBus 改為 gcin</li></ol><p>因為新的桌面環境的狀態列有設定一些限制，避免雜亂，所以我們現在要告訴系統要允許 gcin 出現在畫面右上角的狀態列：</p><pre>$ gsettings set com.canonical.Unity.Panel systray-whitelist &quot;[&#39;all&#39;]&quot;</pre><p>至此，<strong>請先登出，重新登入</strong>，讓 gcin 幫你自動新增和設定一些你需要的檔案。</p><p>接下來我們要下載所需檔案，並安裝嘸蝦米輸入法：</p><pre>$ mkdir tmp;cd tmp<br>$ wget <a href="http://edt1023.sayya.org/misc/noseeing-6.tar.gz">http://edt1023.sayya.org/misc/noseeing-6.tar.gz</a><br>$ tar zxvf noseeing-6.tar.gz<br>$ mv ./noseeing.gtab ~/.gcin</pre><p>至此，你已經裝好了。請<strong>登出，重新登入</strong>。在畫面右上角的狀態列中，你會看到輸入法的圖示。<br>對著圖示點擊滑鼠左鍵，在列表中找到嘸蝦米，點滑鼠左鍵選取，就可以開始用嘸蝦米輸入中文囉~！</p><p>Trackback URL : <a href="http://blog.geeky.name/trackback/779544">http://blog.geeky.name/trackback/779544</a></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/ubuntu-14.04-boshiamy-gcin"><em>blog.geeky.name</em></a><em> on April 21, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0413f9db1b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-ubuntu-14-04-boshiamy-gcin-%E5%AE%89%E8%A3%9D%E5%98%B8%E8%9D%A6%E7%B1%B3%E8%BC%B8%E5%85%A5%E6%B3%95-a0413f9db1b3">HOWTO: Ubuntu 14.04 安裝 嘸蝦米輸入法</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO — 在 Ubuntu/Linux 中關閉 IPv6 支援]]></title>
            <link>https://medium.com/geeky-log/howto-%E5%9C%A8-ubuntu-linux-%E4%B8%AD%E9%97%9C%E9%96%89-ipv6-%E6%94%AF%E6%8F%B4-b430d2eb5cbb?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b430d2eb5cbb</guid>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Thu, 23 Jun 2011 06:23:00 GMT</pubDate>
            <atom:updated>2016-12-11T20:24:10.601Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>舊文分享，英翻中。原文鍊結： <a href="http://blog.geeky.name/post/2011/04/15/HOWTO-Disable-IPv6-support-in-Ubuntu/Linux.">http://blog.geeky.name/post/2011/04/15/HOWTO-Disable-IPv6-support-in-Ubuntu/Linux.</a><br>同文分享於 <a href="http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=190590">Ubuntu-TW 論壇</a></blockquote><p>因為 IPv4 的耗盡，現在全世界都在推行 IPv6。大家可能都知道，Ubuntu 預設支援 IPv6。<br>這是很好的事情，但有時候你在所處得環境中根本無法使用 IPv6。<br>而且，有時候在不適當的場合，他會在你管理系統時造成好些複雜性。</p><p>比如說，如果你在某個服務的設定檔中設定了 listen_ip=0.0.0.0:80 並且希望這個服務能自動跑在你所有的網路介面，你可能得不到你想要的。</p><p>這是因為，如果這個服務同時支援了 IPv4 和 IPv6 而且沒做好防呆，你的系統會預設自動讓他聽 IPv6 :::80。這就是為什麼即使你的網路是通的，你還是沒法連接到你的服務上。<br>（當然，也可以增加 Firefox 的查詢速度。）<br>請注意，只有在你的網路環境不支援 IPv6 時，才推薦從系統上關閉。否則，請支持 IPv6 普及化的推動。</p><h4>HowTo:</h4><p>你會從人們或網路上聽到許多不同的、或是奇怪的方法，告訴你那能關掉 IPv6。<br>但最棒的方法莫過於與使用 /etc/sysctl.conf 來從 kernel 中關掉它。</p><p>1. 用以下的指令來增加設定到 /etc/sysctl.conf 中。</p><pre>$ echo &quot;#disable ipv6&quot; | sudo tee -a /etc/sysctl.conf<br>$ echo &quot;net.ipv6.conf.all.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf<br>$ echo &quot;net.ipv6.conf.default.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf<br>$ echo &quot;net.ipv6.conf.lo.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf</pre><p>2. 馬上啟用這些設定！</p><pre>$ sudo sysctl -p</pre><p>完成！ <br>剛剛的這些設定會被保留，而且在以後重開機時也會被自動啟用。</p><p>測試環境： Ubuntu 8.04 LTS, Ubuntu 10.04 LTS</p><p>Trackback URL : <a href="http://blog.geeky.name/trackback/848182">http://blog.geeky.name/trackback/848182</a></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2011/06/23/HOWTO-%E5%9C%A8-Ubuntu/Linux-%E4%B8%AD%E9%97%9C%E9%96%89-IPv6-%E6%94%AF%E6%8F%B4%E3%80%82"><em>blog.geeky.name</em></a><em> on June 23, 2011.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b430d2eb5cbb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-%E5%9C%A8-ubuntu-linux-%E4%B8%AD%E9%97%9C%E9%96%89-ipv6-%E6%94%AF%E6%8F%B4-b430d2eb5cbb">HOWTO — 在 Ubuntu/Linux 中關閉 IPv6 支援</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO — Disable IPv6 support in Ubuntu/Linux.]]></title>
            <link>https://medium.com/geeky-log/howto-disable-ipv6-support-in-ubuntu-linux-89033cc61b21?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/89033cc61b21</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Fri, 15 Apr 2011 07:21:00 GMT</pubDate>
            <atom:updated>2016-12-11T20:19:43.105Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>As many people know, Ubuntu supports IPv6 by default. It’s nice but sometimes you don’t have chance to use IPv6 in your network environment. And maybe, sometimes it brings few more complexity for your system administration tasks.</p><p>For example, if you set <em>listen_ip=0.0.0.0:80</em> in a services daemon’s config file and hope it can listen to all of the IPv4 IPs of your network interfaces, you might not get what you want.</p><p>This is because, if the daemon supports both IPv4 and IPv6, it will listen to <em>IPv6 :::80</em> by default. That’s why you cannot connect to your service even the network link is up.</p><h4>HOWTO:</h4><p>There are many different, alternative, or strange ways people tell you that it can disable IPv6.</p><p>But the best way is using <em>/etc/sysctl.conf</em> to disable it in your kernel.</p><pre># Using those commands to append kernel settings/parameters into <em>/etc/sysctl.conf</em></pre><pre>echo &quot;#disable ipv6&quot; | sudo tee -a /etc/sysctl.conf<br>echo &quot;net.ipv6.conf.all.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf<br>echo &quot;net.ipv6.conf.default.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf<br>echo &quot;net.ipv6.conf.lo.disable_ipv6 = 1&quot; | sudo tee -a /etc/sysctl.conf</pre><p>Enable those settings Righ Now!</p><pre>sysctl -p</pre><p><strong>Done!</strong></p><p>All those setting will will be kept and will be applied/enabled automatically at future boot time. Tested on: Ubuntu 8.04 LTS, Ubuntu 10.04 LTS</p><p>Trackback URL : <a href="http://blog.geeky.name/trackback/848183">http://blog.geeky.name/trackback/848183</a></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2011/04/15/HOWTO-Disable-IPv6-support-in-Ubuntu/Linux."><em>blog.geeky.name</em></a><em> on April 15, 2011.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89033cc61b21" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-disable-ipv6-support-in-ubuntu-linux-89033cc61b21">HOWTO — Disable IPv6 support in Ubuntu/Linux.</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO: PPTP: Ubuntu Client connect to Windows VPN Server]]></title>
            <link>https://medium.com/geeky-log/howto-pptp-ubuntu-client-connect-to-windows-vpn-server-4062ecab2243?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4062ecab2243</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[windows-server]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Wed, 16 Mar 2011 18:14:00 GMT</pubDate>
            <atom:updated>2018-10-08T09:45:40.365Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>The company I work for just starting to use Windows ISA Server (or whatever) in some places.<br>And also, they use the Windows server to be a VPN server.<br>As Micro$oft doesn’t officially support OpenVPN, and we don’t consider IPsec to be used for end users, they decide to use the fu*king insecure PPTP, which I would definitely never wanna try.<br>That’s where my Nightmare starts.</p><p>After some tries, I can use the VPN on my Android phones, and it seems works fine on iPhone, too.<br>But I just can’t get it work on my Ubuntu boxes. The VPN connection just cannot established and I got error in my /var/log/syslog like this:</p><pre>Mar 17 00:03:13 0xB1uE7 pppd17577: EAP: peer reports authentication failure</pre><p>No matter what, I got it work in the end, finally.<br>And these are the steps how to get it work.</p><ol><li>$ apt-get install network-manager-pptp</li><li>$ sudo /etc/init.d/network-manager restart</li><li>Click the NetworkManager Applet</li><li><em>VPN Connection</em> -&gt; <em>Configure VPN</em> -&gt; &lt;VPN&gt; -&gt; <em>Add</em></li><li>Choose &lt;Point-to-Point Tunneling Protocol (PPTP)&gt; -&gt; <em>Create</em></li><li>Fill out those neccessary informations and click <em>Advanced</em></li><li><strong>In Authentication section, CANCEL &lt;PAP&gt;, &lt;CHAP&gt;, and &lt;EAP&gt;, KEEP ONLY &lt;MSCHAP&gt; and &lt;MSCHAPv2&gt; SELECTED.</strong></li><li><strong>In Security and Compression section, SELECT &lt;Use Point-to-Point encryption (MPPE)&gt;, and choose Security to be &lt;All Available (Default)&gt;</strong></li><li><em>OK</em> -&gt; <em>Accept</em> -&gt; <em>Close</em></li><li>Now click the NetworkManager Applet</li><li>Click <em>VPN Connection</em> and click the profile you just created.</li><li>Wait for few seconds till it get connected.</li><li>Done.</li></ol><p>Hope this HOWTO can save a tree and a kitten.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fbluet_lien%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fbluet_lien&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href">https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href</a></iframe><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2011/03/17/PPTP%3A-Ubuntu-Client-connect-to-Windows-VPN-Server"><em>blog.geeky.name</em></a><em> on March 16, 2011.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4062ecab2243" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-pptp-ubuntu-client-connect-to-windows-vpn-server-4062ecab2243">HOWTO: PPTP: Ubuntu Client connect to Windows VPN Server</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO: KVM — build ubuntu guest VM, bridge network and iptables port forwarding]]></title>
            <link>https://medium.com/geeky-log/howto-kvm-build-ubuntu-guest-vm-bridge-network-and-iptables-port-forwarding-88e231d6b51b?source=rss-b7bcf46792b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/88e231d6b51b</guid>
            <category><![CDATA[kvm]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[BlueT / Matthew Lien 練喆明]]></dc:creator>
            <pubDate>Thu, 24 Sep 2009 08:42:00 GMT</pubDate>
            <atom:updated>2018-10-08T09:46:17.232Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Once you install and setup KVM, configure kvm itself and system network bridge interface correctly on your Ubuntu server, you can now starting to build a guest OS / disk image, run it, and use iptables to forward connections to those new VPSes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fbluet_lien%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fbluet_lien&amp;image=https%3A%2F%2Fstatic.like.co%2Flikecoin_de-portrait.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href">https://medium.com/media/d25f9d3144acfd577fb7e7ad27e1aba6/href</a></iframe><h4>Build guest:</h4><pre>HTTP_PROXY=&quot;Proxy_IP:Port&quot; sudo ubuntu-vm-builder kvm hardy \<br>  --dest &#39;DEST_DIR&#39;\<br>  --hostname &#39;GUEST_HOSTNAME&#39;\<br>  --ip &#39;GUEST_IP_YOU_WANT&#39;\<br>  --arch &#39;i386&#39;\<br>  --mem &#39;256&#39;\<br>  --rootsize &#39;4096&#39;\<br>  --swapsize &#39;1024&#39;\<br>  --kernel-flavour &#39;virtual&#39;\<br>  --domain &#39;bluet.org&#39;\<br>  --mirror &#39;http://ftp.twaren.net/ubuntu&#39;\<br>  --components &#39;main,universe,multiverse,restricted&#39;\<br>  --addpkg ssh --addpkg vim  --addpkg unattended-upgrades --addpkg acpid\<br>  --name &#39;Default_User_Name&#39;  --user &#39;Default_User_Account&#39;  --pass &#39;Default_User_Password&#39;\<br>  --mask &#39;255.255.255.0&#39;\<br>  --net &#39;192.168.122.0&#39;\<br>  --bcast &#39;192.168.122.255&#39;\<br>  --gw &#39;192.168.122.1&#39;\<br>  --dns &#39;192.168.122.1&#39;\<br>  --tmp &#39;/dev/shm/&#39;\<br>  --libvirt qemu:///system ;</pre><p>Modify that to fit your needs.</p><h4>Forward “connections to specific port on HostOS” to a specific port on GuestOS (VPS):</h4><p>Run these commands in HostOS:</p><pre>$ sudo iptables -t nat -I PREROUTING -p tcp -d HostOS_IP --dport HostOS_Port -j DNAT --to GuestOS_IP:GuestOS_Port<br>$ sudo iptables -A FORWARD -p tcp -d GuestOS --dport GuestOS_Port -j ACCEPT</pre><p>For example, if you want to ssh to your VPS, you can pick a spare (not-using by other application) port, and forward “connections to the specified port on HostOS” to the GuestOS’s port 22.<br>Let’s say, when HostOS is using IP 192.168.1.2, GuestOS is using IP 192.168.122.2, the choosen port on HostOS is 10022, you can do the following commands.</p><pre>$ sudo iptables -t nat -I PREROUTING -p tcp -d 192.168.1.2 --dport 10022 -j DNAT --to 192.168.122.2:22<br>$ sudo iptables -A FORWARD -p tcp -d 192.168.122.2 --dport 22 -j ACCEPT</pre><h4>Finally, you got a configured VPS, you can start running it and ssh into it.</h4><p>Start the VPS:</p><p>If your GuestOS’ hostname is “vps01”, you can do this to start running it:</p><p>$ virsh start vps01</p><p>And then ssh into it:</p><p>$ ssh -v 192.168.1.2 -p 10022</p><p>Refs: <a href="https://help.ubuntu.com/community/KVM">KVM document page on ubuntu.com</a></p><p><em>Originally published at </em><a href="http://blog.geeky.name/post/2009/09/24/KVM-build-ubunt-guest%2C-bridge-network-and-iptables-port-forwarding"><em>blog.geeky.name</em></a><em> on September 24, 2009.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88e231d6b51b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geeky-log/howto-kvm-build-ubuntu-guest-vm-bridge-network-and-iptables-port-forwarding-88e231d6b51b">HOWTO: KVM — build ubuntu guest VM, bridge network and iptables port forwarding</a> was originally published in <a href="https://medium.com/geeky-log">GeekyLog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>