Archivo por meses: marzo 2008

resize the virtual disk image?

Solution:  This solution is to increase your virtual disk size:  cd /var/lib/xen/images/vlinux1 #use dd to create a 1 GB file dd if=/dev/zero of=Tempfile bs=1024 count=1000000 #append this file to virtual image file (in this case is hda) cat Tmpfile >> hda  resize2fs -f hda  ——————  este es como vmware que te da espacio pero no… Leer más »

cisco 1841 password recovery

 Dear you find the detail password recovery procedue for Cisco 1841 router from the below link http://www.cisco.com/en/US/customer/products/hw/routers/ps221/products_password_recovery09186a0080094773.shtml or else follow the below steps

vlans cisco 2950

Configuración básica de VLAN Para crear VLANs, el switch debe estar en modo VTP “Server”, o “Transparent”. “Server” es el default.   show vtp status show vlan vlan database vtp server vlan 2 name admin (crear la VLAN) vlan 3 name contabil … exit show vlan configure terminal interface f0/1 switchport access vlan 2 (asigna… Leer más »

script generates a MAC address for Xen guests

#!/usr/bin/python # macgen.py script generates a MAC address for Xen guests # import random mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] print ‘:’.join(map(lambda x: «%02x» % x, mac))

Hide sendmail version

vim sendmail.cf Cambiar lo siguiente: # SMTP initial login message (old $e macro) #O SmtpGreetingMessage=$j Sendmail $v/$Z; $b O SmtpGreetingMessage=$j Sendmail ; $b

Hide apache and php version

http://nixcraft.com/server-configuration-tutorials/746-apache-php-web-server-security-hiding-version-information.html How do I Hide Apache Version info? Open httpd.conf file (located in /etc/httpd/ directory /etc/apache2/ )   Code: vi httpd.conf Set Apache ServerTokens to product only but don’t show version and other info:   Code: ServerTokens Prod This directive controls whether Server response header field which is sent back to clients includes a description… Leer más »

Using multiple network cards in XEN 3.0

you need 2 bridge interfaces: xenbr0 = eth0 xenbr1 = eth1 create a new script with the following lines: (ex: multiplebridge.sh) in /etc/xen/scripts/ #!/bin/sh dir=$(dirname «$0») «$dir/network-bridge» «$@» vifnum=0 netdev=eth0 bridge=xenbr0 «$dir/network-bridge» «$@» vifnum=1 netdev=eth1 bridge=xenbr1 make the script executable (chmod +x /etc/xen/scripts/multiplebridge.sh) modify /etc/xen/xend-config.sxp change the line: (network-script network-bridge) to (network-script multiplebridge.sh) modify your… Leer más »

SendMail

$ sudo vim /etc/mail/sendmail.mc Sendmail slow to start It was all about the hostname for some reason. I was using aFQDN in the host file but for some reason sendmail couldn’t resolvethat name. I put it back to localhost and everything seems to have goneback to normal. «Open Mouth, Insert Foot and Chew!»