<?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>No Znx! &#187; Linux</title>
	<atom:link href="http://znx.no/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://znx.no</link>
	<description>the pigeons!!!!</description>
	<lastBuildDate>Tue, 20 Dec 2011 22:42:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Tmux Running But No Sessions</title>
		<link>http://znx.no/2011/12/tmux-running-but-no-sessions/</link>
		<comments>http://znx.no/2011/12/tmux-running-but-no-sessions/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 22:42:26 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[tmux]]></category>

		<guid isPermaLink="false">http://znx.no/?p=368</guid>
		<description><![CDATA[I recently attempted to reattach to a tmux session only to discover that it didn&#8217;t think any sessions were running. Reviewing the running processes proved that there was a session still active. A quick review indicated that that the socket was still present as well. Attempting to run tmux but attach to the socket (the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently attempted to reattach to a <code>tmux</code> session only to discover that it didn&#8217;t think any sessions were running. Reviewing the running processes proved that there was a session still active. A quick review indicated that that the socket was still present as well. Attempting to run tmux but attach to the socket (the -L option) didn&#8217;t work either.</p>
<p>Reviewing the manpage for tmux indicated that SIGUSR1 can be sent to force the sockets to be recreated thus as my users I did the following:</p>
<pre>$ killall -s SIGUSR1 tmux</pre>
<p>Then I was able to reattach to the session. Further reading suggest that I must have updated my tmux whilst it was still running which is officially unsupported, so I was lucky!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2011/12/tmux-running-but-no-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch / Yum</title>
		<link>http://znx.no/2011/12/arch-yum/</link>
		<comments>http://znx.no/2011/12/arch-yum/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 23:52:29 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://znx.no/?p=364</guid>
		<description><![CDATA[I recently switched to Archlinux and I have to say I love it a great deal. I really like the simplicity of it, unfortunately due to my long standing usage or yum I have been spoilt. It means that I find myself wishing to have commands like yum install package, so switching pacman&#8217;s -S was [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched to Archlinux and I have to say I love it a great deal. I really like the simplicity of it, unfortunately due to my long standing usage or <code>yum</code> I have been spoilt. It means that I find myself wishing to have commands like <code>yum install package</code>, so switching pacman&#8217;s <code>-S</code> was a little too much. I therefore wrote a wrapper to make it easier for me. Maybe it can help others just starting out in the path to using Archlinux.</p>
<p>In preparation for this, you will need to install <code>yaourt</code> and enable it with sudo access. Either that or replace all the references to <code>yaourt</code> below with <code>pacman</code>.</p>
<p>Drop this into your <i>~/.bashrc</i> (or zshrc):</p>
<pre>function arch() {
        if [ -z "$1" ]; then
                echo "arch <command> <blah...>" >&#038;2
                return -1
        fi

        case $1 in
                upgrade)
                        # Synchronize, upgrade
                        shift
                        sudo yaourt -Syu $@
                        ;;
                install)
                        # Install stuff
                        shift
                        sudo yaourt -S $@
                        ;;
                localinstall)
                        # Install file
                        shift
                        sudo yaourt -U $@
                        ;;
                remove)
                        # Remove
                        shift
                        sudo yaourt -R $@
                        ;;
                fullremove)
                        # Remove file
                        shift
                        sudo yaourt -Rns $@
                        ;;
                info)
                        # Display information
                        shift
                        yaourt -Si $@
                        ;;
                search)
                        # Search
                        shift
                        yaourt -Ss $@
                        ;;
        esac
}</pre>
<p>Now you can do things like:</p>
<pre>$ arch install git
$ arch remove git
$ arch info git
$ arch search git</pre>
<p>Hope its handy!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2011/12/arch-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conntrack Memory Usage</title>
		<link>http://znx.no/2011/02/conntrack-memory-usage/</link>
		<comments>http://znx.no/2011/02/conntrack-memory-usage/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:02:17 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=315</guid>
		<description><![CDATA[Every so often you see messages in your logs regarding ip_conntrack like the following: ip_conntrack: table full, dropping packet So my first thought it that it might relate to memory usage. Fortunately enough the kernel provides all the information we need to work it out. The kernel will allocate a &#8220;slab&#8221; when ever conntrack requires [...]]]></description>
			<content:encoded><![CDATA[<p>Every so often you see messages in your logs regarding <code>ip_conntrack</code> like the following:</p>
<pre>ip_conntrack: table full, dropping packet</pre>
<p>So my first thought it that it might relate to memory usage. Fortunately enough the kernel provides all the information we need to work it out. The kernel will allocate a &#8220;slab&#8221; when ever conntrack requires more memory, equally it will retain these slabs for a period of time and reuse if required. Each &#8220;slab&#8221; represents a number of pages of kernel memory, we can retrieve the current page size by using the following command:</p>
<pre># getconf PAGESIZE
4096</pre>
<p>So each page is 4096 bytes. Next lets see how many slabs conntrack is using:</p>
<pre># grep conntrack /proc/slabinfo
ip_conntrack        6537  16620    384  984 1662    1 :  496  124</pre>
<p>So that represents the following:</p>
<ul>
<li><b>ip_conntrack</b>; a human readable name</li>
<li><b>6537</b>; total number of objects in use.</li>
<li><b>16620</b>; total available objects (including unused)
<li><b>384</b>; size of each object.</li>
<li><b>984</b>; the number of slabs that are active</li>
<li><b>1662</b>; the total number of slabs</li>
<li><b>1</b>; the number of pages required to make a slab (normally 1)</li>
</ul>
<p>The two other columns after the colon relate to SMP CPU information; we don&#8217;t need to discuss them.</p>
<p>So 6537 objects each of size 384 bytes, which means that we can fix around 10 per slab (4096/384=10.66). That means that the objects represent 2510208 bytes (~2.4Mb), but because of the overhead we are actually using 654 (6537/10=653.7) slabs or 2.6Mb (654*4096=2678784). So we are wasting around 256 bytes per slab (4096-384*10).</p>
<p>In other words an extremely small amount of memory. So it is very unlikely that is the cause. Further investigation reveal that it is normally due to the conntrack hitting the maximum count which can be viewed by looking at:</p>
<pre># cat /proc/sys/net/ipv4/ip_conntrack_max
65536</pre>
<p>Comparing this to the current count:</p>
<pre>#  wc -l ./proc/sys/net/ip_conntrack
   5602 /proc/net/ip_conntrack</pre>
<p>We now know that it doesn&#8217;t use any great deal of memory at all, so we can easily double the count by doing the following:</p>
<pre># echo 131072 >/proc/sys/net/ipv4/ip_conntrack_max</pre>
<p>Obviously in this example the memory usage was minor and there was little need to double the count but you can review your own system and increase as you wish now we know that it has a very small memory footprint.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2011/02/conntrack-memory-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox, Fedora14 and SELinux</title>
		<link>http://znx.no/2010/11/dropbox-f14-selinux/</link>
		<comments>http://znx.no/2010/11/dropbox-f14-selinux/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 15:57:01 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://znx.no/?p=301</guid>
		<description><![CDATA[I just recently updated to Fedora 14 and came across an issue that many others have. Fortunately enough OpenSourceGeek provided me with an instant solution happy syncing !]]></description>
			<content:encoded><![CDATA[<p>I just recently updated to <a href='http://fedoraproject.org/'>Fedora 14</a> and came across an issue that many others have. Fortunately enough <a href='http://opensourcegeek.org/'>OpenSourceGeek</a> provided me with an <a href='http://opensourcegeek.org/2010/11/13/dropbox-and-selinux/'>instant solution</a> happy syncing <img src='http://znx.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> !</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/11/dropbox-f14-selinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accidental Firefox Quits</title>
		<link>http://znx.no/2010/04/accidental-firefox-quit/</link>
		<comments>http://znx.no/2010/04/accidental-firefox-quit/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 14:38:18 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://znx.no/?p=284</guid>
		<description><![CDATA[Whilst using Firefox I normally use the key press Ctrl+w to close the tabs, however on occasion my fingers strayed into Ctrl+q which, to my horror, quit Firefox! A quick Google pointed me towards a post on the useful Add-On Mirrors site. I then went to the homepage of the author and installed the nice [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst using Firefox I normally use the key press Ctrl+w to close the tabs, however on occasion my fingers strayed into Ctrl+q which, to my horror, quit Firefox!</p>
<p>A quick Google pointed me towards a <a href='http://forum.addonsmirror.net/index.php?showtopic=254'>post</a> on the useful Add-On Mirrors site. I then went to the <a href='http://mozilla.dorando.at/'>homepage</a> of the author and installed the nice tool <a href='http://mozilla.dorando.at/keyconfig.xpi'>KeyConfig</a>.</p>
<p>A quick restart of Firefox, then open KeyConfig (via Tools > KeyConfig), search for the Ctrl+q key press and disable.</p>
<p>Another restart of Firefox and it&#8217;s complete, no more accidental quits of Firefox! KeyConfig is a very nice and simple to use Add-On and will certainly be added to my default Firefox pack from now on, ace!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/04/accidental-firefox-quit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Magic</title>
		<link>http://znx.no/2010/04/ssh-magic/</link>
		<comments>http://znx.no/2010/04/ssh-magic/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:14:50 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=278</guid>
		<description><![CDATA[A friend of mine just recently posted a trick with long hostnames when using SSH. I have commented before many times when I see people making aliases or shorthand&#8217;s like this that they just don&#8217;t know about the magic that is possible in the SSH configuration file. Take for example this, imagine having a long [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine just recently posted a <a href='http://zcentric.com/2010/04/07/ssh-trick/'>trick with long hostnames</a> when using SSH. I have commented before many times when I see people making aliases or shorthand&#8217;s like this that they just don&#8217;t know about the magic that is possible in the SSH configuration file.</p>
<p>Take for example this, imagine having a long hostname, with an odd port and a different user. Typing that would be a pain, most people would do something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> ssh-short=<span style="color: #ff0000;">&quot;ssh -p 12345 someotheruser@somelong.hostname.com&quot;</span></pre></div></div>

<p>In their <code>~/.bashrc</code>, however the same can be filled into the configuration file. Edit the file <code>~/.ssh/config</code> (or make it!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host short
  HostName somelong.hostname.com
  User someotheruser
  Port <span style="color: #000000;">12345</span></pre></div></div>

<p>After doing this you can simply do:</p>

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

<p>How much easier do you need it to be?!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/04/ssh-magic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unrar Bug</title>
		<link>http://znx.no/2010/02/unrar-bu/</link>
		<comments>http://znx.no/2010/02/unrar-bu/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 01:29:50 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://znx.no/?p=274</guid>
		<description><![CDATA[So I was recently scripting with the unrar tool and discovered something stupid: unrar t file.rar if &#91; $? -eq 0 &#93;; then echo &#34;Rar file is good?&#34; fi However it was returning zero all the time, even when the file wasn&#8217;t a rar: # unrar t file.rar &#160; UNRAR 3.80 freeware Copyright &#40;c&#41; 1993-2008 [...]]]></description>
			<content:encoded><![CDATA[<p>So I was recently scripting with the unrar tool and discovered something stupid:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">unrar t file.rar
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Rar file is good?&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>However it was returning zero all the time, even when the file wasn&#8217;t a rar:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># unrar t file.rar</span>
&nbsp;
UNRAR <span style="color: #000000;">3.80</span> freeware      Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1993</span>-<span style="color: #000000;">2008</span> Alexander Roshal
&nbsp;
file.rar is not RAR archive
<span style="color: #666666; font-style: italic;"># echo $?</span>
<span style="color: #000000;">0</span></pre></div></div>

<p>So it fails the test but returns zero regardless. This makes it very unhelpful for using in scripting. Fortunately enough a mate on IRC discovered that his version did.</p>
<p>So I first download the existing SRPM and installed it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yumdownloader --source unrar</span>
<span style="color: #666666; font-style: italic;"># rpm -i unrar*.srpm</span></pre></div></div>

<p>Then I installed that and simply modified  so I downloaded the latest, created a RPM and installed.</p>
<p>I have submitted the updated spec file to <a href='https://bugzilla.rpmfusion.org/show_bug.cgi?id=1091'>RPMfusion</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/02/unrar-bu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPA2 Wireless With Linux</title>
		<link>http://znx.no/2010/02/wpa2-wireless-with-linux/</link>
		<comments>http://znx.no/2010/02/wpa2-wireless-with-linux/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:02:57 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://znx.no/?p=106</guid>
		<description><![CDATA[This is a simple tutorial produced by me and my good mate enigma. It is aimed at Gentoo and uses the Broadcom drivers but this should replicate to other systems. The first step is to get your drivers and for Broadcom, which is relatively easy as they produce them for us. So first download the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple tutorial produced by me and my good mate <a href="http://www.gentoo-fun.com/">enigma</a>. It is aimed at Gentoo and uses the Broadcom drivers but this should replicate to other systems.</p>
<p>The first step is to get your drivers and for Broadcom, which is relatively easy as they produce them for us. So first <a href="http://www.broadcom.com/support/802.11/linux_sta.php">download</a> the driver (these drivers support BM4311-, BCM4312-, BCM4321-, and BCM4322-based cards) and was also successful in this case with BCM4328.</p>
<p>Check that the package &#8216;linux-headers&#8217; is installed, this is really just for completeness sakes. Gentoo would not work for long without this package!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># emerge linux-headers</span>
... output ...</pre></div></div>

<p>Unpack the downloaded drivers and build for your current kernel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># tar -xzf hybrid-portsrc-ARCH-VERSION.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># make -C /lib/modules/`uname -r`/build M=`pwd`</span>
... output ...</pre></div></div>

<p>Remove any existing wireless drivers.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># rmmod ndiswrapper b43 ssb bcm43xx b43legacy</span></pre></div></div>

<p>Add in some modules required for WPA wireless:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># modprobe ieee80211_crypt_tkip</span></pre></div></div>

<p>Test the newly built wireless driver:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># insmod wl.ko</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># iwconfig</span>
.. output ...
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># iwlist scanning</span>
... output ...</pre></div></div>

<p>If that is working we can copy in the driver to the kernel and add to the autoload:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># cp wl.ko /lib/modules/`uname-r`/kernel/net/wireless/</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># rmmod wl</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># modprobe wl</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># echo 'wl' &gt;&gt;/etc/modules.autoload.d/kernel-2.6</span></pre></div></div>

<p>So now we have a working driver we can go on to configure for WPA. Alter the <i>/etc/conf.d/net</i> (note we assume that eth0 is wireless):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Prefer wpa_supplicant over wireless-tools</span>
<span style="color: #007800;">modules</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;wpa_supplicant&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># It's important that we tell wpa_supplicant which driver we should</span>
<span style="color: #666666; font-style: italic;"># be using as it's not very good at guessing yet</span>
<span style="color: #007800;">wpa_supplicant_eth0</span>=<span style="color: #ff0000;">&quot;-Dmadwifi&quot;</span></pre></div></div>

<p>Next set up the network in the <i>/etc/wpa_supplicant/wpa_supplicant.conf</i>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># This setting is required or the connection will not work</span>
<span style="color: #007800;">ctrl_interface</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>wpa_supplicant
&nbsp;
<span style="color: #666666; font-style: italic;"># Ensure that only root can read the WPA configuration</span>
<span style="color: #007800;">ctrl_interface_group</span>=<span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Let wpa_supplicant take care of scanning and AP selection</span>
<span style="color: #007800;">ap_scan</span>=<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Only WPA-PSK is used. Any valid cipher combination is accepted</span>
<span style="color: #007800;">network</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #007800;">ssid</span>=<span style="color: #ff0000;">&quot;example&quot;</span>
  <span style="color: #007800;">proto</span>=WPA RSN   <span style="color: #666666; font-style: italic;"># RSN is needed for WPA2</span>
  <span style="color: #007800;">key_mgmt</span>=WPA-PSK
  <span style="color: #007800;">pairwise</span>=CCMP TKIP
  <span style="color: #007800;">group</span>=CCMP TKIP WEP104 WEP40
  <span style="color: #007800;">psk</span>=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  <span style="color: #666666; font-style: italic;">#The higher the priority the faster it connects</span>
  <span style="color: #007800;">priority</span>=<span style="color: #000000;">2</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>And that is it, you should find that your wireless is enabled on boot.</p>
<p>Thanks should also go to <a href="http://djkaos.wordpress.com/2008/10/25/installing-broadcom-80211-linux-sta-driver/">DJ Kaos</a> for the preparation of the driver.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/02/wpa2-wireless-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acer Aspire One Tips</title>
		<link>http://znx.no/2009/09/acer-aspire-one-tips/</link>
		<comments>http://znx.no/2009/09/acer-aspire-one-tips/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 22:10:24 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[aa1]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=162</guid>
		<description><![CDATA[Just came across a really good site with lots of tips and tricks for the AA1. I have owned this dinky wee notebook for sometime now and can highly advise it for anyone looking for a Linux Notebook. Some tricks I have are: Alt+F2 &#62; xfce-settings-show &#62; Desktop &#62; Behaviour &#62; Show desktop menu on [...]]]></description>
			<content:encoded><![CDATA[<p>Just came across a really good <a title="Macles Blog" href="http://macles.blogspot.com/">site</a> with lots of tips and tricks for the AA1.</p>
<p>I have owned this dinky wee notebook for sometime now and can highly advise it for anyone looking for a Linux Notebook.</p>
<p>Some tricks I have are:</p>
<p><b>Alt+F2 &gt; xfce-settings-show &gt; Desktop &gt; Behaviour &gt; Show desktop menu on right click.</b><br />
The will enable the XFCE menu on right click, which is useful to me.</p>
<p><b>Alt+F2 &gt; xfce-settings-show &gt; Sessions and Startup &gt; Advanced &gt; Launch Gnome services on startup</b><br />
This will allow NetworkManger to use gnome-keyring and therefore finally store the keys for wireless!</p>
<p>Simple but effective!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/09/acer-aspire-one-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPG Errors</title>
		<link>http://znx.no/2009/08/gpg-errors/</link>
		<comments>http://znx.no/2009/08/gpg-errors/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 21:47:23 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[gpg]]></category>

		<guid isPermaLink="false">http://znx.no/?p=142</guid>
		<description><![CDATA[Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them! Simply download the key by using the GPG tool: gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0 Then import that key into either apt: gpg -a --export 010908312D230C5F &#124; sudo apt-key add - Or [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them!</p>
<p>Simply download the key by using the GPG tool:</p>
<pre>gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0</pre>
<p>Then import that key into either apt:</p>
<pre>gpg -a --export 010908312D230C5F | sudo apt-key add -</pre>
<p>Or rpm:</p>
<pre>gpg --export -a 010908312D230C5F >key.txt
rpm --import key.txt</pre>
<p>Simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/08/gpg-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

