<?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>KarkomaOnline &#187; Linux Debian</title>
	<atom:link href="http://www.karkomaonline.com/index.php/category/linux-debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karkomaonline.com</link>
	<description>a Blog for SysAdmins and Unix stuff in general</description>
	<lastBuildDate>Fri, 30 Jul 2010 17:38:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to disable IPv6 in Debian</title>
		<link>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/</link>
		<comments>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:08:32 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=259</guid>
		<description><![CDATA[Disable IPv6 in Debian]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently installed a new <a href="http://www.openldap.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.openldap.org/?referer=');">LDAP</a> server on <a href="http://www.debian.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.debian.org/?referer=');">Debian</a> Lenny and I wanted to disable <a href="http://en.wikipedia.org/wiki/IPv6" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/IPv6?referer=');">IPv6</a> as it is unnecessary for me in this moment. With <em>netstat</em> I checked the listening processes:</p>
<blockquote><p>netstat -tunlp</p></blockquote>
<p><code>Active Internet connections (only servers)<br />
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name<br />
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      2226/slapd<br />
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2215/sshd<br />
tcp6       0      0 :::389                  :::*                    LISTEN      2226/slapd<br />
tcp6       0      0 :::22                   :::*                    LISTEN      2215/sshd</code></p>
<p>and <em>lsmod</em> showed something like this:</p>
<p><code>Module                  Size  Used by<br />
ipv6                  235364  12<br />
...</code></p>
<p>So, to disable IPv6 I changed <em>/etc/modprobe.d/aliases</em>:<br />
<code>...<br />
# alias net-pf-10 ipv6<br />
# Disable ipv6<br />
alias net-pf-10 off<br />
alias ipv6 off<br />
...</code></p>
<p>I also disabled these lines in <em>/etc/hosts</em> to avoid confusions:</p>
<p><code>...<br />
## The following lines are desirable for IPv6 capable hosts<br />
#::1     localhost ip6-localhost ip6-loopback<br />
#fe00::0 ip6-localnet<br />
#ff00::0 ip6-mcastprefix<br />
#ff02::1 ip6-allnodes<br />
#ff02::2 ip6-allrouters<br />
#ff02::3 ip6-allhosts</code></p>
<p>Finally I restarted the server.</p>
<blockquote><p>shutdown -r now</p></blockquote>
<p>Now the situation is like this:</p>
<blockquote><p>netstat -tunlp</p></blockquote>
<p><code>Active Internet connections (only servers)<br />
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name<br />
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      2233/slapd<br />
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2216/sshd</code></p>
<blockquote><p>lsmod|grep ipv6</p></blockquote>
<p><code>...</code></p>
<p>No IPv6.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15th birthday of the Debian project</title>
		<link>http://www.karkomaonline.com/index.php/2008/08/15th-birthday-of-the-debian-project/</link>
		<comments>http://www.karkomaonline.com/index.php/2008/08/15th-birthday-of-the-debian-project/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 01:00:29 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=192</guid>
		<description><![CDATA[On 16 August 1993 Ian Murdock issued the first announcement of the Debian Project on comp.os.linux.development. Since then Debian has established itself as one of the most stable Linux distros and commited to the FOSS. More info: First announcement Debian Project Ian Murdock]]></description>
			<content:encoded><![CDATA[<p>On 16 August 1993 Ian Murdock issued the first announcement of the Debian Project on comp.os.linux.development. Since then Debian has established itself as one of the most stable Linux distros and commited to the FOSS.</p>
<p><strong>More info</strong>:</p>
<ul>
<li><a href="http://groups.google.com/group/comp.os.linux.development/msg/a32d4e2ef3bcdcc6" target="_blank" onclick="pageTracker._trackPageview('/outgoing/groups.google.com/group/comp.os.linux.development/msg/a32d4e2ef3bcdcc6?referer=');">First announcement</a></li>
<li><a href="http://www.debian.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.debian.org/?referer=');"> Debian Project</a></li>
<li><a href="http://en.wikipedia.org/wiki/Ian_Murdock" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Ian_Murdock?referer=');"> Ian Murdock</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2008/08/15th-birthday-of-the-debian-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System stats with saidar</title>
		<link>http://www.karkomaonline.com/index.php/2008/04/system-stats-with-saidar/</link>
		<comments>http://www.karkomaonline.com/index.php/2008/04/system-stats-with-saidar/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 10:38:50 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[saidar]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=183</guid>
		<description><![CDATA[saidar is a top like tool. It provides a curses based interface for viewing system statistics such as network I/O, disk I/O, CPU, memory and more. The core of the functionality is provided by the libstatgrab library: libstatgrab is a library that provides cross platform access to statistics about the system on which it's run. [...]]]></description>
			<content:encoded><![CDATA[<p>saidar is a top like tool. It provides a curses based interface for viewing system statistics such as network I/O, disk I/O, CPU, memory and more. The core of the functionality is provided by the <a href="http://www.i-scream.org/libstatgrab/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.i-scream.org/libstatgrab/?referer=');">libstatgrab</a> library:</p>
<p><code>libstatgrab is a library that provides cross platform access to statistics about the system on which it's run. It's written in C and presents a selection of useful interfaces which can be used to access key system statistics. The current list of statistics includes CPU usage, memory utilisation, disk usage, process counts, network traffic, disk I/O, and more.</code></p>
<p>On a Debian system install the package as usual:</p>
<blockquote><p>apt-get install saidar</p></blockquote>
<p>and then run:</p>
<blockquote><p>saidar</p></blockquote>
<p><a href='http://www.karkomaonline.com/wp-content/uploads/2008/04/saidar2.png'><img src="http://www.karkomaonline.com/wp-content/uploads/2008/04/saidar2.png" alt="Saidar in action" title="saidar2" width="500" height="307" class="aligncenter size-full wp-image-185" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2008/04/system-stats-with-saidar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: record boot messages</title>
		<link>http://www.karkomaonline.com/index.php/2008/04/debian-record-boot-messages/</link>
		<comments>http://www.karkomaonline.com/index.php/2008/04/debian-record-boot-messages/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 02:07:59 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=182</guid>
		<description><![CDATA[Debian allows you to record boot messages by means of the bootlogd daemon. According to man pages: Bootlogd runs in the background and copies all strings sent to the /dev/console device to a logfile. If the logfile is not accessible, the messages will be kept in memory until it is. This feature is not enabled [...]]]></description>
			<content:encoded><![CDATA[<p>Debian allows you to record boot messages by means of the <a href="http://wiki.debian.org/bootlogd" target="_blank" onclick="pageTracker._trackPageview('/outgoing/wiki.debian.org/bootlogd?referer=');">bootlogd</a> daemon. According to man pages:</p>
<p><code>Bootlogd runs in the background and copies all strings sent to the <em>/dev/console</em> device to a logfile. If the logfile is not accessible, the messages will be kept in memory until it is.</code></p>
<p>This feature is not enabled by default. Edit <em>/etc/default/bootlogd</em> and modify it to enable recording of boot messages:</p>
<blockquote><p># Run bootlogd at startup ?<br />
BOOTLOGD_ENABLE=Yes</p></blockquote>
<p>Now bootlogd will start sending boot messages to <em>/var/log/boot</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2008/04/debian-record-boot-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian apt-file</title>
		<link>http://www.karkomaonline.com/index.php/2008/01/debian-apt-file/</link>
		<comments>http://www.karkomaonline.com/index.php/2008/01/debian-apt-file/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 07:11:43 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/index.php/2008/01/27/debian-apt-file/</guid>
		<description><![CDATA[According to man pages: apt-file is a command line tool for searching packages for the APT packaging system. So let&#8217;s proceed: apt-get install apt-file apt-file update The first command will install apt-file and the second command will fetch the content of the packages from the repositories specified in /etc/apt/sources.list and will resynchronize the contents from [...]]]></description>
			<content:encoded><![CDATA[<p>According to man pages:</p>
<p><code>apt-file is a command line tool for searching packages for the APT packaging system.</code></p>
<p>So let&#8217;s proceed:</p>
<blockquote><p>apt-get install apt-file</p>
<p>apt-file update</p></blockquote>
<p>The first command will install apt-file and the second command will fetch the content of the packages from the repositories specified in /etc/apt/sources.list and will resynchronize  the contents from the sources.</p>
<p>Now give it a try:</p>
<blockquote><p>apt-file -v search /usr/sbin/postfix</p>
<p>D: got &#8216;deb http://192.168.1.2:9999/debian/ etch main contrib non-free&#8217;<br />
D: kept &#8216;deb http://192.168.1.2:9999/debian/ etch main contrib non-free&#8217;<br />
D: regexp: ^(.*?usr/sbin/postfix[^s]*)s+(S+)s*$<br />
D: Search in /var/cache/apt/apt-file/192.168.1 .2_debian_dists_etch_Contents-i386.gz<br />
&#8230;<br />
postfix: usr/sbin/postfix<br />
postfix-policyd: usr/sbin/postfix-policyd<br />
postfix-policyd: usr/sbin/postfix-policyd-cleanup</p></blockquote>
<p>Note that you can get similar information by typing this:</p>
<blockquote><p>dpkg -S /usr/sbin/postfix</p>
<p>postfix: /usr/sbin/postfix</p></blockquote>
<p>The difference, however, is that apt-file provides information even if the package is not installed or was uninstalled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2008/01/debian-apt-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Package management in Debian</title>
		<link>http://www.karkomaonline.com/index.php/2006/02/package-management-in-debian/</link>
		<comments>http://www.karkomaonline.com/index.php/2006/02/package-management-in-debian/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 10:40:22 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkoma.info/index.php/2006/02/24/package-management-in-debian/</guid>
		<description><![CDATA[I use Debian since a while and i must say that i consider that it is the simpler distribution that i know. Well you can ever become some difficulties to install some drivers from proprietary stuff or new brand hardware but once you have your system running, believe me it is the simplest for maintaining, [...]]]></description>
			<content:encoded><![CDATA[<p>I use Debian since a while and i must say that i consider that it is the simpler distribution that i know. Well you can ever become some difficulties to install some drivers from proprietary stuff or new brand hardware but once you have your system running, believe me it is the simplest for maintaining, installing and removing in your system. And dpkg/apt are not least in the last assumption.</p>
<p>The first front-end at which you will stick is dselect, which is a menu based program.</p>
<p>I will not be extended with it because it is simple. What you need to know is that you can update the list of available packages with update, you can select which of them you will install with select. In this option, you go out of the help (going out of the help is the more tricky part) with the space bar (ubuntu like i thing it is with &#8220;enter&#8221;).</p>
<p>You can look for a package named for example firebird tipping &#8220;/fire&#8221; (without quote), and it will look for the first in the list named fire-something package and typing &#8220;n&#8221; you go through this list. Of course it is better typping &#8220;firebird&#8221;. If you want to select for installing you tip &#8220;+&#8221; (&#8220;-&#8221; for deinstalling) and dselect present you the list of conflicting, recommended &#8230; packages that you can choose with the same +- method (you go out of the list by typing enter). Once you&#8217;re satisfied, you tip &#8220;enter&#8221; and it go through the install process.</p>
<p>dselect is easy, not always the more flexible but the more secure and stable you can dream about. But let me present you the second soft of the debian classical tools collection: DPKG.</p>
<p>dpkg is a command line based tool. You can save the list of the installed packages on your system with:</p>
<blockquote><p>dpkg &#8211;get-selections &gt; selections.dpkg</p></blockquote>
<p>Don&#8217;t be so shy and edit this text file. If you want to recover the state of your package selections you type:</p>
<blockquote><p>dpkg &#8211;set-selections (no description available)<br />
pn lynx-cur-wrapp (no description available)<br />
un lynx-ssl (no description available)</p></blockquote>
<p>and if you wish to know all the files that install or simply modify the installation of a package:</p>
<blockquote><p>dpkg -L lynx</p></blockquote>
<blockquote><p>/.<br />
/usr<br />
/usr/bin<br />
/usr/bin/lynx.stable<br />
/usr/share<br />
/usr/share/man<br />
/usr/share/man/man1<br />
/usr/share/man/man1/lynx.1.gz<br />
&#8230;<br />
/etc<br />
/etc/lynx.cfg<br />
&#8230;
</p></blockquote>
<p>You want the information on a package (lynx for example)?</p>
<blockquote><p>dpkg -p lynx</p></blockquote>
<blockquote><p>Package: lynx<br />
Priority: optional<br />
Section: web<br />
Installed-Size: 4292<br />
Maintainer: James Troup<br />
Architecture: i386<br />
&#8230;<br />
Description: Text-mode WWW Browser<br />
Lynx is a fully-featured World Wide Web (WWW) client for users<br />
running cursor-addressable, character-cell display devices (e.g.,<br />
&#8230;</p></blockquote>
<p>That is what a look at <em>/var/lib/dpkg/available</em> will give you after a painful search.</p>
<p>The status of the package can be found with:</p>
<blockquote><p>dpkg -s lynx</p></blockquote>
<p>Imagine that you find a strange file in you system (bad news&#8230;), and you want to make sure which package it comes from:</p>
<blockquote><p>dpkg -S /etc/lynx.cfg</p></blockquote>
<blockquote><p>lynx: /etc/lynx.cfg</p></blockquote>
<p>And you can run again the pre-installation process thanks to:</p>
<blockquote><p>dpkg-reconfigure xserver-xfree86</p></blockquote>
<p>It will replay the pre/post install script at wich you can take a look at /var/lib/dpkg/info/. For example, we had in my company a problem with bacula director&#8217;s instalation because there was a mistake in /var/lib/dpkg/info/bacula-director-mysql.postinst. We had this faultly line:</p>
<blockquote><p>MYSQL_PSWD_STRING=&#8221;-p&#8221;$MYSQL_ROOT_PASSWORD&#8221;"</p></blockquote>
<p>So the given root password was never the one bacula use to connect to mysql as root, we had to transform in:</p>
<blockquote><p>MYSQL_PSWD_STRING=&#8221;-p $MYSQL_ROOT_PASSWORD&#8221;</p></blockquote>
<p>(without the escaped quote)</p>
<p>Of course we have tried to reach the packager. But that&#8217;s not all folks. Now comes the bestpart: &lt;i&gt;apt&lt;/i&gt;. You do not have to download the lynx_2.8.5-sarge1_i386.deb and after install with dpkg -i. No! Just lauch your branded 16k modem to become the line up and type:</p>
<blockquote><p>apt-get install lynx</p></blockquote>
<p>You have heard about a new security update, retrieve it with&#8230;</p>
<blockquote><p>apt-get update</p></blockquote>
<p>Same effect as&#8230;</p>
<blockquote><p>dselect upgrade</p></blockquote>
<p>&#8230;with:</p>
<blockquote><p>apt-get upgrade</p></blockquote>
<p>If you wish to look into the code:</p>
<blockquote><p>apt-get source lynx</p></blockquote>
<p>And all the magic stuff is controlled through <em>/etc/apt/sources.list</em>.</p>
<blockquote><p>deb file:///cdrom/ sarge main<br />
deb http://ftp.de.debian.org/debian/ sarge main non-free contrib<br />
deb-src http://ftp.de.debian.org/debian/ sarge main non-free contrib<br />
deb http://security.debian.org/ sarge/updates main contrib non-free</p></blockquote>
<p>Or better with a mirror:</p>
<blockquote><p>deb http://ftp.rediris.es/debian/ stable main non-free contrib<br />
deb-src http://ftp.rediris.es/debian/ stable main non-free contrib
</p></blockquote>
<p>Or the best, an apt-proxy which proxies your downloads (karkoma, will you write an apt-proxy article, don&#8217;t you?):</p>
<blockquote><p>deb http://aptserv.dmz:9999/debian/ sarge main non-free contrib<br />
deb-src http://aptserv.dmz:9999/debian sarge main non-free contrib<br />
deb http://aptserv.dmz:9999/debian-volatile sarge/volatile main<br />
deb http://aptserv.dmz:9999/security/ sarge/updates main contrib non-free</p></blockquote>
<p>Note the debian-volatile: this is for the highly upgraded packages like clamav, dcc,&#8230;</p>
<p>Another file that can be quite useful is /etc/apt/apt.conf. For example if you have an http proxy for going out in internet you will add in this file:</p>
<blockquote><p>Acquire::http::Proxy &#8220;http://proxy.yourcompany:3128&#8243;;;</p></blockquote>
<p>Or you can simply set the http_proxy=http://proxy.yourcompany:3128 in your environment). In the precedent case of the apt-proxy, if you have an http_proxy and of course you don&#8217;t want to proxy your apt-proxy you can control it by adding in this file:</p>
<blockquote><p>Acquire<br />
{<br />
http<br />
{<br />
Proxy::no_proxy=comm.dmz;<br />
}<br />
}</p></blockquote>
<p>Or add no_proxy=http://aptserv.dmz:9999 in your environment). Note that you have two syntaxes (the first one is the old one and the second one is the new). Don&#8217;t be confused with upgrade and update: update is when the source-list has been changed to synchronize the list of the mirrors and upgrade is to synchronize the list of the new availables packages.</p>
<p>One good tool in case of problems with apt is apt-config. dump&gt; will dump for you your configuration with all the parameters (the defaults too):</p>
<blockquote><p>$ apt-config dump<br />
APT &#8220;&#8221;;<br />
APT::Architecture &#8220;i386&#8243;;<br />
APT::Build-Essential &#8220;&#8221;;<br />
&#8230;<br />
DPkg::Pre-Install-Pkgs:: &#8220;/usr/sbin/dpkg-preconfigure &#8211;apt || true&#8221;;<br />
Acquire &#8220;&#8221;;<br />
Acquire::http &#8220;&#8221;;</p></blockquote>
<p>Caution! When you upgrade to a new distribution of debian (it occurs once every two years more or less, that could be the only criticism of debian), change your source-list, perform an apt-get update, an apt-get upgrade and after that an apt-get dist-upgrade.</p>
<p>One last word. Comes aptitude, a new tool (there is a lot of graphical tools that i don&#8217;t know&#8230;). but for sarge it seems to me that the old ones do a better works (i must take a closer look&#8230;).</p>
<p>Enjoy Debian without moderation&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2006/02/package-management-in-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian deborphan</title>
		<link>http://www.karkomaonline.com/index.php/2006/02/debian-deborphan/</link>
		<comments>http://www.karkomaonline.com/index.php/2006/02/debian-deborphan/#comments</comments>
		<pubDate>Wed, 08 Feb 2006 01:37:07 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkoma.info/index.php/2006/02/08/debian-deborphan/</guid>
		<description><![CDATA[As you install packages in your Debian system it is possible that you end up with a bunch of packages that are not needed. These are orphaned packages, packages that are not required by another package. To handle this situation you have the deborphan utility. From the man pages: deborphan finds packages that have no [...]]]></description>
			<content:encoded><![CDATA[<p>As you install packages in your Debian system it is possible that you end up with a bunch of packages that are not needed. These are <em>orphaned packages</em>, packages that are not required by another package. To handle this situation you have the <em>deborphan</em> utility. From the man pages:</p>
<p><code>deborphan finds packages that have no packages depending on them. The default operation is to search only within the libs and oldlibs sections to hunt down unused libraries.</code></p>
<p>To install deborphan proceed as usual:</p>
<blockquote><p>apt-get install deborphan</p></blockquote>
<p>Now to see orphaned packages simply type&#8230;</p>
<blockquote><p>deborphan</p></blockquote>
<p>Note that it will not remove the packages listed, it will simply list packages that should be removed. If you want to definitely remove the package&#8230;</p>
<blockquote><p>deborphan | xargs apt-get &#8211;purge remove -y</p></blockquote>
<p><strong>An advice</strong>: be carefull to first check what packages are to be removed to avoid potential mistakes of deborphan. For more information take a look at man pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2006/02/debian-deborphan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS cache with DJBDNS for Debian</title>
		<link>http://www.karkomaonline.com/index.php/2006/01/dns-cache-with-djbdns-for-debian/</link>
		<comments>http://www.karkomaonline.com/index.php/2006/01/dns-cache-with-djbdns-for-debian/#comments</comments>
		<pubDate>Sun, 08 Jan 2006 16:53:17 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>

		<guid isPermaLink="false">http://www.karkoma.info/index.php/2006/01/08/dns-cache-with-djbdns-for-debian/</guid>
		<description><![CDATA[In order to inaugurate this new Debian section here we go with an easy and quick way to setup your own DNS cache. So let&#8217;s go! A DNS caching resolver performs the function of caching answers to previous queries so that there is no need to repeatedly query for the same information. Setting up such [...]]]></description>
			<content:encoded><![CDATA[<p>In order to inaugurate this new Debian section here we go with an easy and quick way to setup your own DNS cache. So let&#8217;s go!</p>
<p>A DNS caching resolver performs the function of caching answers to previous queries so that there is no need to repeatedly query for the same information. Setting up such a thing with djbdns is a trivial task. Proceed as follows:</p>
<p>NOTE: This instructions assume Debian Sarge but I guess this is not much different with other Debians.</p>
<blockquote><p>apt-get install daemontools-installer djbdns-installer ucspi-tcp-src</p></blockquote>
<p>Then build the packages following the instructions provided by APT (build-daemontool, build-djbdns, etc&#8230;).</p>
<p>Once installed proceed with the configuration:</p>
<blockquote><p>dnscache-conf dnscache dnslog /etc/dnscache<br />
ln -s /etc/dnscache /service<br />
sleep 5<br />
svstat /service/dnscache</p></blockquote>
<p>Now edit your resolver configuration file to look like this:</p>
<blockquote><p>nameserver 127.0.0.1</p></blockquote>
<p>I have had some problems with the init script that Debian Sarge installed (note that I&#8217;ve created the files in /etc/dnscache), so I modified a couple of lines and now looks like this:</p>
<blockquote><p>&#8230;..<br />
start)<br />
echo -n &#8220;Starting djbdns: &#8221;<br />
#for i in `ls -d /var/lib/svscan/dnscache* /var/lib/svscan/tinydns* /var/lib/svscan/axfrdns* 2&gt;/dev/null`; do<br />
for i in `ls -d /service/dnscache* 2&gt;/dev/null`; do<br />
&#8230;..<br />
stop)<br />
echo -n &#8220;Stopping djbdns: &#8221;<br />
#for i in `ls -d /var/lib/svscan/dnscache* /var/lib/svscan/tinydns* /var/lib/svscan/axfrdns* 2&gt;/dev/null`; do<br />
for i in `ls -d /service/dnscache* 2&gt;/dev/null`; do<br />
&#8230;..</p></blockquote>
<p>That&#8217;s all folks!</p>
<p><strong>References</strong>:</p>
<ul>
<li><a href="http://cr.yp.to/djbdns.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/cr.yp.to/djbdns.html?referer=');">djbdns homepage</a></li>
<li><a href="http://www.karkomaonline.com/article.php/20031010194701302" target="_blank">Gentoo Caching DNS with DJBDNS</a></li>
<li><a href="http://flounder.net/djbdns/bind-to-djbdns.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/flounder.net/djbdns/bind-to-djbdns.html?referer=');">BIND to djbdns Migration Guide</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2006/01/dns-cache-with-djbdns-for-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
