<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ErrorOK &#187; Ubuntu</title>
	<atom:link href="http://blog.errorok.com/category/dev/dev-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.errorok.com</link>
	<description>A library of useless knowledge</description>
	<lastBuildDate>Wed, 17 Mar 2010 17:30:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrade rtorrent in karmic 9.10 THE EASY WAY</title>
		<link>http://blog.errorok.com/2010/02/26/191/</link>
		<comments>http://blog.errorok.com/2010/02/26/191/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 23:37:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[rutorrent]]></category>

		<guid isPermaLink="false">http://blog.errorok.com/?p=191</guid>
		<description><![CDATA[This is just a quick follow-up to my earlier post.  I now have the rtorrent package source up and running on my ppa.  So now you just need to do the following:

echo -e "deb http://ppa.launchpad.net/patricksissons/rtorrent/ubuntu karmic main \ndeb-src http://ppa.launchpad.net/patricksissons/rtorrent/ubuntu karmic main" &#124; sudo tee /etc/apt/sources.list.d/rtorrent.list &#038;&#038; sudo apt-get update &#038;&#038; sudo apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick follow-up to my earlier post.  I now have the rtorrent package source up and running on my ppa.  So now you just need to do the following:<br />
<code><br />
echo -e "deb http://ppa.launchpad.net/patricksissons/rtorrent/ubuntu karmic main \ndeb-src http://ppa.launchpad.net/patricksissons/rtorrent/ubuntu karmic main" | sudo tee /etc/apt/sources.list.d/rtorrent.list &#038;&#038; sudo apt-get update &#038;&#038; sudo apt-get install rtorrent<br />
</code></p>
<p>This will add my rtorrent ppa to your custom sources, update your source cache, then install the updated version of rtorrent (as well as libtorrent and xmlrpc).  Combine this with <a href="http://code.google.com/p/rutorrent/" target="_blank">rutorrent</a> and you have a pretty sweet headless torrent server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.errorok.com/2010/02/26/191/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launchpad PPA&#8217;s</title>
		<link>http://blog.errorok.com/2010/02/24/186/</link>
		<comments>http://blog.errorok.com/2010/02/24/186/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 21:02:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.errorok.com/?p=186</guid>
		<description><![CDATA[So after discovering that my quick and dirty rtorrent fix didn&#8217;t actually fix what i needed it to (xmlrpc stuff, specifically), I decided to instead look into setting up a ppa on launchpad to host some of my custom packages.  So here is a quick guide on how to do this:
first, some things you [...]]]></description>
			<content:encoded><![CDATA[<p>So after discovering that my quick and dirty rtorrent fix didn&#8217;t actually fix what i needed it to (xmlrpc stuff, specifically), I decided to instead look into setting up a ppa on launchpad to host some of my custom packages.  So here is a quick guide on how to do this:</p>
<p>first, some things you will need to install:<br />
<code>sudo apt-get install dput devscripts</code><br />
of course, you&#8217;ll need some of the usual stuff like build-essentials and other common dev packages.  dput is used to upload your source packages to your ppa, and devscripts contains some useful debian package scripts, such as debuild which is used to build your package.</p>
<p>now, create a gpg key for your ppa (or use an existing one if you have one)<br />
simply use gpg &#8211;gen-key to generate a key (use the defaults, unless you want to get more specific)<br />
if you already have a set of keys on another machine, you can export/import the public and private keys to your other machine.  If you get into trouble with not enough entropy (happens when your compile machine is headless and you do everything through ssh), then try installing rng-tools and set your device to /dev/urandom (in /etc/default/rng-tools) then start the service.  This will generate entropy for you.</p>
<p>Now setup your own ppa.  First you&#8217;ll need a launchpad account, then you just need to authenticate yourself and create a new ppa.  I won&#8217;t detail this process, but you can probably get a good idea from here: http://blog.launchpad.net/ppa/personal-package-archives-for-everyone</p>
<p>Now grab your source package as well as its build dependencies:<br />
<code>sudo apt-get build-dep PACKAGE<br />
apt-get source PACKAGE</code><br />
note that you don&#8217;t need to sudo when getting package sources.  If you are upgrading the package using the latest version, things can get a little wonky because ubuntu packages are usually customized with patches, and these patches often don&#8217;t work with bleeding edge source.  None the less you can give it a shot, simply grab the source for your package (not through apt, but from svn, git, http, etc&#8230;) and then copy the debian directory from the ubuntu source directory to your newer source directory.  You will need to modify the changelog and create a new entry for your package (with an updated version).  Alternatively, you can use dch to do this.  Once you have your source set up, you have to build the source package.  I recommend building the binary first, but this is not necessary, it just helps to for testing installation of the package and other things.  to build the source package:<br />
<code>debuild -S -sa</code><br />
this will generate a source package in the parent directory.  Once this finishes, you can upload it to you ppa.</p>
<p>to upload your package to your ppa, just run:<br />
<code>dput PPA PACKAGE_source.changes</code><br />
PPA will be something like ppa:USER_NAME/PPA_NAME<br />
the changes file will have been created as a part of the source package creation.<br />
this will ask you to enter your gpg password, and then upload the files to the launchpad servers.  In a few minutes your package will be built and you&#8217;ll get a notice saying it was successful or not.</p>
<p>Caveats!  They exist!  some things i have found which are slightly annoying are the following:<br />
you cannot re-upload (re-build) a package.  This is useful if you have a dependency issue, the only fix is to increment the version and re-upload (please correct me if there is a better solution).<br />
deleting packages is not very clear what happens, a deleted package still exists for quite some time on the server.  There appears to be no notice of a package being purged, it just randomly stops existing.</p>
<p>p.s. updated rtorrent ppa will come soon, if you really want to get it now, you can use this package source:<br />
<em>deb http://ppa.launchpad.net/patricksissons/pjs/ubuntu karmic main</em><br />
this is my development ppa, so it may contain things you don&#8217;t actually want to install.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.errorok.com/2010/02/24/186/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade rtorrent in karmic 9.10</title>
		<link>http://blog.errorok.com/2010/02/07/182/</link>
		<comments>http://blog.errorok.com/2010/02/07/182/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 02:53:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://blog.errorok.com/?p=182</guid>
		<description><![CDATA[here is a quick and easy way to upgrade to the latest rtorrent on karmic.  Basically we just snag it from lucid.
There are two basic methods to do this, the easiest is debatable between the two.  Personally, i just tried method one, but i&#8217;m sure method two would work just as well.
Method 1:

head [...]]]></description>
			<content:encoded><![CDATA[<p>here is a quick and easy way to upgrade to the latest rtorrent on karmic.  Basically we just snag it from lucid.</p>
<p>There are two basic methods to do this, the easiest is debatable between the two.  Personally, i just tried method one, but i&#8217;m sure method two would work just as well.</p>
<p>Method 1:</p>
<ol>
<li>head to <a href="http://packages.ubuntu.com/lucid/rtorrent" target="_blank">http://packages.ubuntu.com/lucid/rtorrent</a></li>
<li>download the deb for your architecture</li>
<li>download the deb for each of the following dependent packages:
<ol>
<li>libssl</li>
<li>librtorrent</li>
<li>libxmlrpc</li>
<li>libxmlrpc-core</li>
</ol>
</li>
<li>install each of the packages by running <tt>sudo dpkg -i *.deb</tt></li>
</ol>
<p>Method 2:</p>
<p>update your apt sources to lucid, do an apt update and then install rtorrent.  This should get the lucid packages and dependents.  Just remember to revert your changes to the apt source.</p>
<p>Like i said, i did method one, mostly because i was curious which packages i would need to backport to get rtorrent upgraded to version 0.8.6.  If you are curious why one might do this, it is because there are significant changes made to libtorrent and rtorrent, and this is an easy way to get access to them.</p>
<p>There may be some remaining issues to deal with regarding libxmlrpc, this is something i will look into once i have had a chance to work with this new version of rtorrent.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.errorok.com/2010/02/07/182/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Kaffeine in Hardy</title>
		<link>http://blog.errorok.com/2008/08/31/39/</link>
		<comments>http://blog.errorok.com/2008/08/31/39/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 02:06:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[kaffeine]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.errorok.com/?p=39</guid>
		<description><![CDATA[Hopefully a few people out there get some use out of this information.  I have been fighting with kaffeine in hardy for the past few days, mostly trying to get kde samba shares to play through kaffeine.  As well as getting rid of that nasty codec already installed loop.  After a lot of debugging, I [...]]]></description>
			<content:encoded><![CDATA[<p>Hopefully a few people out there get some use out of this information.  I have been fighting with kaffeine in hardy for the past few days, mostly trying to get kde samba shares to play through kaffeine.  As well as getting rid of that nasty codec already installed loop.  After a lot of debugging, I have come to following conclusions:</p>
<ul>
<li>samba shares are broken somewhere within the loading mechanism that sits between kde and kaffeine, more specifically the queuing mechanism.  By this i mean that kaffeine is able to play samba share files properly when dragged from konqueror or dolphin to the playlist, but this is not the case when double clicking on a samba share file.  Double clicking a samba share file will result in the following command: <strong>kaffeine %U</strong> , where <strong>%U</strong> is the path.  This leads me to believe that the problem lies in the dcop server, since this is what would handle this type of action.  When dropping a file on the playlist (or using the built-in file browser) you are using functions written within the kaffeine source, and as such the files will work properly.  I&#8217;d like to think it was fixable in the kaffine sources (and i&#8217;ll keep looking to see if it is) but i really don&#8217;t know at this time.</li>
<li>I hate python, and since the installer script is written in python i refuse to look any longer than i already have at trying to fix it.  I thought at first that my playlist was just on repeat, but it seems that the python script seems to continually loop, and i can&#8217;t figure out why.  So instead i just removed the call to the script from within the kaffeine source and replaced it with a printf to the console (so that in the event that you don&#8217;t have the codec installed, you can at least manually run the script yourself).</li>
</ul>
<p>These changes have been made and kaffeine recompiled (also upgraded to the latest version, 0.8.7-0) into a nice ubuntu package.  Like i said, you won&#8217;t be able to double click on samba files (or any other streams that aren&#8217;t supported on your installation) to get them to play in kaffeine.  Kaffeine will still open but the file in the playlist will not play properly.  The workaround is to use the built in file browser or drag the files from konqueror or dolphin yourself.</p>
<p>Enjoy :)</p>
<p><a href="http://blog.errorok.com/wp-content/uploads/2008/08/kaffeine-087-0tar.gz">kaffeine-0.8.7-0 (Hardy)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.errorok.com/2008/08/31/39/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.240 seconds -->
