<?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>Imthiaz Blog &#187; Linux</title>
	<atom:link href="http://imthi.com/blog/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://imthi.com</link>
	<description>me and stupid works....!!!</description>
	<lastBuildDate>Tue, 29 Jun 2010 06:20:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>UAE lug meetup group featured on homepage</title>
		<link>http://imthi.com/blog/linux/uae-lug-meetup-group-featured-on-homepage.php</link>
		<comments>http://imthi.com/blog/linux/uae-lug-meetup-group-featured-on-homepage.php#comments</comments>
		<pubDate>Thu, 03 Sep 2009 07:24:57 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[uaelug]]></category>

		<guid isPermaLink="false">http://imthi.com/?p=1226</guid>
		<description><![CDATA[Looks good to see our Linux user group being featured on meetup website homepage. Way to go guys and thanks to all the member who took so much effort to make this group an active one. They must have liked Alexander picture very much LOL !!!]]></description>
			<content:encoded><![CDATA[<p>Looks good to see our <a href="http://uaelug.org">Linux user group</a> being featured on <a href="http://www.meetup.com/">meetup website</a> homepage. Way to go guys and thanks to all the member who took so much effort to make this group an active one.</p>
<p><a href="http://meetup.uaelug.org/"><img src="http://icdn.s3.amazonaws.com/2009/09/UAE-lug-meetup-group-featured-on-homepage.png" alt="UAE lug meetup group featured on homepage" title="UAE lug meetup group featured on homepage" width="628" height="501" class="aligncenter size-full wp-image-1228" /></a></p>
<p>They must have liked <a href="http://primepage.de/">Alexander</a> picture very much  LOL !!! <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/uae-lug-meetup-group-featured-on-homepage.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 remote desktop using vncserver without monitor</title>
		<link>http://imthi.com/blog/linux/ubuntu-904-remote-desktop-using-vncserver-without-monitor.php</link>
		<comments>http://imthi.com/blog/linux/ubuntu-904-remote-desktop-using-vncserver-without-monitor.php#comments</comments>
		<pubDate>Sat, 18 Apr 2009 20:38:17 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://imthi.com/?p=1046</guid>
		<description><![CDATA[Only few more days for Ubuntu team to release 9.04 but I couldn&#8217;t wait so I downloaded RC version and installed on torrent download server . The task is to install the ubuntu 9.04 RC and to completely manage the server remotely. The installation was completely smooth and there was no issues. The installation completely [...]]]></description>
			<content:encoded><![CDATA[<p>Only few more days for Ubuntu team to release 9.04 but I couldn&#8217;t wait so I downloaded RC version and installed on torrent download server <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . The task is to install the ubuntu 9.04 RC and to completely manage the server remotely. The installation was completely smooth and there was no issues. The installation completely detected all the hardware and everything worked perfectly like a dream come true.</p>
<p>Next step is to install secure shell <a href="http://en.wikipedia.org/wiki/Secure_Shell">ssh</a>.<br />
<code><br />
#sudo apt-get install ssh<br />
</code><br />
Ubuntu comes with remote desktop manager. I tested the same and it would not work when there is no monitor connected to the system. I tried different methods and nothing worked out for me. So I decided to ditch the built in remote desktop and installed vncserver.<br />
<code><br />
#sudo apt-get install vnc4server<br />
</code><br />
After it is installed you should be logged as normal user and not root.<br />
<code><br />
#vncserver :1 -geometry 1024x768 -depth 16<br />
</code><br />
Once you issue the above command it will prompt for password. This password will be used for connecting to the server. Once it is complete we can change the setting for the server. Before we do that we have to kill the server.<br />
<code><br />
#vncserver -kill :1<br />
</code><br />
The configuration is kept in the file /home/userxx/.vnc/xstartup I edited this file so that I can start the server with gnome. My file looks exactly like below.<br />
<code><br />
#!/bin/sh</p>
<p># Uncomment the following two lines for normal desktop:<br />
unset SESSION_MANAGER<br />
# exec /etc/X11/xinit/xinitrc</p>
<p>gnome-session &#038;</p>
<p>[ -x /etc/vnc/xstartup ] &#038;&#038; exec /etc/vnc/xstartup<br />
[ -r $HOME/.Xresources ] &#038;&#038; xrdb $HOME/.Xresources<br />
xsetroot -solid grey<br />
vncconfig -iconic &#038;<br />
# xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &#038;<br />
twm &#038;<br />
</code><br />
Now everything is done. All you have to do is to restart the system which is good for the setting to work properly. One you have restarted please start the vnc server.<br />
<code><br />
#vncserver<br />
</code><br />
I used <a href="http://sourceforge.net/projects/cotvnc/">chicken of the vnc</a> to connect from mac.<br />
<img src="http://icdn.s3.amazonaws.com/2009/04/chicken-of-the-vnc-connection-setup.png" alt="chicken-of-the-vnc-connection-setup" title="chicken-of-the-vnc-connection-setup" width="523" height="319" class="aligncenter size-full wp-image-1053" /><br />
After connecting you get gnome session which you can keep it alive even if the chicken vnc is closed.<br />
<a href="http://icdn.s3.amazonaws.com/2009/04/gnome-session-using-remote-desktop.png"><img src="http://icdn.s3.amazonaws.com/2009/04/gnome-session-using-remote-desktop-300x229.png" alt="gnome-session-using-remote-desktop" title="gnome-session-using-remote-desktop" width="300" height="229" class="aligncenter size-medium wp-image-1055" /></a><br />
Now all set and I don&#8217;t want my server to start gnome session during boot. To avoid that I have to disable gdm server.<br />
<a href="http://icdn.s3.amazonaws.com/2009/04/gnome-service-manager.png"><img src="http://icdn.s3.amazonaws.com/2009/04/gnome-service-manager.png" alt="gnome-service-manager" title="gnome-service-manager" width="447" height="427" class="aligncenter size-full wp-image-1057" /></a><br />
That&#8217;s all folks have a nice day <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/ubuntu-904-remote-desktop-using-vncserver-without-monitor.php/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Compile and install PHP 5.2.8 on Mac OS X 10.5.6 (Leopard)</title>
		<link>http://imthi.com/blog/linux/compile-and-install-php-528-on-mac-os-x-1056-leopard.php</link>
		<comments>http://imthi.com/blog/linux/compile-and-install-php-528-on-mac-os-x-1056-leopard.php#comments</comments>
		<pubDate>Mon, 23 Feb 2009 20:51:03 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imthi.com/?p=909</guid>
		<description><![CDATA[Due to some limitation I faced with Xampp I finally decided to compile PHP5 native on my mac. Entropy was a best option for mac till Leopard was released. Since Leopard came with php built in entropy was no more available. After Googling for a long time and breaking my head with errors for 7 [...]]]></description>
			<content:encoded><![CDATA[<p>Due to some limitation I faced with <a href="http://www.apachefriends.org/en/xampp-macosx.html" title="apache friends - xampp for macos x">Xampp</a> I finally decided to compile PHP5 native on my mac. <a href="http://www.entropy.ch/software/macosx/php/" title="Marc Liyanage - Software - Mac OS X Packages - PHP">Entropy</a> was a best option for mac till Leopard was released. Since Leopard came with php built in entropy was no more available. After Googling for a long time and breaking my head with errors for 7 long hours I finally got it working perfectly like how I wanted it. These are some of the steps I followed to compile the same. I tested the same steps in 2 macs and it was working fine. I cannot guarantee that these steps would work for everyone. </p>
<p><strong>Step 1</strong></p>
<p>You need to have Xcode installed on your mac. In my case I had Xcode 3.1.2 installed. You can install from your Leopard DVD or you can install iPhone SDK.</p>
<p><strong>Step 2</strong></p>
<p>Download and install the <a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg" title="MySQL ::  MySQL 5.1 Downloads — Generally Available (GA) release for production use">latest</a> <a href="http://www.mysql.com/" title="MySQL ::  The world's most popular open source database">Mysql</a> database server.</p>
<p><strong>Step 3</strong></p>
<p>Install <a href="http://www.finkproject.org/" title="Fink - Home">Fink</a>. You can download the version 0.9.0 which I used for compiling from <a href="http://sourceforge.net/project/downloading.php?groupname=fink&amp;filename=Fink-0.9.0-Intel-Installer.dmg" title="SourceForge.net: Fink: Downloading ...">here</a>. Once you have installed open terminal and issue the following commands.<br />
<code><br />
# sudo fink selfupdate<br />
# sudo fink update-all</code></p>
<p>The above two commands will update the needed files for fink library to work properly. Once this is done you can install needed libraries for php by issuing the following command<br />
<code><br />
# sudo fink install libjpeg libtiff libpng3 libxml t1lib5 libmcrypt libmhash mysql15-dev curl wget</code></p>
<p><strong>Step 4</strong> </p>
<p>Install FrontBase if it is needed for you. It is installer file you can download it from <a href="http://www.frontbase.com/cgi-bin/WebObjects/FrontBaseLicense.woa/wa/download?ident=1000014" title="Frontbase">here</a>. If you don&#8217;t want to use this database system you can remove the option &#8216;&#8211;with-fbsql&#8217; from the php configure command.</p>
<p><strong>Step 5</strong></p>
<p>Install <a href="http://www.freetds.org/" title="FreeTDS.org">Freetds</a> if you want use <a href="http://www.microsoft.com/SQL/default.mspx" title="SQL Server 2008 Overview, data platform, store data | Microsoft">MS-SQL</a> in PHP5.<br />
<code><br />
# sudo su<br />
# curl -O http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz<br />
# tar xvzf freetds-stable.tgz<br />
# cd freetds-0.82/<br />
# ./configure &#038;&#038; make &#038;&#038; sudo make install</code></p>
<p>Incase if you feel this is not needed for your installation you can remove the option &#8216;&#8211;with-mssql&#8217; and &#8216;&#8211;enable-dbase&#8217; from the php configure command.</p>
<p><strong>Step 6</strong></p>
<p>Install Imap Client libraries files. You need this lib to be installed if you wish to compile imap. If you don&#8217;t want you can remove the option &#8216;&#8211;with-imap&#8217; and &#8216;&#8211;with-imap-ssl&#8217;. Further reading on this topic visit <a href="http://discussions.apple.com/message.jspa?messageID=6112771">here</a>.<br />
<code><br />
# sudo su<br />
# curl -O ftp://ftp.cac.washington.edu/imap/c-client.tar.Z<br />
# tar xvzf c-client.tar.Z<br />
# cd imap-2007e/<br />
# make oxp<br />
# cd c-client/<br />
# cp *.h /usr/local/include<br />
# cp *.c /usr/local/lib<br />
# cp c-client.a /usr/local/lib/libc-client.a</code></p>
<p><strong>Step 7</strong></p>
<p>Install <a href="http://www.gnu.org/software/gettext/" title="gettext - GNU Project - Free Software Foundation (FSF)">gettext</a>. This is a must for lot of open source projects and for localization.<br />
<code><br />
# sudo su<br />
# curl -O ftp://ftp.gnu.org/gnu/gettext/gettext-0.17.tar.gz<br />
# tar xvzf gettext-0.17.tar.gz<br />
# cd gettext-0.17<br />
# cd gettext-tools/<br />
# ./configure<br />
# make<br />
# make install</code></p>
<p><strong>Step 8</strong></p>
<p>Install <a href="http://www.freetype.org/" title="The FreeType Project">freetype</a>. You need if you wish to load free type fonts in GD.<br />
<code><br />
#sudo su<br />
# wget http://mirrors.zerg.biz/nongnu/freetype/freetype-2.3.8.tar.gz<br />
# tar xvzf freetype-2.3.8.tar.gz<br />
# cd freetype-2.3.8<br />
# ./configure<br />
# make<br />
# make install</code></p>
<p><strong>Step 9</strong></p>
<p>I think we are pretty there and now it is time to compile the big boss the PHP itself.<br />
<code><br />
# sudo su<br />
# wget http://www.php.net/get/php-5.2.8.tar.gz/from/in.php.net/mirror<br />
# tar xvzf php-5.2.8.tar.gz<br />
# cd php-5.2.8<br />
# ./configure --prefix=/usr/local/php5.2.8 --with-apxs2 --with-config-file-scan-dir=/usr/local/php5.2.8/php.d --with-openssl=/usr --with-zlib=/usr --with-gd --enable-gd-native-ttf --with-jpeg-dir=/sw  --with-jpeg-dir=/sw --with-png-dir=/sw --with-zlib-dir=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr --enable-exif  --enable-soap  --enable-ftp --enable-sockets --enable-mbstring --enable-calendar --enable-bcmath --with-bz2=/usr --with-curl --with-kerberos=/usr  --with-libxml-dir=/sw --with-xsl --with-t1lib=/sw  --with-mcrypt=/sw --with-mhash=/sw --with-mysql=/sw --with-mysqli --with-pdo-mysql=/sw  --enable-zip  --with-imap --with-imap-ssl --with-gettext  --with-curl=/sw  --with-pear --with-regex --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-iconv=shared,/opt/local  --enable-dbase --enable-sqlite-utf8 --with-fbsql<br />
# make<br />
# make install</code></p>
<p>If you have completed till the above step without any error means that you have successfully installed PHP5. If you restart your apache server from system settings the server might not work for you. Since it might conflict a bit due to various architecture problems in apache and php build. To over come this issue you need to re-compile apache. You can do it by issuing the following commands. Further reading on this <a href="http://www.entropy.ch/phpbb2/viewtopic.php?t=2869">issue</a>.</p>
<p><strong>Step 10</strong> </p>
<p>Recompile <a href="http://apache.org/">Apache 2</a>.<br />
<code><br />
# sudo su<br />
# wget http://apache.siamwebhosting.com/httpd/httpd-2.2.11.tar.gz<br />
# tar xvzf httpd-2.2.11.tar.gz<br />
# cd httpd-2.2.11/<br />
# ./configure --enable-layout=Darwin --enable-mods-shared=all<br />
# make<br />
# make install</code></p>
<p><a href="http://icdn.s3.amazonaws.com/2009/02/screenshot1.png"><img src="http://icdn.s3.amazonaws.com/2009/02/screenshot1-150x150.png" alt="screenshot1" title="screenshot1" width="150" height="150" /></a><a href="http://icdn.s3.amazonaws.com/2009/02/screenshot2.png"><img src="http://icdn.s3.amazonaws.com/2009/02/screenshot2-150x150.png" alt="screenshot2" title="screenshot2" width="150" height="150" /></a></p>
<p>Once everything is done you should be able to run PHP. Have fun compiling your own native PHP on your mac <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  .!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/compile-and-install-php-528-on-mac-os-x-1056-leopard.php/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Fedora 9 Sulphur on VMware Fusion</title>
		<link>http://imthi.com/blog/linux/fedora-9-sulphur-on-vmware-fusion.php</link>
		<comments>http://imthi.com/blog/linux/fedora-9-sulphur-on-vmware-fusion.php#comments</comments>
		<pubDate>Fri, 16 May 2008 08:26:51 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://imthi.com/?p=552</guid>
		<description><![CDATA[I have been always a very big fan on Fedora Linux distribution. In recent times I have moved very much into Ubuntu. Three days back Fedora team had released the new version 9 named sulphur. I really wanted to test it how well it is working with VMware. So the hunt began. Downloaded the i686 [...]]]></description>
			<content:encoded><![CDATA[<p>I have been always a very big fan on Fedora Linux distribution. In recent times I have moved very much into Ubuntu. Three days back Fedora team had released the new version 9 named sulphur. I really wanted to test it how well it is working with VMware. So the hunt began.</p>
<p>Downloaded the i686 DVD version and started the installation. In VMware OS list there was no fedora so I had to select red hat Linux as option. The installation went very smooth and no issues or error. I felt the installater was little heavy when compared to Ubuntu installation.</p>
<p>Fedora booted up well and detected most of the hardware of VMware. But It was not as smooth as Ubuntu was on VMware.</p>
<p style="text-align: center;"><a rel="lightbox" href="http://icdn.s3.amazonaws.com/2008/05/fedora-9-sulphur-on-vmware-fusion.png"><img class="alignnone size-medium wp-image-553 aligncenter" title="Fedora 9 Sulphur on VMware Fusion" src="http://icdn.s3.amazonaws.com/2008/05/fedora-9-sulphur-on-vmware-fusion-300x253.png" alt="" width="300" height="253" /></a></p>
<p>I heard there is lot of improvement and enhancements. But Ubuntu is very far ahead when it comes to Desktop Linux. I prefer sticking with Ubuntu than Fedora sulphur <img src='http://imthi.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/fedora-9-sulphur-on-vmware-fusion.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BSD, SSH and PHP on my iPhone</title>
		<link>http://imthi.com/blog/linux/bsd-ssh-and-php-on-my-iphone.php</link>
		<comments>http://imthi.com/blog/linux/bsd-ssh-and-php-on-my-iphone.php#comments</comments>
		<pubDate>Tue, 13 Nov 2007 22:08:11 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/linux/bsd-ssh-and-php-on-my-iphone.php</guid>
		<description><![CDATA[Tonight I installed BSD system on my iPhone. Once that is complete I installed openSSH, Term-vt100. I opened terminal and changed my root password using the command passwd. I found the ip of the iPhone using the command ifconfig. Latter I was able to connect to the iPhone using ssh from my laptop . I [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I installed BSD system on my iPhone. Once that is complete I installed openSSH, Term-vt100. I opened terminal and changed my root password using the command passwd.</p>
<p>I found the ip of the iPhone using the command ifconfig. Latter I was able to connect to the iPhone using ssh from my laptop <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . I was even able to ftp files to my iphone over SSH.</p>
<p>I Installed apache, php edited httpd.conf and I was able to run php scripts from my iPhone. It has all the basic modules that is needed to write a simple powerful application with sqlite. Taken a screenshot too <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p style="text-align: center"><img src="http://icdn.s3.amazonaws.com/2007/11/php_iphone.png" alt="BSD, SSH and PHP on my iPhone" /></p>
<p>Wow this gadget is really amazing <img src='http://imthi.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/bsd-ssh-and-php-on-my-iphone.php/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Fedora Core 8 on Lenovo 3000</title>
		<link>http://imthi.com/blog/linux/fedora-core-8-on-lenovo-3000.php</link>
		<comments>http://imthi.com/blog/linux/fedora-core-8-on-lenovo-3000.php#comments</comments>
		<pubDate>Sat, 10 Nov 2007 12:05:07 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[lenovo]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/linux/fedora-core-8-on-lenovo-3000.php</guid>
		<description><![CDATA[We got a brand new IBM Lenovo laptop without any operating system installed. These days most of the new laptops comes with Windows Vista installed and which sucks majorly. Then we decided we will install Linux on the laptop for a difference. Then I installed Ubuntu 7.10 on it and it worked perfect. The live [...]]]></description>
			<content:encoded><![CDATA[<p>We got a brand new IBM Lenovo laptop without any operating system installed. These days most of the new laptops comes with Windows Vista installed and which sucks majorly. Then we decided we will install Linux on the laptop for a difference. Then I installed Ubuntu 7.10 on it and it worked perfect. The live cd was able to detect all the hardware on a single go.</p>
<p>I am such a fan of fedora and wanted to test fedora so checked out the website it had new release fedora 8 werewolf. It had live cd so downloaded it and tested on the laptop. To my surprise even fedora live cd detected everything. So reinstalled the laptop operating system with fedora 8.</p>
<p>I installed all the need software using yum as usual <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . Then I installed the Quake 3 and wanted burn test my laptop for performance. I opened couple of movies, music player and quake running auto demo on 800&#215;600. The processor usage was around 90 to 95%. Everything worked amazing fast and in another workspace I was able to do normal installation and browsing. I ran the test for more than 3 hours and the laptop temperature was so normal. No overheating and no issues. I was totally amazed by the laptop performance over Linux.</p>
<p><a href="http://icdn.s3.amazonaws.com/2007/11/fedora-8-lenovo.png" rel="lightbox" title="Fedora Core 8 on Lenovo 3000"><img src="http://icdn.s3.amazonaws.com/2007/11/fedora-8-lenovo.thumbnail.png" alt="Fedora Core 8 on Lenovo 3000" border="0" /></a></p>
<p>I am really happy to see such a stable fedora core which is now capable of detected all hardware. Lenovo laptop performance was amazingly superb <img src='http://imthi.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/fedora-core-8-on-lenovo-3000.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux based router solution</title>
		<link>http://imthi.com/blog/linux/linux-based-router-solution.php</link>
		<comments>http://imthi.com/blog/linux/linux-based-router-solution.php#comments</comments>
		<pubDate>Mon, 10 Sep 2007 15:39:00 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/linux/linux-based-router-solution.php</guid>
		<description><![CDATA[The task for the day was to make a router based on Linux. All I wanted to do is to replace the stupid home based router and do a fully Linux based one. Round one we need to buy hardware for the router. I know Linux can run on very low configuration hardware but those [...]]]></description>
			<content:encoded><![CDATA[<p>The task for the day was to make a router based on Linux. All I wanted to do is to replace the stupid home based router and do a fully Linux based one. Round one we need to buy hardware for the router. I know Linux can run on very low configuration hardware but those are very hard to find in the market. So I decided to go with shuttle computers. Basically shuttle computers are small and compact when compared to normal desktops. The model number used to make this one was SD32G2. You can read the complete specification of the hardware form this <a href="http://global.shuttle.com/Product/Barebone/SD32G2-Spec.asp">website</a>. There is an on board gigabyte Ethernet controller.</p>
<p style="text-align: center"><img src="http://icdn.s3.amazonaws.com/2007/09/shuttle_computer.jpg" alt="shuttle computers." /></p>
<p>Other than that I used the following</p>
<ul>
<li>Pentium 4 3.2 HT processor</li>
<li>80 GB Sata hard disk</li>
<li>1 GB RAM</li>
<li>Realtek gigabyte Ethernet card</li>
<li>DVD drive (mainly used for installing purpose).</li>
</ul>
<p>Now the system is ready to rock and roll. The next big step was to install some flavor of linux and test the firewall. I was thinking of fedora latter my friend <a href="http://www.lijeeshms.com/">Lijeesh</a> showed me some new variant of linux which are there only for this purpose routing and firewall solution. Some distribution which are done for routing purpose are</p>
<ul>
<li><a href="http://www.ipcop.org/">IPCOP</a> an open source distribution.</li>
<li><a href="http://www.smoothwall.org/">Smoothwall</a> has both both open source and commercial solution</li>
<li><a href="http://www.clarkconnect.com/">Clarkconnect</a> is commercial solution.</li>
</ul>
<p>I installed and tested in the same above mentioned order. And I found some issues with each installation. Let me explain the hurdles I faced in each.</p>
<p>IPCOP &#8211; The installation was smooth. I had some issues in setting up my on board Ethernet card. Basically it was marvell chipset. I tried installing sk98lin drivers for it and it wont work. Then the firewall not supporting NAT.</p>
<p>Smoothwall &#8211; The installation was smooth. It even detected the on board Ethernet and it worked. It had really a good web interface with funky ajax effects. Like live bandwidth monitor, live messenger chat viewer etc. But when it comes to routing features the was very much limited <img src='http://imthi.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  . One such problem was it didn&#8217;t NAT routing.</p>
<p>Clarkconnet &#8211; It is a commercial solution. It is based on red hat distribution. I had some issues with my onboard ethernet card. It was detecting it but the drivers was not working. I had to issue command &#8220;modprobe sk98lin&#8221; and everything worked well. It had all the routing features please features. I tested it well and it was stable. Currently I am using this for my routing solution.</p>
<p>It took me 4 days to figure out the best options for routing solution based on Linux. I am not sure that the above conclusion are 100% correct. May be I have screwed it up somewhere. But it was fun experimenting <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/linux-based-router-solution.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Howto track cpanel+exim server outgoing mails</title>
		<link>http://imthi.com/blog/linux/howto-track-cpanelexim-server-outgoing-mails.php</link>
		<comments>http://imthi.com/blog/linux/howto-track-cpanelexim-server-outgoing-mails.php#comments</comments>
		<pubDate>Thu, 08 Mar 2007 04:31:05 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/linux/howto-track-cpanel-eximail-server-outgoing-mails.php</guid>
		<description><![CDATA[I wanted to track some outgoing mails in my servers. Initially I was using IMAP to solve this issue. Then It was becoming slow everyday. They started complaining that the mail was really slow. I was forced to move to POP3 which is much faster compared to IMAP. Once I activated POP3 tracking was out [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to track some outgoing mails in my servers. Initially I was using IMAP to solve this issue. Then It was becoming slow everyday. They started complaining that the mail was really slow. I was forced to move to POP3 which is much faster compared to IMAP. Once I activated POP3 tracking was out of my hands. I search a lot on how to play with <a href="http://www.exim.org/exim-html-4.50/doc/html/filter_3.html">filters in exim mail</a>.</p>
<p>It is quite powerful and give total control on incoming and outgoing mails. To solve my problem I need to play only with outgoing mails. There is a file named /etc/antivirus.exim is the file we need to play with.  I edited the file and added the below lines to make it work for me.</p>
<pre>
if first_delivery
and ( ("$h_from:" contains "test1@imthi.com")
or ("$h_from:" contains "test2@imthi.com")
or ("$h_from:" contains "test3@imthi.com")
)
then
unseen deliver "tracker@imthi.com"
endif</pre>
<p>The above block checks if the outgoing mail is on first delivery and who is the sender. Based on the sender I am sending a bcc copy to another mailbox. You can play more by studying the exim filter commands more <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/howto-track-cpanelexim-server-outgoing-mails.php/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Centos + Cpanel + Subversion + Apache 2 + Proxy works</title>
		<link>http://imthi.com/blog/linux/centos-cpanel-subversion-apache-2-proxy-works.php</link>
		<comments>http://imthi.com/blog/linux/centos-cpanel-subversion-apache-2-proxy-works.php#comments</comments>
		<pubDate>Thu, 08 Feb 2007 21:31:38 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/linux/centos-cpanel-subversion-apache-2-proxy-works.php</guid>
		<description><![CDATA[My mission was install subversion on our server withour breaking cpanel. After so much googling I was able to do it. It took me like a week to figure out a method which will work without any issues on cpanel. The main issue was cpanel still doesn&#8217;t support apache 2 series. They do have support [...]]]></description>
			<content:encoded><![CDATA[<p>My mission was install subversion on our server withour breaking cpanel. After so much googling I was able to do it. It took me like a week to figure out a method which will work without any issues on cpanel. The main issue was cpanel still doesn&#8217;t support apache 2 series. They do have support on edge version but it is highly unstable and doesn&#8217;t compile all the needed modules for php. In apache 1.3 the support for mod_dav is not very good. The only alternative for subversion was to use apache 2 series. So I started digging for articles.</p>
<p>I found there is a method to install both apache 1.3 and apache 2 together. Only thing is we have to use another port than 80 for apache 2. Let me go step by step like how I installed subversion.</p>
<p>1. Install subversion : This was really easy on centos. I just have to use yum and it does it all.</p>
<pre>yum install subversion</pre>
<p>This will install all libraries needed for subversion to work. Sometimes you may come across an issue with perl-uri. Just Google for &#8220;perl uri rpm&#8221; and you can download an install the same. In my case I had to download and install.</p>
<pre>rpm -ivh perl-URI-1.35-2.2.noarch.rpm</pre>
<p>2. The next thing was to create a repository.</p>
<pre>cd /var/
mkdir -p repo/source/
svnadmin create /var/repo/source</pre>
<p>With above commands I created a subversion repo named source. You can check inside the directory if lot of files are created. If created subversion works fine <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>3. Now we can proceed with apache 2 installation. I choosed apache 2.0.59</p>
<pre>./configure --prefix=/usr/local/apache2 --with-port=2080 --enable-dav --enable-dav-fs --enable-proxy --enable-rewrite --enable-so
make
make install
/usr/local/apache2/bin/apachectl start</pre>
<p>Apache2 installed at port 2080 with dav , proxy and rewrite and started so simple <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>4. Now we have to compile mod_svn for apache 2. For this I had to download the source of subversion. Please check the version of subversion installed. You can check with the help of yum.</p>
<pre>yum info subversion</pre>
<p>Next download the same of subversion source and you need to compile mod_svn.</p>
<pre>./configure --with-apxs=/usr/local/apache2/bin/apxs
make
make install</pre>
<p>Now mod_svn is installed and activated on apache2. We can configure apache 2 to serve svn files with the help of mod_dav.</p>
<p>5. Configure apache 2 for svn. To do this I had to change the settings httpd.conf of apache 2. This file will be located here /usr/local/apache2/conf/httpd.conf</p>
<pre>&lt;location&gt;
        DAV svn
        SVNPath /var/repo/source
&lt;/location&gt;</pre>
<p>Restart apache2 once you made the above changes. Now you should be able to see the svn files from this url http://localhost:2080/svn/. You should be able to see the subversion files at revision 0. There is will be nothing in it as we have not added any files.</p>
<p>6. Now we have add proxy to apache 1.3 so that we can internally proxy the files between apache 2 and apache 1. You can download the source of currently installed apache 1.3 or you can find the same in /home/installd/buildapache/apache_1.3.xx/src/modules/proxy<br />
Just goto that directory and run this command</p>
<pre>/usr/local/apache/bin/apxs -i -c *.c</pre>
<p>That will install mod_proxy to apache 1.3</p>
<p>7. You have add this setting to apache 1.3 conf file to proxy the http://localhost:2080/svn/ in standard port 80 of some website.<br />
Add these line to any virtual host present in the conf file.</p>
<pre>ProxyRequests Off
ProxyPass / http://locahost:2080/svn</pre>
<p>I had added for the virtual host svn.imthi.com.</p>
<p>You can view my subversion at <a href="http://svn.imthi.com/">http://svn.imthi.com/ </a>username : guest and password : guest.</p>
<p>All done. If you wish add authentication you can Google on how to add simple http authentication. You can even add policies if you want. The final setting should look something like this with authentication and polices</p>
<pre>&lt;location&gt;
        DAV svn
        SVNPath /var/repo/source
        AuthzSVNAccessFile /var/repo/conf/svnpolicy
        AuthType Basic
        AuthName &quot;Imthiaz Subversion repository&quot;
        AuthUserFile /var/repo/conf/svnusers
        Require valid-user
&lt;/location&gt;</pre>
<p>For this svn book will be of great use. Have fun &#8230;!!! <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/linux/centos-cpanel-subversion-apache-2-proxy-works.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>SSH tunneling in mac</title>
		<link>http://imthi.com/blog/personal/ssh-tunneling-in-mac.php</link>
		<comments>http://imthi.com/blog/personal/ssh-tunneling-in-mac.php#comments</comments>
		<pubDate>Fri, 19 Jan 2007 19:26:00 +0000</pubDate>
		<dc:creator>Imthiaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://imthi.com/blog/218/index.php</guid>
		<description><![CDATA[Today I wanted to connect to office internal server to particular port. But the server and port are not available on public. So I had to connect to gateway server by ssh and tunnel through it to connect to internal server. In windows it was easy to do using putty. Since there was no putty [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to connect to office internal server to particular port. But the server and port are not available on public. So I had to connect to gateway server by ssh and tunnel through it to connect to internal server.</p>
<p><img id="image217" alt="SSH tunneling in mac" src="http://icdn.s3.amazonaws.com/2007/01/ssh-tunnel-00.gif" /></p>
<p>In windows it was easy to do using putty. Since there was no putty on mac I was lost a bit. Then this article helped me <img src='http://imthi.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://www.engr.wisc.edu/computing/best/rdesktop-mac.html">http://www.engr.wisc.edu/computing/best/rdesktop-mac.html </a></p>
<p>The above article explains it all so no point writing the info here <img src='http://imthi.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imthi.com/blog/personal/ssh-tunneling-in-mac.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
