Wednesday, February 18, 2009

install ubuntu/debian development tools

apt-get install build-essential

Thursday, January 22, 2009

Cannot copy more than 1 Gb file in AIX

You have to change your limits

1. Open /etc/security/limits and assign to your username thw following:
oracle:
fsize = -1
core = -1
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = -1

How to make arrows work in AIX

Just add the following entries in your /home/username/.profile

alias __A=`echo "\020"`
alias __B=`echo "\016"`
alias __C=`echo "\006"`
alias __D=`echo "\002"`
alias __H=`echo "\001"`
set -o emacs

Wednesday, January 21, 2009

How to start daemons at the system startup in AIX servers

AIX 5.3

1. Create a rc.local file in /etc/
2. Apply proper permissions
a. chown root:sys /etc/rc.local
b. chmod 744 /etc/rc.local
3. Add an entry in /etc/inittab so whenever the server is rebooted the script will be started.
a. mkitab -i rcnfs "rclocal:2:wait:/etc/rc.local > /dev/console 2>&1"
4. add your services to rc.local

Friday, December 19, 2008

Ping does not respond after 8 or 9 successful replies.

Today I had an interesting issue on Ubuntu 8.10.

We have 2 NICS on the server one has the following ip 172.16.20.10/16 and another one has 172.16.60.10/16. I know they are on the same network though but we had to do it in order to accomplish some routing issues.

So here is the problem:
When I try to ping our ISPs Gateway it succesful pings till the eighth or ninth reply and stops replying.
On ubuntu 6.10 it works fine.

So here is the solution:

Since we have 2 NICs with the same network address when the second one tries to reach a remote server the Kernel thinks it is a spoofing attack since by default it is enable source address verification against spoofing attacks.
So what you have to do is to change the rp_filter kernel parameter to 0 (zero).

1. Edit 10-network-security.conf
vi /etc/sysctl.d/10-network-security.conf
change to 0 (zero)
2. invoke-rc.d procps start

This is it!

Leonardo

Wednesday, November 26, 2008

Error: Could not stat() command file '/var/lib/nagios2/rw/nagios.cmd'!

stop nagios2
/etc/nagios2# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios2/rw
/etc/nagios2# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios2
start nagios2

Tuesday, November 25, 2008

how to convert vdi to vmdk

1. You have to install qemu.
http://free.oszoo.org/ftp/qemu/win32/release/QemuInstall-0.7.2.exe

2. cd c:\Program files\qemu
qemu-img.exe convert -O vmdk hdd.vdi hdd.vmdk