<?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>Joar</title>
	<atom:link href="http://cosmicb.no/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://cosmicb.no</link>
	<description>Stuff regarding Linux</description>
	<lastBuildDate>Thu, 08 Jul 2010 06:21:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Queue only in Exim</title>
		<link>http://cosmicb.no/?p=119</link>
		<comments>http://cosmicb.no/?p=119#comments</comments>
		<pubDate>Thu, 08 Jul 2010 06:21:23 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exim]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=119</guid>
		<description><![CDATA[In the process of upgrading our server where mail for customers where being stored I had to take down the system. One thing is to give thousand of users downtime, they can (must) live with it, as long as you for instance do it during nights or so. An other thing is incoming mail, the [...]]]></description>
			<content:encoded><![CDATA[<p>In the process of upgrading our server where mail for customers where being stored I had to take down the system. One thing is to give thousand of users downtime, they can (must) live with it, as long as you for instance do it during nights or so. An other thing is incoming mail, the system should be able to receive mail 24/7 at least as long as one have more than 1 incoming MX .</p>
<p>Normally Exim is run by the switch -bd -q5m, depending on the configuration in exim.conf Exim usually tries to deliver mail instantly and (ref. -q5m) a queue runner goes through the queue every 5 minutes and may or may not retry delivery of mail hanging in the queue (it may not retry mail where &#8216;retry time&#8217; has not been reach) .</p>
<p>In exim.conf you may add the directive:</p>
<pre>
queue_only
</pre>
<p>meaning that for each incoming mail exim will queue the mail and not try to deliver it at once. Mail is then picked up by the queue runner process and delivered later.<br />
By using this directive and by stopping exim and starting it manually with out the queue runner process:</p>
<pre>
exim -bd
</pre>
<p>I was able to queue all incoming mail at our MX and could do what I needed to do with the server where mail is delivered (that is for local deliveries) which in my case was about 3 hours of downtime.<br />
When done I removed the queue_only directive and restarted exim with the queue runner again and everything was well <img src='http://cosmicb.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Sources:<br />
<a href=http://www.exim.org/exim-html-4.00/doc/html/FAQ_19.html>exim.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=119</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing read/write speed of disks</title>
		<link>http://cosmicb.no/?p=117</link>
		<comments>http://cosmicb.no/?p=117#comments</comments>
		<pubDate>Tue, 06 Jul 2010 09:06:28 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=117</guid>
		<description><![CDATA[Upon testing the performance of a raid 6 array with 13 disks i wanted to check read/write performance, an easy way to do this fast on Linux (Debian) is simply using &#8216;time&#8217; and &#8216;dd&#8217;:

bakis:/var/raid6volume# time dd if=/dev/zero of=./testingtransfer bs=16k count=16k
16384+0 records in
16384+0 records out
268435456 bytes (268 MB) copied, 1.48474 s, 181 MB/s

real	0m1.513s
user	0m0.008s
sys	0m1.456s
bakis:/var/raid6volume# time dd if=./testingtransfer [...]]]></description>
			<content:encoded><![CDATA[<p>Upon testing the performance of a raid 6 array with 13 disks i wanted to check read/write performance, an easy way to do this fast on Linux (Debian) is simply using &#8216;time&#8217; and &#8216;dd&#8217;:</p>
<pre>
bakis:/var/raid6volume# time dd if=/dev/zero of=./testingtransfer bs=16k count=16k
16384+0 records in
16384+0 records out
268435456 bytes (268 MB) copied, 1.48474 s, 181 MB/s

real	0m1.513s
user	0m0.008s
sys	0m1.456s
bakis:/var/raid6volume# time dd if=./testingtransfer of=/dev/null bs=16k
16384+0 records in
16384+0 records out
268435456 bytes (268 MB) copied, 0.156663 s, 1.7 GB/s

real	0m0.159s
user	0m0.004s
sys	0m0.160s
bakis:/var/raid6volume#
</pre>
<p>The &#8216;read&#8217; test above isn&#8217;t real since the file has been cached . But a rsync is working in the background so I couldn&#8217;t umount /var/raid6volume for this example.</p>
<p>Initially I was doing this to test performance over nfs for the same array, one has to umount / mount the share between each test to make sure nothings in the cache.</p>
<p>Working with nfs, tuning wsize and rsize on the client side also gives a lot better performance (at least in my case), see the link bellow for more info.</p>
<p>I got these hints from <a href=http://www.debianhelp.co.uk/nfs.htm>debianhelp.co.uk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=117</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun java plugin in Lucid Lynx</title>
		<link>http://cosmicb.no/?p=112</link>
		<comments>http://cosmicb.no/?p=112#comments</comments>
		<pubDate>Tue, 04 May 2010 07:28:22 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=112</guid>
		<description><![CDATA[I still need sun&#8217;s java plugin to access my internet bank. The recent Ubuntu 10.04 (Lucid Lynx) have removed sun packages from the official repository. But you can still quite easily install Sun java plugin by :

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-plugin

source: beeznest.wordpress.com
]]></description>
			<content:encoded><![CDATA[<p>I still need sun&#8217;s java plugin to access my internet bank. The recent <a href=https://wiki.ubuntu.com/LucidLynx>Ubuntu 10.04 (Lucid Lynx)</a> have removed sun packages from the official repository. But you can still quite easily install Sun java plugin by :</p>
<pre>
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-plugin
</pre>
<p>source: <a href=http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04/>beeznest.wordpress.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How much ram in my graphics card ?</title>
		<link>http://cosmicb.no/?p=110</link>
		<comments>http://cosmicb.no/?p=110#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:38:15 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=110</guid>
		<description><![CDATA[Nice command to find how much ram my graphics card has. Use &#8216;lspci&#8217; to get the pci id and throw it back to lspci like this:

joar@juno:~$ lspci &#124; grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
joar@juno:~$ lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 [...]]]></description>
			<content:encoded><![CDATA[<p>Nice command to find how much ram my graphics card has. Use &#8216;lspci&#8217; to get the pci id and throw it back to lspci like this:</p>
<pre>
joar@juno:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
joar@juno:~$ lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
	Subsystem: Lenovo Device 3a02
	Flags: bus master, fast devsel, latency 0, IRQ 30
	Memory at f4000000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 1800 [size=8]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

joar@juno:~$
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=110</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ethtool is great</title>
		<link>http://cosmicb.no/?p=107</link>
		<comments>http://cosmicb.no/?p=107#comments</comments>
		<pubDate>Thu, 15 Apr 2010 09:44:39 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ethtool]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=107</guid>
		<description><![CDATA[Ethtool is a great tool you can use to adjust several settings at your NIC.
It&#8217;s especially great to detect if a cable is connected or not. Say you&#8217;ve got 3 NIC&#8217;s at your server, your hooking up one to the switch and wondering did I hook up eth0, eth1 or eth2 now (?)

# ethtool eth1
Settings [...]]]></description>
			<content:encoded><![CDATA[<p><a href=http://freshmeat.net/projects/ethtool/>Ethtool</a> is a great tool you can use to adjust several settings at your <a href=http://en.wikipedia.org/wiki/Network_Interface_Controller>NIC</a>.<br />
It&#8217;s especially great to detect if a cable is connected or not. Say you&#8217;ve got 3 NIC&#8217;s at your server, your hooking up one to the switch and wondering did I hook up eth0, eth1 or eth2 now (?)</p>
<pre>
# ethtool eth1
Settings for eth1:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: umbg
	Wake-on: d
	Current message level: 0x00000007 (7)
	Link detected: yes
</pre>
<p>As we can see &#8216;Link detected: yes, we&#8217;ve got a winner.<br />
Note: you have to bring up the interface with :</p>
<pre>
# ifconfig eth1 up
</pre>
<p>or else ethtool will say the link is not detected even if a cable is attached.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=107</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL and .pem problems while setting up ifolder test server.</title>
		<link>http://cosmicb.no/?p=105</link>
		<comments>http://cosmicb.no/?p=105#comments</comments>
		<pubDate>Wed, 14 Apr 2010 09:33:57 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ifolder]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=105</guid>
		<description><![CDATA[I&#8217;m looking at ifolder, and during installation on my test server I spent some time trying to get my head around the ifolder documentation regarding using .pem certificates with apache2. They explicitly say you have to export your self signed certificate as .pem with &#8216;ca certificate only&#8217;, on my OpenSuse test server /var/log/apache2/error.log kept on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m looking at <a href=http://ifolder.com/ifolder>ifolder</a>, and during installation on my test server I spent some time trying to get my head around the ifolder documentation regarding using .pem certificates with apache2. They explicitly say you have to export your self signed certificate as .pem with &#8216;ca certificate only&#8217;, on my OpenSuse test server /var/log/apache2/error.log kept on giving me </p>
<pre>
Init: Private key not found
</pre>
<p><a href=http://www.giantrobot.co.nz/blog/apache-ssl-init-private-key-not-found>This</a> post gave me a hint on how to resolve this. Exporting the certificate as specified in the ifolder administrator documentation as &#8216;ca certificate AND the private key&#8217; solved it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still not friends with Ekiga</title>
		<link>http://cosmicb.no/?p=103</link>
		<comments>http://cosmicb.no/?p=103#comments</comments>
		<pubDate>Wed, 24 Mar 2010 06:17:30 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Pulseaudio]]></category>
		<category><![CDATA[sflphone]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=103</guid>
		<description><![CDATA[I was a bit quick on my last post, since Ekiga still haven&#8217;t got real support for pulsaudio I had to toss it.
Up came sflphone and they&#8217;ve got REAL support for pulse.
]]></description>
			<content:encoded><![CDATA[<p>I was a bit quick on my last <a href=http://cosmicb.no/?p=99>post</a>, since Ekiga still haven&#8217;t got real support for pulsaudio I had to toss it.<br />
Up came <a href=http://www.sflphone.org/>sflphone</a> and they&#8217;ve got REAL support for pulse.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=103</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ekiga in Ubuntu Karmic hangs with pulse</title>
		<link>http://cosmicb.no/?p=99</link>
		<comments>http://cosmicb.no/?p=99#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:53:51 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ekiga]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[Pulseaudio]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=99</guid>
		<description><![CDATA[With reference to this post I finally figured out that I could after all use a Linux softphone with our iptelephony solution at work.
At first I tried Ekiga, since it&#8217;s Ubuntu&#8217;s default softphone app, but it didn&#8217;t really work, kept on hanging.
I tried Twinkle, which worked right out of the box, but using QT 3.x [...]]]></description>
			<content:encoded><![CDATA[<p>With reference to <a href=http://cosmicb.no/?p=78>this post</a> I finally figured out that I could after all use a Linux softphone with our iptelephony solution at work.<br />
At first I tried Ekiga, since it&#8217;s Ubuntu&#8217;s default softphone app, but it didn&#8217;t really work, kept on hanging.<br />
I tried Twinkle, which worked right out of the box, but using QT 3.x libs ? I just couldn&#8217;t settle with that. I don&#8217;t like to mix QT libs in my glibs environment and I REALLY don&#8217;t like to use really old QT libs if I must have them.<br />
I took an other shot at Ekiga, and dug up <a href=https://bugs.launchpad.net/ubuntu/+source/ekiga/+bug/435295>this post</a> at launchpad which solved my problems.<br />
Upgrade to Ekiga 3.2.6 and things should be okay with Karmic, pulseaudio and Ekiga again.<br />
<a href=https://launchpad.net/~sevmek/+archive/ekiga-released>Launchpad Ekiga 3.2.6 repo here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disable GDM in Ubuntu 9.10</title>
		<link>http://cosmicb.no/?p=95</link>
		<comments>http://cosmicb.no/?p=95#comments</comments>
		<pubDate>Fri, 19 Feb 2010 08:01:31 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[karmic]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=95</guid>
		<description><![CDATA[When I need to disable services in Linux I&#8217;m used to symlinks in /etc/rc2.d
(for debian based distros) .
Ubuntu 9.10 doesn&#8217;t have any symlink for gdm in /etc/rc2.d
so how do I disable the freakin&#8217; service ?
It seems gdm is started by upstart now, but they&#8217;ve also switched to grub2 and according to ubuntuforums.org we can control [...]]]></description>
			<content:encoded><![CDATA[<p>When I need to disable services in Linux I&#8217;m used to symlinks in /etc/rc2.d<br />
(for debian based distros) .<br />
Ubuntu 9.10 doesn&#8217;t have any symlink for gdm in /etc/rc2.d<br />
so how do I disable the freakin&#8217; service ?<br />
It seems gdm is started by upstart now, but they&#8217;ve also switched to grub2 and according to <a href=http://ubuntuforums.org/showthread.php?t=1322949>ubuntuforums.org</a> we can control this from grub.</p>
<pre>
edit /etc/default/grub
</pre>
<p>Change the line GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet splash&#8221; to</p>
<pre>
 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
</pre>
<p>And issue:</p>
<pre>
# update-grub
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=95</wfw:commentRss>
		<slash:comments>420</slash:comments>
		</item>
		<item>
		<title>Importing information_schema from an other mysql server</title>
		<link>http://cosmicb.no/?p=90</link>
		<comments>http://cosmicb.no/?p=90#comments</comments>
		<pubDate>Wed, 27 Jan 2010 08:13:25 +0000</pubDate>
		<dc:creator>Joar Jegleim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cosmicb.no/?p=90</guid>
		<description><![CDATA[While investigating some mysql stuff at work I imported the whole mysql dump from our production system into my localhost installation. Among the 2000 or so databases was also information_schema, and I ended up with problems like : 

root@pluto:~# /etc/init.d/mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user
'debian-sys-maint'@'localhost' (using password: YES)'
 *

The [...]]]></description>
			<content:encoded><![CDATA[<p>While investigating some mysql stuff at work I imported the whole mysql dump from our production system into my localhost installation. Among the 2000 or so databases was also information_schema, and I ended up with problems like : </p>
<pre>
root@pluto:~# /etc/init.d/mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user
'debian-sys-maint'@'localhost' (using password: YES)'
 *
</pre>
<p>The solution was to reset password fr debian-sys-maint user in mysql.</p>
<pre>
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost'
IDENTIFIED BY 'password' WITH GRANT OPTION;
</pre>
<p>Where &#8216;password&#8217; is found in /etc/mysql/debian.cnf <img src='http://cosmicb.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I got this one from <a href=http://ubuntuforums.org/archive/index.php/t-112505.html>ubuntuforums.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosmicb.no/?feed=rss2&amp;p=90</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
