<?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>Jontas &#187; debian</title>
	<atom:link href="http://www.f15ijp.com/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +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>PostgreSQL 8.3 adding uuid-ossp on Debian</title>
		<link>http://www.f15ijp.com/2010/10/03/postgresql-8-3-adding-uuid-ossp-on-debian/</link>
		<comments>http://www.f15ijp.com/2010/10/03/postgresql-8-3-adding-uuid-ossp-on-debian/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 09:53:23 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[PostgreSQL module]]></category>
		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=675</guid>
		<description><![CDATA[UUID is a nice way to generate (almost) unique id&#8217;s. However on PostgreSQL 8.3 the data type exists, but if you wish to be able to generate UUID&#8217;s you need to get a module (in this case uuid-ossp). On Debian this module is in the contrib package, so if you have not installed this before [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/UUID">UUID</a> is a nice way to generate (almost) unique id&#8217;s.</p>
<p>However on PostgreSQL 8.3 the data type exists, but if you wish to be able to generate UUID&#8217;s you need to get a module (in this case <a href="http://www.postgresql.org/docs/8.3/static/uuid-ossp.html">uuid-ossp</a>).</p>
<p>On Debian this module is in the contrib package, so if you have not installed this before do it now</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postgresql-contrib</pre></div></div>

<p>Then you need to &#8220;load&#8221; the module into PostgreSQL; or more accurately you tell PostgreSQL about the new functions this module has, how to reach them etc.<br />
Depending on you security settings (in pg_hba.conf) you may need to log in as the postgres user on your system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">postgres<span style="color: #000000; font-weight: bold;">@</span>sever:~$ psql <span style="color: #660033;">-d</span> MYDB <span style="color: #660033;">-U</span> postgres <span style="color: #660033;">-f</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>postgresql<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8.3</span><span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>uuid-ossp.sql</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/10/03/postgresql-8-3-adding-uuid-ossp-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt-get WARNING: The following packages cannot be authenticated!</title>
		<link>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/</link>
		<comments>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 07:12:49 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=500</guid>
		<description><![CDATA[apt-get is verifying the packages before installing them. If the keys are not up to date, then apt-get upgrade will issue a warning. WARNING: The following packages cannot be authenticated! ure uno-libs3 Install these packages without verification &#91;y/N&#93;? The way to solve this is rather simple, just run apt-get update and it should download the [...]]]></description>
			<content:encoded><![CDATA[<p>apt-get is verifying the packages before installing them.<br />
If the keys are not up to date, then apt-get upgrade will issue a warning.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">WARNING: The following packages cannot be authenticated<span style="color: #000000; font-weight: bold;">!</span>
  ure uno-libs3
Install these packages without verification <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>?</pre></div></div>

<p>The way to solve this is rather simple, just run apt-get update and it should download the keys automatically.</p>
<p>apt-key handles keys, using apt-key list will show you the keys that are on the computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/06/08/apt-get-warning-the-following-packages-cannot-be-authenticated/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apt-get update The following packages have been kept back</title>
		<link>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/</link>
		<comments>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 11:00:12 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=320</guid>
		<description><![CDATA[apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: bind9-host dnsutils libbind9-50 libdns50 libisc50 libisccc50 libisccfg50 liblwres50 linux-generic linux-generic-pae linux-image-generic linux-image-generic-pae 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. The message has been kept back most often means that the [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
Reading package lists... Done
Building dependency <span style="color: #c20cb9; font-weight: bold;">tree</span>
Reading state information... Done
The following packages have been kept back:
  bind9-host dnsutils libbind9-<span style="color: #000000;">50</span> libdns50 libisc50 libisccc50 libisccfg50 liblwres50 linux-generic linux-generic-pae linux-image-generic
  linux-image-generic-pae
<span style="color: #000000;">0</span> upgraded, <span style="color: #000000;">0</span> newly installed, <span style="color: #000000;">0</span> to remove and <span style="color: #000000;">12</span> not upgraded.</pre></div></div>

<p>The message has been kept back most often means that the upgrade was kept back due to dependencies that are not met.</p>
<p>Some possible solutions</p>
<ul>
<li>A simple way is to invoke dselect to help out with the update. dselect performs the actions necessary to realize that state (for instance, the removal of old and the installation of new packages).

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> dselect-upgrade</pre></div></div>

</li>
<li>While apt-get and aptitude are basically the same, aptitude is sometimes better at handling dependencies than apt-get

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> upgrade</pre></div></div>

</li>
<li>Another solution is to install the package using apt-get install to install the upgraded package and let apt-get install the missing dependencies

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dnsutils</pre></div></div>

</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/09/apt-get-update-the-following-packages-have-been-kept-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian: Reconfigure exim4</title>
		<link>http://www.f15ijp.com/2010/02/05/debian-reconfigure-exim4/</link>
		<comments>http://www.f15ijp.com/2010/02/05/debian-reconfigure-exim4/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 21:00:45 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[exim4]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailserver]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=298</guid>
		<description><![CDATA[To re-configure exim4 on a Debian system just run &#8220;$ dpkg-reconfigure exim4-config&#8221; This will start the configuration process and you will be guided trough the configuration process.]]></description>
			<content:encoded><![CDATA[<p>To re-configure exim4 on a Debian system just run<br />
&#8220;$ dpkg-reconfigure exim4-config&#8221;<br />
This will start the configuration process and you will be guided trough the configuration process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/05/debian-reconfigure-exim4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly configure shorewall on Debian</title>
		<link>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/</link>
		<comments>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:20:44 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[shorewall]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=278</guid>
		<description><![CDATA[By definition shorewall is not a firewall, it is a way to (more) easily configure iptables to work as a firewall. First install shorewall &#8220;$ apt-get intall shorewall&#8221; Enter /etc/shorewall Copy the example files from /usr/share/doc/shorewall-common/default-config/ (might also be located in /usr/share/doc/shorewall/default-config/) &#8220;$ cp /usr/share/doc/shorewall-common/default-config/* .&#8221; Edit the files and enter the data that your [...]]]></description>
			<content:encoded><![CDATA[<p>By definition shorewall is not a firewall, it is a way to (more) easily configure iptables to work as a firewall.</p>
<ul>
<li>First install shorewall &#8220;$ apt-get intall shorewall&#8221;</li>
<li>Enter /etc/shorewall</li>
<li>Copy the example files from /usr/share/doc/shorewall-common/default-config/ (might also be located in /usr/share/doc/shorewall/default-config/) &#8220;$ cp /usr/share/doc/shorewall-common/default-config/* .&#8221;</li>
<li>Edit the files and enter the data that your system has
<ul>
<li>First create zones &#8220;$ nano zones&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ZONE   TYPE            OPTIONS         IN OPTIONS                OUT OPTIONS</span>
fw      firewall
net     ipv4
vpn     ipv4</pre></div></div>

</li>
<li>Connect zones with interfaces&#8221;$ nano interfaces&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ZONE   INTERFACE       BROADCAST       OPTIONS</span>
net     eth0            detect          tcpflags,blacklist,dhcp
vpn	tun0		-</pre></div></div>

</li>
<li>Create policies &#8220;$ nano policy&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#SOURCE         DEST            POLICY          LOG LEVEL       LIMIT:BURST</span>
fw              net             ACCEPT
vpn             net             ACCEPT
vpn             fw              ACCEPT
fw              vpn             ACCEPT
net             all             DROP            info
all             all             DROP            info</pre></div></div>

</li>
<li>Create rules &#8220;$ nano rules&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ACTION SOURCE          DEST            PROTO   DEST    SOURCE          ORIGINAL        RATE            USER/</span>
<span style="color: #666666; font-style: italic;">#                                               PORT(S) PORT(S)         DEST            LIMIT           GROUP</span>
ACCEPT          net             fw             tcp     <span style="color: #000000;">22</span> <span style="color: #666666; font-style: italic;"># ssh</span>
ACCEPT          net             fw             tcp     <span style="color: #000000;">80</span> <span style="color: #666666; font-style: italic;"># web</span></pre></div></div>

</li>
<li>Verify that the rules are fine &#8220;$ shorewall check&#8221;</li>
<li>Edit /etc/default/shorewall and set startup to 1

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;"># prevent startup with default configuration</span>
<span style="color: #666666; font-style: italic;"># set the following varible to 1 in order to allow Shorewall to start</span>
&nbsp;
<span style="color: #007800;">startup</span>=<span style="color: #000000;">1</span></pre></div></div>

</li>
<li>Start the firewall &#8220;$ /etc/init.d/shorewall start&#8221; </li>
</ul>
</li>
</ul>
<p>If you later decide to update rules, zones etc run &#8220;$ /etc/init.d/shorewall restart&#8221; to load the changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: what version is installed?</title>
		<link>http://www.f15ijp.com/2010/01/25/debian-what-version-is-installed/</link>
		<comments>http://www.f15ijp.com/2010/01/25/debian-what-version-is-installed/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 12:38:30 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=228</guid>
		<description><![CDATA[To just get the version number $cat /etc/debian_version 5.0.3]]></description>
			<content:encoded><![CDATA[<p>To just get the version number</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>debian_version
5.0.3</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/25/debian-what-version-is-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memtest86+ in grub</title>
		<link>http://www.f15ijp.com/2008/03/10/memtest86-in-grub/</link>
		<comments>http://www.f15ijp.com/2008/03/10/memtest86-in-grub/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 22:23:11 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[memtest86+]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://f15ijp.no-ip.org/?p=19</guid>
		<description><![CDATA[Turns out using Debian it is very simple to get memtest86+ to appear in the grub boot up menu. Simply install it as usual using apt-get. After the installation is complete do a grub-install. That&#8217;s it, after rebooting memtest86+ is now in the grub menu. (Now how come it was not possible to google out  [...]]]></description>
			<content:encoded><![CDATA[<p>Turns out using Debian it is very simple to get memtest86+ to appear in the grub boot up menu.</p>
<p>Simply install it as usual using  apt-get.</p>
<p>After the installation is complete do a grub-install.</p>
<p>That&#8217;s it, after rebooting memtest86+ is now in the grub menu.</p>
<p>(Now how come it was not possible to google out  this info;) )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2008/03/10/memtest86-in-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

