Tuesday, December 22, 2009

Instalación de VMware esx4 desde USB

He encontrado este link donde explica cómo preparar un pendrive para instalar esx 4:

http://chall32.blogspot.com/2009/11/vmware-esx-4-install-from-usb.html

Aquí tambien hay indicaciones de cómo modificar el menu de inicio del cd para que use un archivo ks.cfg modificado:

http://www.onlinetechblog.com/blog/index.php/2009/11/how-to-customize-vsphere-4-0-installation-iso/

Compactar correos en Mac OS X

He encontrado este artículo de la universidad de Indiana: http://kb.iu.edu/data/ajnk.html


In Mac OS X, how do I get the Mail application to remove messages I delete?
Mac OS X Mail has two methods of handling deleted messages: it can either mark them and hide them in the message index, or it can move them to a designated deleted items folder. By default, Mail uses the latter method, but it doesn't work correctly unless you have a folder called Deleted Items. To correctly configure this setting, see the instructions below:

Hiding deleted messages within the same mailbox
To configure OS X Mail to hide deleted messages within the same mailbox, follow the appropriate steps below:

OS X 10.2.x and later
1.From the Mail menu, select Preferences... .


2.In the Mail preferences window, click Accounts.


3.Select the account you wish to modify. In OS X 10.2.x, then click Edit.


4.Click the Mailbox Behaviors or Special Mailboxes tab, and uncheck the box next to Move deleted messages to the Trash mailbox.
OS X 10.1.x and earlier
1.From the Mail menu, select Preferences... .


2.In the Mail preferences window, click Viewing.


3.Uncheck the checkbox next to Move deleted mail to a folder named: .
Once you have made these changes, when you delete a message, Mail assigns a flag that removes it from the message index. It's still there, just not visible. If you press Command-l (the letter l), Mail will show all the messages you have deleted since the last time you compacted your mailbox. To hide the deleted messages again, press Command-l .

Removing deleted messages
To completely remove those messages you have deleted, press Command-k or, from the Mailbox menu, select Erase Deleted Messages (10.2.x and later) or Compact Mailbox (10.1.x and earlier). You can configure Mail to automatically compact your IMAP mailboxes when you exit the program by making the following configuration change:

OS X 10.2.x and later
1.From the Mail menu, select Preferences... .


2.In the Mail preferences window, select Accounts.


3.Select the account you want to modify. In 10.2.x, then click Edit.
Note: If you have multiple accounts, you will need to make these changes for each one.

4.Click the Advanced tab, and check the box next to Compact mailboxes automatically or Compact messages automatically.


5.In 10.3 and later, close the Mail preferences window, and when prompted, click OK. In 10.2.x, click OK, then close the Mail preferences window.
OS X 10.1.x
1.From the Mail menu, select Preferences... .


2.In the Mail Preferences window, click Accounts.


3.Under "Description", click the account you want to modify, and then click Edit.

Note: If you have multiple accounts, you will need to make these changes for each one.


4.In the sheet that appears, click the Account Options tab.


5.Check the checkbox next to Compact mailboxes when closing.


6.Click OK, then close the Mail Preferences window.
Moving deleted messages to a folder
To configure OS X Mail to move deleted messages to a folder, follow the appropriate steps below:

OS X 10.2 and later
1.From the Mail menu, select Preferences... .


2.In the preferences window, click Accounts.


3.Click the name of the account for which you want to set a deleted messages folder. In 10.2.x, then click Edit.


4.Click the Mailbox Behaviors or Special Mailboxes tab, and in the Trash section, make sure that Move deleted messages to the Trash mailbox and Store deleted messages on the server are checked.


5.In the pop-up menu underneath "Permanently erase deleted messages when:", select how often Mail will empty your deleted mail folder.


6.In 10.3 and later, close the preferences window and click Save if prompted. In 10.2.x, click OK, then close the preferences window.


7.Click the folder you want to use as a deleted messages folder. From the Mailbox menu, select Use This Mailbox For or Use Selected Mailbox For and then choose Trash.
OS X 10.1.x
1.From the Mail menu, select Preferences... .


2.In the Mail Preferences window, click Viewing.


3.Check the checkbox next to Move deleted mail to a folder named: .


4.In the pop-up menu to the right of "Move deleted mail to a folder named:", select the name of the folder to which you want Mail to move deleted messages.


5.In the pop-up menu underneath "Move deleted mail to a folder named:", select how often Mail will empty your deleted mail folder.


6.Close the Mail Preferences window.
If you want to manually empty your deleted mail folder, from the Mailbox menu, select Empty Trash, or press Command-k .

This is document ajnk in domain all.
Last modified on November 24, 2009.

Thursday, December 17, 2009

Utilidades de backup y optimización del registro de windows


Aquí se pueden encontrar un par de utilidades gratuitas para hacer copia de seguridad (y restauración) o para optimizar el registro de windows
http://www.larshederer.homepage.t-online.de/erunt/

Friday, December 11, 2009

How to disable the complex password option on vSphere ESX 4.0 and 4.1

If you need to disable the complex password option on an ESX 4.0 you must edit the file: /etc/pam.d/system-auth-generic
And replace the following line:
password required /lib/security/$ISA/pam_passwdqc.so min=8,8,8,7,6 similar=deny match=0
With this one:
password required /lib/security/$ISA/pam_passwdqc.so min=8,8,8,7,6 enforce=none

It's no necessary restart any services for this change to take effect.

I've found this info at: http://communities.vmware.com/thread/235711
Update
On vSphere v4.1 this change must be done on /etc/pam.d/system-auth file

Thursday, November 5, 2009

Monday, September 28, 2009

Thursday, September 17, 2009

DNSBL error en Panda GateDefender

En algún caso los GateDefender no resuelven bien los DNSs y dan un error de DNSBL.

Según los técnicos de soporte de Panda hay que poner como primer sevidor DNS, la IP 194.30.0.1 (el dns1 de Sarenet)
Y para que resuelva correctamente DNSBL alguna de estas IPs:
201.144.5.43
72.2.128.2
64.187.29.134
208.110.72.130
P.D.: (12-07-2011) - En los nuevos Performa 9100 los DNSs que traen configurados de fábrica son estos:
image

Wednesday, September 2, 2009

Tuesday, August 4, 2009

Como instalar (a mano) el parche ESX400-200906001 para vSphere

Copia el archivo ESX400-200906001.zip en un directorio del esx. Ocupa casi 400 MBytes.

Puedes comprobar que el archivo esta bien (y que te hace falta instalarlo) con el comando:
esxupdate --bundle=ESX400-200906001.zip scan

que producirá una salida como esta:

ESX400-200906001.zip ######################################## [100%]

Applicable bulletins with updates are listed.
----Bulletin ID---- ---Date--- -------------Summary-------------
ESX400-200906412-BG 2009-07-09 Updates esxupdate
ESX400-200906401-BG 2009-07-09 Updates VMX
ESX400-200906404-BG 2009-07-09 Updates CIM
ESX400-200906411-SG 2009-07-09 Updates udev
ESX400-200906402-BG 2009-07-09 Updates ESX Scripts
ESX400-200906406-SG 2009-07-09 Updates sudo
ESX400-200906405-SG 2009-07-09 Updates krb5 and pam_krb5
ESX400-200906410-BG 2009-07-09 Updates hostd
ESX400-200906407-SG 2009-07-09 Updates curl
ESX400-200906403-BG 2009-07-09 Updates VMware Tools
ESX400-200906408-BG 2009-07-09 Updates SCSI Driver for QLogic FC
ESX400-200906409-BG 2009-07-09 Updates LSI storelib Library
ESX400-200906413-BG 2009-07-09 Updates vmkernel iSCSI Driver
Esxupdate local cache states:
Location: /tmp/updatecache
Available space: 2317 [MB]


Tienes que poner el esx en modo mantenimiento: http://kakaladas.blogspot.com/2009/07/how-to-set-esx-host-into-maintenance.html

Y luego instalar el parche con el comando:
esxupdate --bundle=ESX400-200906001.zip update

Después hay que salir del modo mantenimiento y reiniciar el esx.

Como crear (y que funcione) un servicio en /etc/init.d para SUSE

SDB:How to Create Your Own Init Script
From openSUSE

Situation:
You want to create your own script which will be started and stopped in certain runlevels.
You also want to control this script by means of:
rc<scriptname> {start|stop|status|reload|force-reload|try-restart|restart}

Procedure:
Copy the sample script to your new script:
cp /etc/init.d/skeleton /etc/init.d/<scriptname>
Edit the file /etc/init.d/<scriptname> with a text editor of your choice and read and follow its instructions.
Now activate your script so that it can be run when the system boots:
/sbin/insserv /etc/init.d/<scriptname>
Finally, create a link to /sbin:
ln -s /etc/init.d/<scriptname> /sbin/rc<scriptname>

Additional Information
For further information, please refer to the following manpages: init(8), init.d(7), insserv(8)

Cambio de zona horaria en ESX

Si tienes mal configurada la zona horaria de tu esx, esto es lo que hay que hacer para corregirlo:

1- Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Tue Aug 4 10:21:53 2009 PM PST, PST in this case is the current timezone.

2- Change to the directory /usr/share/zoneinfo/Posix here you will find a list of time zone regions. Choose the most appropriate region, if you live in Europe this directory is the "Europe" directory.

3- If you wish, backup the previous timezone configuration by copying it to a different location. Such as:
mv /etc/localtime /etc/localtime-old

4- Create a symbolic link from the appropiate timezone to /etc/localtime. Example:
ln -sf /usr/share/zoneinfo/Posix/Europe/Madrid /etc/localtime

5- Restart the ntpd service to update the current system time by executing
/etc/init.d/ntpd restart

6- Set the ZONE entry in the file /etc/sysconfig/clock file
ZONE=Europe/Madrid
UTC=true
ARC=false

7- Set the hardware clock by executing:
/sbin/hwclock --systohc

8- Now if you execute again `date` you'll see the following output Tue Aug 4 10:21:53 CEST 2009

Friday, July 24, 2009

Configuración de red para sais de APC

Por defecto la tarjeta de red no está configurada, y hay que conectarse con el cable que viene con el sai (940-0024C) usando hyperterminal 2400,8,none,1, no flow control.

La usuario por defecto es 'apc' y password 'apc'.

Si además estas configurando Powerchute Network Shutdown, necesitarás la palabra de paso 'admin user phrase'.

Para conectarte al equipo en que has instalado Powerchute network Shutdown debes conectarte a la ip de tu equipo con http://x.y.z.a:3052 y utilizar de usuario y password 'apc'.

Tuesday, July 14, 2009

How to set ESX Host into maintenance mode from Service console

Esta es la forma de poner un esx en modo mantenimiento, es un post de techstarts publicado en: http://vmzare.wordpress.com/2007/08/24/how-to-set-esx-host-into-maintenance-mode-from-service-console/

Below is the command which you will have to execute from SVC Console to enter host into maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_enter

To exit maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_exit

Now next question is how I check whether host is in maintenance mode. Here is it…
vimsh -n -e /hostsvc/runtimeinfo |grep inMaintenanceMode |awk '{print $3}'

Wednesday, June 24, 2009

Cómo enviar correos desde SCO Unixware

En teoría habría que configurarlo desde scoadmin mail, pero en la versión 7.1.4 con maintenace pack 4 la versión de sendmail no funciona desde scoadmin y hay que ejecutar a mano el comando /etc/mail/manage_sendmail

La configuración que tenemos que obtener es la siguiente:

Sendmail configuration information...
Machine name: hostname.domain.local

DOMAIN name: domain.local
UUCP connections: NOT SET
Alternate names: hostname hostname.domain.local
Is there a UUCP gateway on the net? n
Is there a smart mailhost on the net? n
Masquerade as a different host? newdomain.com
Use NIS aliases with sendmail? NOT SET

Lo que nos generará el fichero /etc/mail/cf/cf/sco.uw714.mc con el siguiente contenido:

divert(-1)
#
# This is a generic configuration file for SCO OpenServer 6.
# It has support for local and SMTP mail only. If you want to
# customize it, copy it to a name appropriate for your environment
# and do the modifications there.
#
divert(0)dnl
VERSIONID(`@(#)opensrc:src/sendmail/patches/cf/cf/sco.uw714.mc /main/uw714mp/2')dnl
OSTYPE(sco.uw714)dnl
DOMAIN(generic)dnl
define(`confDONT_BLAME_SENDMAIL',`groupwritabledirpathsafe,linkedaliasfileinwritabledir')dnl
FEATURE(`access_db',`hash -T -o /etc/mail/access.db')dnl
FEATURE(`use_cw_file')dnl
define(`confDOMAIN_NAME',`domain.local')dnl
define(`LOCAL_NAME',`hostname.domain.local')dnl
FEATURE(`masquerade_entire_domain')dnl
MASQUERADE_DOMAIN(`hostname.domain.local')dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(`newdomain.com')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl


Después de generar el fichero /etc/mail/sendmail.cf hay que editarlo y comentar la línea en la que pone C{E}root y dejarla así:

#C{E}root

Además hay que reinicar el servicio de sendmail:

/etc/init.d/sendmail stop/etc/init.d/sendmail start
Y para mandar un correo igual que con Openserver:

mail -s "Asunto" usuario@dominio.com

Donde el fichero aparece en el cuerpo del mensaje.


Thursday, May 7, 2009

Cómo enviar correos desde SCO Openserver

SCO Openserver utiliza mmdf para gestionar el sistema de correo.

En primer lugar hay que preparar la configuración de mmdf, ya que por defecto no envía correos a dominios externos, para ello sigue los siguientes pasos:
  1. Ejecuta el comando: mkdev mmdf
  2. Asegurate que el hostname es correcto y de que mmdf está configurado para usar TCP/IP.
  3. Cambia el formato para las direcciones locales de correo a user@midominio.com, ya que por defecto aparece user@host.midominio.com.
  4. En Select nameserver look up method selecciona la opción Look up all mail hosts.
  5. Reconstruye las bases de datos de mmdf con el comando: /usr/mmdf/table/dbmbuild -vn
  6. Y a continuación reinicia el servicio mmdf con /etc/init.d/mmdf stop; /etc/init.d/mmdf start
Ahora para enviar un correo se puede usar la siguiente sintaxis:
mail -s "Asunto" usuario@dominio.com < fichero
Donde el fichero aparece en el cuerpo del mensaje.

Friday, March 13, 2009

Cómo cambiar el número de reintentos en el radius ASAS que utiliza Zyxel para sus tokens.

Hay que editar el fichero Authserver.properties y cambiar el valor throttlevalue=3.

De esta forma se puede aumentar el número de reintentos para que a los usuarios no se les bloquee con tanta facilidad el token.

La informacion se puede encontrar en la página de Authenex: http://support.authenex.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=30&nav=0,2

How do I change Lock Count for ASAS?

Change the Lock count for ASAS
When authenticating with ASAS using Akey and an account. The user can have 3 (default) failed login attempts before his/her account is locked.
To change that go to Start-> Programs->Authenex->ASAS->Edit authserver.properties
Scroll down until you find throttlevalue=3, Change 3 into a slightly larger number.
You can also turn off this locking feature by change throttle=true into false. (Not recommended)

Thursday, March 12, 2009

No aparece "enviar a:" desde documentos de Office.

Para corregir este error hay que editar el archivo win.ini y si falta alguna de las siguientes líneas, entonces añadirla.

[Mail]
MAPI=1
CMC=1
CMCDLLNAME=mapi.dll
CMCDLLNAME32=mapi32.dll
MAPIX=1
MAPIXVER=1.0.0.1
OLEMessaging=1

Friday, January 16, 2009

Eliminar el mensaje ¿compactar carpetas? al salir de Outlook Express.

Desde no se qué parche de windows, aparece un mensaje al salir de outlook express que nos pregunta si queremos compactar las carpetas. Y es que Microsoft ha añadido un contador en el registro de windows que cuenta las veces que usas outlook express y cuando llega a 100 empieza a protestar.

Este mensaje, bastante molesto, se puede eliminar poniendo a cero en el registro de windows el valor de Compact Check Count que se encuentra en: HKEY_CURRENT_USER\Identities\{ ...... }\Software\Microsoft\Outlook Express\5.0 y donde { ...... } es un churro del tipo {C8617501-C0B3-459B-BA1F-8DAA356737D5} y diferente para cada usuario.

Hay varias formas de poner este valor a cero, existe un script en http://www.kellys-korner-xp.com/regs_edits/compactcheck.vbs que puede hacer esta labor, modificándolo un poco para que no muestre los mensajes que te llevan a la página web del autor y diciéndole al antivirus de turno que el script es de fiar podrás hacer que funcione sin problemas.

También puedes exportar desde regedit un archivo .reg (de nombre por ejemplo resetOEcount.reg) modificado para que sólo contenga el valor de Compact Check Count puesto a cero:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Identities\{C8617501-C0B3-459B-BA1F-8DAA356737D5}\Software\Microsoft\Outlook Express\5.0]
"Compact Check Count"=dword:00000000

Y lo único que queda por hacer es un archivo .bat que ejecute el comando:

regedit /s resetOEcount.reg

Y poner un acceso directo en la carpeta de inicio del usuario. De esta forma el mensaje sólo le aparecerá si abre y cierra más de 100 veces el outlook express sin cerrar la sesión de windows.

PD: Ten en cuenta que el churro {C8617501-C0B3-459B-BA1F-8DAA356737D5} es diferente en cada caso, por lo que tendrás que buscar en el registro de windows el que te corresponde para que este método te funcione.

Thursday, January 15, 2009

Cómo reducir el timeout de arp en los firewalls Netscreen/Juniper

Puede haber diferentes razones para querer reducir el timeout de la tabla arp en los firewalls de Netscreen / Juniper.

En mi caso lo utilizo cuando tengo un router principal y otro de backup que se conecta de forma totalmente manual si el primero de ellos falla, ambos con idéntica configuración incluida la IP.

En estos casos el valor por defecto de timeout en la tabla arp de los Juniper es de 600 segundos, lo que hace que si no reinicio el Juniper, tengo que esperar 10 minutos a que la entrada en la tabla arp correspondiente al router se borre para que la conexión a internet funcione.

Esto se puede evitar reduciendo este valor de timeout introduciendo los siguientes comandos desde una sesión ssh o telnet en el firewall:

set arp age 60
save

De esta forma el timeout quedará reducido a sólo 60 segundos.