<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>KwtLinux</title>
	<link>http://kwtlinux.com</link>
	<description>Kuwait linux community</description>
	<pubDate>Tue, 03 Jun 2008 08:43:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>وفاة الشيخ الأمير الوالد سعد العبدلله الصباح اليوم</title>
		<link>http://kwtlinux.com/2008/05/14/%d9%88%d9%81%d8%a7%d8%a9-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae-%d8%a7%d9%84%d8%a3%d9%85%d9%8a%d8%b1-%d8%a7%d9%84%d9%88%d8%a7%d9%84%d8%af-%d8%b3%d8%b9%d8%af-%d8%a7%d9%84%d8%b9%d8%a8%d8%af%d9%84%d9%84%d9%87/</link>
		<comments>http://kwtlinux.com/2008/05/14/%d9%88%d9%81%d8%a7%d8%a9-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae-%d8%a7%d9%84%d8%a3%d9%85%d9%8a%d8%b1-%d8%a7%d9%84%d9%88%d8%a7%d9%84%d8%af-%d8%b3%d8%b9%d8%af-%d8%a7%d9%84%d8%b9%d8%a8%d8%af%d9%84%d9%84%d9%87/#comments</comments>
		<pubDate>Wed, 14 May 2008 01:12:51 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[kuwait]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/05/14/%d9%88%d9%81%d8%a7%d8%a9-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae-%d8%a7%d9%84%d8%a3%d9%85%d9%8a%d8%b1-%d8%a7%d9%84%d9%88%d8%a7%d9%84%d8%af-%d8%b3%d8%b9%d8%af-%d8%a7%d9%84%d8%b9%d8%a8%d8%af%d9%84%d9%84%d9%87/</guid>
		<description><![CDATA[                                                       [...]]]></description>
			<content:encoded><![CDATA[<p>                                                                 <img src='http://www.kwtmac.com/wp-content/uploads/2008/05/saad.jpg' alt='الشيخ سعد' /></p>
<p>{ يا ايتها النفس المطمئنه ارجعي الى ربك راضية مرضيه فادخلي في عبادي وادخلي جنتي } صدق الله العظيم<br />
انتقل الى رحمة الله تعالى الشيخ الأمير الوالد سعد العبدلله السالم الصباح اليوم<br />
داعين الله عز وجل أن يتغمد الفقيد بواسع رحمته ويسكنه فسيح جناته</p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/05/14/%d9%88%d9%81%d8%a7%d8%a9-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae-%d8%a7%d9%84%d8%a3%d9%85%d9%8a%d8%b1-%d8%a7%d9%84%d9%88%d8%a7%d9%84%d8%af-%d8%b3%d8%b9%d8%af-%d8%a7%d9%84%d8%b9%d8%a8%d8%af%d9%84%d9%84%d9%87/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blood bank in Urood</title>
		<link>http://kwtlinux.com/2008/04/04/blood-bank-in-urood/</link>
		<comments>http://kwtlinux.com/2008/04/04/blood-bank-in-urood/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 23:45:48 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/04/04/blood-bank-in-urood/</guid>
		<description><![CDATA[Yesterday Urood team started something extremely useful here in Kuwait. Its not just a brilliant idea but its truly creative and it came when most needed. Ever now and then I see posts and ads about blood donations and how it may save lives! Urood came up with a new section "Community service" part of [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday Urood team started something extremely useful here in Kuwait. Its not just a brilliant idea but its truly creative and it came when most needed. Ever now and then I see posts and ads about blood donations and how it may save lives! Urood came up with a new section "Community service" part of the community service is the blood bank link. </p>
<p>All you have to do is, click on the link and type write your information and blood type. so, if someone is in emergency they can look up matches on Urood. I think, this is wonderful and everyone should participate in this great humanitarian service</p>
<p>click <a href="http://urood.com/ads/ads_offertype.pl?cat=210" onclick="javascript:urchinTracker ('/outbound/article/urood.com');">here</a> to start input or searching for a match<br />
or just click <a href="http://urood.com" onclick="javascript:urchinTracker ('/outbound/article/urood.com');">here</a> to view Urood home page </p>
<p>Have a great day every one,</p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/04/04/blood-bank-in-urood/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Creating web interface to access your remote Linux servers</title>
		<link>http://kwtlinux.com/2008/03/05/creating-web-interface-to-access-your-remote-linux-servers/</link>
		<comments>http://kwtlinux.com/2008/03/05/creating-web-interface-to-access-your-remote-linux-servers/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 11:31:49 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/03/05/creating-web-interface-to-access-your-remote-linux-servers/</guid>
		<description><![CDATA[Its been a while since last I've posted anything but am here trying to keep up with many websites. Any who, Recently I was requested by one of my clients to create a web interface to help the none technical restart apache, mysql and do some monitoring on different servers.
so, first what I did is [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while since last I've posted anything but am here trying to keep up with many websites. Any who, Recently I was requested by one of my clients to create a web interface to help the none technical restart apache, mysql and do some monitoring on different servers.</p>
<p>so, first what I did is generate a key to create secure channels between the servers in order to connect without prompting for password (click here for steps). Then, I faced some trouble writing the PHP code which will connect and do these tasks and after long day of surfing and some help from my team (Basant) we finally nailed it.</p>
<p>First, you will need to install openssl (openssl-devel), then download and compile libssh2 and then you will need to add the extension in your PHP.ini (click <a href="http://www.php.net/ssh2" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');">here</a> for PHP ssh2 installation manual) and here is a sample code on how it can be done in PHP.</p>
<pre class="php"><ol start="4"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// Notify user if the server terminates the connection</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> my_ssh_disconnect<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$reason</span>, <span style="color: #0000ff;">$message</span>, <span style="color: #0000ff;">$language</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <a href="http://www.php.net/printf" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Server disconnected with reason code[%d] and</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">message: %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> ,<span style="color: #0000ff;">$reason</span>, <span style="color: #0000ff;">$message</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$methods</span> = <a href="http://www.php.net/array" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'kex'</span> =&gt; <span style="color: #ff0000;">'diffie-hellman-group1-sha1'</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'client_to_server'</span> =&gt; <a href="http://www.php.net/array" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'crypt'</span> =&gt; <span style="color: #ff0000;">'3des-cbc'</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'comp'</span> =&gt; <span style="color: #ff0000;">'none'</span><span style="color: #66cc66;">&#41;</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'server_to_client'</span> =&gt; <a href="http://www.php.net/array" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'crypt'</span> =&gt; <span style="color: #ff0000;">'aes256-cbc,aes192-cbc,aes128-cbc'</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #ff0000;">'comp'</span> =&gt; <span style="color: #ff0000;">'none'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$callbacks</span> = <a href="http://www.php.net/array" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'disconnect'</span> =&gt; <span style="color: #ff0000;">'my_ssh_disconnect'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$connection</span> = ssh2_connect<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'domain_name.com'</span>, <span style="color: #cc66cc;">22</span>, <span style="color: #0000ff;">$methods</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$callbacks</span><span style="color: #66cc66;">&#41;</span> or <a href="http://www.php.net/die" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Couldnot locate the ssh2'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0000ff;">$connection</span><span style="color: #66cc66;">&#41;</span> <a href="http://www.php.net/die" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Connection failed'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>ssh2_auth_password<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$connection</span>, <span style="color: #ff0000;">'linux_user'</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">'linux_password'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <a href="http://www.php.net/echo" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;Authentication Successful!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0000ff;">$shell</span>=ssh2_shell<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$connection</span>, <span style="color: #ff0000;">'bash'</span><span style="color: #66cc66;">&#41;</span> or <a href="http://www.php.net/die" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;error&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">// fwrite will send execute commands and return value in</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$shell</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <a href="http://www.php.net/fwrite" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">fwrite</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$shell</span>, <span style="color: #ff0000;">&quot;/etc/init.d/httpd restart<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">// this will look the $shell array and print the</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">returned value.</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #b1b100;">while</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$line</span> = <a href="http://www.php.net/fgets" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">fgets</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$shell</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">          <a href="http://www.php.net/flush" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">flush</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <a href="http://www.php.net/echo" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$line</span>.<span style="color: #ff0000;">&quot;&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<a href="http://www.php.net/fclose" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">fclose</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$shell</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// close connection</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<a href="http://www.php.net/echo" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;Error with connection<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt;</div></li></ol></pre>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/03/05/creating-web-interface-to-access-your-remote-linux-servers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>KwtLinux on facebook</title>
		<link>http://kwtlinux.com/2008/02/22/kwtlinux-on-facebook/</link>
		<comments>http://kwtlinux.com/2008/02/22/kwtlinux-on-facebook/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 19:40:05 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[internet]]></category>

		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/02/22/kwtlinux-on-facebook/</guid>
		<description><![CDATA[I just finished creating KwtLinux group on facebook as its will help in spreading the word. Specially that facebook has become one of the largest communities packed with users from Kuwait, If you are a facebook member you can go ahead and join us here. 
]]></description>
			<content:encoded><![CDATA[<p>I just finished creating KwtLinux group on facebook as its will help in spreading the word. Specially that facebook has become one of the largest communities packed with users from Kuwait, If you are a facebook member you can go ahead and join us <a href="http://www.facebook.com/group.php?gid=10556941634" onclick="javascript:urchinTracker ('/outbound/article/www.facebook.com');">here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/02/22/kwtlinux-on-facebook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mounting remote folder (Fedora)</title>
		<link>http://kwtlinux.com/2008/02/17/mounting-remote-folder-fedora/</link>
		<comments>http://kwtlinux.com/2008/02/17/mounting-remote-folder-fedora/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 17:28:50 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/02/17/mounting-remote-folder-fedora/</guid>
		<description><![CDATA[If you are working with servers, you probably came through this issue before. Let's say you have two servers and you need to setup an automated backup or you want to share files from different server yet you want to save time writing scripts to pull the files or push the backup through FTP. Mounting [...]]]></description>
			<content:encoded><![CDATA[<p>If you are working with servers, you probably came through this issue before. Let's say you have two servers and you need to setup an automated backup or you want to share files from different server yet you want to save time writing scripts to pull the files or push the backup through FTP. Mounting a remote folder will save you lots of time since the mounted folder will act like a local folder and all you have to do is move or copy your files to the local path and its will be placed on the remote server. so, its useful for many uses and here is the steps on how to set it up on a linux fedora. </p>
<p>First, you will need to install the required package<br />
<code>yum install fuse<br />
yum install fuse-sshfs</code><br />
Then, grant the user access to the fuse group<br />
<code>usermod -G fuse linuxuser</code> <em>Replace linux user with your linux user</em></p>
<p>Now, you are ready to issue the command which will mount the remote folder on your current system.<br />
<code>sshfs -o nonempty 192.0.0.1:/remote_folder/full/path /local_folder/full/path</code></p>
<p>Where nonempty means that the remote folder is not empty<br />
192.0.0.1 is the remote server IP address (local network or over the internet)<br />
/remote_folder/full/path is the full path for the remote folder<br />
/local_folder/full/path is the full path for the local folder to mount on (folder should be created first)</p>
<p>Put on your questions in the comment section if you have any & hope have fun networking,<br />
Have a good day all,</p>
<p><strong>Update</strong>: If you wish to unmount the folder you can use the following command<br />
<code>fusermount -u /local_folder/full/path</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/02/17/mounting-remote-folder-fedora/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alienware, Power your linux</title>
		<link>http://kwtlinux.com/2008/02/17/alienware-power-your-linux/</link>
		<comments>http://kwtlinux.com/2008/02/17/alienware-power-your-linux/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 13:35:50 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[hardware]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/02/17/alienware-power-your-linux/</guid>
		<description><![CDATA[
Recently I've been looking up desktop's to use with Linux &#038; for gaming purposes. &#038; I came across Alienware which is extremely powerful for personal desktops, as I wondered around reading about Alienware I came to know that they been around for sometime now. Most review shows that people are highly satisfied with Alienware performance [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://kwtlinux.com/wp-content/gallery_creative_01_big.jpg" alt="Alienware Area-51 7500" /><br />
Recently I've been looking up desktop's to use with Linux & for gaming purposes. & I came across Alienware which is extremely powerful for personal desktops, as I wondered around reading about <a href="http://www.alienware.com/" onclick="javascript:urchinTracker ('/outbound/article/www.alienware.com');">Alienware</a> I came to know that they been around for sometime now. Most review shows that people are highly satisfied with <a href="http://www.alienware.com/" onclick="javascript:urchinTracker ('/outbound/article/www.alienware.com');">Alienware</a> performance specially with Ubuntu graphical interface & since most Alienware running at least a NVIDIA® SLI™ Dual Graphics which makes the Ubuntu experience superb. </p>
<p><a href="http://www.alienware.com/" onclick="javascript:urchinTracker ('/outbound/article/www.alienware.com');">Alienware</a> desktops starts at 1,199$ with the Area-51 7500 & can goes up till 5,149$ with the Area-51 ALX Crossfire. Also it comes with Windows Vista of your choice & can easily be replaced with your favorite linux distribution off course. You can see a list of all the Alienware desktops <a href="http://www.alienware.com/Product_Pages/desktop_all_default.aspx" onclick="javascript:urchinTracker ('/outbound/article/www.alienware.com');">here</a> or list of the laptops <a href="http://www.alienware.com/Product_Pages/notebook_all_default.aspx" onclick="javascript:urchinTracker ('/outbound/article/www.alienware.com');">here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/02/17/alienware-power-your-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hacking PDF Passwords with Ubuntu</title>
		<link>http://kwtlinux.com/2008/02/10/hacking-pdf-passwords-with-ubuntu/</link>
		<comments>http://kwtlinux.com/2008/02/10/hacking-pdf-passwords-with-ubuntu/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 13:50:48 +0000</pubDate>
		<dc:creator>Soul</dc:creator>
		
		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[Hack PDF passwords with Ubuntu]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/02/10/hacking-pdf-passwords-with-ubuntu/</guid>
		<description><![CDATA[You guys might have encountered PDF files with password protection sometime or the other.
Its easier to hack those password protected files now with UBuntu.
You wouldnt be needing those KD sucking software anymore.
Go to console/terminal, type the following code.
    $ pdftops protected.pdf out.ps
$ pstopdf out.ps out.pdf
Where,
protected.pdf is the protected PDF file
out.ps is an [...]]]></description>
			<content:encoded><![CDATA[<p>You guys might have encountered PDF files with password protection sometime or the other.</p>
<p>Its easier to hack those password protected files now with UBuntu.</p>
<p>You wouldnt be needing those KD sucking software anymore.</p>
<p>Go to console/terminal, type the following code.</p>
<p><strong>    $ pdftops protected.pdf out.ps<br />
$ pstopdf out.ps out.pdf</strong></p>
<p>Where,</p>
<p>protected.pdf is the protected PDF file</p>
<p>out.ps is an intermediate output of the protected PDF file</p>
<p>out.pdf is the final cracked PDF file</p>
<p>Thats it for the day. More hacks to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/02/10/hacking-pdf-passwords-with-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Download queue script</title>
		<link>http://kwtlinux.com/2008/01/20/download-queue-script/</link>
		<comments>http://kwtlinux.com/2008/01/20/download-queue-script/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 14:29:07 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[kwtlinux]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/01/20/download-queue-script/</guid>
		<description><![CDATA[This script is one of my fav, am sure there is many times when you wish you could place things in queue &#038; return and see all your files ready. Specially, if you are running a server remotely or if you not using any GUI. This script I usually run in case I have list [...]]]></description>
			<content:encoded><![CDATA[<p>This script is one of my fav, am sure there is many times when you wish you could place things in queue & return and see all your files ready. Specially, if you are running a server remotely or if you not using any GUI. This script I usually run in case I have list of large files over the Internet and need to download them without having to set in front of the computer to submit each file. </p>
<p>First, you will need to get all the files in a text file (notepad) here is an e.g </p>
<p><code>http://kwtlinux.com/file1.zip<br />
http://kwtlinux.com/file2.zip<br />
http://kwtlinux.com/file3.zip<br />
http://kwtlinux.com/file4.zip</code></p>
<p>Save the the text file an lets call it queue.txt, now you will need to write a small set of command to read from the file and begin downloading. </p>
<p><code><br />
for i in `cat queue.txt` ## <em>Will loop inside queue.txt and place each line as a value $i</em><br />
do<br />
  wget $i  ## <em>wget will download the value $i</em><br />
  sleep 4<br />
done</code></p>
<p>That's it!</p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/01/20/download-queue-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting up iptables - firewall</title>
		<link>http://kwtlinux.com/2008/01/20/setting-up-iptables-firewall/</link>
		<comments>http://kwtlinux.com/2008/01/20/setting-up-iptables-firewall/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 00:43:48 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[iptables]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/01/20/setting-up-iptables-firewall/</guid>
		<description><![CDATA[I had great hassle setting up the iptables on one of my online servers. but, thanks to Yousef when he was around on his last visit to Kuwait he showed me great tips and worked out a little script to bring up the firewall. The script is made to block all incoming ports accept apache, [...]]]></description>
			<content:encoded><![CDATA[<p>I had great hassle setting up the iptables on one of my online servers. but, thanks to Yousef when he was around on his last visit to Kuwait he showed me great tips and worked out a little script to bring up the firewall. The script is made to block all incoming ports accept apache, FTP, mysql foreign connections, shell and squid (proxy server).
</p>
<p><code># flush all current rules<br />
iptables -F</p>
<p># set default policies for INPUT, FORWARD, and OUTPUT chains<br />
iptables -P INPUT DROP<br />
iptables -P FORWARD DROP<br />
iptables -P OUTPUT ACCEPT</p>
<p># set access for localhost<br />
iptables -A INPUT -i lo -j ACCEPT</p>
<p># accept packets belonging to established connections<br />
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</p>
<p># accept connection on port 80 (HTTP)<br />
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT</p>
<p># accept ssh and ftp connections<br />
iptables -A INPUT -i eth0 -p tcp --dport 21 -j ACCEPT<br />
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT<br />
iptables -A INPUT -i eth0 -p tcp --dport 8898 -j ACCEPT<br />
iptables -A INPUT -i eth0 -p tcp --dport 3306 -j ACCEPT </p>
<p># save our iptables rules<br />
/etc/init.d/iptables save<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/01/20/setting-up-iptables-firewall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VMWare Fusion + Ubuntu</title>
		<link>http://kwtlinux.com/2008/01/20/vmware-fusion-ubuntu/</link>
		<comments>http://kwtlinux.com/2008/01/20/vmware-fusion-ubuntu/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 00:21:15 +0000</pubDate>
		<dc:creator>Mo Mughrabi</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[vmware]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kwtlinux.com/2008/01/20/vmware-fusion-ubuntu/</guid>
		<description><![CDATA[









It was very easy install Ubuntu using VMWare the only annoying part was downloading Ubuntu (for taking long time). VMWare fusion makes it very easy to put any linux of windows version.. All I needed here the ISO file &#038; specify certain space for the ubuntu. Installation took few minutes but the Ubuntu performance on [...]]]></description>
			<content:encoded><![CDATA[<table border=0>
<tr>
<td><img src="http://kwtlinux.com/wp-content/ss_fusion.jpg" alt="VMWare Fusion" />
</td>
<td><img src="http://kwtlinux.com/wp-content/plus_sign.jpg" alt="plus" /></td>
<td>
</td>
<td><img src="http://kwtlinux.com/wp-content/images.jpeg" alt="Ubuntu" /></td>
</tr>
</table>
<p>It was very easy install Ubuntu using VMWare the only annoying part was downloading Ubuntu (<em>for taking long time</em>). VMWare fusion makes it very easy to put any linux of windows version.. All I needed here the ISO file & specify certain space for the ubuntu. Installation took few minutes but the Ubuntu performance on the VMWare was horrible specially when it comes to the GUI. I would say this tool is good for testing purposes!</p>
]]></content:encoded>
			<wfw:commentRss>http://kwtlinux.com/2008/01/20/vmware-fusion-ubuntu/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
