<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>binhng&#039;s blog</title>
	<atom:link href="http://binhng.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://binhng.wordpress.com</link>
	<description>There&#039;s no certainty, only opportunity.</description>
	<lastBuildDate>Fri, 17 Jun 2011 02:29:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='binhng.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/03ff627e248aa563665b70aa812f4467?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>binhng&#039;s blog</title>
		<link>http://binhng.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://binhng.wordpress.com/osd.xml" title="binhng&#039;s blog" />
	<atom:link rel='hub' href='http://binhng.wordpress.com/?pushpress=hub'/>
		<item>
		<title>LibreOffice 3.3.2 compiled from source for Slackware 13.0</title>
		<link>http://binhng.wordpress.com/2011/05/03/libreoffice-3-3-2-compiled-from-source-for-slackware-13-0/</link>
		<comments>http://binhng.wordpress.com/2011/05/03/libreoffice-3-3-2-compiled-from-source-for-slackware-13-0/#comments</comments>
		<pubDate>Mon, 02 May 2011 17:02:27 +0000</pubDate>
		<dc:creator>binhng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[libreoffice]]></category>

		<guid isPermaLink="false">http://binhng.wordpress.com/?p=110</guid>
		<description><![CDATA[I&#8217;ve just completed the compilation for LibreOffice 3.3.2 using the SlackBuild from Alien Bob (source). The box used for this task is running Slackware 13.0 and is a rather powerful machine with a Core i3 CPU and 2 GB of RAM. Still, it takes 5 hours of time and requires 9 GB of space to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=110&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just completed the compilation for LibreOffice 3.3.2 using the SlackBuild from <a href="http://alien.slackbook.org/blog/">Alien Bob</a> (<a href="http://taper.alienbase.nl/mirrors/people/alien/slackbuilds/libreoffice/build/">source</a>). The box used for this task is running Slackware 13.0 and is a rather powerful machine with a Core i3 CPU and 2 GB of RAM. Still, it takes 5 hours of time and requires 9 GB of space to complete.</p>
<p>Strangely, the package from RPM binary only occupies ~370 MB of disk space after installed while the package compiled from source takes up to ~425 MB.</p>
<p>The additional languages I built alongside the default US English are: German, UK English, Esperanto, Spanish, French, Japanese, Korean, Portuguese, Brazilian Portuguese, Vietnamese, Simplified Chinese, Traditional Chinese.</p>
<p>Anyone interested in using this package, leave a comment here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/binhng.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/binhng.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/binhng.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=110&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://binhng.wordpress.com/2011/05/03/libreoffice-3-3-2-compiled-from-source-for-slackware-13-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c5b1568f5fb6eb5cc328b48301ae5fd0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">binhng</media:title>
		</media:content>
	</item>
		<item>
		<title>JDBC Commnunications link failure</title>
		<link>http://binhng.wordpress.com/2011/05/01/jdbc-communications-link-failure/</link>
		<comments>http://binhng.wordpress.com/2011/05/01/jdbc-communications-link-failure/#comments</comments>
		<pubDate>Sun, 01 May 2011 14:08:16 +0000</pubDate>
		<dc:creator>binhng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://binhng.wordpress.com/?p=111</guid>
		<description><![CDATA[This is a post about how to install the JDBC driver for MySQL and how I resolved the error "CommunicationsException: Communications link failure". To create a Java program that make use of a MySQL database, first you have to install Connector/J &#8212; JDBC driver for MySQL. After download the file mysql-connector-java-5.1.16.tar.gz (5.1.16 is the version [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=111&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a post about how to install the JDBC driver for MySQL and how I resolved the error <code>"CommunicationsException: Communications link failure"</code>.</p>
<p>To create a Java program that make use of a MySQL database, first you have to install Connector/J &#8212; JDBC driver for MySQL.</p>
<p>After download the file <code>mysql-connector-java-5.1.16.tar.gz</code> (5.1.16 is the version as of this writing) from <a href="http://www.mysql.com/downloads/connector/j/">http://www.mysql.com/downloads/connector/j/</a>, extract it and copy the file <code>mysql-connector-java-5.1.16-bin.jar</code> to <code>/usr/lib/java/jre/lib/ext/</code></p>
<p>You can pick any simple Java app using Google. The following is the full Java error from the commandline (the Java app was compiled successfully):</p>
<pre style="overflow:auto;">
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:344)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2333)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2370)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)
	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:792)
	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
	at java.sql.DriverManager.getConnection(DriverManager.java:582)
	at java.sql.DriverManager.getConnection(DriverManager.java:207)
	at de.vogella.mysql.first.MySQLAccess.readDataBase(MySQLAccess.java:22)
	at de.vogella.mysql.first.test.Main.main(Main.java:8)
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.(Socket.java:375)
	at java.net.Socket.(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:294)
	... 16 more
</pre>
<p>There&#8217;s load of solutions floating on the Internet and these two provide me a good understanding and also a solution to the issue:<br />
<a href="http://stackoverflow.com/questions/2983248/jdbc-with-mysql">http://stackoverflow.com/questions/2983248/jdbc-with-mysql</a><br />
<a href="https://bbs.archlinux.org/viewtopic.php?pid=721345">https://bbs.archlinux.org/viewtopic.php?pid=721345</a></p>
<p>Briefly said, the error was due to mysqld was started with the option <code>"--skip-networking"</code>, so outside connections to the database were disabled.</p>
<p>On my Slackware box, although this option is commented out in <code>/etc/my.cnf</code><br />
<pre class="brush: bash;">
cat /etc/my.cnf | grep skip-networking
#skip-networking
</pre><br />
this is also an option in <code>/etc/rc.d/rc.mysqld</code>. So we have to comment out the following line in that file:</p>
<pre>SKIP="--skip-networking"</pre>
</p>
<p>Now JDBC with MySQL works beautifully.</p>
<p>Of course this is specific to Slackware. On other distributions, I believe there&#8217;s a similar way to disable the option <code>"--skip-networking"</code>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/binhng.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/binhng.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/binhng.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=111&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://binhng.wordpress.com/2011/05/01/jdbc-communications-link-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c5b1568f5fb6eb5cc328b48301ae5fd0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">binhng</media:title>
		</media:content>
	</item>
		<item>
		<title>Make Ubuntu 10.04 (Lucid) a complete system after fresh install</title>
		<link>http://binhng.wordpress.com/2010/05/03/make-ubuntu-10-04-lucid-a-complete-system-after-fresh-install/</link>
		<comments>http://binhng.wordpress.com/2010/05/03/make-ubuntu-10-04-lucid-a-complete-system-after-fresh-install/#comments</comments>
		<pubDate>Mon, 03 May 2010 16:55:33 +0000</pubDate>
		<dc:creator>binhng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://binhng.wordpress.com/?p=75</guid>
		<description><![CDATA[Though Ubuntu is not my OS of choice (well at least for now), it is the distro i recommend for linux beginners. However, the system after fresh install is far from perfect. Default system fonts are rather large (and ugly), no flash, no capable of playing mp3, mkv, avi&#8230; Since all these features are not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=75&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Though Ubuntu is not my OS of choice (well at least for now), it is the distro i recommend for linux beginners. However, the system after fresh install is far from perfect. Default system fonts are rather large (and ugly), no flash, no capable of playing mp3, mkv, avi&#8230; Since all these features are not there out-of-the-box in a fresh system, it must be easily added so that users, especially beginners do not have to spend hours hunting solutions for these rather common problems.</p>
<p>Now that an LTS (Long Term Support) version of Ubuntu has been released, I spend some time to make Ubuntu 10.04 become a more efficient system.</p>
<p>The process should be easily employed by a linux beginner, so i think the best solution is to write a bash script to automatically run some commands to get what i want.</p>
<p>The script would do the following tasks:</p>
<ul>
<li> Move window buttons to the right.</li>
<li> Make the system fonts more shiny and more readable. In this script, i set all fonts to size 9, except for title bar that is 8. Also, the default fonts of choice are droid fonts (they&#8217;re fonts on Google&#8217;s Android phones) which i think are the best free fonts collection out there. I set sub-pixel mode (useful for lcd screen) then i set font hinting to full level, these last two settings make firefox fonts much more readable.</li>
<li>Add computer icon to desktop, also remove volume icons from it.</li>
<li>Choose <a href="http://ubuntu.osuosl.org/">oslosl</a> as default repo. This is one of the best repo for linux distributions i know. Also enable canonical&#8217;s partner repo.</li>
<li> Choose whether to upgrade the system to latest packages or not (default set to not).</li>
<li> Install Microsort core fonts (for web).</li>
<li> Install Adobe Flash Player.</li>
<li> Install some codecs for playing multimedia out-of-the-box.</li>
<li>Install some additional useful packages: unrar, p7zip, tree, curl, hwinfo.</li>
</ul>
<p>Well, that&#8217;s all. I will update the script if something useful for an everyday system that i forget to add right now.</p>
<p>Here is the script: <a href="http://dl.dropbox.com/u/1090795/ubuntu_after_install.sh">ubuntu_after_install.sh</a></p>
<p>Download the script, then run it:<br />
<pre class="brush: bash;">
sh /path/to/ubuntu_after_install.sh
</pre></p>
<p>OR<br />
<pre class="brush: bash;">
UPGRADE=1 sh /path/to/ubuntu_after_install.sh
</pre><br />
(will also upgrade packages to latest versions, longer to complete).</p>
<p>A screenshot to get the idea how it will look like<br />
<a href="http://i.imgur.com/zyP52.png"><img src="http://i.imgur.com/zyP52s.png" alt="lucid screenshot" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/binhng.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/binhng.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/binhng.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=75&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://binhng.wordpress.com/2010/05/03/make-ubuntu-10-04-lucid-a-complete-system-after-fresh-install/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c5b1568f5fb6eb5cc328b48301ae5fd0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">binhng</media:title>
		</media:content>

		<media:content url="http://i.imgur.com/zyP52s.png" medium="image">
			<media:title type="html">lucid screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Rebuilding rtorrent with color patch on debian/ubuntu</title>
		<link>http://binhng.wordpress.com/2010/04/16/rebuilding-rtorrent-with-color-patch-on-debian/</link>
		<comments>http://binhng.wordpress.com/2010/04/16/rebuilding-rtorrent-with-color-patch-on-debian/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 08:20:42 +0000</pubDate>
		<dc:creator>binhng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://binhng.wordpress.com/?p=43</guid>
		<description><![CDATA[Note: Although the following was done on Debian Squeeze, the process should be the same on Ubuntu, as long as the rtorrent/libtorrent version is 0.8.6/0.12.6 Since i use Slackware as my main os, building packages is one of the thing in the linux world that i am familiar with. On Slackware it&#8217;s just creating/modifying a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=43&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Note: Although the following was done on Debian Squeeze, the process should be the same on Ubuntu, as long as the rtorrent/libtorrent version is 0.8.6/0.12.6</em></p>
<p>Since i use Slackware as my main os, building packages is one of the thing in the linux world that i am familiar with. On Slackware it&#8217;s just creating/modifying a SlackBuild file, downloading source, running the SlackBuild and the binary is there for you.</p>
<p>Now that i want to be more familiar with a deb system, i try to apply color patch for rtorrent on Debian. After googling a while, it seems that the process of building pkgs on a deb system is rather more complicated than on Slackware. You need to create many files and folders rather than just a SlackBuild on Slack.</p>
<p>Anyway, since rtorrent is present on Debian repos, the rebuilding of it is simpler than i thought at first. Now the steps:</p>
<p>1- Get the source from a Debian repo, so you can then have a building structure adhering to Debian standard</p>
<p><pre class="brush: bash;">
mkdir rtorrent-color &amp;&amp; cd rtorrent-color
apt-get source rtorrent
</pre></p>
<p>Since apt-get source will get the sources and put them in pwd, the first command is for avoiding the messed-up.</p>
<p>2- Now you need to install dependencies for building. Debian has a method for this</p>
<p><pre class="brush: bash;"> aptitude build-dep rtorrent</pre></p>
<p>3- Get the color patch <a href="http://www.mediafire.com/?ntzmekmmcl0">here</a>. I got it from AUR&#8217;s <a href="http://aur.archlinux.org/packages.php?ID=31956">rtorrent-color</a>. At the time of this writing, the patch is for rtorrent 0.8.6, which is the version i used on Slackware/Arch/Debian Squeeze.</p>
<p>Put that patch into the patches folder in the Debian&#8217;s build tree</p>
<p><pre class="brush: bash;"> mv rtorrent-0.8.6-canvas-fix.patch rtorrent-0.8.6/debian/patches/</pre></p>
<p>4- Finally go to the extraced source folder and rebuild it</p>
<p><pre class="brush: bash;"> cd rtorrent-0.8.6
 debuild -us -uc</pre></p>
<p>The two flags is to tell the building process not to sign the package.</p>
<p>After the rebuilding is finish, the deb file is waiting for you in the parent folder rtorrent-color. Just go up and install/upgrade it</p>
<p><pre class="brush: bash;">
 cd ..
 dpkg -i rtorrent_0.8.6-1_i386.deb</pre></p>
<p>To prevent this modified version to be upgraded to the original version in Debian&#8217;s repo, &#8216;hold&#8217; it so APT will ignore each time we upgrade our machine.</p>
<p><pre class="brush: bash;"> aptitude hold rtorrent</pre></p>
<p>For rtorrent to show colors, some color configurations must be put into ~/.rtorrent.rc. This is from mine</p>
<p><pre class="brush: plain;"> The configuration for color patch
done_fg_color=2
#done_bg_color=3
active_fg_color=1
#active_bg_color=5
</pre></p>
<p>Nice, isn&#8217;t it?<br />
<a href="http://i.imgur.com/taSkF.png"><img src="http://i.imgur.com/taSkFs.png" alt="rtorrent-color in action" /></a><br />
<em>(Image taken from <a href="http://www.howtoforge.com/how-to-compile-rtorrent-from-svn-in-ubuntu-10.04-lucid-lynx-debian-5-lenny-with-coloured-interface">howtoforge</a>).</em></p>
<p>See <a href="http://libtorrent.rakshasa.no/ticket/1382">here</a> if you wish to use other colors.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/binhng.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/binhng.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/binhng.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=43&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://binhng.wordpress.com/2010/04/16/rebuilding-rtorrent-with-color-patch-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c5b1568f5fb6eb5cc328b48301ae5fd0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">binhng</media:title>
		</media:content>

		<media:content url="http://i.imgur.com/taSkFs.png" medium="image">
			<media:title type="html">rtorrent-color in action</media:title>
		</media:content>
	</item>
		<item>
		<title>SlackBuild for xvnkb</title>
		<link>http://binhng.wordpress.com/2010/03/28/slackbuild-for-xvnkb/</link>
		<comments>http://binhng.wordpress.com/2010/03/28/slackbuild-for-xvnkb/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 08:27:33 +0000</pubDate>
		<dc:creator>binhng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[xvnkb]]></category>

		<guid isPermaLink="false">http://binhng.wordpress.com/?p=27</guid>
		<description><![CDATA[Edit: This SlackBuild for xvnkb is now on SBo This is the SlackBuild file for building xvnkb (A Vietnamese input keyboard for X-Window) package on Slackware. 3 patches from xvnkb&#8217;s author is included, that is: kdeinit error on KDE3, GIMP segfault, power overuse. Source SlackBuild These patches and SlackBuild principles can be used for building [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=27&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Edit: This SlackBuild for xvnkb is now on <a href="http://slackbuilds.org/misc/xvnkb/">SBo</a></em></p>
<p>This is the SlackBuild file for building xvnkb (A Vietnamese input keyboard for X-Window) package on Slackware.</p>
<p>3 patches from xvnkb&#8217;s author is included, that is: kdeinit error on KDE3, GIMP segfault, power overuse.</p>
<ul>
<li><a href="http://xvnkb.sourceforge.net/xvnkb-0.2.9a.tar.bz2">Source</a></li>
<li><a href="https://dl.dropbox.com/u/1090795/xvnkb.tar.gz">SlackBuild</a></li>
</ul>
<p>These patches and SlackBuild principles can be used for building xvnkb packages on other distros such as Arch, Debian/Ubuntu&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/binhng.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/binhng.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/binhng.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=binhng.wordpress.com&amp;blog=1994395&amp;post=27&amp;subd=binhng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://binhng.wordpress.com/2010/03/28/slackbuild-for-xvnkb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c5b1568f5fb6eb5cc328b48301ae5fd0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">binhng</media:title>
		</media:content>
	</item>
	</channel>
</rss>
