<?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>Makl Ndrix &#187; linux</title>
	<atom:link href="http://michaelhendrickx.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelhendrickx.com</link>
	<description>may contain traces of nuts</description>
	<lastBuildDate>Tue, 24 Jan 2012 06:47:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Error mongoDB under Ubuntu &#8211; can&#8217;t find libmozjs.so</title>
		<link>http://michaelhendrickx.com/201009_error-mongodb-under-ubuntu-cant-find-libmozjs-so.html</link>
		<comments>http://michaelhendrickx.com/201009_error-mongodb-under-ubuntu-cant-find-libmozjs-so.html#comments</comments>
		<pubDate>Mon, 27 Sep 2010 18:05:27 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mongodb]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=348</guid>
		<description><![CDATA[When installing MongoDB under Ubuntu, one could stumble upon the following problem: mongo: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory This is caused because MongoDB uses XulRunner for it&#8217;s operations. (This is also why you see a bunch of X11 programs that are to be installed [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/201009_error-mongodb-under-ubuntu-cant-find-libmozjs-so.html' addthis:title='Error mongoDB under Ubuntu &#8211; can&#8217;t find libmozjs.so'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p><img src="http://michaelhendrickx.com/wp-content/uploads/2010/09/mongo.jpg" alt="" title="mongo" width="107" height="54" align="right" />When installing <a href="http://www.mongodb.org">MongoDB</a> under <a href="http://www.ubuntu.com/">Ubuntu</a>, one could stumble upon the following problem:</p>
<blockquote><p>mongo: error while loading shared libraries:<br />
libmozjs.so: cannot open shared object file: No such file or directory
</p></blockquote>
<p>This is caused because MongoDB uses <a href="https://developer.mozilla.org/en/XULRunner">XulRunner</a> for it&#8217;s operations.  (This is also why you see a bunch of X11 programs that are to be installed when using apt-get).  XulRunner, however, contains this file, but is not loaded.</p>
<p><strong>Solving the problem:</strong><br />
Make sure you have xulrunner installed (<strong>sudo apt-get install xulrunner-1.9.2</strong>) and add its path to ldconfig&#8217;s configuration files, which are in/etc/ld.so.conf.d.  You could create a file, say, <strong>/etc/ld.so.conf.d/xulrunner.conf</strong>, containing the following line:</p>
<blockquote><p>/usr/lib/xulrunner-1.9.2.10/</p></blockquote>
<p>After this, you chould run <strong>ldconfig</strong> (as root) and that should do the trick.  Let me know if you have any problems with this.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/201009_error-mongodb-under-ubuntu-cant-find-libmozjs-so.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reverse proxy for sharepoint on Linux using HAProxy</title>
		<link>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html</link>
		<comments>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html#comments</comments>
		<pubDate>Wed, 16 Jun 2010 04:02:42 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=289</guid>
		<description><![CDATA[At Nakheel, we needed to load balance a new sharepoint instance. Our new sharepoint is single sign on, and was running on 2 web servers which needed to be load balanced. We played around with Apache for a while, and it&#8217;s awesome proxy balancer, but it gave us the problem that it was always asking [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html' addthis:title='Reverse proxy for sharepoint on Linux using HAProxy'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaelhendrickx.com/wp-content/uploads/2010/06/fo.jpg"><img src="http://michaelhendrickx.com/wp-content/uploads/2010/06/fo.jpg" alt="" title="fo" width="116" height="107" align="right" /></a>At Nakheel, we needed to load balance a new sharepoint instance.  Our new sharepoint is single sign on, and was running on 2 web servers which needed to be load balanced.  We played around with Apache for a while, and it&#8217;s awesome <a href="http://httpd.apache.org/docs/2.1/mod/mod_proxy_balancer.html">proxy balancer</a>, but it gave us the problem that it was always <strong>asking for a username and password.</strong></p>
<p>Apache was used, since I have a reasonable amount of experience with it load balancing servers such as Webrick, etc.  After a few frustrating hours of messing with <a href="http://www.innovation.ch/personal/ronald/ntlm.html">NTLM</a>, <a href="http://certifiedgeek.blogsome.com/">Christian</a> proposed <a href="http://certifiedgeek.blogsome.com/2010/06/15/open-source-load-balancer-software-2010/">a few alternatives</a> for this.  </p>
<p>Having this in mind, we decided to go for <a href="http://haproxy.1wt.eu/">HAProxy</a>, to provide load balancing and a reverse proxy for our sharepoint instance.  The good this is that it is a very simple tool, it accept HTTP conenctions, and forward them.  </p>
<p>Below is our simplified <strong>/etc/haproxy/haproxy.cfg</strong> file</p>
<pre>
global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        # debug

defaults
        mode    http
        option  forwardfor
        log     127.0.0.1 local0 notice
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

backend sharepoint
        balance roundrobin
        option redispatch
        cookie SERVERID insert nocache
        server sp1      172.30.16.11:80  cookie spsrv01 weight 30 check
        server sp2      172.30.16.12:80  cookie spsrv02 weight 30 check

frontend httpid
        bind *:80
        acl hosts_sharepoint hdr_end(host) -i intranet.domain.com
        acl hosts_sharepoint hdr_end(host) -i intranet.domain.com:80
        use_backend sharepoint if hosts_sharepoint
        default_backend sharepoint
</pre>
<p>The configuration is very straightforward, and it got rid of our continuous username/password boxes, especially under firefox.</p>
<p>Hope this helps,<br />
Michael</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/201006_reverse-proxy-for-sharepoint-on-linux-using-haproxy.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the ILO server name under Linux</title>
		<link>http://michaelhendrickx.com/201004_change-the-ilo-server-name-under-linux.html</link>
		<comments>http://michaelhendrickx.com/201004_change-the-ilo-server-name-under-linux.html#comments</comments>
		<pubDate>Sun, 25 Apr 2010 13:57:22 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[blade]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[ilo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oa]]></category>
		<category><![CDATA[onboard administrator]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=268</guid>
		<description><![CDATA[At work, we have a lot of HP Blade servers, and manage these through HP Onboard Administrator. By default, the server names are adapted from the Windows hostname, due to HP Insight Management agent tools. When running Linux, there doesn&#8217;t seem to be a option, or at least I couldn&#8217;t find one. While questioned a [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/201004_change-the-ilo-server-name-under-linux.html' addthis:title='Change the ILO server name under Linux'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>At work, we have a lot of HP Blade servers, and manage these through HP Onboard Administrator.  By default, the server names are adapted from the Windows hostname, due to HP Insight Management agent tools.  When running Linux, there doesn&#8217;t seem to be a option, or at least I couldn&#8217;t find one.</p>
<p>While questioned a few times on HP forums (such as <a href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1034264">this thread</a>), questions rose to &#8220;installing windows on the server, then reinstall Linux&#8221;, it is possible in the web interface to be set.  It&#8217;s not obviously placed, and hence might require some searching.<span id="more-268"></span></p>
<p>First, open the blade&#8217;s ILO web interface, and select the concerned blade and choose <strong>Web Administration</strong> in its ILO menu.</p>
<p><a href="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_1.jpg"><img src="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_1-150x150.jpg" alt="" title="c7_1" width="150" height="150" class="aligncenter size-thumbnail wp-image-269" /></a></p>
<p>When logged in in the blade itself (usually done through SSO of the enclosure), choose &#8220;Adminstration&#8221;.</p>
<p><a href="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_2.jpg"><img src="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_2-150x150.jpg" alt="" title="c7_2" width="150" height="150" class="aligncenter size-thumbnail wp-image-270"/></a></p>
<p>Finally, choose <strong>options</strong>, and then <strong>Settings &raquo; Access</strong> in the left menu pane.  There you&#8217;ll see Server name, and you can fill what you want.</p>
<p><a href="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_3.jpg"><img src="http://michaelhendrickx.com/wp-content/uploads/2010/04/c7_3-150x150.jpg" alt="" title="c7_3" width="150" height="150" class="aligncenter size-thumbnail wp-image-271" /></a></p>
<p>True, it has nothing to do with Linux, but it gives us easier to manage hostname links in Onboard Administrator.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/201004_change-the-ilo-server-name-under-linux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>nnscfgmaker.sh: a nagios/nsclient++ cfg maker</title>
		<link>http://michaelhendrickx.com/201001_nnscfgmaker-sh-a-nagiosnsclient-cfg-maker.html</link>
		<comments>http://michaelhendrickx.com/201001_nnscfgmaker-sh-a-nagiosnsclient-cfg-maker.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:27:42 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[zenoss]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=241</guid>
		<description><![CDATA[Dear all, We are in the process of changing the monitoring system on part of our network from Zenoss to Nagios. This is not a Zenoss vs. Nagios debate, as both products are awesome and do the things they are designed for very well. We (Christian and myself) use a combination of Cacti for bandwith [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/201001_nnscfgmaker-sh-a-nagiosnsclient-cfg-maker.html' addthis:title='nnscfgmaker.sh: a nagios/nsclient++ cfg maker'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p><img src="http://michaelhendrickx.com/wp-content/uploads/2010/01/nagios.jpg" alt="" title="nagios" width="150" height="114" align="right" />Dear all,</p>
<p>We are in the process of changing the monitoring system on part of our network from Zenoss to Nagios.  This is not a Zenoss vs. Nagios debate, as both products are awesome and do the things they are designed for very well.  We (<a href="http://ae.linkedin.com/in/certifiedgeek">Christian</a> and myself) use a combination of <a href="http://www.cacti.net">Cacti</a> for bandwith monitoring and <a href="http://www.zenoss.com">Zenoss</a> for server and device monitoring.  Now, recently we decided to change the latter to <a href="http://www.nagios.org/">Nagios</a>.  It is know for its &#8220;great deal of flexibility when integrating Nagios into their environment&#8221; (Galstad, 2005)</p>
<p>As Zenoss was configured using <a href="http://www.snmp-informant.com/">SNMP Informant</a> to grab information about the MS Windows servers (available disk space, CPU load, etc) and Nagios uses <a href="http://nsclient.org/">NSClient++</a>; one of the time consuming tasks was getting the client on the server (thank you domain <img src='http://michaelhendrickx.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) and configuring each and every server on the Nagios server.  I guess there should be some sort of discovery tool for Nagios, but I couldn&#8217;t directly find one.  </p>
<p>In order to tackle the copy-pasting for a few dozen config files, and to brush up my bash scripting again, I wrote the <strong>Nagios Nsclient++ cfg maker</strong><span id="more-241"></span>, yeah, what&#8217;s in a name eh.  This client enumerates the target server about what is installed and makes a CFG file based on that.  Oh yeah, we&#8217;re using nagios with its text files, not the SQL version.</p>
<p>You can download it <a href='http://michaelhendrickx.com/wp-content/uploads/2010/01/nnscfgmaker.sh' >here (bash script)</a>.  As it&#8217;s GPL&#8217;d, feel free to change and redistribute it.  As we mainly house HP servers, APC UPS&#8217;s and most of them run Windows (for now, <em>evil laugh</em>), so it&#8217;s a bit windows/hp minded.</p>
<p>The syntax is very easy, just run the script with the hostname of the server that you want to &#8220;enumerate&#8221;.  Doing that, you&#8217;ll have something similar as the output below:</p>
<pre>
mike@mon:/usr/local/nagios/etc/servers$ ./nnscfgmaker.sh server2
Nagios NSclient++ (check_nt) CFG maker

 + logfile: server2.cfg
 + pinging the server.. ok
 + checking of nsclient++ is installed
 + adding hdd c:\
 + adding hdd e:\
 + adding hdd f:\
 + adding hdd g:\
 + adding hdd h:\
 + adding hdd i:\
 + adding process: MS SQL Server (sqlservr.exe)
 + adding service: Automatic Updates (wuauserv)
 + adding service: DNS Client (DNSCache)
 + adding service: Event Log (Eventlog)
 + adding service: Messenger (Messenger)
 + adding service: Server Service (lanmanserver)
 + adding service: Windows Time (w32time)
 + adding service: SNMP service (SNMP)
 + adding service: HP OpenView Ctrl Service (ovctrl)
 + adding service: Backup Exec Server (BackupExecRPCService)
 + adding service: HP Insight Server Agent (CqMgServ)
 + adding service: HP Insight NIC Agent (CpqNicMgmt)
 + adding service: HP Insight Storage Agent (CqMgStor)
 + adding service: TrendMicro OfficeScan NT Listener (tmlisten)
 + adding service: Trendmicro Antivirus RealTime Scan (ntrtscan)
 - done

mike@mon:/usr/local/nagios/etc/servers$
</pre>
<p>This creates a files called server2.cfg, which Nagios can read and process.</p>
<p>Hope you like it, let me know if you have any questions or comments.</p>
<p>Take care,<br />
Michael</p>
<p><span style="color:#808080">Ethan Galstad (2005), Nagios. [online] Available from: <a href="http://archive.fosdem.org/2005/index/interviews/interviews_galstad.html">http://archive.fosdem.org/2005/index/interviews/interviews_galstad.html</a> (Accessed: 28 Jan 2010)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/201001_nnscfgmaker-sh-a-nagiosnsclient-cfg-maker.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>7days bashes on Linux, should stick to normal gossip</title>
		<link>http://michaelhendrickx.com/200911_7days-bashes-on-linux-should-stick-to-normal-gossip.html</link>
		<comments>http://michaelhendrickx.com/200911_7days-bashes-on-linux-should-stick-to-normal-gossip.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 08:45:29 +0000</pubDate>
		<dc:creator>Michael Hendrickx</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[7days]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://michaelhendrickx.com/?p=210</guid>
		<description><![CDATA[7days recently published an article about Valerie Singleton who created a PC for the elderly. It was a well written, objective article until statements were made which wasn&#8217;t researched enough: The computer runs on Linux &#8211; an operating system of such bewildering complexity to anyone outside its inner circle that trained IT experts have been [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://michaelhendrickx.com/200911_7days-bashes-on-linux-should-stick-to-normal-gossip.html' addthis:title='7days bashes on Linux, should stick to normal gossip'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.7days.ae/storydetails.php?id=86684">7days</a> recently published an article about <a href="http://en.wikipedia.org/wiki/Valerie_Singleton">Valerie Singleton</a> who created a <a href="http://www.telegraph.co.uk/technology/news/6544222/Valerie-Singleton-launches-six-button-computer-to-get-elderly-online.html">PC</a> for the elderly.</p>
<p>It was a well written, objective article until statements were made which wasn&#8217;t researched enough:</p>
<blockquote><p>The computer runs on Linux &#8211; an operating system of such bewildering complexity to anyone outside its inner circle that trained IT experts have been known to weep in frustration at the process of installing a simple programme.</p></blockquote>
<blockquote><p>The reason? Linux has so many incarnations that software often has to be manually modified at the time of installation. That means coding. Yep, amateur programming. Scary, huh? Especially if you’re 82 and you’ve never used a computer before.</p></blockquote>
<p>&#8220;Software&#8221; to be manually modified during installation is usually done when you set up services, such as dhcpd, sendmail and bind  Let&#8217;s assume that a 82 year old will not install their own mailserver, or domain.  From a Windows point of view, I doubt that many elderly will install a Windows Active Directory at home also.  I would recommend Paddy Smith (the article author) not to mix up Interface and internal workings.</p>
<p>It&#8217;s like running a car, driving a car (the interface) is relatively easy, especially if it&#8217;s an automatic transmission.  Start the car, put the transmission in &#8220;D&#8221; and push the right pedal.  A car&#8217;s inner workings is a combination of electronics, air/fuel mixes, precise timed ignitions, and a lot more.</p>
<p>You don&#8217;t need a wrench to drive a car.<br />
You don&#8217;t need to do <em>coding</em> to run an operating system.</p>
<p>I wish that topics highlighted in 7 Days&#8217; articles were well researched before making statements.  </p>
<p>In my eyes, Linux interfaces could be very easy for the young, or the elderly.  On the EEE PC, Asus could get their Linux interface pretty right, I&#8217;m sure the &#8220;inner workings&#8221; were done by their IT geeks.<br />
<a href="http://michaelhendrickx.com/wp-content/uploads/2009/11/asuslinux.png"><img src="http://michaelhendrickx.com/wp-content/uploads/2009/11/asuslinux-300x180.png" alt="asuslinux" title="asuslinux" width="300" height="180" class="aligncenter size-medium wp-image-211" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelhendrickx.com/200911_7days-bashes-on-linux-should-stick-to-normal-gossip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

