<?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</title>
	<atom:link href="http://www.karkomaonline.com/index.php/tag/linux/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>Thu, 25 Nov 2010 07:49:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>vnstat</title>
		<link>http://www.karkomaonline.com/index.php/2010/11/vnstat/</link>
		<comments>http://www.karkomaonline.com/index.php/2010/11/vnstat/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 11:07:12 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=286</guid>
		<description><![CDATA[vnStat is a wonderful tool that will allow you to grab traffic information from you network interfaces]]></description>
			<content:encoded><![CDATA[<p>vnStat is a wonderful tool that will allow you to grab traffic information from you network interfaces.</p>
<p>From its homepage&#8230;</p>
<blockquote><p>vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won&#8217;t actually be sniffing any traffic and also ensures light use of system resources. However, in Linux at least a 2.2 series kernel is required.</p></blockquote>
<p><span id="more-286"></span></p>
<p>Now let&#8217;s install it, for example in Debian:</p>
<p><code>apt-get install vnstat</code></p>
<p>Then create a new database to store data:</p>
<p><code>vnstat -u -i eth0</code></p>
<p>Please take note to change eth0 with the interface you want to monitor.</p>
<p>When vnstat has collected enough data you can start using it.</p>
<p>Show daily stats:</p>
<p><code>vnstat -d</code></p>
<p><code>eth0  /  daily</p>
<p><code><br />
day         rx      |     tx      |  total<br />
------------------------+-------------+-------------------------<br />
18.10.     24.37 MB  |   40.08 MB  |   64.45 MB   %::<br />
19.10.     25.38 MB  |   52.44 MB  |   77.82 MB   %:::<br />
20.10.     31.53 MB  |   48.58 MB  |   80.11 MB   %%::<br />
21.10.     29.74 MB  |   60.76 MB  |   90.50 MB   %%:::<br />
22.10.     26.58 MB  |   39.07 MB  |   65.65 MB   %::<br />
23.10.     27.87 MB  |   39.51 MB  |   67.38 MB   %::<br />
24.10.     21.90 MB  |   33.94 MB  |   55.83 MB   %::<br />
25.10.    360.79 MB  |   69.73 MB  |  430.52 MB   %%%%%%%%%%%%%%%%%%%%%::::<br />
26.10.     31.44 MB  |   58.90 MB  |   90.34 MB   %%:::<br />
27.10.     29.08 MB  |   39.57 MB  |   68.65 MB   %::<br />
28.10.     28.98 MB  |   39.78 MB  |   68.76 MB   %::<br />
29.10.     27.16 MB  |   40.00 MB  |   67.16 MB   %::<br />
30.10.     26.07 MB  |   68.56 MB  |   94.63 MB   %::::<br />
31.10.     24.53 MB  |   29.31 MB  |   53.84 MB   %::<br />
01.11.     27.73 MB  |   37.07 MB  |   64.79 MB   %::<br />
02.11.     31.18 MB  |   53.65 MB  |   84.84 MB   %:::<br />
03.11.     36.02 MB  |   56.06 MB  |   92.08 MB   %%:::<br />
04.11.     33.21 MB  |   54.05 MB  |   87.26 MB   %%:::<br />
05.11.     29.01 MB  |   39.66 MB  |   68.67 MB   %::<br />
06.11.     26.97 MB  |   45.86 MB  |   72.83 MB   %:::<br />
07.11.     25.08 MB  |   32.49 MB  |   57.57 MB   %::<br />
08.11.     65.92 MB  |   44.18 MB  |  110.09 MB   %%%%::<br />
09.11.     29.99 MB  |   58.19 MB  |   88.18 MB   %%:::<br />
10.11.     31.84 MB  |   58.90 MB  |   90.74 MB   %%:::<br />
11.11.     29.44 MB  |   50.83 MB  |   80.28 MB   %:::<br />
12.11.     28.17 MB  |   36.99 MB  |   65.16 MB   %::<br />
13.11.     26.67 MB  |   31.74 MB  |   58.42 MB   %::<br />
14.11.     26.06 MB  |   30.40 MB  |   56.46 MB   %::<br />
15.11.     31.31 MB  |   45.36 MB  |   76.67 MB   %%::<br />
16.11.     26.83 MB  |   45.36 MB  |   72.20 MB   %:::<br />
------------------------+-------------+-------------------------<br />
estimated       31 MB  |      54 MB  |      85 MB<br />
</code></p>
<p>Show monthly stats:</p>
<p><code>vnstat -m</code></p>
<p><code>eth0  /  monthly</code></p>
<p><code><br />
month         rx      |      tx      |   total<br />
-------------------------+--------------+-----------------------<br />
Dec '09     780.78 MB  |     1.33 GB  |     2.10 GB   %%%%%::::::::<br />
Jan '10     888.01 MB  |     2.50 GB  |     3.37 GB   %%%%%%::::::::::::::::<br />
Feb '10     702.00 MB  |     1.30 GB  |     1.98 GB   %%%%::::::::<br />
Mar '10     776.67 MB  |     1.42 GB  |     2.18 GB   %%%%%:::::::::<br />
Apr '10       1.01 GB  |     1.54 GB  |     2.55 GB   %%%%%%::::::::::<br />
May '10     831.43 MB  |     1.56 GB  |     2.37 GB   %%%%%::::::::::<br />
Jun '10     831.70 MB  |     1.34 GB  |     2.15 GB   %%%%%:::::::::<br />
Jul '10     859.46 MB  |     1.61 GB  |     2.45 GB   %%%%%:::::::::::<br />
Aug '10     870.38 MB  |     1.50 GB  |     2.35 GB   %%%%%::::::::::<br />
Sep '10     814.80 MB  |     1.39 GB  |     2.19 GB   %%%%%:::::::::<br />
Oct '10       1.13 GB  |     1.34 GB  |     2.47 GB   %%%%%%%:::::::::<br />
Nov '10     505.44 MB  |   720.80 MB  |     1.20 GB   %%%::::<br />
-------------------------+--------------+-----------------------<br />
estimated       959 MB  |     1.33 GB  |     2.27 GB<br />
</code></p>
<p>Show the top 10:</p>
<p><code>vnstat -t</code></p>
<p><code>eth0  /  top 10</code></p>
<p><code><br />
#       day         rx      |     tx      |  total<br />
-------------------------------+-------------+------------------<br />
1    23.06.09     64.76 MB  |    1.95 GB  |    2.02 GB   %:::::::::::::::::<br />
2    06.01.10     50.75 MB  |    1.13 GB  |    1.18 GB   ::::::::::<br />
3    25.10.10    360.79 MB  |   69.73 MB  |  430.52 MB   %%%<br />
4    19.04.10    130.48 MB  |  156.69 MB  |  287.17 MB   %:<br />
5    20.05.09     76.08 MB  |  177.39 MB  |  253.48 MB   %:<br />
6    27.08.09    142.93 MB  |   50.10 MB  |  193.03 MB   %<br />
7    28.04.10    134.25 MB  |   58.06 MB  |  192.31 MB   %<br />
8    06.11.09    132.06 MB  |   59.30 MB  |  191.35 MB   %<br />
9    25.05.09     49.61 MB  |  124.27 MB  |  173.88 MB   :<br />
10    21.05.09     30.63 MB  |  139.71 MB  |  170.34 MB   :<br />
-------------------------------+-------------+------------------<br />
</code></p>
<p>For more info:</p>
<ul>
<li><code>vnstat --help</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2010/11/vnstat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian GNU/Linux 5.0 released</title>
		<link>http://www.karkomaonline.com/index.php/2009/02/debian-gnulinux-50-released/</link>
		<comments>http://www.karkomaonline.com/index.php/2009/02/debian-gnulinux-50-released/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 11:40:16 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=200</guid>
		<description><![CDATA[From the Debian Project site: This release includes numerous updated software packages, such as the K Desktop Environment 3.5.10 (KDE), an updated version of the GNOME desktop environment 2.22.2, the Xfce 4.4.2 desktop environment, LXDE 0.3.2.1, the GNUstep desktop 7.3, X.Org 7.3, OpenOffice.org 2.4.1, GIMP 2.4.7, Iceweasel 3.0.6 (an unbranded version of Mozilla Firefox), Icedove [...]]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://www.debian.org" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.debian.org?referer=');">Debian Project site</a>:</p>
<blockquote><p>This release includes numerous updated software packages, such as the K Desktop Environment 3.5.10 (KDE), an updated version of the GNOME desktop environment 2.22.2, the Xfce 4.4.2 desktop environment, LXDE 0.3.2.1, the GNUstep desktop 7.3, X.Org 7.3, OpenOffice.org 2.4.1, GIMP 2.4.7, Iceweasel 3.0.6 (an unbranded version of Mozilla Firefox), Icedove 2.0.0.19 (an unbranded version of Mozilla Thunderbird), PostgreSQL 8.3.6, MySQL 5.0.51a, GNU Compiler Collection 4.3.2, Linux kernel version 2.6.26, Apache 2.2.9, Samba 3.2.5, Python 2.5.2 and 2.4.6, Perl 5.10.0, PHP 5.2.6, Asterisk 1.4.21.2, Emacs 22, Inkscape 0.46, Nagios 3.06, Xen Hypervisor 3.2.1 (dom0 as well as domU support), OpenJDK 6b11, and more than 23,000 other ready-to-use software packages (built from over 12,000 source packages).</p>
<p>With the integration of X.Org 7.3 the X server autoconfigures itself with most hardware. Newly introduced packages allow the full support of NTFS filesystems and the use of most multimedia keys out of the box. Support for Adobe® Flash® format files is available via the swfdec or Gnash plugins. Overall improvements for notebooks have been introduced, such as out of the box support of CPU frequency scaling. For leisure time several new games have been added, including puzzle games as well as first-person shooters. Also notable is the introduction of &#8220;goplay&#8221;, a graphical games browser offering filters, search, screenshots and descriptions for games in Debian.</p>
<p>The availability and updates of OpenJDK, GNU Java compiler, GNU Java bytecode interpreter, Classpath and other free versions of Sun&#8217;s Java technology, into Debian GNU/Linux 5.0 allow us to ship Java-based applications in Debian&#8217;s &#8220;main&#8221; repository.</p>
<p>Further improvements in system security include the installation of available security updates before the first reboot by the Debian Installer, the reduction of setuid root binaries and open ports in the standard installation, and the use of GCC hardening features in the builds of several security-critical packages. Various applications have specific improvements, too. PHP for example is now built with the Suhosin hardening patch.</p>
<p>For non-native English speaking users the package management systems now support translated package descriptions and will automatically show the description of a package in the native language of the user, if available.</p></blockquote>
<p>More info can be found <a href="http://www.debian.org/News/2009/20090214" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.debian.org/News/2009/20090214?referer=');">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2009/02/debian-gnulinux-50-released/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>Is Linux less costly for web infrastructure than Solaris a myth?</title>
		<link>http://www.karkomaonline.com/index.php/2008/04/is-linux-less-costly-for-web-infrastructure-than-solaris-a-myth/</link>
		<comments>http://www.karkomaonline.com/index.php/2008/04/is-linux-less-costly-for-web-infrastructure-than-solaris-a-myth/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 22:36:17 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=187</guid>
		<description><![CDATA[This is an interesting point of view of Robin Goldfarb, a blogger from Sun&#8217;s blog hub. He points out why he and others from Sun consider Solaris to be less costly than Linux. Check it out!]]></description>
			<content:encoded><![CDATA[<p>This is an interesting point of view of Robin Goldfarb, a blogger from Sun&#8217;s blog hub. He points out why he and others from Sun consider Solaris to be less costly than Linux. <a href="http://blogs.sun.com/robin/entry/myth_busted" target="_blank" onclick="pageTracker._trackPageview('/outgoing/blogs.sun.com/robin/entry/myth_busted?referer=');">Check it out</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2008/04/is-linux-less-costly-for-web-infrastructure-than-solaris-a-myth/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>Linux: skip or force fsck on reboot</title>
		<link>http://www.karkomaonline.com/index.php/2006/04/linux-skip-or-force-fsck-on-reboot/</link>
		<comments>http://www.karkomaonline.com/index.php/2006/04/linux-skip-or-force-fsck-on-reboot/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 12:42:20 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.karkoma.info/index.php/2006/04/11/linux-skip-or-force-fsck-on-reboot/</guid>
		<description><![CDATA[shutdown is the typical way to bring your system down in a Unix environment. It takes care of notifying logged in users that the system is going down, takes care of sending SIGTERM to processes and more. One interesting feature of shutdown is the ability to force or skip the check and repair of the [...]]]></description>
			<content:encoded><![CDATA[<p><em>shutdown</em> is the typical way to bring your system down in a Unix environment. It takes care of notifying logged in users that the system is going down, takes care of sending SIGTERM to processes and more.</p>
<p>One interesting feature of <em>shutdown</em> is the ability to force or skip the check and repair of the filesystem after a reboot. This is done by two flags that could be passed to the command. According to the man pages:</p>
<p><code>The -f flag means 'reboot fast'. This only creates an advisory file /fastboot which can be tested by the system when it comes up again. The boot rc file can test if this file is present, and decide not to run fsck(1) since the system has been shut down in the proper way.  After that, the boot  process should remove /fastboot.<br />
</code><br />
<code>The  -F flag means 'force fsck'. This only creates an advisory file /forcefsck which can be tested by the system when it comes up again. The boot rc file can test if this file is present, and  decide to run fsck(1)  with  a  special 'force' flag so that even properly unmounted file systems get checked. After that, the boot process should remove /forcefsck.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2006/04/linux-skip-or-force-fsck-on-reboot/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>
	</channel>
</rss>

