<?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; Unix</title>
	<atom:link href="http://www.php-architect.com/blog/category/unix/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>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>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>Recruitment System &#8211; One of my projects</title>
		<link>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recruitment-system-one-of-my-projects</link>
		<comments>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/#comments</comments>
		<pubDate>Sat, 08 May 2010 14:57:04 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Favorites]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail System]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[cha]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[recruitment]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zf]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=390</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/" title="Recruitment System - One of my projects"></a>I wanted to post this since a while. The recruitment system is one of the applications I built for cha-international while working there beside developing the Middle East &#38; North Africa travel awards system, mail marketing system, and converting all &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/" title="Recruitment System - One of my projects"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/&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 wanted to post this since a while.</p>
<p>The <a title="PHP Recruitment System" href="http://www.cha-international.com/" target="_self">recruitment system</a> is one of the applications I built for <span style="color: #008000;"><a href="http://www.cha-international.com/" target="_blank">cha-international</a></span> while working there beside developing the <a title="MENA Travel Awards" href="http://www.menatravelawards.com" target="_blank">Middle East &amp; North Africa travel awards system</a>, mail marketing system, and converting all their servers from windows to Linux.</p>
<p>In brief the system has the following features :</p>
<ul>
<li>Backend :</li>
</ul>
<blockquote>
<ol>
<li>Managing countries, Nationalities, Languages, World Areas, System Announcements.</li>
<li>Managing Education Levels, Industries, Titles, Departments, System Reply Messages, Candidate Status, Candidates Classifications, and Quotes.</li>
<li>Testimonials section where the company can post its clients testimonials to be displayed in the frontend.</li>
<li>Managing 2 types of resumes : Uploaded Attachments, and Detailed filled forms Resumes.</li>
<li>Easy form for the data entry team to add the resumes from the backend.</li>
<li>Searching for candidates, using simple forms like name, email or advanced one which contains name, different nationalities, different languages, age, sex, industry, title, keyword in resume, etc.</li>
<li>Consultants area where they can post / close job posting, search  for candidates, export word version of resumes, add to their favorite list, recommend them to another consultant.</li>
<li>Consultants also can comment on the resumes, change their availability status to be seen by other consultants, and communicate with the candidate through the reply messages and keep track of those sent messages.</li>
<li>The system has a approval workflow engine, the admins have to check the resume to approve it first.</li>
<li>The system has a privileges section where the administrator can create a new role, assign access to certain areas in the backend to certain role, and assign the roles to system users.</li>
<li>Feedback system where the backend users can communicate with the administrator for support tickets, etc.</li>
<li>Auditrail system where every action in the system is logged.</li>
</ol>
</blockquote>
<ul>
<li>Frontend:</li>
</ul>
<blockquote>
<ol>
<li>Simple upload form where users can just upload their resume and simple details.</li>
<li>Advanced profile form where users can fill in all the details, and add many attachments to their profiles.</li>
<li>Listing, Simple search, advanced search for jobs, and applying to them.</li>
<li>Clients area where they can request certain services.</li>
<li>Featured profiles, where a certain profiles selected by the admins showed in frontend.</li>
</ol>
</blockquote>
<blockquote><p>The project was completely built from scratch using Zend Framework, and right now it has more than 70,000 applicant in its database, and the system is as fast as you see in the videos, these demos were taken with 50,000 record in the database.</p></blockquote>
<blockquote><p>Please don&#8217;t give me any feedback on the design <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> , I am just a developer.</p></blockquote>
<blockquote><p>Here is some videos describing the different features of the system, I will try to post a better quality ones later.</p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><strong>Change your Signature</strong></p>
</blockquote>
<blockquote>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/KXMg4q43Vf0?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=KXMg4q43Vf0">www.youtube.com/watch?v=KXMg4q43Vf0</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Search Resumes</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/UUCuQ3XZmHg?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=UUCuQ3XZmHg">www.youtube.com/watch?v=UUCuQ3XZmHg</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Apply as New Candidate</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/UNMVIahQAeU?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=UNMVIahQAeU">www.youtube.com/watch?v=UNMVIahQAeU</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Send Feedback to support</strong></p>
<p style="text-align: center;"><strong> </strong><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/-QiwYphCi2k?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=-QiwYphCi2k">www.youtube.com/watch?v=-QiwYphCi2k</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Consultant Functionality walk through<br />
</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/wU6MDYO-xsw?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=wU6MDYO-xsw">www.youtube.com/watch?v=wU6MDYO-xsw</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Check who applied for your job</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/X7_ZNVjksKg?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=X7_ZNVjksKg">www.youtube.com/watch?v=X7_ZNVjksKg</a></p></p>
<p style="text-align: center;">&nbsp;</p>
<hr style="text-align: center;" />
<p style="text-align: center;"><strong>Apply for Posted Job</strong></p>
<p style="text-align: center;"><span class="youtube">
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/B06xlZr8A-w?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;modestbranding=1&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" frameborder="0" allowfullscreen></iframe>
</span><p><a href="http://www.youtube.com/watch?v=B06xlZr8A-w">www.youtube.com/watch?v=B06xlZr8A-w</a></p></p>
<p style="text-align: center;">&nbsp;</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/05/08/recruitment-system-one-of-my-projects/feed/</wfw:commentRss>
		<slash:comments>5</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>
		<item>
		<title>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</title>
		<link>http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala</link>
		<comments>http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:59:55 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[zendstudio]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=349</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/" title="Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &quot;Karmic Koala&quot;"></a>After updating to Ubuntu 9.10 &#8220;Karmic Koala&#8221;, i had some problems with Zend Studio GUI, some buttons when clicked appear to be pressed, but no action follows. After searching for a while i found this fix in Zend support pages, &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/" title="Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &quot;Karmic Koala&quot;"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/&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 updating to Ubuntu 9.10 &#8220;Karmic Koala&#8221;, i had some problems with Zend Studio GUI, some buttons when clicked appear to be pressed, but no action follows.</p>
<p>After searching for a while i found this fix in Zend support pages, and it solved the issue</p>
<p>here is the link for the fix :<br />
<a href="http://kb.zend.com/index.php?View=entry&amp;EntryID=435">http://kb.zend.com/index.php?View=entry&amp;EntryID=435</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

