<?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>neurotrigger</title>
	<atom:link href="http://www.neurotrigger.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.neurotrigger.net</link>
	<description>gnu/linux tips, tricks &#38; discoveries</description>
	<lastBuildDate>Mon, 09 Nov 2009 06:12:01 +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>Nice irssi theme to fit with my fancy screen status bar</title>
		<link>http://www.neurotrigger.net/?p=67</link>
		<comments>http://www.neurotrigger.net/?p=67#comments</comments>
		<pubDate>Mon, 09 Nov 2009 06:12:01 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=67</guid>
		<description><![CDATA[As another part of my basic setup, here is my irssi theme file: default.theme.tar And my precious key bindings, see this post to understand why it is from F7 to F10. For this to work, just copy/paste this into your irssi: /bind meta2-18~ key F7 /bind meta2-19~ key F8 /bind meta2-20~ key F9 /bind meta2-21~ [...]]]></description>
			<content:encoded><![CDATA[<p>As another part of my basic setup, here is my irssi theme file:</p>
<p><a href='http://www.neurotrigger.net/wp-content/uploads/2009/11/default.theme.tar1.gz'>default.theme.tar</a></p>
<p>And my precious key bindings, see <a href="http://www.neurotrigger.net/?p=60">this post</a> to understand why it is from F7 to F10.</p>
<p>For this to work, just copy/paste this into your irssi:</p>
<p><span id="more-67"></span></p>
<blockquote><p>
/bind meta2-18~   key F7<br />
/bind meta2-19~   key F8<br />
/bind meta2-20~   key F9<br />
/bind meta2-21~   key F10
</p></blockquote>
<p>And this:</p>
<blockquote><p>
/bind F7 /q<br />
/bind F8 /names<br />
/bind F9 /window prev<br />
/bind F10 /window next
</p></blockquote>
<p>The fist block is just binding the real key names with F names for comprehension.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP won&#8217;t re-activate after a &#8220;Windows Repair&#8221;</title>
		<link>http://www.neurotrigger.net/?p=65</link>
		<comments>http://www.neurotrigger.net/?p=65#comments</comments>
		<pubDate>Sun, 08 Nov 2009 08:16:59 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=65</guid>
		<description><![CDATA[The common target for malware is often the web browser, preventing the user from getting help from outside. The thing is, that same piece of software is also used for the Windows activation process. First it&#8217;s unbootable, it says some file is missing, you replace the file, some other file is missing, then you put [...]]]></description>
			<content:encoded><![CDATA[<p>The common target for malware is often the web browser, preventing the user from getting help from outside. The thing is, that same piece of software is also used for the Windows activation process.</p>
<p>First it&#8217;s unbootable, it says some file is missing, you replace the file, some other file is missing, then you put in the windows cd and start the repair. Now it boots, time to re-activate windows, it just hangs because it can&#8217;t load internet explorer because it is all corrupted somehow. Believe me this happens frequently.</p>
<p>This is how you fix it and it&#8217;s reallty easy, the goal is to reinstall Internet Explorer, now you think &#8220;Safe Mode with networking support&#8221; but this mode isn&#8217;t accessible at this time. You will have to download it from another sane installation. Downloading IE8 from <a href="http://www.microsoft.com/download">microsoft</a> will do the trick, be sure it is the stand-alone installer that doesn&#8217;t require internet connection. Uncheck &#8220;Install updates&#8221; and you&#8217;re done.</p>
<p>Now reboot and pray that damn window will just pop up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=65</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNU Screen scroll fix</title>
		<link>http://www.neurotrigger.net/?p=64</link>
		<comments>http://www.neurotrigger.net/?p=64#comments</comments>
		<pubDate>Sun, 08 Nov 2009 07:48:35 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=64</guid>
		<description><![CDATA[The GNU Screen manual tells you that to use scrolling, you must first enter &#8220;Copy mode&#8221; with C-a [. You can easily fix this and use regular PgUp/PgDn by simply adding a line to your ~/.screenrc. I really don&#8217;t know why this isn&#8217;t a default setting except that it seems to mess with Vim scrollback. [...]]]></description>
			<content:encoded><![CDATA[<p>The GNU Screen manual tells you that to use scrolling, you must first enter &#8220;Copy mode&#8221; with C-a [. </p>
<p>You can easily fix this and use regular PgUp/PgDn by simply adding a line to your ~/.screenrc. I really don&#8217;t know why this isn&#8217;t a default setting except that it seems to mess with Vim scrollback.</p>
<p>Here&#8217;s the line:</p>
<blockquote><p>termcapinfo xterm ti@:te@
</p></blockquote>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rare file</title>
		<link>http://www.neurotrigger.net/?p=62</link>
		<comments>http://www.neurotrigger.net/?p=62#comments</comments>
		<pubDate>Sun, 01 Nov 2009 04:13:53 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[rare files]]></category>
		<category><![CDATA[snes]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=62</guid>
		<description><![CDATA[There are times were i need to use old software, either to make old hardware work or to play with some other related software, such as SNES roms. The problem with zsnes is that the devs doesn&#8217;t seems to care anymore, which is understandable. But what happens to people like me who runs a 64-bit [...]]]></description>
			<content:encoded><![CDATA[<p>There are times were i need to use old software, either to make old hardware work or to play with some other related software, such as SNES roms.</p>
<p>The problem with zsnes is that the devs doesn&#8217;t seems to care anymore, which is understandable. But what happens to people like me who runs a 64-bit OS ? Nothing. The zsnes team haven&#8217;t planned porting afaik.</p>
<p>BUT, somehow, someone made a package of zsnes with the old good 1.42 version when you were able to use the netplay, and the best of it, it runs on 64bit. It&#8217;s a 32bit binary but the package is preconfigured to use linux32 and it runs pretty fine.</p>
<p><a href='http://www.neurotrigger.net/wp-content/uploads/2009/11/zsnes32-legacy_1.420-1.1_debian-amd64.deb'>Here it is.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-reattaching terminal multiplexor with tabs</title>
		<link>http://www.neurotrigger.net/?p=6</link>
		<comments>http://www.neurotrigger.net/?p=6#comments</comments>
		<pubDate>Wed, 21 Oct 2009 08:51:27 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://darkstars.hopto.org/?p=46</guid>
		<description><![CDATA[Typically, from a single ssh connection comes a single shell, let&#8217;s improve this situation. We will use a terminal multiplexor GNU Screen, which provide multiple terminals. We will also implement a neat tab bar to allow naming/showing tabs and automatic session re-attachment capability. Follow these steps to significantly enhance your distant shell experience, you will [...]]]></description>
			<content:encoded><![CDATA[<p>Typically, from a single ssh connection comes a single shell, let&#8217;s improve this situation.</p>
<p>We will use a terminal multiplexor GNU Screen, which provide multiple terminals. We will also implement a neat tab bar to allow naming/showing tabs and automatic session re-attachment capability.</p>
<p>Follow these steps to significantly enhance your distant shell experience, you will need to install screen and ssh, mutt and irssi are optional.</p>
<p>The first step involves using environment variables in order to detect if the login is  locally originating or not. If the user is logging from a distant machine, we will reattach an existing detached screen session or create a new one.</p>
<p>When logging in remotely, the most evident distinction i&#8217;ve found between a local and remote shell is the environment variable SSH_CONNECTION=, with this var we have a way of detecting remote logins easily and launch something else accordingly.</p>
<p><span id="more-6"></span><br />
Insert in your ~/.bashrc:</p>
<blockquote><p>if env | grep -q SSH_CONNECTION; then<br />
. ~/.screenlogin.sh<br />
fi</p></blockquote>
<p>The previous lines will launch .screenlogin.sh upon a remote connection, a second script  which will contain:</p>
<blockquote><p>DETACHED=`screen -list | grep Detached | wc -l`<br />
if [ “$DETACHED” = 1 ]; then<br />
screen -DR<br />
fi</p></blockquote>
<p>Make the script executable:</p>
<blockquote><p>chmod +x .screenlogin.sh</p></blockquote>
<p>Now exit and login back again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=6</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to defeat Bell/Sympatico&#8217;s torrent throttling</title>
		<link>http://www.neurotrigger.net/?p=61</link>
		<comments>http://www.neurotrigger.net/?p=61#comments</comments>
		<pubDate>Mon, 07 Sep 2009 23:53:48 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[bell]]></category>
		<category><![CDATA[sympatico]]></category>
		<category><![CDATA[throttling]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[tyranny]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=61</guid>
		<description><![CDATA[As you might know Sympatico is using DPI (deep packet inspection) to apply throttle according to the data transmitted, despite of what you might have heard, changing the port is ineffective and buying a compatible router to flash it with the tomato firmware to be able to use mlppp (Multi-link point-to-point protocol) is unnecessary and [...]]]></description>
			<content:encoded><![CDATA[<p>As you might know Sympatico is using DPI (deep packet inspection) to apply throttle according to the data transmitted, despite of what you might have heard, changing the port is ineffective and buying a compatible router to flash it with the <a href="http://www.polarcloud.com/tomato">tomato firmware</a> to be able to use mlppp (Multi-link point-to-point protocol) is unnecessary and expensive.</p>
<p>As long as they keep using the same methods, all you need to do is use a decent torrent client like Ktorrent who gives you these kinds of options:</p>
<blockquote>
<p>[X] Use encrypted protocol<br />
[ ] Allow unencrypted connections</p></blockquote>
<p>I noticed that if you allow unencrypted connections it does not get any better, probably because they can catch a couple of torrent packets and spot the port then apply port throttling, otherwise it could be just another online game that runs on a random port. </p>
<p>There is one inconvenient to this method, not everybody uses decent torrent clients, so you lose the participation of some of them. While running it encrypted only, i connected to many Azureus, Transmission, libtorrent based, they should then contain such options.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Useful and nice looking shell with GNU Screen</title>
		<link>http://www.neurotrigger.net/?p=60</link>
		<comments>http://www.neurotrigger.net/?p=60#comments</comments>
		<pubDate>Tue, 28 Jul 2009 04:53:24 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=60</guid>
		<description><![CDATA[This is how i got my linux shell looking so wonderful, using GNU Screen of course and its famous ~/.screenrc configuration file. Let&#8217;s create it and paste this into it: #hardstatus string &#8221; %wb%-w%wr%n %t%-%+w %=%D %d %M %y %c&#8221; #hardstatus string &#8220;%r%c%k &#124; %w% ? (%h)% ?&#8221; #hardstatus string &#8220;%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= [...]]]></description>
			<content:encoded><![CDATA[<p> This is how i got my linux shell looking so wonderful, using GNU Screen of course and its famous ~/.screenrc configuration file.</p>
<p>Let&#8217;s create it and paste this into it:</p>
<blockquote><p> #hardstatus string &#8221; %wb%-w%wr%n %t%-%+w %=%D %d %M %y %c&#8221;<br />
#hardstatus string &#8220;%r%c%k | %w% ? (%h)% ?&#8221;<br /> #hardstatus string &#8220;%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]&#8220;<br />hardstatus string &#8216;%{= c}[ %{W}%H %{c}][%= %{= w}%?%-Lw%?%{c}(%{W}%n*%f%t%?(%u)%?%{c})%{w}%?%+Lw%?%?%= %{c}][%{W} %d/%m %{W}%c %{c}]&#8216;</p>
<p>bindkey -k F1 prev<br />
bindkey -k F2 next</p>
<p>screen -t irssi 1 irssi -c irc.freenode.net<br />
screen -t mutt 2 mutt<br />
screen -t monitor 0 lwatch -i /dev/xconsole</p>
<p>hardstatus alwaysignore hardstatus alwayslastline </p></blockquote>
<p>The whole aesthetic thing reside in the first uncommented line, this is where it sets what is displayed in the hardstatus line which is always the last line. You can find documentation about the variables that can be used to display different types of information in the screen man page. ($ man screen).</p>
<p>As for the bindkey, you&#8217;ve guessed they bind keys to go forward and backward in your terminal tabs, and yes F1 means F11, don&#8217;t ask me why. I use F11 and F12 because i intend to use F9 and F10 in irssi to move between windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=60</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using fetchmail with gmail</title>
		<link>http://www.neurotrigger.net/?p=58</link>
		<comments>http://www.neurotrigger.net/?p=58#comments</comments>
		<pubDate>Tue, 28 Jul 2009 04:30:40 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[fetchmail]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=58</guid>
		<description><![CDATA[Gmail requires a secured connection for authentication and for this we need a certificate, here&#8217;s how: Verify the current certificate gmail is using with this command: openssl s_client -connect smtp.gmail.com:995 -showcerts Hit Ctrl-c to terminate the command once you got something like this: &#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211; MIIC3TCCAkagAwIBAgIDCDijMA0GCSqGSIb3DQEBBQUAME4xCzAJBgNVBAYTAlVT MRAwDgYDVQQKEwdFcXVpZmF4MS0wKwYDVQQLEyRFcXVpZmF4IFNlY3VyZSBDZXJ0 aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDcxMDI1MTc1MzE2WhcNMDkxMjI0MTg1MzE2 WjBoMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN TW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xFjAUBgNVBAMTDXBv cC5nbWFpbC5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAO03QxerFKZV 8yeomuL4zSl8Pr7hMWnKMMgp/CwhwadeBmL0LQHHbjL/6z/Z59ZQvrztqkwhchA2 APKzUwRVTyn7Shx6vBqk6oFmTqoOLmY6hbq6l8uVdUv0AfbHwio8CnLpK2+nbuFl flPwx1DH0E3grD8+CrH5SmScfTWbDkcXAgMBAAGjga4wgaswDgYDVR0PAQH/BAQD AgTwMB0GA1UdDgQWBBTJRG/OFpZt+BV43JM3NshHMjpwazA6BgNVHR8EMzAxMC+g [...]]]></description>
			<content:encoded><![CDATA[<p> Gmail requires a secured connection for authentication and for this we need a certificate, here&#8217;s how:</p>
<p>Verify the current certificate gmail is using with this command:</p>
<blockquote><p> openssl s_client -connect smtp.gmail.com:995 -showcerts </p></blockquote>
<p>Hit Ctrl-c to terminate the command once you got something like this:</p>
<blockquote><p>
&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br />
MIIC3TCCAkagAwIBAgIDCDijMA0GCSqGSIb3DQEBBQUAME4xCzAJBgNVBAYTAlVT<br />
MRAwDgYDVQQKEwdFcXVpZmF4MS0wKwYDVQQLEyRFcXVpZmF4IFNlY3VyZSBDZXJ0<br />
aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDcxMDI1MTc1MzE2WhcNMDkxMjI0MTg1MzE2<br />
WjBoMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN<br />
TW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xFjAUBgNVBAMTDXBv<br />
cC5nbWFpbC5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAO03QxerFKZV<br />
8yeomuL4zSl8Pr7hMWnKMMgp/CwhwadeBmL0LQHHbjL/6z/Z59ZQvrztqkwhchA2<br />
APKzUwRVTyn7Shx6vBqk6oFmTqoOLmY6hbq6l8uVdUv0AfbHwio8CnLpK2+nbuFl<br />
flPwx1DH0E3grD8+CrH5SmScfTWbDkcXAgMBAAGjga4wgaswDgYDVR0PAQH/BAQD<br />
AgTwMB0GA1UdDgQWBBTJRG/OFpZt+BV43JM3NshHMjpwazA6BgNVHR8EMzAxMC+g<br />
LaArhilodHRwOi8vY3JsLmdlb3RydXN0LmNvbS9jcmxzL3NlY3VyZWNhLmNybDAf<br />
BgNVHSMEGDAWgBRI5mj5K9KylddH2CMgEE8zmJCf1DAdBgNVHSUEFjAUBggrBgEF<br />
BQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADgYEAOKr3mhxtwFCS3J6lbeaf<br />
3KrHKi935BZkI75sRbON+hog0t2ovcM2i7fxs3xneH8USLsHgfxNBj9tkMogMK/K<br />
sO/NUVZ/IfyqcNNkp2619qTQXthKRH42JKpAKgNhT1bdno3pxn+eDEpqmU3CE7IP<br />
HDCjWOK1fGkZ/yFAuTxuxAc=<br />
&#8212;&#8211;END CERTIFICATE&#8212;&#8211;
</p></blockquote>
<p><span id="more-58"></span><br />
Copy &#038; Paste it to some file, let&#8217;s say gmail.pem in /usr/share/ssl-cert/ (debian-specific)</p>
<p>Stay in that directory and type:</p>
<blockquote><p>
c_rehash .
</p></blockquote>
<p>Then:</p>
<blockquote><p>
openssl x509 -fingerprint -md5 -noout -in gmail.pem
</p></blockquote>
<p>The first line will create a symbolic link based on the hash value (a fingerprint) we will use in our ~/.fetchmailrc, the second prints out that MD5 fingerprint, copy it and open your .fetchmailrc in your favourite text editor<br />
and add something that look likes this:</p>
<blockquote>
<p>poll pop.gmail.com with proto POP3<br />
    user &#8216;USERNAME@gmail.com&#8217; there with password &#8216;PASSWORD&#8217;<br />
        options keep ssl sslfingerprint &#8217;44:A8:E9:2C:FB:A9:7E:6D:F9:DB:F3:62:B2:9E:F1:A9&#8242;<br />
            sslcertck sslcertpath /usr/share/ssl-cert/</p>
</blockquote>
<p>It&#8217;s time for the final run test, just type fetchmail and watch it fetch your mail without complaining.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=58</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup postfix as a gmail relay</title>
		<link>http://www.neurotrigger.net/?p=57</link>
		<comments>http://www.neurotrigger.net/?p=57#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:55:47 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[fetchmail]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sasl]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=57</guid>
		<description><![CDATA[Here&#8217;s how to use postfix to send mail through gmail. Assuming you have postfix and libsasl2-modules installed, the rest should be automatically installed since it depends on it. First open your postfix main.cf file located at /etc/postfix/ (on debian). Append this to the end: relayhost= [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd [...]]]></description>
			<content:encoded><![CDATA[<p> Here&#8217;s how to use postfix to send mail through gmail. Assuming you have postfix and libsasl2-modules installed, the rest should be automatically installed since it depends on it. First open your postfix main.cf file located at /etc/postfix/ (on debian).</p>
<p>Append this to the end:</p>
<blockquote>
<p>relayhost= [smtp.gmail.com]:587<br /> smtp_use_tls = yes<br /> smtp_sasl_auth_enable = yes<br /> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br /> smtp_sasl_security_options = noanonymous</p>
<p> smtp_destination_rate_delay = 60<br /> relay_destination_rate_delay = 60</p>
<p> mailbox_command = /usr/bin/procmail -a $EXTENSION</p>
</blockquote>
<p> <span id="more-57"></span> The two paths you see above, /usr/bin/ &amp; /etc/postfix will remain the same on almost any GNU/Linux distro, if you want to set this up on FreeBSD, it will be /usr/local/bin &amp; /usr/local/etc/ respectively.</p>
<p>Next, create the sasl_passwd file in the /etc/postfix directory, insert the following:</p>
<blockquote>
<p>[smtp.gmail.com]:587    <a href="mailto:USERNAME@gmail.com">USERNAME@gmail.com</a>:CLEAR_TEXT_PASSWORD</p>
</blockquote>
<p>Replace the two highercase variables with your own, save and quit.</p>
<p>Then type this to hash the file so it could be used by postfix:</p>
<blockquote><p> postmap hash:sasl_passwd </p></blockquote>
<p>This will result in a sasl_passwd.db, this is what hash:/etc/postfix/sasl_passwd refers to.</p>
<p>Restart postfix:</p>
<blockquote><p> ./etc/init.d/postfix restart </p></blockquote>
<p>The final step is to test if it works well, to do so fire up mutt or your preferred mail client and send a mail.</p>
<p>You will notice there is some warning messages in /var/log/mail.log, don&#8217;t worry about them:</p>
<blockquote>
<p>certificate verification failed for smtp.gmail.com[XXX.XXX.XXX.XXX]:587: untrusted issuer /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com</p>
</blockquote>
<p>The fact you dont *fully* trust google doesnt mean you can&#8217;t send mail through them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=57</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard layout configuration without desktop environments tools</title>
		<link>http://www.neurotrigger.net/?p=54</link>
		<comments>http://www.neurotrigger.net/?p=54#comments</comments>
		<pubDate>Mon, 27 Jul 2009 20:52:17 +0000</pubDate>
		<dc:creator>mmnicolas</dc:creator>
				<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[basic setup]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://www.neurotrigger.net/?p=54</guid>
		<description><![CDATA[My home file server used to be headless, but i thought it deserves a head even if it&#8217;s only a PIII 300mhz/256mb of ram, no video accel. So i installed a minimal Xorg server with openbox as a window manager. Then i remembered, maybe 10 years ago when i was using WindowMaker and/or Blackbox i [...]]]></description>
			<content:encoded><![CDATA[<p>My home file server used to be headless, but i thought it deserves a head even if  it&#8217;s only a PIII 300mhz/256mb of ram, no video accel. So i installed a minimal <em>Xorg</em>  server with openbox as a window manager. Then i remembered, maybe 10 years ago when  i was using <em>WindowMaker</em> and/or <em>Blackbox</em> i had to fiddle with <em>xmodmap</em>s and <em>xkeycaps</em> to get french accents working. Now i realize there is a much more simpler way to do it  through the <em>Xorg</em> config file /etc/X11/xorg.conf.</p>
<blockquote><p> Section &#8220;InputDevice&#8221;	Identifier &#8220;keyboard&#8221;<br />
 	Option &#8220;XkbRules&#8221; &#8220;xorg&#8221;<br />
 	Option &#8220;XkbLayout&#8221; &#8220;ca&#8221;<br />
 	Option &#8220;XkbVariant&#8221; &#8220;fr&#8221;<br />
EndSection </p></blockquote>
<p>Just modify your keyboard section with the above Xkb options.</p>
<p>And there you are, with a french canadian keyboard layout! Now i can watch pictures  with french accents in the filename&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neurotrigger.net/?feed=rss2&amp;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
