Dd-wrt as a bridge

I’ve set my new Internet conection. The new ISP offers a low cost connection, low price, and low bandwith, it fits what I was looking for.

Unfortunately I just can plug one single PC, connection it’s controlled by macaddress plus a password. No problem, I’ve buy a Linksys WRT54GL (remember the L letter and the end, it stands for Linux).

First problem solved but I wanna go a little bit farther. I don’t wanna plug my devices through a cable RJ45. So I read out there if I flash the router with the dd-wrt firmware, I may configure it as a bridge and use the same wireless connection as a client and as an Access Point.

Second problem solved. Since I’ve been suffering few delay on my browsing I’ve done a simple speed test ’cause I suppose it was a DNS issue, not a speed issue, and so it was. So I search again about how to set my own DNS server in the router using dd-wrt firmware. I got it, you may read how to set your own DNS in dd-wrt. I choose Open DNS you may use any one, even Google offers you its own DNS (but it seems to me it’s too much information for me to give them, don’t you?).

So third problem solved… As you may notice, I didn’t show you the gory details about everything because it wasn’t my purpose, what I wanna to show you is that free sofware is worthy and that I keep my techie skills alive and kicking.

How to know my own PID in a bash shellscript

I was sure there’s a way to know easily what is the PID in a bash shellscript, without doing anything complicated -such a ps wwaux | grep something– and then I’ve found this quick ref. about less easily guessed commands and codes in Unix shell

By the way, inside a shellscript, the PID of that shellscript is stored in the $$ environment variable, for instance, you may type this on your terminal:
echo "My pid is $$"
and you’ll get something like:
My pid is 14467

Delete a line with sed

I wrote about how append a new line using sed. Now let me copy here how to erase or delete a line using sed if that line has a pattern.

If you want to erase, for instance a line that starts with # character, you should use something like:
sed -e '/^#/d'

If your text comes from a command you may use a pipe by doing something like:

cat /etc/services | sed -e '/^#/d'

or if you want to use on a certain file:

sed -e '/^#/d' fileName.ext
Hope it helps someone…

What nobody says when they choose MS

London Stock Exchange adopted a MS software solution, it was an application with strong demand for real time execution. It was announced as usual, hardware company announced it, and for sure MS takes it as a case of study.

What nobody likes to asume is a bad decision. On IT environments a bad decision may had a deep impact on business processes. You have a look by googling what has happened with London Stock Exchange or you may go straight to the point by reading why London Stock Exchange abandon Microsoft and switch to Linux.

One of my mottos is: we’re not the first ones in having such a problem, sure we aren’t and then I encourage my colleagues to see what somebody has done before to solve a similar problem. By the way if everybody jumps from the window it doesn’t mean we’ve to do it.

If you’re interested about how New York Stock Exchange deals with IT to keep their systems running you gonna know they uses Linux

So… what else could I say… Up to you.