<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://imanpage.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Iman&#039;s Page - Bash</title>
 <link>http://imanpage.com/taxonomy/term/15/all</link>
 <description></description>
 <language>en</language>
<item>
 <title>Installing Nodejs, NPM and Google V8 on UBUNTU</title>
 <link>http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu</link>
 <description>A) Install the essential compilers, packages and Google V8

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; update&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; build-essential curl openssl libv8-2.0.3&lt;/div&gt;&lt;/div&gt;

B) Download and install the Nodejs from source
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;wget&lt;/span&gt; http:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;nodejs.org&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dist&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;node-v0.4.11.tar.gz&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;gunzip&lt;/span&gt; node-v0.4.11.tar.gz&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-xf&lt;/span&gt; node-v0.4.11.tar&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &amp;nbsp;node-v0.4.11&lt;br /&gt;
.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;configure&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

C) Installing the NPM
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;curl http:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;npmjs.org&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;install.sh &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sh&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

Here is the lazy script to get things installed smoothly in your UBUNTU machine.&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Sun, 18 Sep 2011 13:45:14 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">44 at http://imanpage.com</guid>
</item>
<item>
 <title>URL rewriting and add www to .htaccess for hosting multiple domain or multi sites</title>
 <link>http://imanpage.com/code/url-rewriting-and-add-www-htaccess-hosting-multiple-domain-or-multi-sites</link>
 <description>Adding the www to URL in .htaccess for hosting multiple domain or multisites and handle www issue for canonical URLs. 

&lt;br /&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##Adding the www&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;!&lt;/span&gt;^www\. &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;NC&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;NC&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteRule ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://www.%1/$1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;L,&lt;span style=&quot;color: #007800;&quot;&gt;R&lt;/span&gt;=&lt;span style=&quot;color: #000000;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;br /&gt;

The other way around you can &lt;a href=&quot;http://www.imanpage.com/code/remove-www-and-rewrite-url-multi-sites-or-subdomains-htaccess&quot; &gt;removing the www&lt;/a&gt; from URL.

&lt;br /&gt;
&lt;br /&gt;</description>
 <comments>http://imanpage.com/code/url-rewriting-and-add-www-htaccess-hosting-multiple-domain-or-multi-sites#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/htaccess">.htaccess</category>
 <category domain="http://imanpage.com/code/apache">Apache</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Mon, 08 Feb 2010 13:43:33 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">30 at http://imanpage.com</guid>
</item>
<item>
 <title>How to install YUM, Zend Optimizer, eAccelerator and APC</title>
 <link>http://imanpage.com/code/how-install-yum-zend-optimizer-eaccelerator-and-apc</link>
 <description>  Recently a friend had difficulty installing Alternative PHP Cache (APC) and upload
  progress for his Drupal CMS on Debian VPS. Therefore I tought of sharing this post
  about how to setup and run your virtual private server with most useful PHP packages.&lt;br /&gt;
  &lt;br /&gt;
  I would assume you have a Debian VPS, CentOs or Ubuntu and you would like to install
  APC, Zend Optimizer and eAccelerator for the best PHP performances or if they are required
  by some third party applications.&lt;br /&gt;
  &lt;br /&gt;
  I normally like to install everything on Debian, CentOs or Ubuntu using the yum (Yellow
  dog Updater, Modified) package manger to make sure that updates for all applications
  are uniform and its easy to do, easy to search for available packages and easier to
  type instead of apt-get.&lt;br /&gt;
  &lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/how-install-yum-zend-optimizer-eaccelerator-and-apc&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/how-install-yum-zend-optimizer-eaccelerator-and-apc#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/apc">APC</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/yum">YUM</category>
 <category domain="http://imanpage.com/code/zend-optimizer">Zend Optimizer</category>
 <category domain="http://imanpage.com/code/command">Command</category>
 <pubDate>Wed, 12 Aug 2009 14:54:45 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">25 at http://imanpage.com</guid>
</item>
<item>
 <title>How to find file or folder location in Linux/Unix usnig bash command line</title>
 <link>http://imanpage.com/code/how-find-file-or-folder-location-linuxunix-usnig-bash-command-line</link>
 <description>&lt;p&gt;Use this grep commend&lt;/p&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;locate&lt;/span&gt; apache &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;egrep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;\/apache$&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Example:&lt;/p&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;myserver&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;$: &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;locate&lt;/span&gt; apache &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;egrep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;\/apache$&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;myserver&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;$: &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;local&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dh&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;apache&lt;/div&gt;&lt;/div&gt;</description>
 <comments>http://imanpage.com/code/how-find-file-or-folder-location-linuxunix-usnig-bash-command-line#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/command">Command</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Wed, 29 Jul 2009 09:59:54 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">17 at http://imanpage.com</guid>
</item>
</channel>
</rss>


