<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[UAE Linux User Group - 13th July 2009 Meetup]]></title>
	<link rel="self" href="http://uaelug.org/feed/atom/topic/30/"/>
	<updated>2009-07-14T05:57:40Z</updated>
	<generator>PunBB</generator>
	<id>http://uaelug.org/topic/30/13th-july-2009-meetup/</id>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/252/#p252"/>
			<content type="html"><![CDATA[<p>Created a separate Thread here: <br /><a href="http://uaelug.org/topic/38/shellskripting-simple-webserver/">http://uaelug.org/topic/38/shellskripti &#133; webserver/</a></p><p>/xai</p>]]></content>
			<author>
				<name><![CDATA[xaitax]]></name>
				<uri>http://uaelug.org/user/3/</uri>
			</author>
			<updated>2009-07-14T05:57:40Z</updated>
			<id>http://uaelug.org/post/252/#p252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/249/#p249"/>
			<content type="html"><![CDATA[<p>It was a great session Dan! I loved it. I think we need more Shell scripting sessions <img src="http://uaelug.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[smshuja]]></name>
				<uri>http://uaelug.org/user/8/</uri>
			</author>
			<updated>2009-07-14T05:46:54Z</updated>
			<id>http://uaelug.org/post/249/#p249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/247/#p247"/>
			<content type="html"><![CDATA[<p>As requested, here are some snippets from last night:</p><p>A verbose command for downloading the top 3 videos from youtube:<br /></p><div class="codebox"><pre><code>wget http://www.youtube.com/ -O - 2&gt; /dev/null | grep &quot;&lt;a href&quot; | sed &#039;s/.*&lt;a href/&lt;a href/&#039; |cut -f2 -d&#039;&quot;&#039; | grep &quot;popular&quot; | cut -f1 -d&#039;&amp;&#039; | head -n 3 | sed &#039;s/^/http:\/\/youtube.com/&#039; | xargs -i clive {} \;</code></pre></div><p>For the web server, here are the contents of a config file that must be added to /etc/xinetd.d/&nbsp; <br />(The name of the file doesn&#039;t matter):</p><div class="codebox"><pre><code>service www
{
    port           = 80
    protocol       = tcp
    wait           = no
    user           = root
    server         = /home/dan/uaelug/httpd/httpd
}</code></pre></div><p>And here&#039;s the example web server in bash script (for educational use only).</p><div class="codebox"><pre><code>#! /bin/bash

docroot=&quot;/home/dan/uaelug/httpd&quot;

# First line holds the HTTP request
read request

# Keep swallowing lines until you get a blank one
# Note: HTTP lines are terminated with CR LF, and CR=&#039;\r&#039;
while read line; do
  test &quot;$line&quot; == $&#039;\r&#039; &amp;&amp; break
done

# Trim the request string and log it
url=${request#GET }
url=${url% HTTP/*}
echo $url &gt;&gt; /home/dan/uaelug/httpd/log.txt

# Serve the request if the file exists, otherwise 404
if [ -f &quot;${docroot}/${url}&quot; ]; then
echo -e &quot;HTTP/1.1 200 OK\r
Content-Type: text/html; charset=ISO-8859-1\r
\r&quot;
cat ${docroot}/${url}
echo -e &quot;\r&quot;

else
echo -e &quot;HTTP/1.1 404 Not Found\r
Content-Type: text/html; charset=UTF-8\r
\r&quot;
cat ${docroot}/404.html
echo -e &quot;\r&quot;

fi</code></pre></div><p>Reference: <a href="http://www.debian-administration.org/article/A_web_server_in_a_shell_script">http://www.debian-administration.org/ar &#133; ell_script</a></p>]]></content>
			<author>
				<name><![CDATA[dan_r]]></name>
				<uri>http://uaelug.org/user/9/</uri>
			</author>
			<updated>2009-07-14T04:25:45Z</updated>
			<id>http://uaelug.org/post/247/#p247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/246/#p246"/>
			<content type="html"><![CDATA[<p>Sure, it depends on whether I&#039;m able to make it today. I pulled an all-nighter, which is no worries, but so did my Dad for some strange reason, and he doesn&#039;t feel comfortable driving when he&#039;s sleepy.</p><p>I was expecting to make it, but now it totally depends on whether my Dad will actually bother to take a nap.</p>]]></content>
			<author>
				<name><![CDATA[AdmiralA]]></name>
				<uri>http://uaelug.org/user/11/</uri>
			</author>
			<updated>2009-07-13T10:08:56Z</updated>
			<id>http://uaelug.org/post/246/#p246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/245/#p245"/>
			<content type="html"><![CDATA[<p>we can play it by ear (haha), and maybe get some netcat stuff in there too!</p>]]></content>
			<author>
				<name><![CDATA[dan_r]]></name>
				<uri>http://uaelug.org/user/9/</uri>
			</author>
			<updated>2009-07-13T09:30:17Z</updated>
			<id>http://uaelug.org/post/245/#p245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/244/#p244"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>xaitax wrote:</cite><blockquote><p>Hey guys, I hoped i could make it, but no chance.<br />I have &quot;Otitis externa&quot; [1] and am almost deaf on my left ear. <img src="http://uaelug.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>I hope you will get well soon. That&#039;s a punishment for not answering my call <img src="http://uaelug.org/img/smilies/mad.png" width="15" height="15" alt="mad" /></p><br /><div class="quotebox"><cite>dan_r wrote:</cite><blockquote><p>Well, I was going to give a few short-ish examples of shell scripting.</p></blockquote></div><p>Hi Dan,<br />That&#039;s all what we need. You can start by basics and then some examples.<br />Thanks.</p><br /><div class="quotebox"><cite>hmimthiaz wrote:</cite><blockquote><p>We can do something with Apache and explain how to go about setting up a basic webserver. Then we can go in details if we people are interested <img src="http://uaelug.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Hi Imthi,<br />Would you like to do the Apache session? Alex will not present MySQL Replication</p>]]></content>
			<author>
				<name><![CDATA[linuxhat]]></name>
				<uri>http://uaelug.org/user/10/</uri>
			</author>
			<updated>2009-07-13T07:03:27Z</updated>
			<id>http://uaelug.org/post/244/#p244</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/243/#p243"/>
			<content type="html"><![CDATA[<p>Hey guys, I hoped i could make it, but no chance.<br />I have &quot;Otitis externa&quot; [1] and am almost deaf on my left ear. <img src="http://uaelug.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>[1] <a href="http://en.wikipedia.org/wiki/Otitis_externa">http://en.wikipedia.org/wiki/Otitis_externa</a></p><p>Sorry, but I hope you will a have a great and interesting meeting!</p><p>Regards,<br />Alex</p>]]></content>
			<author>
				<name><![CDATA[xaitax]]></name>
				<uri>http://uaelug.org/user/3/</uri>
			</author>
			<updated>2009-07-13T05:57:25Z</updated>
			<id>http://uaelug.org/post/243/#p243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/242/#p242"/>
			<content type="html"><![CDATA[<p>Well, I was going to give a few short-ish examples of shell scripting.&nbsp; <br />I am far from an expert in this field, so if anyone wants to join in and show more that would be nice.</p><p>Oh, and I might be a bit late getting to the meeting (up to 1hour).&nbsp; Not sure about the time, but I&#039;ll be there.</p>]]></content>
			<author>
				<name><![CDATA[dan_r]]></name>
				<uri>http://uaelug.org/user/9/</uri>
			</author>
			<updated>2009-07-12T11:39:13Z</updated>
			<id>http://uaelug.org/post/242/#p242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/240/#p240"/>
			<content type="html"><![CDATA[<p>So guys? Who is presenting what? Have you guys decided yet?</p><p>The votes are for:<br />Shell Scripting <br />MySQL Replication</p>]]></content>
			<author>
				<name><![CDATA[linuxhat]]></name>
				<uri>http://uaelug.org/user/10/</uri>
			</author>
			<updated>2009-07-12T11:18:07Z</updated>
			<id>http://uaelug.org/post/240/#p240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/229/#p229"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>linuxhat wrote:</cite><blockquote><div class="quotebox"><cite>noussh wrote:</cite><blockquote><p>by hacking i meant this definition. <br />1. a programmer who breaks into computer systems in order to steal or change or destroy information.</p></blockquote></div><p>Thank you for your explanation ... I&#039;m glad I still understand some English despite what some people think!</p></blockquote></div><p>Please do not imply that I think you are stupid.</p><p>And I claimed that he <em>probably</em> meant kernel hacking <em>in all likeliness.</em></p><div class="quotebox"><cite>AdmiralA wrote:</cite><blockquote><p>In all likeliness Zak, he probably meant kernel hacking, since he mentioned kernel compilation right after that.</p></blockquote></div><p>Note that &#039;probably&#039; and &#039;in all likeliness&#039; do <strong>not</strong> mean &#039;for absolute certainty.&#039;</p>]]></content>
			<author>
				<name><![CDATA[AdmiralA]]></name>
				<uri>http://uaelug.org/user/11/</uri>
			</author>
			<updated>2009-07-09T15:07:06Z</updated>
			<id>http://uaelug.org/post/229/#p229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/227/#p227"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>noussh wrote:</cite><blockquote><p>by hacking i meant this definition. <br />1. a programmer who breaks into computer systems in order to steal or change or destroy information.</p></blockquote></div><p>Thank you for your explanation ... I&#039;m glad I still understand some English despite what some people think!</p>]]></content>
			<author>
				<name><![CDATA[linuxhat]]></name>
				<uri>http://uaelug.org/user/10/</uri>
			</author>
			<updated>2009-07-09T14:09:02Z</updated>
			<id>http://uaelug.org/post/227/#p227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/226/#p226"/>
			<content type="html"><![CDATA[<p>by hacking i meant this definition. <br />1. a programmer who breaks into computer systems in order to steal or change or destroy information.</p>]]></content>
			<author>
				<name><![CDATA[noussh]]></name>
				<uri>http://uaelug.org/user/20/</uri>
			</author>
			<updated>2009-07-09T13:19:23Z</updated>
			<id>http://uaelug.org/post/226/#p226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/221/#p221"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>xaitax wrote:</cite><blockquote><div class="quotebox"><cite>dan_r wrote:</cite><blockquote><p>At least that&#039;s what Eric Raymond likes to say.</p></blockquote></div><p>True. <br />And - sorry to say - he&#039;s a fool.</p></blockquote></div><p>I&#039;m going to quote you again and say &#039;what gives you the right to say that?&#039;</p><p>I&#039;m kidding, though. Everyone has their own opinions, like I think Stallman&#039;s awesome for the FSF, GPL and GNU, but I think he&#039;s a bit of a cad when he insists that it should be &#039;guh-noo slash linux&#039; instead of just &#039;linux.&#039;</p><p>ESR&#039;s alright, I found his Halloween documents a good read, especially #4 where he drafts a whole script of Torvalds as Robin Hood because Microsoft referred to him as such. You can read it here: <a href="http://www.catb.org/~esr/halloween/halloween4.html">http://www.catb.org/~esr/halloween/halloween4.html</a></p><p>And recently he&#039;s been working to combat internet censorship in Iran, and has devised a set of instructions and a proxy configuration file for Squid specifically to allow the Iranian public unrestricted internet access. It&#039;s even specific to Iranian IP addresses, excluding those of government.</p><p>So what&#039;s not to like?</p>]]></content>
			<author>
				<name><![CDATA[AdmiralA]]></name>
				<uri>http://uaelug.org/user/11/</uri>
			</author>
			<updated>2009-07-08T18:56:38Z</updated>
			<id>http://uaelug.org/post/221/#p221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/220/#p220"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>dan_r wrote:</cite><blockquote><p>At least that&#039;s what Eric Raymond likes to say.</p></blockquote></div><p>True. <br />And - sorry to say - he&#039;s a fool.</p>]]></content>
			<author>
				<name><![CDATA[xaitax]]></name>
				<uri>http://uaelug.org/user/3/</uri>
			</author>
			<updated>2009-07-08T14:33:01Z</updated>
			<id>http://uaelug.org/post/220/#p220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 13th July 2009 Meetup]]></title>
			<link rel="alternate" href="http://uaelug.org/post/219/#p219"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>lijeesh wrote:</cite><blockquote><p>The proper definition of hacker is as following</p></blockquote></div><p>At least that&#039;s what Eric Raymond likes to say.</p>]]></content>
			<author>
				<name><![CDATA[dan_r]]></name>
				<uri>http://uaelug.org/user/9/</uri>
			</author>
			<updated>2009-07-08T13:57:24Z</updated>
			<id>http://uaelug.org/post/219/#p219</id>
		</entry>
</feed>
