terça-feira, 13 de Outubro de 2009

Compile - NginX under Linux

== Tips for compiling NginX ==

After downloading nginx tarball you also need:
- zlib.tar.gz
- openssl.tar.gz


1 - make and install zlib
2 - uncompress openssl tarball
3 - Configure nginx script:
   - ./configure \
      --with-http_ssl_module --with-openssl=../openssl-uncompress-dir \
      --prefix=/srv/your-dir
4 - make
5 - make install



 That should give a working nginX server ;)


quinta-feira, 10 de Setembro de 2009

Linux - diags commands, Get hard / soft Info

Here are some commands that we can use to obtain info from a Linux host:


# dmesg              -- show bootup messages / detected hardware

top                -- show cpu/mem/swap usage and running processes
# mii-tool           -- show nic infos
# du -xh | sort      -- show disk usage

# ps -exfcl          -- show processes running - list 
# rpm -qa            -- show packages.version installed - (redhat/fedora)
# cat /etc/fstab     -- show filesystem table

# cat /proc/cpuinfo  -- show cpu information
# cat /proc/devices  -- show devices ( /proc "filesystem" shows lots of info)
# cat /proc/meminfo  -- show memory


The list continues...i will add some more later

quarta-feira, 9 de Setembro de 2009

Cisco ios image search - for labs

Quick tip to find ios images


On google search use:
 : intitle:index.of ios .bin -site:cisco.com


It should give some nice results