<?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>Cabot Solutions &#187; Linux</title>
	<atom:link href="http://www.cabotsolutions.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cabotsolutions.com</link>
	<description>Innovation to the Core</description>
	<lastBuildDate>Mon, 26 Dec 2011 13:23:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing LAMP Stack on a Ubuntu Server</title>
		<link>http://www.cabotsolutions.com/2010/11/installing-lamp-stack-on-ubuntu/</link>
		<comments>http://www.cabotsolutions.com/2010/11/installing-lamp-stack-on-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:33:06 +0000</pubDate>
		<dc:creator>Arun Sasidhar</dc:creator>
				<category><![CDATA[Categorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cabotsolutions.com/?p=3585</guid>
		<description><![CDATA[This is a step-by-step instructions on how to setup LAMP stack on Ubuntu server (Ubuntu 9.10). This setup is based on linode VPS. Linodes are very easy to setup and manage. It uses XEN virtualization technology. You can find more information about linodes @ www.linode.com. If you are looking for a dedicated server for your [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This is a step-by-step instructions on how to setup LAMP stack on Ubuntu server (Ubuntu 9.10). This setup is based on linode VPS. Linodes are very easy to setup and manage. It uses XEN virtualization technology. You can find more information about linodes @ www.linode.com. If you are looking for a dedicated server for your business you can choose linode. It is available in different plans for your business.</p>
<p>Login to your Linux server using SSH. First configure the apt source list and update.</p>
<p>#vi /etc/apt/sources.list                ## if you want add extra repositories.</p>
<p>#apt-get update</p>
<p>Then run a server upgrade for installing necessary updates.</p>
<p>#apt-get upgrade</p>
<p>Setup your server&#8217;s host Name. Eg: www.myserver.com</p>
<p>#vi /etc/hostname    # add your server name here</p>
<p>Lets start installing LAMP stack. First install apache web server.</p>
<p>#apt-get install apache2</p>
<p>Set serverName directive in apache config file.</p>
<p>#echo &#8220;ServerName localhost&#8221; | sudo tee /etc/apache2/conf.d/fqdn</p>
<p>Lets install PHP</p>
<p>#apt-get install php5 php-pear php5-suhosin</p>
<p>**  Suhosin is an advanced protection system for PHP installations.</p>
<p>And finally Mysql Server.</p>
<p>#apt-get install mysql-server php5-mysql</p>
<p>Enter new mysql root password twice when prompted.</p>
<p>Reload apache for reflect your changes.</p>
<p>#/etc/init.d/apache2 restart</p>
<p>Check  all stuffs are working.</p>
<p>#netstat -ntlp</p>
<p>It will print the listening ports of your server. In our case we will get port 80 (HTTP), and 3306 (MYSQL).</p>
<p><strong>Configure apache for hosting your site.</strong></p>
<p>1.Enabling Rewrite module in apache.<br />
This is very commonly used apache module used to rewrite the URLs on basis of rewrite conditions and rules. It is very complex and difficult to understand but once implemented it is a cool stuff.</p>
<p>Run the following command and edit the config file for doing this</p>
<p>#a2enmod rewrite</p>
<p>#vi /etc/apache2/sites-enabled/000-default</p>
<p>Find the portion in the config file and change &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221;</p>
<p>Your config file now look like this.</p>
<p>&#8230;..</p>
<p>&lt;Directory /var/www/&gt;</p>
<p>Options Indexes FollowSymLinks MultiViews</p>
<p>AllowOverride All</p>
<p>Order allow,deny</p>
<p>allow from all</p>
<p>&lt;/Directory&gt;</p>
<p>&#8230;&#8230;&#8230;..</p>
<p>Then Restart apache</p>
<p>#/etc/init.d/apache2 restart</p>
<p>2. Configure Name based virtual hosting ( For hosting multiple sites on a single IP)</p>
<p>Set following value in /etc/apache2/ports.conf file</p>
<p>NameVirtualHost *:80</p>
<p>This will enable Name based virtual hosting in apache and make apache to listen on interface. if you want to limit this on one particular interface just replace the * the interface IP.</p>
<p>Lets host a site on apache. We are going to host a website named www.myfirst-site.com.</p>
<p>Go to the following directory.</p>
<p>#cd /etc/apache2/sites-available/</p>
<p>#vi www.myfirst-site.com</p>
<p>Add the contents like this</p>
<p>&lt;VirtualHost *:80&gt;</p>
<p>ServerAdmin admin@myfirst-site.com</p>
<p>ServerName myfirst-site.com</p>
<p>ServerAlias www.myfirst-site.com</p>
<p>DocumentRoot /var/www/www.myfirst-site.com/</p>
<p>&lt;/VirtualHost&gt;</p>
<p>Save and exit!</p>
<p>Make a web root for www.myfirst-site.com</p>
<p>#mkdir /var/www/www.myfirst-site.com/</p>
<p># cd /var/www/www.myfirst-site.com/</p>
<p># vi index.html</p>
<p>Enter &#8220;This is My First Site&#8221;</p>
<p>Save and exit.</p>
<p>Then Put this site on-line by running the following command</p>
<p>#a2ensite www.myfirst-site.com</p>
<p>Restart apache server.</p>
<p>#/etc/init.d/apache2 restart</p>
<p>Browse http://www.myfirst-site.com (You may need to point your DNS to your server IP)</p>
<p>Now you  configured your LAMP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2010/11/installing-lamp-stack-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor your server uptime using checkitsup.com</title>
		<link>http://www.cabotsolutions.com/2010/09/monitor-your-server-uptime-using-checkitsup-com/</link>
		<comments>http://www.cabotsolutions.com/2010/09/monitor-your-server-uptime-using-checkitsup-com/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 12:38:53 +0000</pubDate>
		<dc:creator>shibubasheer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Latest News]]></category>
		<category><![CDATA[Latest Projects]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Outsource]]></category>

		<guid isPermaLink="false">http://www.cabotsolutions.com/?p=3479</guid>
		<description><![CDATA[Cabot Solutions is pleased to develop checkitsup.com for Grobel Tech, an Australian IT Infrastructure service company.   Checkitsup.com is a free service that allows system administrators add their server to be tracked for uptime.   The service pings or polls smtp or http services in a preset interval and report any downtime instantly via email. [...]]]></description>
			<content:encoded><![CDATA[<p>Cabot Solutions is pleased to develop <a title="Checkitsup.com" href="http://www.checkitsup.com" target="_blank">checkitsup.com</a> for Grobel Tech, an Australian IT Infrastructure service company.   Checkitsup.com is a free service that allows system administrators add their server to be tracked for uptime.   The service pings or polls smtp or http services in a preset interval and report any downtime instantly via email.</p>
<p>The service is a valuable tool for system administrators to make sure they want instant notification if the servers are unavailable even for a short period of time.    The service is currently free, so get your free account and start monitoring those servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2010/09/monitor-your-server-uptime-using-checkitsup-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating a Google Sitemap via PHP</title>
		<link>http://www.cabotsolutions.com/2009/06/generating-a-google-sitemap-via-php/</link>
		<comments>http://www.cabotsolutions.com/2009/06/generating-a-google-sitemap-via-php/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 06:57:52 +0000</pubDate>
		<dc:creator>webadmin</dc:creator>
				<category><![CDATA[Categorized]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://beta.cabotsolutions.com/?p=315</guid>
		<description><![CDATA[A sitemap is  an XML file,that lists the URLs of a site.  The sitemap file can be used to inform search engines like google on the pages available on a site and when those pages have been modified.  The search engines require a particular format for the sitemap xml file. Let me give a brief [...]]]></description>
			<content:encoded><![CDATA[<p>A sitemap is  an XML file,that lists the URLs of a site.  The sitemap file can be used to inform search engines like google on the pages available on a site and when those pages have been modified.  The search engines require a particular format for the sitemap xml file. Let me give a brief on sitemap creation for google.</p>
<p>Create an xml file(say sitemap.xml). Its better to create the xml file dynamically using the scripting language like php, jsp etc.</p>
<p><strong>Format of sitemap xml  accepted by google:</strong></p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"&gt;
&lt;url&gt;
&lt;loc&gt;http://domain.tld/&lt;/loc&gt;
&lt;lastmod&gt;2008-01-01&lt;/lastmod&gt;
&lt;changefreq&gt;daily&lt;/changefreq&gt;
&lt;priority&gt;0.1&lt;/priority&gt;
&lt;/url&gt;
&lt;/urlset&gt;</pre>
<p><strong>The points to be remembered when creating a sitemap are:</strong></p>
<p>1. Sitemap should start with the tag &lt;urlset&gt; and end with &lt;/urlset&gt;<br />
2. Each set of xml entry shouild start with &lt;url&gt; and end with &lt;/url&gt;<br />
3. &lt;loc&gt;&lt;/loc&gt; contains the url<br />
4. The &lt;lastmod&gt; tag expects a date in the  format YYYY-MM-DD,  or the date format can be in w3c format.<br />
5. The &lt;changefreq&gt; tag expects one of the  values: always, hourly, daily, weekly, monthly etc.<br />
6. The &lt;priority&gt; can be a value between 1.0 and 10</p>
<p>7. Replace special charecters from xml file.<br />
Character                   Replacement<br />
Ampersand     &amp;         &amp;amp;<br />
Single Quote    ‘         &amp;apos;<br />
Double Quote  “         &amp;quot;<br />
Greater Than   &gt;        &amp;gt;<br />
Less Than       &lt;        &amp;lt;</p>
<p>8. Encoding should be UTF-8 mode<br />
9. The maximum permitted size of a sitemap file is 10 MB.</p>
<p><strong>Sample PHP  code for sitemap generation:</strong></p>
<pre>$xml = '';
$xml =  "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;"."\n";
$xml .= "&lt;urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"&gt;"."\n";
for($i=0;$i&lt;$subLimit;$i++){
$title = str_replace("&amp;","&amp;amp;",strip_tags($response['title']));
$loc = str_replace("&amp;","&amp;amp;",strip_tags($response['location']));
$com = str_replace("&amp;","&amp;amp;",strip_tags($response['company']));
//$loc1 = $row['job_jobs_location'];
$title = htmlentities($title, ENT_QUOTES, "UTF-8");
$com = htmlentities($com, ENT_QUOTES, "UTF-8");
$loc = htmlentities($loc, ENT_QUOTES, "UTF-8");
$date = $response['date'];
$date = strtotime($date);
$date = date(DATE_W3C, $date);   //Date in w3c format
$xml .= "&lt;url&gt;"."\n";
$xml .= "&lt;loc&gt;http://www.jobtreks.com/jobresult/$title/$com/$loc/$id&lt;/loc&gt;"."\n";
$xml .= "&lt;lastmod&gt;$date&lt;/lastmod&gt;"."\n";
$xml .= "&lt;priority&gt;0.50&lt;/priority&gt;"."\n";
$xml .= "&lt;changefreq&gt;weekly&lt;/changefreq&gt;"."\n";
$xml .= "&lt;/url&gt;"."\n";}
$xml .= "&lt;/urlset&gt;";
$fh = fopen('sitemap.xml', 'w'); //After exceuting this file, an xml file called sitemap.xml is created.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2009/06/generating-a-google-sitemap-via-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Openfire Groups to work with Zimbra OpenLDAP Authentication</title>
		<link>http://www.cabotsolutions.com/2009/04/getting-openfire-groups-to-work-with-zimbra-openldap-authentication/</link>
		<comments>http://www.cabotsolutions.com/2009/04/getting-openfire-groups-to-work-with-zimbra-openldap-authentication/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 13:44:33 +0000</pubDate>
		<dc:creator>webadmin</dc:creator>
				<category><![CDATA[Categorized]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://beta.cabotsolutions.com/?p=297</guid>
		<description><![CDATA[Its quite easy to get openfire and spark messenger to authenticate with Zimbra’s OpenLDAP by selecting OpenLDAP directory server during initial openfire setup.  One of the biggest drawbacks is that the groups feature will not be available.  Group feature is important for enterprises with large number of users and wnat to provide preset groups in [...]]]></description>
			<content:encoded><![CDATA[<p>Its quite easy to get openfire and spark messenger to authenticate with Zimbra’s OpenLDAP by selecting OpenLDAP directory server during initial openfire setup.  One of the biggest drawbacks is that the groups feature will not be available.  Group feature is important for enterprises with large number of users and wnat to provide preset groups in spark like IT, HR, Sales etc.</p>
<p>The following configuration will allow you to use group features offered by openfire and also allow you to authenticate with  Zimbra’s OpenLDAP.</p>
<p>1. <strong>Openfire setup: </strong>When setting up openfire for the first time, use the Default user and groups database in the Profile Settins page.  Do no select LDAP directory provider.</p>
<p>2. <strong>Admin setup</strong>:  After setup, login to the openfire admin, go to Server Manger -&gt; System Properties</p>
<p>3. Change the value of property <strong>provider.auth.className</strong> to be <strong>org.jivesoftware.openfire.ldap.LdapAuthProvider</strong> .    We are basically telling Openfire to use Ldap Authentication provider java class instead of the default.</p>
<p>4. Add these two new property values :</p>
<p>ldap.host = &lt;your LDAP host name&gt;<br />
ldap.baseDN = dc=&lt;ldap doman&gt;,dc=com</p>
<p>5.  <strong>IMPORTANT</strong>: Add a new admin user in openfire that can be validated against the LDAP server.  Without this you may not be able to login back to openfire.</p>
<p>Thats it.   If everything is right, you should now be able to login to spark using your ldap credentials.</p>
<p><strong>Please note</strong>:  To use the user and group features, you will need to add all ldap users into openfire.   You will have to manually add the users into openfire, but I am sure that a small java or perl script can easily  populate the “ofUser” table in openfire’s database from LDAP.</p>
<p>This has not been very thorughly tested, but initial experiments seem to work.  Please post your comments and suggestions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2009/04/getting-openfire-groups-to-work-with-zimbra-openldap-authentication/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Authenticating your web applications with LDAP and .htaccess</title>
		<link>http://www.cabotsolutions.com/2009/01/authenticating-your-web-applications-with-ldap-and-htaccess/</link>
		<comments>http://www.cabotsolutions.com/2009/01/authenticating-your-web-applications-with-ldap-and-htaccess/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 09:49:32 +0000</pubDate>
		<dc:creator>webadmin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://beta.cabotsolutions.com/?p=291</guid>
		<description><![CDATA[Here is a trick to have your web applications that run on apache servers to authenticate using a LDAP server.   Note, your apache server should support .htaccess.  This is useful when you want to restrict certain applications to authorised users in a network. Create a .htaccess file in the root of your application with the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a trick to have your web applications that run on apache servers to authenticate using a LDAP server.   Note, your apache server should support .htaccess.  This is useful when you want to restrict certain applications to authorised users in a network.</p>
<p>Create a .htaccess file in the root of your application with the following content.  Please put in the appropriate values for AuthLDAPURL.</p>
<blockquote><p>AuthBasicProvider ldap<br />
AuthzLDAPAuthoritative off<br />
AuthType Basic<br />
AuthName “Enter your userid and password :”<br />
AuthLDAPURL “ldap://your.ldap.server/dc=domain,dc=com?uid?sub?(objectClass=*)<br />
Require valid-user</p></blockquote>
<p>You may restrict access to specific users by repacing “Require valid-user” with something like “Require john, harry”.  In this case only john and harry can access the application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2009/01/authenticating-your-web-applications-with-ldap-and-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR 1.5 available for Ubuntu, Fedora, and openSUSE</title>
		<link>http://www.cabotsolutions.com/2008/12/adobe-air-1-5-available-for-ubuntu-fedora-and-opensuse/</link>
		<comments>http://www.cabotsolutions.com/2008/12/adobe-air-1-5-available-for-ubuntu-fedora-and-opensuse/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 02:17:30 +0000</pubDate>
		<dc:creator>webadmin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://beta.cabotsolutions.com/?p=287</guid>
		<description><![CDATA[Adobe has released AIR 1.5 for Linux. You need to install Flash player (10.0.15.3) to be able to use badge install feature of AIR.  This will enable multi platform development of desktop based applications which will run on most popular desktop operating systems Linux, Max, and Windows. Go get a copy today here.]]></description>
			<content:encoded><![CDATA[<p>Adobe has released AIR 1.5 for Linux. You need to install Flash player (10.0.15.3) to be able to use badge install feature of AIR.  This will enable multi platform development of desktop based applications which will run on most popular desktop operating systems Linux, Max, and Windows. Go get a copy today <a href="http://get.adobe.com/air/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cabotsolutions.com/2008/12/adobe-air-1-5-available-for-ubuntu-fedora-and-opensuse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

