<?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>ejohansson.se &#187; computers</title>
	<atom:link href="http://ejohansson.se/categories/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejohansson.se</link>
	<description>Random bits about Linux, programming, computers and occasionally other stuff.</description>
	<lastBuildDate>Tue, 06 Mar 2012 09:02:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Transparent HTTP proxy in&#160;python</title>
		<link>http://ejohansson.se/archives/2012/03/06/transparent-http-proxy-in-python/</link>
		<comments>http://ejohansson.se/archives/2012/03/06/transparent-http-proxy-in-python/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 09:02:05 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=460</guid>
		<description><![CDATA[I recently wanted to modify a web resource that a device on my local network loads when starting. To avoid having a static local modified copy of the resource I wrote a simple transparent HTTP proxy in python using the Twisted networking engine (which btw was a joy to use) which does the modification when [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to modify a web resource that a device on my local network loads when starting. To avoid having a static local modified copy of the resource I wrote a simple transparent HTTP proxy in python using the <a href="http://twistedmatrix.com/">Twisted networking engine</a> (which btw was a joy to use) which does the modification when the resource is loaded. The code is not modular (e.g. the resource modification is hard coded in the processResponse() function) and the logging is very verbose, but if anyone is interested the code is available on github: <a href="https://github.com/erijo/transparent-proxy">transparent-proxy.git</a>.</p>
<p>The proxy is now running on my local server which sits behind the real gateway. Besides making the device use the server as gateway and enable NAT on the server this single iptables rule is all that is needed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> PREROUTING <span style="color: #660033;">-s</span> <span style="color: #007800;">$CLIENT_IP</span> <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">80</span> <span style="color: #660033;">-j</span> REDIRECT <span style="color: #660033;">--to-port</span> <span style="color: #000000;">8080</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2012/03/06/transparent-http-proxy-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SFTP only access to&#160;server</title>
		<link>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/</link>
		<comments>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 10:17:16 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=370</guid>
		<description><![CDATA[I recently installed a NAS server in my home and wanted to give my family and relatives access to it so that they could use it as a remote backup server for photos and stuff. To keep it as secure as possible I only wanted to give them SFTP access. (All commands below are executed [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed a NAS server in my home and wanted to give my family and relatives access to it so that they could use it as a remote backup server for photos and stuff. To keep it as secure as possible I only wanted to give them SFTP access.</p>
<p>(All commands below are executed as root.)</p>
<p>First I created a group to group them together and then added the users to that group. I choose to disable their password as I only allow logins using SSH keys.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">addgroup sftponly
<span style="color: #666666; font-style: italic;"># Repeat the line below for each user</span>
adduser <span style="color: #660033;">--disabled-password</span> <span style="color: #660033;">--ingroup</span> sftponly ausername</pre></div></div>

<p>As for the upload directory I wanted them to upload their data to my raid1 volume mounted under /data/pool1. Since OpenSSH has some requirements for the permission on the directories used as chroot I created the following directory layout.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>pool1
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">751</span> sftp
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> . sftp<span style="color: #000000; font-weight: bold;">/</span>home
<span style="color: #666666; font-style: italic;"># Repeat the lines below for each user</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">700</span> sftp<span style="color: #000000; font-weight: bold;">/</span>ausername
<span style="color: #c20cb9; font-weight: bold;">chmod</span> ausername.root sftp<span style="color: #000000; font-weight: bold;">/</span>ausername</pre></div></div>

<p>The home symlink is there to make the initial SFTP directory /ausername and the sftp directory is created with 751 to disallow directory listing in the top directory.</p>
<p>Then, as &#8220;all components of the pathname must be root-owned directories that are not writable by any other user or group&#8221; and /data/pool1 is not root owned I created a bind mount by adding the following to /etc/fstab.</p>

<div class="wp_syntax"><div class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">/</span>data<span style="color: #44aa44;">/</span>pool1<span style="color: #44aa44;">/</span>sftp  <span style="color: #44aa44;">/</span>srv<span style="color: #44aa44;">/</span>sftp  bind  bind  <span style="color: #cc66cc;">0</span>  <span style="color: #cc66cc;">0</span></pre></div></div>

<p>Before the initial mount, the directory must be created.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>sftp
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>sftp</pre></div></div>

<p>Then, the final part was to configure OpenSSH by adding the following lines at the end of /etc/ssh/sshd_config.</p>

<div class="wp_syntax"><div class="code"><pre class="div" style="font-family:monospace;">Match Group sftponly
  ChrootDirectory <span style="color: #44aa44;">/</span>srv<span style="color: #44aa44;">/</span>sftp
  ForceCommand internal<span style="color: #44aa44;">-</span>sftp
  AllowTcpForwarding no
  X11Forwarding no</pre></div></div>

<p>Remember to restart the server afterwards.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handelsbanken login now works on&#160;Linux</title>
		<link>http://ejohansson.se/archives/2011/11/02/handelsbanken-login-now-works-on-linux/</link>
		<comments>http://ejohansson.se/archives/2011/11/02/handelsbanken-login-now-works-on-linux/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 08:32:59 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=365</guid>
		<description><![CDATA[Thanks to the hard work done by the FriBID project I was today able to login to Handelsbanken (my bank) using the card reader connected to the computer. This by following the instructions on the FriBID wiki. Good stuff! I&#8217;m using Ubuntu 11.10 on amd64.]]></description>
			<content:encoded><![CDATA[<p>Thanks to the hard work done by the <a href="http://fribid.se/">FriBID</a> project I was today able to login to Handelsbanken (my bank) using the card reader connected to the computer. This by following <a href="http://wiki.fribid.se/sidor/SmartCards">the instructions on the FriBID wiki</a>. Good stuff!</p>
<p>I&#8217;m using Ubuntu 11.10 on amd64.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2011/11/02/handelsbanken-login-now-works-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faster resume with (k)ubuntu&#160;Natty</title>
		<link>http://ejohansson.se/archives/2011/04/03/faster-resume-with-kubuntu-natty/</link>
		<comments>http://ejohansson.se/archives/2011/04/03/faster-resume-with-kubuntu-natty/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 09:53:47 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=359</guid>
		<description><![CDATA[After upgrading to Kubuntu Natty beta 1 the time for resuming (from RAM) my HP ProBook 6450b has improved significant. Previously I had to wait up to a minute until the wireless card was up and running and I had Internet access. Now it&#8217;s only a matter of seconds. My Linux laptop is now fully [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to <a href="https://wiki.kubuntu.org/NattyNarwhal/Beta1/Kubuntu">Kubuntu Natty beta 1</a> the time for resuming (from RAM) my HP ProBook 6450b has improved significant. Previously I had to wait up to a minute until the wireless card was up and running and I had Internet access. Now it&#8217;s only a matter of seconds. My Linux laptop is now fully on par with my old Apple iBook when it comes to suspend/resume (the only area where it was previously lagging).</p>
<p>I can&#8217;t say for sure why it&#8217;s better now, but I like to think that it&#8217;s due to Broadcom&#8217;s <a href="http://marc.info/?l=linux-wireless&#038;m=128404502308426&#038;w=3">full-source</a> release of their wireless drivers. Thank you Broadcom!</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2011/04/03/faster-resume-with-kubuntu-natty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ELF Auxiliary&#160;Vectors</title>
		<link>http://ejohansson.se/archives/2010/10/30/elf-auxiliary-vectors/</link>
		<comments>http://ejohansson.se/archives/2010/10/30/elf-auxiliary-vectors/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 08:09:30 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=354</guid>
		<description><![CDATA[Interesting article about ELF Auxiliary Vectors. Found it after reading a comment mentioning AT_SECURE in the LWN article about glibc vulnerabilities.]]></description>
			<content:encoded><![CDATA[<p>Interesting article about <a href="http://articles.manugarg.com/aboutelfauxiliaryvectors.html">ELF Auxiliary Vectors</a>. Found it after reading a comment mentioning AT_SECURE in the LWN article about <a href="http://lwn.net/Articles/412048/">glibc vulnerabilities</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/10/30/elf-auxiliary-vectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Licq to build with&#160;pbuilder</title>
		<link>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/</link>
		<comments>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 18:44:53 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=344</guid>
		<description><![CDATA[I wanted to test that I had specified the correct Build-Depends in my Debian package of Licq 1.5.0-rc2. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot. So I did: sudo pbuilder create --debootstrapopts --variant=buildd Building should then be as simple [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to test that I had specified the correct Build-Depends in my Debian package of <a href="http://www.licq.org/blog/Licq-1.5.0-rc2">Licq 1.5.0-rc2</a>. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot.</p>
<p>So I did:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder create <span style="color: #660033;">--debootstrapopts</span> <span style="color: #660033;">--variant</span>=buildd</pre></div></div>

<p>Building should then be as simple as executing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git-buildpackage <span style="color: #660033;">--git-builder</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>git-buildpackage<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>gbp-pbuilder <span style="color: #660033;">--git-cleaner</span>=<span style="color: #ff0000;">&quot;fakeroot debian/rules clean&quot;</span></pre></div></div>

<p>Or it should have been that simple. Unfortunately the build failed with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Fatal: no entropy gathering module detected</pre></div></div>

<p>After some googling and testing; the fix was to add two random devices to the chroot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder <span style="color: #c20cb9; font-weight: bold;">login</span> <span style="color: #660033;">--save-after-login</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random c <span style="color: #000000;">1</span> <span style="color: #000000;">8</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom c <span style="color: #000000;">1</span> <span style="color: #000000;">9</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>(The change of permission for /dev/null was needed to avoid getting errors later in the build process.)</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git is not always better than&#160;subversion</title>
		<link>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/</link>
		<comments>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 08:14:53 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=341</guid>
		<description><![CDATA[Yesterday I wished I had used svn instead of git as VCS for Licq&#8217;s debian package, when I accidentally deleted my local git clone with lots of commits that I hadn&#8217;t pushed&#8230; Luckily I had all the changes in a different format so I didn&#8217;t have to redo all the work, but I had to [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I wished I had used svn instead of git as VCS for Licq&#8217;s debian package, when I accidentally deleted my local git clone with lots of commits that I hadn&#8217;t pushed&#8230;</p>
<p>Luckily I had all the changes in a different format so I didn&#8217;t have to redo all the work, but I had to spend time trying to commit the changes in a somewhat logical way.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New GPG&#160;key</title>
		<link>http://ejohansson.se/archives/2010/09/14/new-gpg-key/</link>
		<comments>http://ejohansson.se/archives/2010/09/14/new-gpg-key/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 19:07:09 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[computers]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=339</guid>
		<description><![CDATA[Following the instructions on how to create a new GPG key I have now created a new, more secure, GPG key. The new key&#8217;s id is 7E28522C, it&#8217;s signed with my old key and available on a key server near you.]]></description>
			<content:encoded><![CDATA[<p>Following the instructions on how to <a href="http://ekaia.org/blog/2009/05/10/creating-new-gpgkey/">create a new GPG key</a> I have now created a new, more secure, GPG key. The new key&#8217;s id is 7E28522C, it&#8217;s signed with my old key and available on a key server near you. </p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/14/new-gpg-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian/licq.git mirror on&#160;Gitorious</title>
		<link>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/</link>
		<comments>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 20:23:14 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=332</guid>
		<description><![CDATA[To get better speed and a backup I&#8217;ve set up a mirror of debian/licq.git on Gitorious.org. I don&#8217;t really know the best way to do this, but I did it by adding the following line to hooks/post-update: git push --mirror git@gitorious.org:licq/debian.git This way the mirror will always be updated when I push to the &#8220;real&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>To get better speed and a backup I&#8217;ve set up a mirror of <a href="http://git.ejohansson.se/?p=debian/licq.git;a=summary">debian/licq.git</a> on <a href="http://gitorious.org/licq/debian">Gitorious.org</a>.</p>
<p>I don&#8217;t really know the best way to do this, but I did it by adding the following line to hooks/post-update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> push <span style="color: #660033;">--mirror</span> <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>gitorious.org:licq<span style="color: #000000; font-weight: bold;">/</span>debian.git</pre></div></div>

<p>This way the mirror will always be updated when I push to the &#8220;real&#8221; repository.</p>
<p>Get it by running</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gbp-clone <span style="color: #660033;">--pristine-tar</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>gitorious.org<span style="color: #000000; font-weight: bold;">/</span>licq<span style="color: #000000; font-weight: bold;">/</span>debian.git</pre></div></div>

<p>or clone it on Gitorious and send me merge requests <img src='http://ejohansson.se/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/me is the new Debian maintainer for&#160;Licq</title>
		<link>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/</link>
		<comments>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:01:01 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=320</guid>
		<description><![CDATA[Update 2010-10-30: Changed the initial setup to use gbp-clone. I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to Joel Rosdahl who is my sponsor. Version 1.3.8-1 is coming to a mirror near you as I write this. The package source is kept in my [...]]]></description>
			<content:encoded><![CDATA[<p><b>Update 2010-10-30:</b> Changed the initial setup to use gbp-clone.</p>
<p>I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to <a href="http://joel.rosdahl.net/">Joel Rosdahl</a> who is my sponsor.</p>
<p>Version 1.3.8-1 is coming to a mirror near you as I write this.</p>
<p>The package source is kept in my <a href="http://git.ejohansson.se/">git repository</a>. To build the package from the git repository, install git-buildpackage and pristine-tar then follow the instructions below.</p>
<p>Initial setup:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gbp-clone <span style="color: #660033;">--pristine-tar</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git</pre></div></div>

<p><strike></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">cd</span> licq
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #660033;">-b</span> pristine-tar origin<span style="color: #000000; font-weight: bold;">/</span>pristine-tar
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">co</span> master</pre></div></div>

<p></strike></p>
<p>To build the latest version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area</pre></div></div>

<p>To build a specific version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area <span style="color: #660033;">--git-export</span>=debian<span style="color: #000000; font-weight: bold;">/</span>1.3.8-<span style="color: #000000;">1</span></pre></div></div>

<p>The final packages will be available in ../build-area.</p>
<p>Later on when you wish to update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> pull
licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage ...</pre></div></div>

<p>The next version will have qt4-gui.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

