Re: 13th July 2009 Meetup

xaitax wrote:
dan_r wrote:

At least that's what Eric Raymond likes to say.

True.
And - sorry to say - he's a fool.

I'm going to quote you again and say 'what gives you the right to say that?'

I'm kidding, though. Everyone has their own opinions, like I think Stallman's awesome for the FSF, GPL and GNU, but I think he's a bit of a cad when he insists that it should be 'guh-noo slash linux' instead of just 'linux.'

ESR'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: http://www.catb.org/~esr/halloween/halloween4.html

And recently he'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's even specific to Iranian IP addresses, excluding those of government.

So what's not to like?

Let's just pretend I said something amusing here and you consider me awesome for the rest of your life.
Signature objective: ACCOMPLISHED.

v4sw6+8CHPSUYhw5ln6pr6ck7+9ma6+9u8FLNOw2DNWXm3l8DGLRSUOAamix/i52N0e4+9t3Mb9AGHMOPRSTen7a19s4+5r5p-1.25/-5.08g8ACPTV

Re: 13th July 2009 Meetup

by hacking i meant this definition.
1. a programmer who breaks into computer systems in order to steal or change or destroy information.

Re: 13th July 2009 Meetup

noussh wrote:

by hacking i meant this definition.
1. a programmer who breaks into computer systems in order to steal or change or destroy information.

Thank you for your explanation ... I'm glad I still understand some English despite what some people think!

Re: 13th July 2009 Meetup

linuxhat wrote:
noussh wrote:

by hacking i meant this definition.
1. a programmer who breaks into computer systems in order to steal or change or destroy information.

Thank you for your explanation ... I'm glad I still understand some English despite what some people think!

Please do not imply that I think you are stupid.

And I claimed that he probably meant kernel hacking in all likeliness.

AdmiralA wrote:

In all likeliness Zak, he probably meant kernel hacking, since he mentioned kernel compilation right after that.

Note that 'probably' and 'in all likeliness' do not mean 'for absolute certainty.'

Last edited by AdmiralA (09-Jul-2009 19:35:07)

Let's just pretend I said something amusing here and you consider me awesome for the rest of your life.
Signature objective: ACCOMPLISHED.

v4sw6+8CHPSUYhw5ln6pr6ck7+9ma6+9u8FLNOw2DNWXm3l8DGLRSUOAamix/i52N0e4+9t3Mb9AGHMOPRSTen7a19s4+5r5p-1.25/-5.08g8ACPTV

Re: 13th July 2009 Meetup

So guys? Who is presenting what? Have you guys decided yet?

The votes are for:
Shell Scripting
MySQL Replication

Re: 13th July 2009 Meetup

Well, I was going to give a few short-ish examples of shell scripting. 
I am far from an expert in this field, so if anyone wants to join in and show more that would be nice.

Oh, and I might be a bit late getting to the meeting (up to 1hour).  Not sure about the time, but I'll be there.

Last edited by dan_r (12-Jul-2009 15:43:22)

Re: 13th July 2009 Meetup

Hey guys, I hoped i could make it, but no chance.
I have "Otitis externa" [1] and am almost deaf on my left ear. sad

[1] http://en.wikipedia.org/wiki/Otitis_externa

Sorry, but I hope you will a have a great and interesting meeting!

Regards,
Alex

Re: 13th July 2009 Meetup

xaitax wrote:

Hey guys, I hoped i could make it, but no chance.
I have "Otitis externa" [1] and am almost deaf on my left ear. sad

I hope you will get well soon. That's a punishment for not answering my call mad


dan_r wrote:

Well, I was going to give a few short-ish examples of shell scripting.

Hi Dan,
That's all what we need. You can start by basics and then some examples.
Thanks.


hmimthiaz wrote:

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 smile

Hi Imthi,
Would you like to do the Apache session? Alex will not present MySQL Replication

Re: 13th July 2009 Meetup

we can play it by ear (haha), and maybe get some netcat stuff in there too!

Re: 13th July 2009 Meetup

Sure, it depends on whether I'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't feel comfortable driving when he's sleepy.

I was expecting to make it, but now it totally depends on whether my Dad will actually bother to take a nap.

Let's just pretend I said something amusing here and you consider me awesome for the rest of your life.
Signature objective: ACCOMPLISHED.

v4sw6+8CHPSUYhw5ln6pr6ck7+9ma6+9u8FLNOw2DNWXm3l8DGLRSUOAamix/i52N0e4+9t3Mb9AGHMOPRSTen7a19s4+5r5p-1.25/-5.08g8ACPTV

Re: 13th July 2009 Meetup

As requested, here are some snippets from last night:

A verbose command for downloading the top 3 videos from youtube:

wget http://www.youtube.com/ -O - 2> /dev/null | grep "<a href" | sed 's/.*<a href/<a href/' |cut -f2 -d'"' | grep "popular" | cut -f1 -d'&' | head -n 3 | sed 's/^/http:\/\/youtube.com/' | xargs -i clive {} \;

For the web server, here are the contents of a config file that must be added to /etc/xinetd.d/ 
(The name of the file doesn't matter):

service www
{
    port           = 80
    protocol       = tcp
    wait           = no
    user           = root
    server         = /home/dan/uaelug/httpd/httpd
}

And here's the example web server in bash script (for educational use only).

#! /bin/bash

docroot="/home/dan/uaelug/httpd"

# 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='\r'
while read line; do
  test "$line" == $'\r' && break
done

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

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

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

fi

Reference: http://www.debian-administration.org/ar … ell_script

Re: 13th July 2009 Meetup

It was a great session Dan! I loved it. I think we need more Shell scripting sessions smile

Re: 13th July 2009 Meetup

Created a separate Thread here:
http://uaelug.org/topic/38/shellskripti … webserver/

/xai