...making Linux just a little more fun!


This month's answers created by:

[ Anderson Silva, Amit Kumar Saha, Ben Okopnik, Kapil Hari Paranjape, Mulyadi Santosa, Rick Moen, Suramya Tomar, Thomas Adam ]
...and you, our readers!

Gazette Matters

Small grammar correction on my article

Anderson Silva [afsilva at gmail.com]

Wed, 2 Sep 2009 01:15:24 -0400

The line:

Where 90 and 270 is how many degrees the turtle should turn given the right or left command.

Should probably read:

Where 90 and 270 are how many degrees the turtle should turn given the right or left command.

Apologies for not catching that earlier.


[ Thread continues here (7 messages/4.82kB) ]

[OT] Meetup?

Jimmy O'Regan [joregan at gmail.com]

Tue, 15 Sep 2009 14:03:22 +0100

I'll be in San Francisco for a couple of days next month (Google Mentor Summit). Will anyone else be around?

[ Thread continues here (3 messages/1.69kB) ]

a bit misleading sentence in Back Page of LG #166:)

Mulyadi Santosa [mulyadi.santosa at gmail.com]

Wed, 2 Sep 2009 22:50:26 +0700

Hi all

Accidentally I click the back page of LG #166 (http://linuxgazette.net/166/lg_backpage.html). There, it is written

"special thanks are due to Mulyadi Santosa, who brought Pete Trbovich's "Doomed to Obscurity" trenchantly funny cartoons to our attention"

I checked my Sent mail folder of Gmail and I found no such message indicating I told about that cartoon. perhaps Kat was mistakenly giving credit to me? :) I just don't want to steal someone else's credit :)

Thanks in advance for your attention...


[ Thread continues here (5 messages/4.35kB) ]

Linux Gazette in Serbian language

[zarko at googlux.com]

Sun, 13 Sep 2009 13:54:44 -0400 (EDT)

Hi all

Would like to introduce myself and this site, that I hope will become popular place for Linux Gazette translations on Serbia language.

Most of my work evolves around Solaris Administration, but sometimes I also need to do Linux work and Gazette is great source of helpful tips.

Despite my extremely busy professional (and personal) schedule, I'll try to find time for translation, but I also encourage people from former Yugoslavia to contact me and submit their translations. They all know that there is no much difference between languages like Serbian, Croatian, Bosnian, etc, so I am willing to publish all translation (both in Cyrillic or Latin alphabet) .

Cheers Zarko http://www.googlux.com/linuxgazette/

[ Thread continues here (2 messages/2.43kB) ]

Still Searching

iptables configuration question

J. Bakshi [j.bakshi at unlimitedmail.org]

Thu, 3 Sep 2009 21:39:36 +0530

Hello list,

Hope you all are well. It is nearly 2 weeks I am working with iptables configuration and stuck poorly at a very interesting point. Among several others feature of my firewall, one I like to implement is limit_total_connection_of_a_service. There is already rate-limiter like a user can't get more than 2 ftp connection per min from the same source IP. I have used hashlimit for this. It can also be extended to restrict *all total* 2 connection per min .

- But what to do to restrict all total 2 ftp connection from a particular source ?

- And to restrict all together 5 ftp connection to the server ?

Could any one suggest a iptables configuration or iptables module to achieve these two objectives ? Thanks

PS: Please CC me.

[ Thread continues here (2 messages/2.09kB) ]

Regarding How can Define congestion windows in Fedora

Ben Okopnik [ben at linuxgazette.net]

Fri, 18 Sep 2009 23:06:39 -0500

----- Forwarded message from brahm sah <itsbds@yahoo.co.in> -----

Date: Thu, 17 Sep 2009 11:41:36 +0530 (IST)
From: brahm sah <itsbds@yahoo.co.in>
Subject: Regarding How can Define congestion windows in Fedora
To: editor@linuxgazette.net
Respected Sir.

I am Mr. Brahm Deo Sah, I am Master of Technology (Computer Science) student in M.G.M,'s College of Engnieering Nanded (Maharashtra), India. I have selected one ═IEEE Transaction papers ═"Accumulation based congestion control" as my dessertation topic. It would be really great if you can help me out in implementation of this paper. i have some proble to define the═

═1.Congestion ═ windows Size 2.algorithms. in NS-2 with Linux(Fedora)

Thanking you.

Mr. Brahm Deo sah India

Our Mailbag

Apache -- Rewrite on hiding Webapp context from URL

Britto I [britto_can at yahoo.com]

Sun, 6 Sep 2009 04:06:55 -0700 (PDT)


I would like to have some configuration advice from you guys for apache.

I have Apache 2.2.8 running in RHEL box.

I have multiple webapps running in tomcat and connected through apache via ajp proxy.

Now we have the Rewrite rules..like

RewriteRule ^/Context1$ /Context1/ [R]
RewriteRule ^/Context2$ /Context2/ [R]
RewriteRule ^/$ /DefaultContext/ [R]

Here Context1,Context2, DefaultContext all are different webapps hosted by tomcat.

When somebody calls for www.mysite.com it goes to www.mysite.com/DefaultContext/ now.

How can I disable or hide the Defaultcontext being displayed in the URL.

So that if there is some hit at www.mysite.com/DefaultContext/DoAction it should display the user www.mysite.com/DoAction

Any advice guys ..

Thanks & regards, Britto

[ Thread continues here (7 messages/3.38kB) ]

failed to boot into RAID-5 root filesystem in Ubuntu 8.04

Mulyadi Santosa [mulyadi.santosa at gmail.com]

Fri, 4 Sep 2009 21:46:28 +0700

Hi Gang...

Today I try to setup a server using Ubuntu 8.04. This PC has 3 hard disks and I plan to bond them as RAID 5 device.

To achieve that, during setup stage, I create 6 partitions. 3 of them are clustered as RAID 5 and mounted as /, while the rest are also made as RAID 5 device and formatted as swap.

There was a warning telling me that those new RAID devices won't be recognized until I reboot the machine. I hit the Continue button and proceed with package installation etc. Everything seems OK and finally the installer ask me to remove the DVD and reboot.

Here comes the trouble, the freshly installed Ubuntu won't boot. My partner told me that it could due to unfinished RAID synchronization. So again I boot the Ubuntu DVD, this time I pick "rescue mode" and go into shell (making /dev/md0 the root fs). In this shell, I did "cat /proc/mdstat" and found out the sync is still on the way. So I wait until it hit 100% and reboot the machine again. But still, no luck.

Thus, I wonder, is this because I pick RAID 5 device as root fs? Is this a known bug (or limitation of GRUB)? I came to this conclusion after reading http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/ (the 8th comment).

Advices are greatly appreciated. Thank you in advance for your attention .....


[ Thread continues here (7 messages/7.58kB) ]

Calling Linux Application From a Windows Application

Rennie Johnson [renniejohnson at adelphia.net]

Sat, 5 Sep 2009 09:34:34 -0700

Oh great Linux Gurus:

I read your article on VMWare about running Linux apps in windows.

[[[ He probably means Jimmy O'Regan's article, here: http://linuxgazette.net/106/oregan.html -- Kat ]]]

I'm writing a monster OpenGL application on Windows. I want to be able to call a Linux shell application from within my program, is it is not available on Windows. I use Visual C++ 2008.net.

Any ideas?

Best regards,

Rennie Johnson

[ Thread continues here (4 messages/5.42kB) ]

asking for recommendation for Linux compatible external DVD RW drive

Mulyadi Santosa [mulyadi.santosa at gmail.com]

Mon, 7 Sep 2009 22:41:26 +0700

Hi Gang...

Googling here and there, I found very little web sites that talks about recommended Linux-compatible DVD RW drive. So, I try my luck here...perhaps you have recommendation? Preferrably below US$ 100? FYI I am currently using Fedora 9 and kernel

Thanks in advance for your help and attention...


[ Thread continues here (3 messages/2.60kB) ]

Can anyone with an Indian locale test these for me?

Suramya Tomar [security at suramya.com]

Fri, 11 Sep 2009 07:27:13 +0530

Hi Jimmy,

> One of our users is complaining that our transliterator doesn't work;
> the few of us who have tested it all find that it works for us. Now,
> he says it only works because our locales are wrong(?). I'm just
> wondering if anyone other than him can get the incorrect result: i.e.,
> that 'ा' fails to transliterate to 'ા' -- I reproduced the same test
> using standard tools belo, because they do the same thing as our
> transliterator.

Just saw this email, so tried it out on my system. This is what I got:

suramya@Wyrm:/usr/lib/locale$ echo $LANG
suramya@Wyrm:/usr/lib/locale$ echo राम|tr 'राम' 'રામ'
suramya@Wyrm:/usr/lib/locale$ echo राम|sed -e 's/र/ર/g'|sed -e 's/ा/ા/g' 
|sed -e 's/म/મ/g'
suramya@Wyrm:/usr/lib/locale$ echo राम|perl /home/suramya/Temp/test.pl

It seems to be working fine for me... Hope this helps.

- Suramya

[ Thread continues here (3 messages/3.34kB) ]

Talkback: Discuss this article with The Answer Gang

Copyright © 2009, . Released under the Open Publication License unless otherwise noted in the body of the article. Linux Gazette is not produced, sponsored, or endorsed by its prior host, SSC, Inc.

Published in Issue 167 of Linux Gazette, October 2009