Do any of you are the loyal user of Internet Download Manager? Do you always set the allowed connection to (max) 16? Do you use that configuration when you use a shared internet connection? If you answer yes to all those question, than probably you should aware that you are actually a bandwidth abuser.

18Mb?!@

18 Mbps ???????

But there are things that make you are not the bandwidth abuser:

  • you own the connection and you yourself paid it but you kindly shared it with some of your friends.
  • you set that hell of maximum connections ONLY when you SURELY know that you are the only host that up on your network

    the cheap script

The thing is, some folks doesn’t care how IDM magically boost up their download speed. While these folks happily download all the stuff they found in the internet starting from songs then ringtones and finally nice porn samples, I have to wait my packet to be delivered but sometimes it just forgotten. So, I have to wait until they finish their stuff usually for 15 minutes before connected again. Ow, and I have tried to sniff them, that is how I know why I often loss my connectivity.

Although I paid the same bill with them, I can’t just tell them to stop downloading stuff while I’m trying to done my tasks eh..? What else you might think they can do with the internet besides DOWNLOADING STUFF? :p Then, all I can do is to wait until they finish their stuff.

It is not a good experience to press the reload button for 15 minutes repeatedly. Or, ping google.com for several times until the computer knows that google.com is exist. There are much things to do than banging your head waiting the connectivity come back home.

So I came with this idea. A bash script for checking my current connectivity. This script is basically done some easy tasks, like “ping” and “play”. The idea is,when I loss my connectivity, I run this script then it play some sounds to let me know that I still have no connectivity.But when I connected, it play other sounds like “ding!” or “Aha!” or “Who lives in the pineaple house under the sea..” and then stop the script.

#!/bin/bash -x
limiter=0;
while [ $limiter -lt 10 ];do
chek=$(ping google.com -c 1 | awk '/data/ {print $7}')
if [ "$chek" = "data." ]; then
play /home/your-pc/hack/snd/Alarm.wav
exit 0
else
play /home/your-pc/hack/snd/gitar.wav
let limiter+=1
fi
done

Okay, so thats the scripts, just a few lines. But maybe you just need less than 7 line :) .

I’m gonna make my own documentation for this simple script. If you interested please take a look :)

Advertisement