<?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>Life, Work and Technology</title>
	<atom:link href="http://blog.francispereira.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.francispereira.com</link>
	<description>Francis Pereira's blog</description>
	<lastBuildDate>Mon, 08 Mar 2010 14:03:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>/lib/ld-linux.so.2: bad ELF interpreter</title>
		<link>http://blog.francispereira.com/libld-linux-so-2-bad-elf-interpreter</link>
		<comments>http://blog.francispereira.com/libld-linux-so-2-bad-elf-interpreter#comments</comments>
		<pubDate>Mon, 08 Mar 2010 13:49:39 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[sysadmin's notes]]></category>
		<category><![CDATA[32 bit]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[GNU+Linux]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=187</guid>
		<description><![CDATA[Running apps/binaries compiled for 32bit enviornments seems to throw up &#8220;/lib/ld-linux.so.2: bad ELF interpreter&#8221; on a 64bit platform.
Quick note  &#8211; glibc provides the libraries required to run 32bit apps on 64bit platform, so the next time you come across this on a distro that uses the rpm package manager simply:
$sudo yum install glibc.i686
]]></description>
			<content:encoded><![CDATA[<p>Running apps/binaries compiled for 32bit enviornments seems to throw up &#8220;<strong>/lib/ld-linux.so.2: bad ELF interpreter</strong>&#8221; on a 64bit platform.</p>
<p>Quick note  &#8211; glibc provides the libraries required to run 32bit apps on 64bit platform, so the next time you come across this on a distro that uses the rpm package manager simply:</p>
<pre class="brush:bash gutter: false">$sudo yum install glibc.i686</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/libld-linux-so-2-bad-elf-interpreter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to: Flash Player 10 for 64-bit Linux ( in 4 easy steps )</title>
		<link>http://blog.francispereira.com/how-to-flash-player-10-for-64bit-linux-4-easy-steps</link>
		<comments>http://blog.francispereira.com/how-to-flash-player-10-for-64bit-linux-4-easy-steps#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:05:54 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[sysadmin's notes]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=174</guid>
		<description><![CDATA[Adobe&#8217;s newly released 64bit flash plugin for Firefox running on GNU+Linux makes installation on 64-bit operating systems a walk in the park ( like I said &#8211; 4 easy steps )

Download the plugin from http://labs.adobe.com/downloads/flashplayer10_64bit.html . Direct download link
Extract libflashplayer.so from the downloaded file
copy libflashplayer.so to /home/&#60;username&#62;/.mozilla/plugins/
restart Firefox !

]]></description>
			<content:encoded><![CDATA[<p>Adobe&#8217;s newly released 64bit flash plugin for Firefox running on GNU+Linux makes installation on 64-bit operating systems a walk in the park ( like I said &#8211; 4 easy steps )</p>
<ol>
<li>Download the plugin from http://labs.adobe.com/downloads/flashplayer10_64bit.html . <a title="Direct link to Adobe's Flash plugin for 64 bit Linux" href="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz">Direct download link</a></li>
<li>Extract libflashplayer.so from the downloaded file</li>
<li>copy libflashplayer.so to /home/&lt;username&gt;/.mozilla/plugins/</li>
<li>restart Firefox !</li>
</ol>
<div id="attachment_178" class="wp-caption alignnone" style="width: 460px"><a href="http://blog.francispereira.com/images/Blackberry_website_on_64bit_linux.png"><img class="size-large wp-image-178" title="Blackberry_website_on_64bit_linux" src="http://blog.francispereira.com/images/Blackberry_website_on_64bit_linux-1024x558.png" alt="BlackBerry's website running in Flash mode on 64 bit Firefox on Linux" width="450" height="245" /></a><p class="wp-caption-text">BlackBerry's website running in Flash mode on 64 bit Firefox on Linux</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/how-to-flash-player-10-for-64bit-linux-4-easy-steps/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dhclient triggers / hooks with dhclient-script</title>
		<link>http://blog.francispereira.com/dhclient-triggers-hooks-with-dhclient-script</link>
		<comments>http://blog.francispereira.com/dhclient-triggers-hooks-with-dhclient-script#comments</comments>
		<pubDate>Thu, 18 Feb 2010 17:53:53 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[dhclient]]></category>
		<category><![CDATA[dhclient-script]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[lease]]></category>
		<category><![CDATA[renew]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=160</guid>
		<description><![CDATA[dhclient overwrites custom network configuration (read routes) with the defaults provided from the dhcp server. dhclient-script can be used to set custom rules for dhclient. It provides a way to hook into dhclient before and after updating network configuration.
Application specific DHCP options can be handled by creating a script with two functions and placing it [...]]]></description>
			<content:encoded><![CDATA[<p>dhclient overwrites custom network configuration (read routes) with the defaults provided from the dhcp server. dhclient-script can be used to set custom rules for dhclient. It provides a way to hook into dhclient before and after updating network configuration.</p>
<p>Application specific DHCP options can be handled by creating a script with two functions and placing it in /etc/dhcp/dhclient.d</p>
<p>The script must follow a specific form:</p>
<ol>
<li> The script must be named NAME.sh.  NAME can be anything, but it makes sense to name it for the service it handles.  e.g., network_routes.sh</li>
<li>The script must provide a NAME_config() function to read the options and do whatever it takes to put those options in place</li>
<li>The script must provide a NAME_restore() function to restore original configuration state when dhclient stops</li>
<li>The script must be &#8216;chmod +x&#8217; or dhclient-script will ignore it</li>
</ol>
<p>The scripts execute in the same environment as dhclient-script.  That means all of the functions and variables available to it are available to your NAME.sh script.</p>
<p>Things of note:</p>
<ol>
<li> ${SAVEDIR} is where original configuration files are saved.  Save your  original configuration files here before you take the DHCP provided values and generate new files</li>
<li>Variables set in /etc/sysconfig/network, /etc/sysconfig/networking/network, and /etc/sysconfig/network-scripts/ifcfg-$interface are available to you</li>
</ol>
<p>Took me a while to find this documentation. No more surprises from now on when dhclient updates the lease</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/dhclient-triggers-hooks-with-dhclient-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phplist 2.10.10 : fixing FCK editor&#8217;s image upload problem</title>
		<link>http://blog.francispereira.com/phplist-2-10-10-fixing-fck-editors-image-upload-problem</link>
		<comments>http://blog.francispereira.com/phplist-2-10-10-fixing-fck-editors-image-upload-problem#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:51:00 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=131</guid>
		<description><![CDATA[I spent the last hour fixing this trivial bug. Posting it so that it helps save someone&#8217;s time
Open file :
PHPListRoot/admin/FCKeditor/editor/filemanager/connectors/phplist/config.php 
on line number 28 change:
} elseif (is_file('../../../../../../../../config/config.php')) {  
to:
} elseif (is_file('../../../../../../config/config.php')) { 
and on line number 29, change: 
  include "../../../../../../../../config/config.php"; 
to
  include "../../../../../../config/config.php"; 
Thats it! Save the file and you should [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the last hour fixing this trivial bug. Posting it so that it helps save someone&#8217;s time</p>
<p>Open file :</p>
<pre class="brush:php gutter: false">PHPListRoot/admin/FCKeditor/editor/filemanager/connectors/phplist/config.php </pre>
<p>on line number 28 change:</p>
<pre class="brush:php gutter: false">} elseif (is_file('../../../../../../../../config/config.php')) {  </pre>
<p>to:</p>
<pre class="brush:php gutter: false">} elseif (is_file('../../../../../../config/config.php')) { </pre>
<p>and on line number 29, change: </p>
<pre class="brush:php gutter: false">  include "../../../../../../../../config/config.php"; </pre>
<p>to</p>
<pre class="brush:php gutter: false">  include "../../../../../../config/config.php"; </pre>
<p>Thats it! Save the file and you should be able to instantly upload images using the FCK editor </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/phplist-2-10-10-fixing-fck-editors-image-upload-problem/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>vsftpd : Allowing access to folders outside home when &#8220;chroot_local_user=YES&#8221;</title>
		<link>http://blog.francispereira.com/vsftpd-allowing-access-to-folders-outside-home-when-chroot_local_user-yes</link>
		<comments>http://blog.francispereira.com/vsftpd-allowing-access-to-folders-outside-home-when-chroot_local_user-yes#comments</comments>
		<pubDate>Tue, 02 Dec 2008 16:36:40 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=40</guid>
		<description><![CDATA[With &#8216;chroot_local_users=YES&#8217; vsftpd locks a user to his/her home directory, but every now and then you have a few users who need access to more that one user&#8217;s home for some reason or other
Getting around chroot
For the record &#8220;ls -s /home/user1 /home/user2&#8243; does not work. chroot will not allow you to get out
Starting for kernel [...]]]></description>
			<content:encoded><![CDATA[<p>With &#8216;chroot_local_users=YES&#8217; vsftpd locks a user to his/her home directory, but every now and then you have a few users who need access to more that one user&#8217;s home for some reason or other</p>
<h3>Getting around chroot</h3>
<p>For the record &#8220;ls -s /home/user1 /home/user2&#8243; does not work. chroot will not allow you to get out</p>
<p>Starting for kernel 2.4.Something a filesystem could be mounted on multiple mount points using the &#8211;bind option. hence:</p>
<pre class="brush:bash gutter: false">$sudo mount --bind /home/user1/ /home/user2/user1</pre>
<p>That&#8217;s it, log in as user2 and you should be able to see user1&#8217;s home. Add it to rc.local so that its mounted on reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/vsftpd-allowing-access-to-folders-outside-home-when-chroot_local_user-yes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set display name of outgoing Emails send by phpBB311</title>
		<link>http://blog.francispereira.com/set-display-name-o-outgoing-emails-send-by-phpbb3</link>
		<comments>http://blog.francispereira.com/set-display-name-o-outgoing-emails-send-by-phpbb3#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:03:49 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=38</guid>
		<description><![CDATA[phpBB3 [version 3.0.3] by default cannot set the display name in the headers of outgoing emails. You could try all you want from the administration control panel but a look under the hood in the source code will tell you its almost impossible.
Fixing it is pretty easy.
open file phpBB3_root_path/includes/functions_messenger.php
find:
$headers[] = 'From: ' . $this-&#62;;from;
replace with:
$headers[] [...]]]></description>
			<content:encoded><![CDATA[<p>phpBB3 [version 3.0.3] by default cannot set the display name in the headers of outgoing emails. You could try all you want from the administration control panel but a look under the hood in the source code will tell you its almost impossible.</p>
<p>Fixing it is pretty easy.</p>
<pre class="brush:text">open file phpBB3_root_path/includes/functions_messenger.php
find:
$headers[] = 'From: ' . $this-&gt;;from;
replace with:
$headers[] = 'From: <strong>Display Name </strong>' . $this-&gt;;from;
find:
$headers[] = 'Reply-To: ' . $this-&gt;;replyto;
replace with:
headers[] = 'Reply-To: <strong>Display Name</strong> ' . $this-&gt;;replyto;
find:
$headers[] = 'Return-Path: &lt;' . $config['board_email'] . '&gt;;';
replace with:
$headers[] = 'Return-Path: <strong>Display Name</strong> &lt;' . $config['board_email'] . '&gt;;';
find:
$headers[] = 'Sender: &lt;' . $config['board_email'] . '&gt;;';
replace with:
$headers[] = 'Sender: <strong>Display Name</strong> &lt;' . $config['board_email'] . '&gt;;';</pre>
<p>That should do the trick. Did it work for you ?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/set-display-name-o-outgoing-emails-send-by-phpbb3/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CHIP.in gets a forum update</title>
		<link>http://blog.francispereira.com/chipin-gets-a-forum-update</link>
		<comments>http://blog.francispereira.com/chipin-gets-a-forum-update#comments</comments>
		<pubDate>Mon, 10 Nov 2008 08:13:44 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.francispereira.com/?p=36</guid>
		<description><![CDATA[The week that went by saw a lot of activity on the CHIP forum. It was high time we updated forum.  After a talk over &#8220;chai&#8221; with the  new one point of contact for web development I got to work.  Migration  of the database was the concern. Fortunately there is a tried and tested way [...]]]></description>
			<content:encoded><![CDATA[<p>The week that went by saw a lot of activity on the CHIP forum. It was high time we updated forum.  After a talk over <em>&#8220;chai&#8221;</em> with the  <a href="http://teebee.in/" target="_blank">new one point of contact for web development</a> I got to work.  Migration  of the database was the concern. Fortunately there is a tried and tested way that comes bundled along with the new installation of pphBB3 that converts the underlining database schema. Coming to think of it, an installation of phpBB3 would be incomplete without the database conversation scripts</p>
<p><a href="http://blog.francispereira.com/images/chip-indiaL.png"><img class="aligncenter size-full wp-image-37" title="chip-india" src="http://blog.francispereira.com/images/chip-india.png" alt="Chip.in" width="500" height="236" /></a></p>
<p>Migration hung midway complaining &#8220;duplicate usernames in the user table&#8221;. A quick, crude, home brewed php script looked up the user table for duplicate username entries and deleted them.  Migration was in business again trashing the database with insert queries.  At the  end of day one [monday] we had a vanilla installation of phpBB3 serving migrated data. Released it to the mods/admins for alpha testing</p>
<p>Over the next two days it was time to play with CSS to make it look and feel like CHIP.</p>
<p>Thursday dawned and it was time to go live. The forum went offline at 10am. Work work work, some serious typing on the keyboard and nine hours later, as scheduled we were <a href="http://www.chip.in/forums/viewtopic.php?f=14&amp;t=41040">online at 7pm.</a> By the time I wrapped up for the day it was 12:45am Friday.  With  Electron Blue  blaring loud I walked out of the office. It felt like I was on cloud #9. Its getting obvious that this is what I live for</p>
<p>Been fixing minor bugs over the weekend</p>
<p>Search engine optimization and mods are on the table this week. Coupled with server administration, this is going to be another long fun week</p>
<p>printf(&#8220;Hello Monday&#8221;);</p>
<h3>UPDATE: 5th December</h3>
<p><a href="http://blog.francispereira.com/images/brian-pereira-editorial-introducting-chip-forums.jpg"><img class="aligncenter size-full wp-image-45" title="brian-pereira-editorial-introducting-chip-forums" src="http://blog.francispereira.com/images/brian-pereira-editorial-introducting-chip-forums.jpg" alt="Brian Pereira\'s editorial introducing chip forums" width="459" height="412" /></a></p>
<p><strong>Awwwww, that is so sweet Brian and thank you for the first run copy</strong></p>
<h3 style="text-align:right !important;">#End of Update</h3>
]]></content:encoded>
			<wfw:commentRss>http://blog.francispereira.com/chipin-gets-a-forum-update/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
