<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Joy of Stick</title>
	
	<link>http://tech.moosaico.com/blog</link>
	<description>It's not a problem to solve, just an issue to enlighten</description>
	<lastBuildDate>Sun, 28 Apr 2013 15:09:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F&amp;language=en_US&amp;category=text&amp;title=The+Joy+of+Stick&amp;description=It%26%23039%3Bs+not+a+problem+to+solve%2C+just+an+issue+to+enlighten&amp;tags=blog" type="text/html" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheJoyOfStick" /><feedburner:info uri="thejoyofstick" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Install HP Support Software in your Ubuntu Server</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/lEIT6HrecDw/</link>
		<comments>http://tech.moosaico.com/blog/2013/04/28/install-hp-support-software-in-your-ubuntu-server/#comments</comments>
		<pubDate>Sun, 28 Apr 2013 15:09:41 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=446</guid>
		<description><![CDATA[We have some HP Proliant DL rack servers with Ubuntu 12.04 LTS. Knowing HP officially supports Ubuntu distributions we may install their management software to help with inventory and monitoring. What to Install We need to add the HP Support Software repository to every system. Add the following line deb http://downloads.linux.hp.com/SDR/downloads/MCP/ubuntu precise current/non-free to a [...]]]></description>
				<content:encoded><![CDATA[<p>We have some HP Proliant DL rack servers with Ubuntu 12.04 LTS. Knowing HP officially supports Ubuntu distributions we may install their management software to help with inventory and monitoring.</p>
<h2>What to Install</h2>
<p>We need to add the HP Support Software repository to every system.</p>
<p>Add the following line</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">deb http://downloads.linux.hp.com/SDR/downloads/MCP/ubuntu precise current/non-free</pre></td></tr></table></div>

<p>to a new file under aptitude sources directory</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo vi /etc/apt/sources.list.d/hp-proliant-support-pack.list</pre></td></tr></table></div>

<p>Please do a <code>sudo apt-get update</code></p>
<p>Then install all these packages.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install hpsmh hp-snmp-agents hp-smh-templates hponcfg hp-health hpacucli</pre></td></tr></table></div>

<p>Depending on what you already have installed <code>apt</code> may install other packages or tell you some suggestions.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils libperl5.14 libsensors4 libsnmp-base libsnmp15 libssl0.9.8 libxslt1.1 snmpd
  xsltproc
Suggested packages:
  binutils-doc lm-sensors snmp-mibs-downloader
The following NEW packages will be installed:
  binutils hp-health hp-smh-templates hp-snmp-agents hpacucli hponcfg hpsmh libperl5.14
  libsensors4 libsnmp-base libsnmp15 libssl0.9.8 libxslt1.1 snmpd xsltproc
0 upgraded, 15 newly installed, 0 to remove and 2 not upgraded.
Need to get 33.3 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
WARNING: The following packages cannot be authenticated!
  hp-health hp-snmp-agents hpsmh hp-smh-templates hpacucli hponcfg
Install these packages without verification [y/N]?</pre></td></tr></table></div>

<p>If you are using <code>snmpd</code> you may like to read a <a href="http://tech.moosaico.com/blog/2012/12/01/installing-snmp-mib-files-in-linux-ubuntu-12-04-lts/" title="Installing SNMP MIB files in Linux Ubuntu 12.04 LTS" target="_blank">previous note</a> from me.</p>
<h2>Final configurations</h2>
<p>Along the installation of those packages you may have been warned:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">WARNING:hp-snmp-agents is not configured.
You must type '/sbin/hpsnmpconfig' as 'root' user to configure agents.</pre></td></tr></table></div>

<p>It&#8217;s time to running it now.</p>
<p>Opening your browser with <code>http://servername:2381/</code> let&#8217;s you see the HP System Management Homepage</p>
<p>Please edit <code>/opt/hp/hpsmh/conf/smhpd.xml</code> and restart <code>hpsmhd</code> so you control whom can access.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo service hpsmhd restart</pre></td></tr></table></div>

<h2>Finally</h2>
<p>Well, now browse through each package man pages to learn features and configuration tweaks. Don&#8217;t forget HP maintains <a href="http://www.hp.com/go/ubuntu" title="HP Ubuntu Support" target="_blank">a web presence</a> to Ubuntu support</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=446&amp;md5=354fdeac6128570695ed6b60b6ca0d64" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/lEIT6HrecDw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2013/04/28/install-hp-support-software-in-your-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2013%2F04%2F28%2Finstall-hp-support-software-in-your-ubuntu-server%2F&amp;language=en_GB&amp;category=text&amp;title=Install+HP+Support+Software+in+your+Ubuntu+Server&amp;description=We+have+some+HP+Proliant+DL+rack+servers+with+Ubuntu+12.04+LTS.+Knowing+HP+officially+supports+Ubuntu+distributions+we+may+install+their+management+software+to+help+with+inventory+and+monitoring....&amp;tags=hp%2CLinux%2Cmonitor%2Cserver%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2013/04/28/install-hp-support-software-in-your-ubuntu-server/</feedburner:origLink></item>
		<item>
		<title>How to get the original IP address in Apache2 behind Nginx</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/FzLr2sIiV8I/</link>
		<comments>http://tech.moosaico.com/blog/2013/04/11/how-to-get-the-original-ip-address-in-apache2-behind-nginx/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 23:32:57 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=407</guid>
		<description><![CDATA[Nginx as a reverse proxy for Apache A traditional setup is having Nginx as a frontend and then running Apache through reverse proxy. The Apache logs become full of just a single IP address, the accesses from the Nginx server &#8211; usually 127.0.0.1 if you are running both on the same server. No more GeoIP [...]]]></description>
				<content:encoded><![CDATA[<h2>Nginx as a reverse proxy for Apache</h2>
<p>A traditional setup is having <a href="http://nginx.com" title="Nginx" target="_blank">Nginx</a> as a frontend and then running <a href="http://httpd.apache.org/" title="Apache2" target="_blank">Apache</a> through reverse proxy. The Apache logs become full of just a single IP address, the accesses from the Nginx server &#8211; usually 127.0.0.1 if you are running both on the same server.</p>
<p>No more GeoIP decisions on the backend or any other feature by remote address.</p>
<p>But we know that Nginx passes along the original client IP address on a HTTP header named <code>X-Forwarded-For</code> to the backend server. It would be awesome if Apache could deal with that,</p>
<h2>Have no fear, Reverse Proxy Add Forward is here!</h2>
<p>Fortunately there is already a module that injects the IP on a special header to the HTTP request to Apache: <code>mod_rpaf</code></p>
<p>The installation couldn&#8217;t be more simple than</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install libapache2-mod-rpaf</pre></td></tr></table></div>

<p>It will enabled it automatically</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">/etc/apache2/mods-enabled/rpaf.conf
/etc/apache2/mods-enabled/rpaf.load</pre></td></tr></table></div>

<p>In Nginx I usually include <code>/etc/nginx/proxy.conf</code> in my configuration. It already has these lines to help that everything works easily</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">proxy_set_header    Host            $host;
proxy_set_header    X-Real-IP       $remote_addr;
proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;</pre></td></tr></table></div>

<p>Just restart the Apache server</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo service apache2 restart</pre></td></tr></table></div>

<h2>But there&#8217;s a problem</h2>
<p>Unfortunately it won&#8217;t work if you are using Ubuntu 12.04.</p>
<p><strong><code>mod_rpaf</code> is not working on Precise !</strong></p>
<p>There is a bug with the package that is known to Canonical since last December as you can see in the <a href="https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-rpaf/+bug/930540" title="libapache2-mod-rpaf">bug track</a>. Being a LTS version I  don&#8217;t understand this attitude from them.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ cat /etc/apache2/mods-enabled/rpaf.conf 
&lt;IfModule mod_rpaf.c&gt;
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 ::1
&lt;/IfModule&gt;</pre></td></tr></table></div>

<p>And the problem is that it is originally named <code>mod_rpaf-2.0.c</code>.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ strings /usr/lib/apache2/modules/mod_rpaf.so | grep mod_rpaf
mod_rpaf.so
mod_rpaf-2.0.c
Enable mod_rpaf
Let mod_rpaf set the hostname from X-Host header and update vhosts</pre></td></tr></table></div>

<p>Just edit the first line of <code>/etc/apache2/mods-enabled/rpaf.conf</code> and change it to</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">&lt;IfModule rpaf_module&gt;</pre></td></tr></table></div>

<p>Restart again the Apache2 server and you will start to get all those remote IPs on your log files.</p>
<h2>Conclusion</h2>
<p>If it was not for the known bug this post could have been just one line to install <code>mod_rpaf</code></p>
<p>:-)</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=407&amp;md5=b8a520495d6b9b8d5fc9219fcc105464" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/FzLr2sIiV8I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2013/04/11/how-to-get-the-original-ip-address-in-apache2-behind-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2013%2F04%2F11%2Fhow-to-get-the-original-ip-address-in-apache2-behind-nginx%2F&amp;language=en_GB&amp;category=text&amp;title=How+to+get+the+original+IP+address+in+Apache2+behind+Nginx&amp;description=Nginx+as+a+reverse+proxy+for+Apache+A+traditional+setup+is+having+Nginx+as+a+frontend+and+then+running+Apache+through+reverse+proxy.+The+Apache+logs+become+full+of+just...&amp;tags=apache2%2Cbug%2Cnginx%2Creverse+proxy%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2013/04/11/how-to-get-the-original-ip-address-in-apache2-behind-nginx/</feedburner:origLink></item>
		<item>
		<title>Where is my add-apt-repository in Ubuntu Server LTS 12.04 ?</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/LfuzAJ_Iayk/</link>
		<comments>http://tech.moosaico.com/blog/2013/04/05/where-is-my-add-apt-repository-in-ubuntu-server-lts-12-04/#comments</comments>
		<pubDate>Thu, 04 Apr 2013 23:55:53 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=395</guid>
		<description><![CDATA[Yes, where is it ? biafra@vm:~$ sudo add-apt-repository ppa:rwky/redis [sudo] password for biafra: sudo: add-apt-repository: command not found So, you are using the latest stable and supported LTS server distribution from Ubuntu. And it doesn&#8217;t install the package to simplify the management of PPA repositories (Personal Package Archives). The de facto Ubuntu repository for all [...]]]></description>
				<content:encoded><![CDATA[<p>Yes, where is it ?</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">biafra@vm:~$ sudo add-apt-repository ppa:rwky/redis
[sudo] password for biafra: 
sudo: add-apt-repository: command not found</pre></td></tr></table></div>

<p>So, you are using the latest stable and supported LTS server distribution from Ubuntu. And it doesn&#8217;t install the package to simplify the management of <a href="https://launchpad.net/" title="Launchpad" target="_blank">PPA</a> repositories (Personal Package Archives). The <i>de facto</i> Ubuntu repository for all people.</p>
<p>They even state that in the help text:</p>
<div id="attachment_399" class="wp-caption alignnone" style="width: 510px"><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/04/add-apt-repository.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/04/add-apt-repository.png" alt="Read about installing" width="500" height="294" class="size-full wp-image-399" /></a><p class="wp-caption-text">&#8220;Read about installing&#8221;</p></div>
<p>But don&#8217;t despair! They could already had installed it with one of the upgrades but&#8230; They forgot it. <code>add-apt-repository</code> comes with package <code>python-software-properties</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install python-software-properties</pre></td></tr></table></div>

<p>And now at last:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">biafra@vm:~$ sudo add-apt-repository ppa:rwky/redis
You are about to add the following PPA to your system:
 Redis is a in memory persistent datastore. This is package kept up
to date with the latest stable version from http://redis.io it uses
an upstart script instead of an init script which fits nicely with
the newer ubuntu distributions.
&nbsp;
For support email admin {at} rwky {dot} net
&nbsp;
For support in other distributions please contact me at the above
address and I'll consider other builds if there is demand.
&nbsp;
If you like this package please consider flattring me
http://flattr.com/thing/360264/Redis-package-for-Ubuntu
&nbsp;
Sponsored by @Food_Nation http://www.food-nation.co.uk/
 More info: https://launchpad.net/~rwky/+archive/redis
Press [ENTER] to continue or ctrl-c to cancel adding it
&nbsp;
gpg: keyring `/tmp/tmp48ytqX/secring.gpg' created
gpg: keyring `/tmp/tmp48ytqX/pubring.gpg' created
gpg: requesting key 5862E31D from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp48ytqX/trustdb.gpg: trustdb created
gpg: key 5862E31D: public key &quot;Launchpad PPA for Rowan&quot; imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK</pre></td></tr></table></div>

<p>I hope this will help you like it helped me!</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=395&amp;md5=5db631435c30f6f5a2767050f53e45c2" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/LfuzAJ_Iayk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2013/04/05/where-is-my-add-apt-repository-in-ubuntu-server-lts-12-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2013%2F04%2F05%2Fwhere-is-my-add-apt-repository-in-ubuntu-server-lts-12-04%2F&amp;language=en_GB&amp;category=text&amp;title=Where+is+my+add-apt-repository+in+Ubuntu+Server+LTS+12.04+%3F&amp;description=Yes%2C+where+is+it+%3F+biafra%40vm%3A%7E%24+sudo+add-apt-repository+ppa%3Arwky%2Fredis+%5Bsudo%5D+password+for+biafra%3A+sudo%3A+add-apt-repository%3A+command+not+found+So%2C+you+are+using+the+latest+stable+and+supported+LTS+server+distribution...&amp;tags=ppa%2Crepository%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2013/04/05/where-is-my-add-apt-repository-in-ubuntu-server-lts-12-04/</feedburner:origLink></item>
		<item>
		<title>Connecting Thunderbird to an Exchange Calendar</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/luLEqh4E6Ho/</link>
		<comments>http://tech.moosaico.com/blog/2013/03/15/connecting-thunderbird-to-an-exchange-calendar/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 23:25:09 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=365</guid>
		<description><![CDATA[Or How to Install an Add On .xpi in Thunderbird You have your Ubuntu Desktop running smooth. Thunderbird is connecting to the corporate Exchange server through IMAP. However you can&#8217;t deal with all those appointments and meeting requests. Add-ons you will need You will need two Add-ons: Lightning Exchange 2007/2010 Calendar and Tasks Provider Lightning [...]]]></description>
				<content:encoded><![CDATA[<h2><i>Or How to Install an Add On .xpi in Thunderbird</i></h2>
<p>You have your Ubuntu Desktop running smooth. Thunderbird is connecting to the corporate Exchange server through IMAP. However you can&#8217;t deal with all those appointments and meeting requests.</p>
<h2> Add-ons you will need</h2>
<p>You will need two Add-ons:</p>
<ul>
<li>Lightning</li>
<li>Exchange 2007/2010 Calendar and Tasks Provider</li>
</ul>
<p>Lightning is a calendar and task extension.</p>
<p>Open Thunderbird and go to your menu <code>Tools / Add-ons</code>. Select <code>Get Add-ons</code>.<br />
If &#8220;Lightning&#8221; appears right away just click on it and added it. If not you have to use the search box. Keep in mind that you are looking just for &#8220;Lightning&#8221;. It will show up many add-ons with similar names. Continue to the next search page if there&#8217;s no add-on named just &#8220;Lightning&#8221;.</p>
<p>And now you think you could do the same for the second add-on. Wrong!<br />
You must go <a href="http://www.1st-setup.nl/wordpress/?page_id=133">here</a> and download the Development Version 3.1.x.</p>
<p>Now you have the second add-on in a file named <code>exchangecalendar-3.1.x.xpi</code></p>
<h2>How do I install a <code>.xpi</code> add-on in Thunderbird ?</h2>
<p>Well, you won&#8217;t find a menu option to do that. Go again to <code>Tools / Add-ons / Get Add-ons</code>. Now just click on the tools icon and select <code>Install Add-on From File...</code>.</p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/03/tools-for-all-add-ons-thunderbird.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/03/tools-for-all-add-ons-thunderbird.png" alt="Tools for all add-ons" width="320" height="152" class="alignnone size-full wp-image-369" /></a></p>
<h2>Conclusion</h2>
<p>There&#8217;s now one less argument for the Management to go against Linux on the Desktop. And this is a really important one on the Corporation world. Unfortunately you can&#8217;t continue to not attend meetings with the excuse you were not invited or that it was not on your calendar :-)</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=365&amp;md5=d2cef44ae6b3d4a562c894ee3877382e" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/luLEqh4E6Ho" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2013/03/15/connecting-thunderbird-to-an-exchange-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2013%2F03%2F15%2Fconnecting-thunderbird-to-an-exchange-calendar%2F&amp;language=en_GB&amp;category=text&amp;title=Connecting+Thunderbird+to+an+Exchange+Calendar&amp;description=Or+How+to+Install+an+Add+On+.xpi+in+Thunderbird+You+have+your+Ubuntu+Desktop+running+smooth.+Thunderbird+is+connecting+to+the+corporate+Exchange+server+through+IMAP.+However+you+can%26%238217%3Bt...&amp;tags=calendar%2Cexchange%2Cthunderbird%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2013/03/15/connecting-thunderbird-to-an-exchange-calendar/</feedburner:origLink></item>
		<item>
		<title>Vim safe copy paste without bad indentation</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/3kSY3EnlUhg/</link>
		<comments>http://tech.moosaico.com/blog/2013/02/28/vim-safe-copy-paste-without-bad-indentation/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 01:51:55 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[copy/paste]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=317</guid>
		<description><![CDATA[The Horror One thing that was always great with Linux desktop X11 (and continued with Ubuntu 12.10) was copying text with a mouse selection and just pasting it with the middle button. That&#8217;s why I became horrified when it started to not work with Vim! I was evaluating a Perl Module and when I copy/pasted [...]]]></description>
				<content:encoded><![CDATA[<h2>The Horror</h2>
<p>One thing that was always great with Linux desktop X11 (and continued with Ubuntu 12.10) was copying text with a mouse selection and just pasting it with the middle button. That&#8217;s why I became horrified when it started to not work with Vim!</p>
<p>I was evaluating a <a title="Dancer::Plugin::Auth::Tiny" href="https://metacpan.org/module/Dancer::Plugin::Auth::Tiny" target="_blank">Perl Module</a> and when I copy/pasted a block of an example code this happened</p>
<p>&nbsp;</p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/borked-paste-500.png"><img class="alignnone size-full wp-image-325" alt="Borked Paste" src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/borked-paste-500.png" width="500" height="320" /></a></p>
<p>It has to be a way to have a clean copy/paste again!</p>
<h2>The Solution</h2>
<p>Fortunately Vim has the notion of paste and so has a mode to activate it and ignore indentations and other features. You just activate it with <code>:set paste</code></p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/normal-set-paste-500.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/normal-set-paste-500.png" alt="normal-set-paste-500" width="500" height="28" class="alignnone size-full wp-image-332" /></a></p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-mode-500.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-mode-500.png" alt="paste-mode-500" width="500" height="28" class="alignnone size-full wp-image-333" /></a></p>
<p>Change to insert mode</p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-mode-insert-500.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-mode-insert-500.png" alt="paste-mode-insert-500" width="500" height="27" class="alignnone size-full wp-image-334" /></a></p>
<p>and now just paste the text the way it was supposed.</p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-ok-500.png"><img class="alignnone size-full wp-image-326" alt="Paste Ok" src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-ok-500.png" width="500" height="320" /></a></p>
<p>Hurray! Now press <code>Esc</code> and get back to our helpful indentations with <code>:set nopaste</code>.</p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-set-nopaste-500.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/paste-set-nopaste-500.png" alt="paste-set-nopaste-500" width="500" height="27" class="alignnone size-full wp-image-336" /></a></p>
<p><a href="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/normal-set-nopaste-500.png"><img src="http://tech.moosaico.com/blog/wp-content/uploads/2013/02/normal-set-nopaste-500.png" alt="normal-set-nopaste-500" width="500" height="27" class="alignnone size-full wp-image-331" /></a></p>
<h2>Less typing, may I ?</h2>
<p>Of course there&#8217;s a pragmatic way of doing all these. We can define a keyboard key to just make the copy/paste a safe operation. I&#8217;m using key <code>F12</code>.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #000000;">:</span><span style="color: #804040;">set</span> <span style="color: #668080;">pastetoggle</span>=<span style="color: #668080;">&lt;F12&gt;</span></pre></td></tr></table></div>

<p>In insert mode you can toggle the paste mode so you don&#8217;t despair with the wrong indentation. Add it to your <code>.vimrc</code></p>
<p>Another way it&#8217;s to just paste what you want into the line you are at in visual mode.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #804040;">map</span> <span style="color: #668080;">&lt;F12&gt;</span> <span style="color: #000000;">:</span>r<span style="color: #000000;">!</span> xsel<span style="color: #000000;">&lt;</span>CR<span style="color: #000000;">&gt;</span><span style="color: #668080;">&lt;Esc&gt;</span></pre></td></tr></table></div>

<p><code>xsel</code> is a command line X11 tool to manipulate its &#8220;clipboard&#8221;.<br />
This mapping reads into Vim the output of <code>xsel</code> which is the clipboard copy buffer. I&#8217;m using this one.</p>
<p>You may need to install it but it&#8217;s simple</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install xsel</pre></td></tr></table></div>

<h2>Conclusion</h2>
<p>Vim customization and plugins broke a plain simple copy/paste. However we got a no brain and fast solution with our <code>F12</code> key.</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=317&amp;md5=90b0eefc035c389bcdf9d58474c8edba" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/3kSY3EnlUhg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2013/02/28/vim-safe-copy-paste-without-bad-indentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2013%2F02%2F28%2Fvim-safe-copy-paste-without-bad-indentation%2F&amp;language=en_GB&amp;category=text&amp;title=Vim+safe+copy+paste+without+bad+indentation&amp;description=The+Horror+One+thing+that+was+always+great+with+Linux+desktop+X11+%28and+continued+with+Ubuntu+12.10%29+was+copying+text+with+a+mouse+selection+and+just+pasting+it+with+the...&amp;tags=copy%2Fpaste%2Cvim%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2013/02/28/vim-safe-copy-paste-without-bad-indentation/</feedburner:origLink></item>
		<item>
		<title>Using an SMB share from Mountain Lion in Linux</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/7JUArQa3uVM/</link>
		<comments>http://tech.moosaico.com/blog/2012/12/11/using-an-smb-share-from-mountain-lion-in-linux-2/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 10:00:50 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[auth]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[mountain lion]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=285</guid>
		<description><![CDATA[Or can&#8217;t connect via SAMBA from my Linux to Mountain Lion I went from Mac OS X Snow Leopard to Mountain Lion. I read that this affects Lion too. After the upgrade my mount point on the Linux machine stop working. I couldn&#8217;t copy anything to my Mac Mini that way. You now need to [...]]]></description>
				<content:encoded><![CDATA[<h2>Or can&#8217;t connect via SAMBA from my Linux to Mountain Lion</h2>
<p>I went from Mac OS X Snow Leopard to Mountain Lion. I read that this affects Lion too. After the upgrade my mount point on the Linux machine stop working. I couldn&#8217;t copy anything to my Mac Mini that way.</p>
<p>You now need to use additional security options: <code>nounix,sec=ntlmssp</code>. Like this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ mount.cifs //192.168.1.xxx/osxshare /mnt/mymac/ \
  -o user=******,password=******,nounix,sec=ntlmssp</pre></td></tr></table></div>

<p>Or if you mount it automatically through fstab like I do:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ tail -1 /etc/fstab
//mac-mini.local.lan/linux.backup /home/biafra/Mounts/mac-mini/ cifs
credential=/etc/samba/auth,uid=biafra,gid=biafra,nounix,sec=ntlmssp 0 0</pre></td></tr></table></div>

<p>Hope it will help you.</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=285&amp;md5=726016903f8c758787c98c54e248b417" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/7JUArQa3uVM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2012/12/11/using-an-smb-share-from-mountain-lion-in-linux-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2012%2F12%2F11%2Fusing-an-smb-share-from-mountain-lion-in-linux-2%2F&amp;language=en_GB&amp;category=text&amp;title=Using+an+SMB+share+from+Mountain+Lion+in+Linux&amp;description=Or+can%26%238217%3Bt+connect+via+SAMBA+from+my+Linux+to+Mountain+Lion+I+went+from+Mac+OS+X+Snow+Leopard+to+Mountain+Lion.+I+read+that+this+affects+Lion+too.+After...&amp;tags=mountain+lion%2Csamba%2Cshare%2Csmb%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2012/12/11/using-an-smb-share-from-mountain-lion-in-linux-2/</feedburner:origLink></item>
		<item>
		<title>How to create a quick presentation with Markdown in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/CfGV_nW2P2I/</link>
		<comments>http://tech.moosaico.com/blog/2012/12/09/how-to-create-a-quick-presentation-with-markdown-in-ubuntu/#comments</comments>
		<pubDate>Sun, 09 Dec 2012 13:07:13 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[syntax highlight]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[webfsd]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=220</guid>
		<description><![CDATA[Why the need for presentations in Markdown I&#8217;m used to Markdown to write down some documentation and procedures at work. It would be awesome to continue using it for quick presentations, when you want to introduce the team to new concepts or fast learning sessions. Therefore I can write them in plain text wherever I [...]]]></description>
				<content:encoded><![CDATA[<h2>Why the need for presentations in Markdown</h2>
<p>I&#8217;m used to <a title="John Gruber's Markdown" href="http://daringfireball.net/projects/markdown/">Markdown</a> to write down some documentation and procedures at work.</p>
<p>It would be awesome to continue using it for quick presentations, when you want to introduce the team to new concepts or fast learning sessions. Therefore I can write them in plain text wherever I am, even with a mobile, instead of opening <a title="LibreOffice's Impress" href="http://www.libreoffice.org/features/impress/">Impress</a>.</p>
<p>Fortunately there are tools to make you do that.</p>
<h2>What do I need then ?</h2>
<p>Using <a href="http://www.perl.org/">Perl</a> for most of our tools I&#8217;m very used to&nbsp;<a title="TIMTOWTDI" href="http://en.wikipedia.org/wiki/There's_more_than_one_way_to_do_it">TIMTOWTDI</a>. So, this is just one way of implementing what I want.</p>
<p>So, I&#8217;ll choose <a title="Markdown Presenter" href="https://github.com/chrishulbert/MarkdownPresenter">Markdown Presenter</a> to display the presentation. It&#8217;s a javascript and CSS combination to simply show your file in a browser. You then use left and right keys to turn forth or back. You separate your slides in the <code>.md</code> file using exclamation marks bordered by single lines.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="markdown" style="font-family:monospace;">The Presentation 
================
&nbsp;
&gt; My first slide
&nbsp;
!
&nbsp;
Second slide title
------------------
&nbsp;
* Item 1
* Item 2
&nbsp;
!
&nbsp;
Another slide just to repeat
my self without any doubt.</pre></td></tr></table></div>

<p><img class="alignnone size-full wp-image-261" title="MDP1" src="http://tech.moosaico.com/blog/wp-content/uploads/2012/12/MDP1.png" alt="" width="168" height="125" /><img class="alignnone size-full wp-image-262" title="MDP2" src="http://tech.moosaico.com/blog/wp-content/uploads/2012/12/MDP2.png" alt="" width="146" height="124" /><img class="alignnone size-full wp-image-263" title="MDP3" src="http://tech.moosaico.com/blog/wp-content/uploads/2012/12/MDP3.png" alt="" width="168" height="124" /></p>
<p>You may put these all in a site of your own. However as most often I need to have it locally due to network restrictions, I&#8217;ll install a small and simple local web server that&#8217;s already bundle with Ubuntu: webfsd.</p>
<p>Last but not the least, we should have a nice way to edit markdown files in vim.</p>
<h2>Let&#8217;s just build stuff ok ?</h2>
<p>This is a quick way and I haven&#8217;t installed anything you may say :-)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install git webfsd</pre></td></tr></table></div>

<p>Yes, yes, *please* install git if you haven&#8217;t done so yet ;-)</p>
<p>After installed the web server create a zone for your presentations and get Markdown Presenter</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ mkdir ~/Documents/MyPresentations/
$ cd ~/Documents/MyPresentations/
$ git clone https://github.com/chrishulbert/MarkdownPresenter.git</pre></td></tr></table></div>

<p>Now, let&#8217;s start the web server on port <code>8888</code> with root&nbsp;<code>~/Documents/MyPresentations/MarkdownPresenter/</code> defaulting its index page to MP page.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ webfsd -F -p 8888 \
-r ~/Documents/MyPresentations/MarkdownPresenter/ -f Presenter.html</pre></td></tr></table></div>

<p>If you go to <a href="http://localhost:8888/">http://localhost:8888/</a> on your web browser you will see a default presentation.</p>
<p>Now just copy your <code>.md</code> file to&nbsp;<code>~/Documents/MyPresentations/MarkdownPresenter/presentation.pm</code> and reload the browser page. Voilà!</p>
<p>This is the simple and quick way. Adapt it the way you like better for your needs.</p>
<h2>Last but not the&#8230; well</h2>
<p>It maybe &#8220;least&#8221;. It&#8217;s not necessary but more of a visual aid.</p>
<p>Vim has a basic support for Markdown since version 7.3. As my <code>.md</code> files were identified as &#8220;modula2&#8243; I just added this line to my <code>.vimrc</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #804040;">au</span> <span style="color: #25BB4D;">BufRead</span>,<span style="color: #25BB4D;">BufNewFile</span> <span style="color: #000000;">*.</span>md <span style="color: #804040;">set</span> <span style="color: #804040;">filetype</span>=markdown</pre></td></tr></table></div>

<p>If you need a more capable plugin install <a title="PlasticBoy" href="http://plasticboy.com/markdown-vim-mode/">PlasticBoy</a>&#8216;s <a title="vim-markdown" href="https://github.com/plasticboy/vim-markdown.git">vim-markdown</a>.</p>
<p>And as you already are using <a title="vim-pathogen" href="http://www.vim.org/scripts/script.php?script_id=2332">vim-pathogen</a> (You are, aren&#8217;t you ?)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ cd ~/.vim/bundle/
$ git clone http://github.com/plasticboy/vim-markdown</pre></td></tr></table></div>

<p>You must change the previous line I told you to add to <code>.vimrc</code> because this plugin uses a different identifier for markdown files:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #804040;">au</span> <span style="color: #25BB4D;">BufRead</span>,<span style="color: #25BB4D;">BufNewFile</span> <span style="color: #000000;">*.</span>md <span style="color: #804040;">set</span> <span style="color: #804040;">filetype</span>=mkd</pre></td></tr></table></div>

<p>I don&#8217;t like the way it highlights the 2 spaces at an end of line. I saw <a title="MD for VIM" href="http://stackoverflow.com/questions/10964681/enabling-markdown-highlighting-in-vim">here</a>&nbsp;how to change it for an underline which I prefer.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #804040;">hi</span> link mkdLineBreak Underlined</pre></td></tr></table></div>

<p>I must warn you there are no great markdown plugin for Vim. Even forks from plasticboy&#8217;s don&#8217;t highlight well block elements within other block elements (e.g. sub headers, sub blockquotes)</p>
<h2>So, and now ?</h2>
<p>Now ? Be productive! :-) You just have simple tools to quickly and simply produce that presentation you were in need for yesterday.</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=220&amp;md5=3455ad3a1b3993fc7facec7b9500a42b" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/CfGV_nW2P2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2012/12/09/how-to-create-a-quick-presentation-with-markdown-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2012%2F12%2F09%2Fhow-to-create-a-quick-presentation-with-markdown-in-ubuntu%2F&amp;language=en_GB&amp;category=text&amp;title=How+to+create+a+quick+presentation+with+Markdown+in+Ubuntu&amp;description=Why+the+need+for+presentations+in+Markdown+I%26%238217%3Bm+used+to+Markdown+to+write+down+some+documentation+and+procedures+at+work.+It+would+be+awesome+to+continue+using+it+for+quick...&amp;tags=markdown%2Cpresentation%2Csyntax+highlight%2Cvim%2Cwebfsd%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2012/12/09/how-to-create-a-quick-presentation-with-markdown-in-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Installing SNMP MIB files in Linux Ubuntu 12.04 LTS</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/ewazoAxaOEs/</link>
		<comments>http://tech.moosaico.com/blog/2012/12/01/installing-snmp-mib-files-in-linux-ubuntu-12-04-lts/#comments</comments>
		<pubDate>Sat, 01 Dec 2012 01:58:26 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mibs]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=201</guid>
		<description><![CDATA[Where are the MIB files ? I&#8217;m in the middle of upgrading old servers but it was just only yesterday that I found Ubuntu 12.04 didn&#8217;t install the MIB files. Even if you install the SNMP applications. It was really strange to launch tkmib and just see a couple of nodes. The explanation is simple. [...]]]></description>
				<content:encoded><![CDATA[<h2>Where are the MIB files ?</h2>
<p>I&#8217;m in the middle of upgrading old servers but it was just only yesterday that I found Ubuntu 12.04 didn&#8217;t install the MIB files. Even if you install the SNMP applications. It was really strange to launch <code>tkmib</code> and just see a couple of nodes.</p>
<p>The explanation is simple. Just check the preamble of <code>/etc/snmp/snmp.conf</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">#
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loaging them by commenting out the following line.
mibs :</pre></td></tr></table></div>

<h2>Sure, but how can I install them ?</h2>
<p>Fortunately there is a package to deal with that.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install snmp-mibs-downloader</pre></td></tr></table></div>

<p>It will download the IETF MIB files and install them under the usual <code>/usr/share/mibs/</code></p>
<p>If for any reason you don&#8217;t see it happen force it with</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;"> $ sudo download-mibs</pre></td></tr></table></div>

<p>You can repeat this command later to update any new MIB file.</p>
<h2>Let&#8217;s rock&#8217;n'roll</h2>
<p>Well, almost. At this time your tools still won&#8217;t work correctly. Just remember the text on <code>/etc/snmp/snmp.conf</code>. You have to comment out the <code>mibs :</code> line! Now everything is by the book. Enjoy!</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=201&amp;md5=b9809770d8a2c0a67291c5f5472b560c" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/ewazoAxaOEs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2012/12/01/installing-snmp-mib-files-in-linux-ubuntu-12-04-lts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2012%2F12%2F01%2Finstalling-snmp-mib-files-in-linux-ubuntu-12-04-lts%2F&amp;language=en_GB&amp;category=text&amp;title=Installing+SNMP+MIB+files+in+Linux+Ubuntu+12.04+LTS&amp;description=Where+are+the+MIB+files+%3F+I%26%238217%3Bm+in+the+middle+of+upgrading+old+servers+but+it+was+just+only+yesterday+that+I+found+Ubuntu+12.04+didn%26%238217%3Bt+install+the+MIB+files....&amp;tags=Linux%2Cmibs%2Csnmp%2CUbuntu%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2012/12/01/installing-snmp-mib-files-in-linux-ubuntu-12-04-lts/</feedburner:origLink></item>
		<item>
		<title>How to configure Unity workspace layout in Ubuntu 12.10 (Quantal)</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/bUXx6dlLTs8/</link>
		<comments>http://tech.moosaico.com/blog/2012/11/10/how-to-configure-unity-workspace-layout-in-ubuntu-12-10-quantal/#comments</comments>
		<pubDate>Sat, 10 Nov 2012 15:41:33 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[quantal]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[unity]]></category>
		<category><![CDATA[workspace]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=175</guid>
		<description><![CDATA[Why would I need to change the layout ? Every time I upgrade the desktop for a new Ubuntu version it defaults it to a 2&#215;2 layout. I don&#8217;t have a monitor on top of another so why would I use vertical workspaces? It maybe has advantages for some else workflow. Not mine. I&#8217;m used [...]]]></description>
				<content:encoded><![CDATA[<h2>Why would I need to change the layout ?</h2>
<p>Every time I upgrade the desktop for a new Ubuntu version it defaults it to a 2&#215;2 layout.</p>
<p>I don&#8217;t have a monitor on top of another so why would I use vertical workspaces? It maybe has advantages for some else workflow. Not mine. I&#8217;m used to horizontal multi screens.</p>
<p>[<strong>update:</strong> I've just updated to 13.04 (Raring Ringtail) and at last it didn't change the layout! It remained 3x1!]</p>
<h2>How can I define a new workspace layout ?</h2>
<p>You can change several parameters with the Compiz Config Settings Manager. I found that some friends didn&#8217;t have it installed. So, just install it first.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">sudo apt-get install compizconfig-settings-manager</pre></td></tr></table></div>

<p>Call it pressing your keyboard Super key and typing compiz. When it appears click on it.</p>
<p>CompizConfig Settings Manager window shows up. Now just select&nbsp;<code>General / General Options / Desktop Size</code></p>
<p><img class="alignnone size-full wp-image-179" title="CompizConfig Settings Manager Workspace Layout" src="http://tech.moosaico.com/blog/wp-content/uploads/2012/11/compizconfig-settings-manager-workspace-layout.png" alt="" width="450" height="165" /></p>
<p>Several years ago I was used to a 4&#215;1 layout but nowadays a 3&#215;1 feels more productive.</p>
<h2>So&#8230;</h2>
<p>To change your workspace layout you just have to call CompizConfig Settings Manager and go to <code>General Options / Desktop Size</code> bar. Change the Horizontal and Vertical Virtual Size to suit your needs.</p>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=175&amp;md5=ddcaf5989833c92dd55d2204001dfe33" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/bUXx6dlLTs8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2012/11/10/how-to-configure-unity-workspace-layout-in-ubuntu-12-10-quantal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2012%2F11%2F10%2Fhow-to-configure-unity-workspace-layout-in-ubuntu-12-10-quantal%2F&amp;language=en_GB&amp;category=text&amp;title=How+to+configure+Unity+workspace+layout+in+Ubuntu+12.10+%28Quantal%29&amp;description=Why+would+I+need+to+change+the+layout+%3F+Every+time+I+upgrade+the+desktop+for+a+new+Ubuntu+version+it+defaults+it+to+a+2%26%23215%3B2+layout.+I+don%26%238217%3Bt+have...&amp;tags=compiz%2Cquantal%2CUbuntu%2Cunity%2Cworkspace%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2012/11/10/how-to-configure-unity-workspace-layout-in-ubuntu-12-10-quantal/</feedburner:origLink></item>
		<item>
		<title>Audio conversion between FLAC and ALAC in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/TheJoyOfStick/~3/nqHQrNJMeI8/</link>
		<comments>http://tech.moosaico.com/blog/2012/05/15/audio-conversion-between-flac-and-alac-in-ubuntu/#comments</comments>
		<pubDate>Tue, 15 May 2012 17:42:31 +0000</pubDate>
		<dc:creator>Biafra</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[alac]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flac]]></category>

		<guid isPermaLink="false">http://tech.moosaico.com/blog/?p=125</guid>
		<description><![CDATA[The short answer If you want to converte audio between Free Lossless Audio Codec and Apple Lossless Audio Codec it&#8217;s straightforward as avconv -i audio.flac -acodec alac audio.m4a avconv -i audio.m4a -acodec flac audio.flac Where did this come from This is the application from Libav which is a complete, cross-platform solution to record, convert and stream audio and [...]]]></description>
				<content:encoded><![CDATA[<h2>The short answer</h2>
<p>If you want to converte audio between <a title="FLAC" href="http://en.wikipedia.org/wiki/FLAC" target="_blank" rel="nofollow">Free Lossless Audio Codec</a> and <a title="ALAC" href="http://en.wikipedia.org/wiki/Apple_Lossless" target="_blank" rel="nofollow">Apple Lossless Audio Codec</a> it&#8217;s straightforward as</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">avconv -i audio.flac -acodec alac audio.m4a
avconv -i audio.m4a -acodec flac audio.flac</pre></td></tr></table></div>

<h2>Where did this come from</h2>
<p>This is the application from <a title="Libav" href="http://libav.org/" target="_blank" rel="nofollow">Libav</a> which is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec &#8211; the leading audio/video codec library.</p>
<p>So, you are in good hands!</p>
<h2>How to install <code>avconv</code> in Ubuntu 12.04 LTS</h2>
<p>You already know how to do it right ? Just use <code>apt-get install avconv</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install avconv
[sudo] password for biafra:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avconv
$</pre></td></tr></table></div>

<p>What ? This can&#8217;t be true!<br />
But it is because <code>avconv</code> is just the new name of&#8230; <code>ffmpeg</code>.</p>
<p>At this time you still have to install it using the <code>ffmpeg</code> name</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ sudo apt-get install ffmpeg
&nbsp;
$ ffmpeg
ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers
built on Mar 22 2012 05:09:06 with gcc 4.6.3
&lt;span style=&quot;color: #ff6600;&quot;&gt;This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).&lt;/span&gt;
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
&nbsp;
Use -h to get full help or, even better, run 'man ffmpeg'
&nbsp;
The warning is just to tell you to start to use avconv</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="code"><pre class="linux" style="font-family:monospace;">$ avconv
avconv version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3
Hyper fast Audio and Video encoder
usage: avconv [options] [[infile options] -i infile]... {[outfile options] outfile}...
&nbsp;
Use -h to get full help or, even better, run 'man avconv'</pre></td></tr></table></div>

<h2>Conclusion</h2>
<p>The simplicity of <code>avconv</code> is a must. Just use it to convert FLAC, ALAC and other codecs. Just a warning: mp3 is not supported. Check the available codecs with <code>avconv -codecs</code>.</p>
<div></div>
<div></div>
<div></div>
<div></div>
 <p><a href="http://tech.moosaico.com/blog/?flattrss_redirect&amp;id=125&amp;md5=8adb39772d8bd9c54f7e2ee285d93b40" title="Flattr" target="_blank"><img src="http://tech.moosaico.com/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><img src="http://feeds.feedburner.com/~r/TheJoyOfStick/~4/nqHQrNJMeI8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.moosaico.com/blog/2012/05/15/audio-conversion-between-flac-and-alac-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=Biafrongo&amp;popout=1&amp;url=http%3A%2F%2Ftech.moosaico.com%2Fblog%2F2012%2F05%2F15%2Faudio-conversion-between-flac-and-alac-in-ubuntu%2F&amp;language=en_GB&amp;category=text&amp;title=Audio+conversion+between+FLAC+and+ALAC+in+Ubuntu&amp;description=The+short+answer+If+you+want+to+converte+audio+between+Free+Lossless+Audio+Codec+and+Apple+Lossless+Audio+Codec+it%26%238217%3Bs+straightforward+as+avconv+-i+audio.flac+-acodec+alac+audio.m4a+avconv+-i...&amp;tags=alac%2Capple%2Caudio%2Ccodec%2Cffmpeg%2Cflac%2Cblog" type="text/html" />
	<feedburner:origLink>http://tech.moosaico.com/blog/2012/05/15/audio-conversion-between-flac-and-alac-in-ubuntu/</feedburner:origLink></item>
	</channel>
</rss>
