<?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>PHP Architect blog &#187; ubuntu</title>
	<atom:link href="http://www.php-architect.com/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>me, myself, and my code</description>
	<lastBuildDate>Wed, 14 Sep 2011 12:50:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to reduce your virtualbox linux virtual machine size</title>
		<link>http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-reduce-your-virtualbox-linux-virtual-machine-size</link>
		<comments>http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 15:08:42 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[machine]]></category>
		<category><![CDATA[shrink]]></category>
		<category><![CDATA[vbox]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualbox]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=33176</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/" title="How to reduce your virtualbox linux virtual machine size"></a>After using a linux virtual machine that has been configured with dynamically expanding drive, the size gets larger even if you remove files from it. Here is the steps to shrink your linux virtual machine size : 1- Remove any &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/" title="How to reduce your virtualbox linux virtual machine size"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>After using a linux virtual machine that has been configured with dynamically expanding drive, the size gets larger even if you remove files from it.</p>
<p>Here is the steps to shrink your linux virtual machine size :</p>
<p>1- Remove any unnecessary files you don&#8217;t need from the virtual machine.</p>
<p>2- Fill the unused spaces on it with zeros.</p>
<ul>
<li>Open the virtual machine.</li>
<li>Install zero free</li>
</ul>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> zerofree</pre></div></div>
<ul>
<li>Reboot the machine in repair mode, and login to root shell</li>
<li>Kill any processes using the hard disk.</li>
</ul>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service rsyslog stop
service network-manager stop
<span style="color: #c20cb9; font-weight: bold;">killall</span> dhclient</pre></div></div>
<ul>
<li>list your virtual machine harddisks</li>
</ul>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">df</span></pre></div></div>
<ul>
<li>Unmount and Fill all the unused spaces for each physical drive on the machine with zeros.</li>
</ul>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-o</span> remount,ro <span style="color: #660033;">-t</span> ext3 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 <span style="color: #000000; font-weight: bold;">/</span>
zerofree <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1</pre></div></div>
<ul>
<li>Shutdown the machine.</li>
</ul>
<p>3- Clone the old HD file into a new shrinked one</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage clonehd oldHd.vdi newHd.vdi</pre></div></div>
<p>4- Now add the new cloned HD file as the new HD for the machine and test it.</p>
<p>5- Remove your old HD file.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2011/07/09/how-to-reduce-your-virtualbox-linux-virtual-machine-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Juniper Network on Ubuntu 32 and 64 bit without Firefox</title>
		<link>http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox</link>
		<comments>http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 22:59:38 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[juniper]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=13839</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/" title="Using Juniper Network on Ubuntu 32 and 64 bit without Firefox"></a>Lately i have moved from Ubuntu 32bit to 64bit to make use of the 8G memory, and since I have been struggling to get our juniper vpn connection working, turned out it is not compatible with 64bit binaries of java &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/" title="Using Juniper Network on Ubuntu 32 and 64 bit without Firefox"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Lately i have moved from Ubuntu 32bit to 64bit to make use of the 8G memory, and since I have been struggling to get our juniper vpn connection working, turned out it is not compatible with 64bit binaries of java and firefox.</p>
<p>I found this great tutorial here to have the juniper network VPN working from command line <a href="http://mad-scientist.us/juniper.html" target="_blank">http://mad-scientist.us/juniper.html</a></p>
<p>the only disadvantage of this is you won&#8217;t have a status window to monitor the connection activity.</p>
<p>This has been tested on Ubuntu 10.10 maverick.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2011/03/12/using-juniper-network-on-ubuntu-32-and-64-bit-without-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed your internet browsing on Ubuntu using local DNS Cache</title>
		<link>http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=speed-your-internet-browsing-on-ubuntu-using-local-dns-cache</link>
		<comments>http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 22:29:36 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=12283</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/" title="Speed your internet browsing on Ubuntu using local DNS Cache"></a>Use these steps to speed your internet browsing requests on Ubuntu, by enabling local DNS cache : 1- Run this command to install dnsmasq package sudo apt-get install dnsmasq 2- Modify the file : sudo gedit /etc/dnsmasq.conf change the line &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/" title="Speed your internet browsing on Ubuntu using local DNS Cache"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Use these steps to speed your internet browsing requests on Ubuntu, by enabling local DNS cache :</p>
<p><strong>1-      Run this command to install dnsmasq package</strong></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dnsmasq</pre></div></div>
<p><strong>2-      Modify the file :</strong></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.conf</pre></div></div>
<p>change the line :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">#listen-address=</pre></div></div>
<p>To :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">listen-address=127.0.0.1</pre></div></div>
<p><strong>3-      Modify the file :</strong></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dhcp3<span style="color: #000000; font-weight: bold;">/</span>dhclient.conf</pre></div></div>
<p>Ucomment the line :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">prepend domain-name-servers 127.0.0.1;</pre></div></div>
<p><strong>4-      Add the DNS 127.0.0.1 to your connection through your connection manager</strong></p>
<p>Your DNS servers should be :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">127.0.0.1,8.8.8.8,4.2.2.4</pre></div></div>
<p><strong>5-      Restart your connection</strong></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>networking restart</pre></div></div>
<p>To check if it is working issue the following command twice:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dig</span> php-architect.com <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'Query'</span></pre></div></div>
<p>first response will be like :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">;; Query time: 96 msec</pre></div></div>
<p>run the previous command again</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dig</span> php-architect.com <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'Query'</span></pre></div></div>
<p>Response now should be :</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">;; Query time: 0 msec</pre></div></div>
<p>This will speed your browsing especially in pages with many HTTP requests.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2011/01/08/speed-your-internet-browsing-on-ubuntu-using-local-dns-cache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Backup or Export, Compress and upload mysql database to remote host</title>
		<link>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-or-export-compress-and-upload-mysql-database-to-remote-host</link>
		<comments>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 04:09:52 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=11847</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/" title="Backup or Export, Compress and upload mysql database to remote host"></a>This is a handy command that i use to backup or export, compress and upload a mysql database to my remote host, very handy when you wanna upload your development database to the remote host after some changes. /usr/mysql/bin/mysqldump --opt &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/" title="Backup or Export, Compress and upload mysql database to remote host"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>This is a handy command that i use to backup or export, compress and upload a mysql database to my remote host, very handy when you wanna upload your development database to the remote host after some changes.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqldump <span style="color: #660033;">--opt</span> <span style="color: #660033;">-uUsername</span> <span style="color: #660033;">-pPassword</span> Databasename  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-q</span> user<span style="color: #000000; font-weight: bold;">@</span>remote-host.com <span style="color: #ff0000;">'cat &gt; ~/Databasename.sql.gz'</span></pre></div></div>
<p><span style="text-decoration: underline;">Replace the following :</span></p>
<ul>
<li><strong> /usr/mysql/bin/mysqldump : </strong>The path for mysqldump on your localmachine</li>
<li><strong> Username : </strong>Username for local mysql database.</li>
<li><strong> Password : </strong>Password for local mysql database.</li>
<li><strong> Databasename : </strong>Name of the database to export.</li>
<li><strong> user@remote-host.com : </strong>the user and the IP or the address of the remote host.</li>
</ul>
<p>the above command will upload the compressed database to your home directory on the remote host, to change the directoy, replace <strong>~/ </strong>with the path you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2011/01/04/backup-or-export-compress-and-upload-mysql-database-to-remote-host/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Virtualbox hidden gems, VBoxManage</title>
		<link>http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=virtualbox-hidden-gems-vboxmanage</link>
		<comments>http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 10:19:07 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[VBoxManage]]></category>
		<category><![CDATA[VrtualBox]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=7265</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/" title="Virtualbox hidden gems, VBoxManage"></a>Virtual box has this little secret, the Command Line interface (CLI), this is very useful for users who wants to manage their virtual boxes on headless servers. Question is why using command line while you have a nice easy to &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/" title="Virtualbox hidden gems, VBoxManage"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Virtual box has this little secret, the Command Line interface (CLI), this is very useful for users who wants to manage their virtual boxes on headless servers.</p>
<p>Question is why using command line while you have a nice easy to use GUI, the answer is POWER. you can do anything with the virtual box command line, you can create virtual machines, modify their settings, take snapshots, start and shutdown them.</p>
<p>VBoxManage supports everything the graphical user interface does, and much more.</p>
<p>VBoxManage has its share of Virtual Box documentation, you can find it here <a title="VBoxManage - Virtual Box Command Line Interface" href="http://www.virtualbox.org/manual/ch08.html" target="_blank">http://www.virtualbox.org/manual/ch08.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/10/23/virtualbox-hidden-gems-vboxmanage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Java plugin for Firefox on Ubuntu 10.10 (Maverick)</title>
		<link>http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick</link>
		<comments>http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 11:56:02 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ubuntu10.10]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=6920</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/" title="Installing Java plugin for Firefox on Ubuntu 10.10 (Maverick)"></a>Again after upgrading from Ubuntu 9.10 to 10.4, I had some issues getting Java to work with Firefox, after checking the software center, I found that the Java plugin for firefox is not working properly which broke my vpn connection. &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/" title="Installing Java plugin for Firefox on Ubuntu 10.10 (Maverick)"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Again after upgrading from Ubuntu 9.10 to 10.4, I had some issues getting Java to work with Firefox, after checking the software center, I found that the Java plugin for firefox is not working properly which broke my vpn connection.</p>
<p>To get this fixed, I simply followed the steps :</p>
<p>1- Backup your repositories files.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list.backup</pre></div></div>
<p>2- Open your repositories file:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></div></div>
<p>3- Add the following line then close the sources.list file</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.canonical.com/ubuntu maverick partner</pre></div></div>
<p>4- Uninstall both icedtea6-plugin and openjdk-6-jre.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove icedtea6-plugin openjdk-<span style="color: #000000;">6</span>-jre</pre></div></div>
<p>5- Install sun-java6-plugin</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sun-java6-plugin
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>mozilla-javaplugin.so mozilla-javaplugin.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm<span style="color: #000000; font-weight: bold;">/</span>java-<span style="color: #000000;">6</span>-sun<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>libnpjp2.so <span style="color: #000000;">1</span></pre></div></div>
<p>6- Close your firefox and reopen it again, it should be working smoothly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/10/19/installing-java-plugin-for-firefox-on-ubuntu-10-10-maverick/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Backup / Increase the Guest OS Drive on VirtualBox</title>
		<link>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-increase-the-guest-os-drive-on-virtualbox</link>
		<comments>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 18:20:38 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[norton]]></category>
		<category><![CDATA[virtualbox]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=424</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/" title="Backup / Increase the Guest OS Drive on VirtualBox"></a>Tried to search online for a way to increase the size of a vdi image, and there was no solution available online to do so. I had windows XP installed on a virtual machine for mail, and testing purposes on &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/" title="Backup / Increase the Guest OS Drive on VirtualBox"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Tried to search online for a way to increase the size of a vdi image, and there was no solution available online to do so.<br />
I had windows XP installed on a virtual machine for mail, and testing purposes on the most hated IE6, and the drive ran out of a space, no solution or work around helped me increase it, all the solutions to modify the partition table, etc didn&#8217;t work for me.<br />
Here is the simple steps i followed :</p>
<ul>
<li> Add Another Disk Drive to the Guest OS</li>
<li> Backup the Guest Operating system drive using Norton Ghost to the newly added drive.</li>
<li> Copy the backup to a DVD image (I had to move it to the host drive first)</li>
<li> Make a new Virtual Machine with the new size you want.</li>
<li> Boot the new machine using Norton Ghost drive, and attach the DVD image with the created backup.</li>
<li> Restore the backup from the DVD created using Norton Ghost.</li>
<li> Restart the machine and you should have a working.</li>
<li> Delete the created DVD image, the extra hard disk, and the old machine.</li>
</ul>
<p>If you have a shorter solution, please share <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/06/13/backup-increase-the-guest-os-drive-on-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Zend Server on Ubuntu 10.04</title>
		<link>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-zend-server-on-ubuntu-10-04</link>
		<comments>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 11:45:45 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Zend Server]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[zendserver]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=420</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/" title="Installing Zend Server on Ubuntu 10.04"></a>I have been having issues trying to install Zend Server on Ubuntu 10.04 following the steps here http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm the problem was because there is a missing dependency for the &#8220;libmysqlclient15off&#8221; MySQL client library to solve this, I had to install &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/" title="Installing Zend Server on Ubuntu 10.04"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>I have been having issues trying to install Zend Server on Ubuntu 10.04 following the steps here <a href="http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm" target="_blank">http://files.zend.com/help/Zend-Server-5-Community-Edition/zend-server.htm#deb_installation.htm</a><br />
the problem was because there is a missing dependency for the &#8220;libmysqlclient15off&#8221; MySQL client library</p>
<p>to solve this, I had to install &#8220;libmysqlclient15off&#8221; from here (select the one that matches your architecture)</p>
<p><a href="http://archive.ubuntu.com/ubuntu/pool/universe/m/mysql-dfsg-5.0/" target="_blank">http://archive.ubuntu.com/ubuntu/pool/universe/m/mysql-dfsg-5.0/</a></p>
<p>Then install it using the command line :</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_i386.deb</pre></div></div>
<p>after that running the installation for Zend server from through repositories, will work with no interruptions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/06/06/installing-zend-server-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compress and Split large files under Linux</title>
		<link>http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compress-and-split-large-files-under-linux</link>
		<comments>http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 11:36:57 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[split]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=415</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/" title="Compress and Split large files under Linux"></a>One of the common problems i used to face is transferring large files from Linux through mediums that doesn&#8217;t support large files, especially when it comes to more than 100 GB files, usually that is a virtual machine hard disk, &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/" title="Compress and Split large files under Linux"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>One of the common problems i used to face is transferring large files from Linux through mediums that doesn&#8217;t support large files, especially when it comes to more than 100 GB files, usually that is a virtual machine hard disk, or backup file.</p>
<p>To compress and split files under linux, this command can be used:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cvj</span> large-file.dvi <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">split</span> <span style="color: #660033;">-b</span> 1000m <span style="color: #660033;">-d</span> - <span style="color: #ff0000;">&quot;small-files.tar.bz.&quot;</span></pre></div></div>
<p>This command will compress and split the &#8220;large-file.dvi&#8221; to many files with size 1000mb for each, giving it the name &#8220;small-files.tar.bz.0, small-files.tar.bz.1, etc&#8230;.&#8221;</p>
<p>To join the files together again, this command can be used:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> small-files.tar.bz.<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">&gt;</span> large-file.tar.bz</pre></div></div>
<p>and to extract the output file :</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvj</span> large-file.tar.bz</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/06/06/compress-and-split-large-files-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good Solaris How To list</title>
		<link>http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=good-solaris-how-to-list</link>
		<comments>http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/#comments</comments>
		<pubDate>Sat, 01 May 2010 12:32:39 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[solaris]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=387</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/" title="Good Solaris How To list"></a>Was looking for a way to grep for something in a subdirectory and stopped by this short but usefull Solaris How To list. The grep item works with unix / linux boxes as well. http://jeffnester.com/howtos/solaris/solaris.html enjoy the power of shell]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/" title="Good Solaris How To list"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Was looking for a way to grep for something in a subdirectory and stopped by this short but usefull Solaris How To list.</p>
<p>The grep item works with unix / linux boxes as well.</p>
<p><a href="http://jeffnester.com/howtos/solaris/solaris.html" target="_blank">http://jeffnester.com/howtos/solaris/solaris.html</a></p>
<p>enjoy the power of shell <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/05/01/good-solaris-how-to-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

