Wednesday, October 27, 2010

Junos Router Emulator

I've found this blog: http://blog.okellynet.com/?p=67

There you can find tips for download a Junos Router Emulator for Juniper routers in a VMware virtual machine.

Tuesday, October 19, 2010

Installing VMwareTools on Ubuntu

Here you can find how to install VMware tools in Ubuntu: https://help.ubuntu.com/community/VMware/Tools


# install kernel modules
sudo apt-get install --no-install-recommends open-vm-dkms
# EITHER: install tools for an xorg install
#apt-get install open-vm-tools
# OR: a headless install
sudo apt-get install --no-install-recommends open-vm-tools

Installing LAMP on Ubuntu 10.04 & MySQL Backup

Hay un artículo muy bueno aquí: http://tuxtweaks.com/2010/04/installing-lamp-on-ubuntu-10-04-lucid-lynx/ que explica como instalar LAMP (linux, Apache, MySQL, PHP) en un Ubuntu 10.04

Aquí hay un artículo que explica cómo hacer un backup de MySQL
http://www.webcheatsheet.com/SQL/mysql_backup_restore.php

Y aquí otro:
http://www.desarrolloweb.com/articulos/1202.php

Y en este blog de Gabriel Soltz hay un script para automatizar el backup de MySQL: http://knox-it.blogspot.com/2010/05/bash-backup-mysql-con-compresion-para.html

Monday, October 18, 2010

Modifying the All Users profile in Vista or Windows Server 2008

Después de volverme loco buscando la carpeta Menú de inicio para todos los usuarios en un w2008 he encontrado la solución aquí: http://blogs.technet.com/b/peterfi/archive/2008/02/24/modifying-the-all-users-profile-in-vista-or-windows-server-2008.aspx

En resumen, ahora la carpeta está aquí: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Para acceder a la carpeta que contiene el menú de inicio para el usuario administrador tienes que ir a C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu

Para acceder a la barra Quick Lunch hay que ir a: C:\Users\Administrador\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Friday, October 15, 2010

Convert your Windows Server 2008 to a Workstation!

I've found this web: http://www.win2008workstation.com/
On it there is a lot of usefull information to tweak a Windows Server 2008 and use it as a workstation.

There's no ftp client in VMware esx 4.1

VMware has removed ftp client tool in esx 4.1, so if you have shell scripts using ftp commands they will fail.
This applies to upgrades too, so if you have esx 4.0

Thursday, July 1, 2010

¿Cuántas pulgadas tiene que tener mi pantalla nueva?


Si ahora tengo un monitor de 17" de los de antes (relación de aspecto 4:3) y me quiero comprar uno nuevo y panorámico (relación de aspecto 16:9), ¿cuántas pulgadas tiene que tener para que sea por lo menos igual de alto?, ¿y si tengo uno de 19"?

Tuesday, May 18, 2010

Running a x64 virtual machine in vSphere


the Problem
Recently I've tried to install a virtualized W2008 (x64) R2 Server on an esx vSphere. Then I got the following error:



Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:

1. Insert your Windows installation disc and restart your computer.
2. Choose your language settings, and then click "Next."
3. Click "Repair your computer."

If you do not have this disc, contact your system administrator or computer manufacturer for assistance.

File: \windows\system32\boot\winload.exe

Status: 0xc000035a

Info:    Attempting to load a 64-bit application, however this CPU is not compatible with 64-bit mode.



The vSphere server is running on a core 2 Quad server, and VSphere asks for a x64 server at installation, so what is happening?


the Solution
You need to check if your processor has VT-x capability enabled. This option should be in your motherboard's BIOS. You must enable it and then power cycle the server, if you only reboot your system you will lost hours googling like me, asking why your BIOS seems to be VT-x capable but it doesn't.
Of course, you should upgrade your motherboard's BIOS as many old versions have the capability but it's not BIOS implemented.
There is a good guide at vmware communities: http://communities.vmware.com/docs/DOC-8978 by jmmattson and also an .iso that you can boot to check if your server has VT-x enabled and thus you'll be able to install x64 virtual machines on your vSphere.

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

Arrancar BartPE desde memorias USB en FAT32

He encontrado en el blog de Vicente Navarro y además bastante bien explicado, cómo preparar un pen drive para que arranque con una imagen de bartpe:
http://www.vicente-navarro.com/blog/2008/09/24/arrancar-bartpe-desde-memorias-usb-en-fat32-y-mucho-mas-rapido/

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