Skip to content

Finding out your IP address by DNS querying

A little trick to find out your outgoing IP address through a DNS query:

iarlyy@wolfman $ dig myip.opendns.com @resolver1.opendns.com +short
66.7.199.108

This is it!… Happy Linuxing!

Tools for performance monitoring on Linux

For each single thing on Linux has a tool to monitor their performance, below a few:

top – process activity
vmstat – system activity, hardware and system information
uptime – average of system load
ps,pstree – list process
free – memory usage
iostat – average of CPU, disk activity
sar – collect and report system activity
mpstat – multiprocessor usage
pmap – process memory usage
netstat – network statistics
iptraf – real time network statistics
tcpdump – network traffic monitoring
strace – system calls
dstat – Versatile resource statistics
htop – process viewer for Linux, similar to top

Thanks to Scott Baker and Andy Burns for remember me dstat and htop.
Happy hacking!

Google search page background

Fedora 13, Rock it =)

IP failover with UCARP on CentOS

UCARP allow two or more hosts share a common IP address providing a fail over solution , my example uses two hosts:

#host 1 – bob
Real IP: 10.1.2.4

#host 2 – joe
Real IP: 10.1.2.6

Virtual IP: 10.1.2.5

Make sure that bob and joe is communicating.

## UCARP installation on both is same:

# yum install ucarp -y

It depends repository EPEL installed and enabled, more information about look at http://fedoraproject.org/wiki/EPEL

## Basic Configuration ( bob )

Create a copy of example file for our personal configuration

# cp /etc/ucarp/vip-001.conf.example /etc/ucarp/vip-001.conf

Edit new file as described below:

#bob’s ID
ID=001

# Network Interface
BIND_INTERFACE=”eth0″

#Real bob’s IP
SOURCE_ADDRESS=”10.1.2.4″

# Virtual IP
VIP_ADDRESS=”10.1.2.5″

# Carp Password
PASSWORD=”vip-pw”

# Other Options, see documentation for more information
OPTIONS=”–shutdown –preempt”

## Basic Configuration ( joe )

Create a copy of example file for our personal configuration

# cp /etc/ucarp/vip-001.conf.example /etc/ucarp/vip-001.conf

Edit new file as described below:

#joe’s ID – make sure its the same on all nodes
ID=001

# Network Interface
BIND_INTERFACE=”eth0″

#Real bob’s IP
SOURCE_ADDRESS=”10.1.2.6″

# Virtual IP
VIP_ADDRESS=”10.1.2.5″

# Carp Password
PASSWORD=”vip-pw”

# Other Options, see documentation for more information
OPTIONS=”–shutdown –preempt”

PASSWORD and VIP_ADDRESS must be same on both hosts

## Start UCARP

bob# service ucarp start

joe# service ucarp start

My purpose here is a fail over solution for a Web server I have here, I tested this way:

turned off bob and looked if I still accessing my web server, I noticed some delay ( around 10-30s ), after it all working fine, of course you have to think about your app because it must be synchronized, if not, when host1 has down time, host2 will be outdated…

I wanted only show my experience testing fail over using ucarp, until today, I didn’t know ucarp

Thanks to Brian…

Converting CHM to PDF

[enUS]
Googling about a tool online to convert a CHM ( M$ Windows Help File ), I don’t found them

Trying my luck at Fedora repositories I found the chm2pdf… yum should have “I’m feeling luck” option heh, just kidding…

Ok lets work

1 – Install chm2pdf:
# yum install chm2pdf -y

2 – The basic syntax is very complex to convert some chm to pdf, look below:
# chm2pdf –book yourCHM.chm outputname.pdf

Too hard uh?

I noticed when file name has spaces this doesn’t work as expected… I don’t tested better more about.

Anyway, thats all!

[ptBR]

Googlando por uma ferramenta online que convertesse um CHM ( Arquivo de Ajuda da M$ ), não encontrei nenhuma

Tentando minha sorte nos repositórios do Fedora eu encontrei chm2pdf… yum deveria ter uma opção “Estou com sorte” heh, brincadeira…

Vamo lá:

1 – Instalar chm2pdf:

# yum install chm2pdf -y

2 – A sintaxe básica é muito complexa para converter um chm para pdf, segue abaixo:

# chm2pdf –book yourCHM.chm outputname.pdf

Dificil hein?

Eu vi que quando o nome do arquivo tem espaço o mesmo não funciona como deveria, não testei mais..

De qualquer forma, é isso ai!

Take a look on new Google search Page

1 – Open Google search page for your country ( like me google.com.br )
2 – Click on “Google.com in english”
3 – Paste this javascript on address bar

javascript:void(document.cookie=”PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com”);

4 – Click again on “Google.com in english”

** Note: Stay connected out of your google account.

Enjoy new Google search interface = )

Warning: This is not working anymore!

Found a Fedora Ship at Antarctica

[en]
Reading my news today I found a curious picture, a Fedora Ship??
LoL

[pt-BR]
Lendo minhas notícias hoje eu encontrei uma imagem curiosa ( Acima ), será um navio do Fedora?
LoL