<?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>BigSmoke</title>
	<atom:link href="http://blog.bigsmoke.us/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Wed, 11 Aug 2010 12:45:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting password for mysql user in .my.cnf</title>
		<link>http://blog.bigsmoke.us/2010/08/11/setting-password-for-mysql-user-in.my.cnf</link>
		<comments>http://blog.bigsmoke.us/2010/08/11/setting-password-for-mysql-user-in.my.cnf#comments</comments>
		<pubDate>Wed, 11 Aug 2010 07:52:27 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1533</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this:
</p>

<pre class="bash"><span style="color: #000066;">cd</span> /root
touch .my.cnf
chmod <span style="color: #cc66cc;">640</span> .my.cnf</pre>

<p>
And put in it:
</p>

<pre class="php"><span style="color: #66cc66;">&#91;</span>client<span style="color: #66cc66;">&#93;</span>
user=root
password=foobar</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/08/11/setting-password-for-mysql-user-in.my.cnf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling debug for mod wsgi</title>
		<link>http://blog.bigsmoke.us/2010/08/06/disabling-debug-for-mod-wsgi</link>
		<comments>http://blog.bigsmoke.us/2010/08/06/disabling-debug-for-mod-wsgi#comments</comments>
		<pubDate>Fri, 06 Aug 2010 15:41:50 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_wsgi]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1531</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
For the record, when deploying mod wsgi apps, remember to enable optimizations in mod_wsgi.conf. Otherwise debug will be true.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/08/06/disabling-debug-for-mod-wsgi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a custom greeting for an Asterisk voicemailbox</title>
		<link>http://blog.bigsmoke.us/2010/07/30/setting-a-custom-greeting-for-an-asterisk-voicemailbox</link>
		<comments>http://blog.bigsmoke.us/2010/07/30/setting-a-custom-greeting-for-an-asterisk-voicemailbox#comments</comments>
		<pubDate>Fri, 30 Jul 2010 14:25:59 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[voicemail]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1527</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
By default, Asterisk always plays its own vm-intro as voicemail intro. To enable the user to record their own message, the entry in extensions.conf which sends a caller to the voicemail should be:
</p>

<pre class="php">exten =&gt; _0123456789,n,Voicemail<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>@&lt;context&gt;|s,u<span style="color: #66cc66;">&#41;</span></pre>

<p>
The s is to skip the default greeting. The u is for the unavailable message. You can also say b for busy message.
</p>

<p>
&#8216;show application voicemail&#8217; shows usage information and all the options you can give.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/07/30/setting-a-custom-greeting-for-an-asterisk-voicemailbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a port forwarded machine available from within the LAN</title>
		<link>http://blog.bigsmoke.us/2010/07/23/making-a-port-forwarded-machine-available-from-within-the-lan</link>
		<comments>http://blog.bigsmoke.us/2010/07/23/making-a-port-forwarded-machine-available-from-within-the-lan#comments</comments>
		<pubDate>Fri, 23 Jul 2010 11:33:08 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[netfilter]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1521</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
When you forward a port to an internal machine on the network, you still can&#8217;t access that host using your WAN-IP from within the LAN. <a href="http://www.frozentux.net/iptables-tutorial/iptables-tutorial.html#DNATTARGET">This article</a> explains it well. In short, it&#8217;s because the reply the machine your connecting to makes, goes to the LAN IP directly, and not back through the router. 
</p>

<p>
To fix it, we need to add a SNAT rule for that port forward as well. In the example that we want to forward port 80 to 10.50.0.4 on our 10.50.0.0/16 LAN and 10.50.0.1 is our router, these two rules are necessary:
</p>

<pre>
iptables -t nat -A PREROUTING -d WANIP -p tcp --dport 80 -m comment --comment "Forward www to 10.50.0.4." -j DNAT --to-destination LANIP
iptables -t nat -A POSTROUTING -p tcp --source 10.50.0.0/16 --dest 10.50.0.4 --dport 80 -j SNAT --to-source 10.50.0.1 --match comment --comment "Allow our LAN to access port 80 from the WAN side as well."
</pre>

<p>
Normally when forwarding, I would not use -d WANIP, but &#8211;in-interface eth0, but that won&#8217;t work here, because the LAN requests are not on eth0.
</p>

<p>
Also, the &#8211;source in the second rule is not strictly necessery, but if you don&#8217;t specify this rule, it will also match incoming requests for the internet, which is ugly, especially if you have logging rules.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/07/23/making-a-port-forwarded-machine-available-from-within-the-lan/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling related after current tab open</title>
		<link>http://blog.bigsmoke.us/2010/07/22/disabling-related-after-current-tab-open</link>
		<comments>http://blog.bigsmoke.us/2010/07/22/disabling-related-after-current-tab-open#comments</comments>
		<pubDate>Thu, 22 Jul 2010 10:10:14 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1519</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
I don&#8217;t like that firefox nowadays opens new tabs after the current tab. When I open stuff, I remember in which order I opened it and I don&#8217;t want that order changed by having tabs inserted. 
</p>

<p>
Change:
</p>

<pre class="php">browser.tabs.insertRelatedAfterCurrent</pre>

<p>
to false.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/07/22/disabling-related-after-current-tab-open/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Burning media with wodim</title>
		<link>http://blog.bigsmoke.us/2010/07/22/burning-media-with-wodim</link>
		<comments>http://blog.bigsmoke.us/2010/07/22/burning-media-with-wodim#comments</comments>
		<pubDate>Thu, 22 Jul 2010 07:30:07 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[cdrecord]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[growisofs]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[wodim]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1517</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Every time I want to burn media, I have to look up again what the syntax is. So, for future reference, this post.
</p>

<p>
CD ISO image:
</p>

<pre class="php">wodim dev=/dev/sr1 -eject  ubuntu<span style="color: #cc66cc;">-10.04</span>-server-amd64.iso</pre>

<p>
For DVD&#8217;s it&#8217;s different. If you mimick the above command, you will have a DVD with the ISO file on it. I don&#8217;t know exactly, but you have to specify /dev/dvd=image.iso or something. When the next time I burn a DVD ISO arrives, I&#8217;ll update this post.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/07/22/burning-media-with-wodim/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring a Debian exim server for internet delivery</title>
		<link>http://blog.bigsmoke.us/2010/07/20/configuring-a-debian-exim-server-for-internet-delivery</link>
		<comments>http://blog.bigsmoke.us/2010/07/20/configuring-a-debian-exim-server-for-internet-delivery#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:25:35 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[exim]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1515</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
I wanted an Exim server which could send mail on its own without the use of another SMTP server.
</p>

<p>
First see <a href="http://blog.bigsmoke.us/2008/08/03/configuring-a-debian-satellite-exim-server">this</a> for some general explantion. 
</p>

<p>
I used this config file:
</p>

<pre class="php"><span style="color: #808080; font-style: italic;"># /etc/exim4/update-exim4.conf.conf</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Edit this file and /etc/mailname by hand and execute update-exim4.conf</span>
<span style="color: #808080; font-style: italic;"># yourself or use 'dpkg-reconfigure exim4-config'</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Please note that this is _not_ a dpkg-conffile and that automatic changes</span>
<span style="color: #808080; font-style: italic;"># to this file might happen. The code handling this will honor your local</span>
<span style="color: #808080; font-style: italic;"># changes, so this is usually fine, but will break local schemes that mess</span>
<span style="color: #808080; font-style: italic;"># around with multiple versions of the file.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># update-exim4.conf uses this file to determine variable values to generate</span>
<span style="color: #808080; font-style: italic;"># exim configuration macros for the configuration file.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Most settings found in here do have corresponding questions in the</span>
<span style="color: #808080; font-style: italic;"># Debconf configuration, but not all of them.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># This is a Debian specific file</span>
&nbsp;
dc_eximconfig_configtype=<span style="color: #ff0000;">'internet'</span>
dc_other_hostnames=<span style="color: #ff0000;">'existingdomain.com'</span>
dc_local_interfaces=<span style="color: #ff0000;">'127.0.0.1'</span>
dc_readhost=<span style="color: #ff0000;">''</span>
dc_relay_domains=<span style="color: #ff0000;">''</span>
dc_minimaldns=<span style="color: #ff0000;">'false'</span>
dc_relay_nets=<span style="color: #ff0000;">''</span>
dc_smarthost=<span style="color: #ff0000;">''</span>
CFILEMODE=<span style="color: #ff0000;">'644'</span>
dc_use_split_config=<span style="color: #ff0000;">'false'</span>
dc_hide_mailname=<span style="color: #ff0000;">''</span>
dc_mailname_in_oh=<span style="color: #ff0000;">'true'</span>
dc_localdelivery=<span style="color: #ff0000;">'mail_spool'</span></pre>

<p>
Also remember to put that existingdomain.com in /etc/mailname.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/07/20/configuring-a-debian-exim-server-for-internet-delivery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goosh</title>
		<link>http://blog.bigsmoke.us/2010/06/29/goosh</link>
		<comments>http://blog.bigsmoke.us/2010/06/29/goosh#comments</comments>
		<pubDate>Tue, 29 Jun 2010 20:59:06 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Goosh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Vimperator]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1489</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>For a <a href="http://blog.bigsmoke.us/2009/06/07/vimperator">Vimperator user</a> like me, <a href="http://goosh.org/">Goosh</a> (the unofficial Google shell) is an obvious replacement for Google&#8217;s normal search page.</p>

<p>I&#8217;m not sure if I&#8217;ll ever really use it, because I tend to start my Google queries from Vimperator&#8217;s command-line, but nice to know that it&#8217;s there.</p>

<p>And there&#8217;s another bookmark deleted&#8230;</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/06/29/goosh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finnix Linux Live CD</title>
		<link>http://blog.bigsmoke.us/2010/06/29/finnix</link>
		<comments>http://blog.bigsmoke.us/2010/06/29/finnix#comments</comments>
		<pubDate>Tue, 29 Jun 2010 10:27:07 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Live CD]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1504</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.finnix.org/">Finnix</a> is another Linux Live CD. Like <a href="http://blog.bigsmoke.us/2010/06/29/systemrescuecd">SystemRescueCD</a>, it&#8217;s <q>not intended for the average desktop user, and does not include any desktops, productivity tools, or sound support, in order to keep distribution size low.</q> But Finnix is based on Debian, not Gentoo.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/06/29/finnix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silk icons</title>
		<link>http://blog.bigsmoke.us/2010/06/29/silk-icons</link>
		<comments>http://blog.bigsmoke.us/2010/06/29/silk-icons#comments</comments>
		<pubDate>Tue, 29 Jun 2010 10:21:25 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[16x16]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1502</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>“<a href="http://www.famfamfam.com/lab/icons/silk/">Silk</a>” is a smooth, free icon set, containing over 700  16-by-16 pixel icons in strokably-soft PNG format. Useful for web projects.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/06/29/silk-icons/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
