ESX Server – Change The Hostname

KB ID 0000276 

Problem

Should you wish to change the hostname of your ESX server i.e. you have it on DHCP and it’s got the hostname of Terrys-Laptop or something from your DNS server.

The option will be grayed out in the VI client.

Solution

1. Log onto the ESX server terminal as the root user.

2. Issue the following command,

[box]esxcfg-advcfg -s <newname> /Misc/HostName[/box]

3. then reboot the server with the following command,

[box]shutdown -r now[/box]

4. Post reboot the hostname will be changed.

Related Articles, References, Credits, or External Links

NA

VMware vCenter Install ‘Error 26002’

KB ID 0000941 

Problem

While attempting to install vCenter 5.5, I got the following error.

Error 26002. Setup failed to register vCenter Server. This might indicate a problem with the SSL certificates for vCenter Server. Search the VMware Knowledge Base (http://kb.vmware.com) for “Error 26006” for more information.

Earlier on in the install it had asked me if I wanted to overwrite the certs, and I just clicked OK, this probably was not such a good idea!

Solution

1. Navigate to C:Program DataVMwareVMware Virtual Center >Locate the SSL folder and rename it to SSL-OLD.

2. Navigate to C:Program DataVMwareInfrastructureInventory Service > Locate the SSL folder take a copy of it.

3. Paste that folder back in the C:Program DataVMwareVMware Virtual Center location to replace the folder you renamed earlier.

4. This is what the folder should now look like.

5. Now attempt the install, and it should complete without error.

Related Articles, References, Credits, or External Links

NA

Cannot Install Malwarebytes (Already Infected) – Deploy Chameleon

KB ID 0000750 

Problem

If I’m working on a machine that I suspect is infected by Malware/Spyware then one of the first tools I reach for is Malware Bytes.

Spyware / Malware Rogue AV and Rogue Antispyware “Scareware”

As it’s one of the most popular repair tools, it’s not uncommon for the writers of these pieces of malicious code, to actively block the installation of Malwarebytes. So the publishers of Malwarebytes have come up with a solution called Chameleon.

Solution

1. Head over to the Malwarebytes download site > For Home > Other Tools.

2. Download Chameleon.

3. The files will come down in a zip file > Extract them > Locate the Chameleon.chm file and run it.

4. You can now attempt to install Malwarebytes by using the install options presented, start with the first and work your way down.

5. When running, a command window will open, and ask you to press any key > It will see if the software is installed, if not it will download and install it.

6. Then it will update the software with the latest definitions.

7. When complete the software will start and begin a scan.

 

Related Articles, References, Credits, or External Links

Malwarebytes – Manually Update Database/Definitions

Rename / Change all File Extensions In a Folder and All Subfolders Recursively

KB ID 0000896 

Problem

I long time ago this site was hosted in my dining room, on a PC under my desk. I was running Windows and IIS. When I moved the site to a hosted Apache Linux server, I discovered that Linux is a little more rigid on its rules for file extensions. For example in Windows .JPG and .jpg is the same thing, but on a Linux box that’s NOT the case.

As I’ve used the Windows Snipping Tool a lot in the past my older images have a .JPG or .PNG extension, if your websites URL’s point to filename.jpg, then the URL will work in Windows but it WON’T work on a Linux web server (in my case Apache).

I fixed all the broken URL’s a long time ago, but the file extensions remained. This annoyed my Technical OCD, so this afternoon I decided to rename all the .JPG files to .jpg, and all the .PNG files to .png.

Note: I changed all the URL’s with a a simple file and replace in Dreamweaver.

Solution

To rename all the files in a folder simply use the ren or the rename command;

[box]

ren *.JPG *.jpg
Note: If you wanted to change all the extensions to something else that's fine too e.g.

ren *.htm *.txt

[/box]

The limitation is you cannot do the same if you have folders and subfolders, you need to rename all the file extensions recursively. To do that use the following syntax.

[box]

forfiles /S /M *.JPG /C "cmd /c rename @file @fname.jpg"

Note: As Above, if you wanted to change all the extensions to something else that's fine too e.g.

forfiles /S /M *.JPG /C "cmd /c rename @file @fname.jpg"

[/box]

So to fix my problem I only needed two commands.

Related Articles, References, Credits, or External Links

NA

Batch Resizing and Batch Renaming Images in Photoshop

KB ID 0000597 

Problem

I have to do this quite a lot, I take a lot of screen-shots for the site, and have to resize them down, (usually to 550 pixels) so that, they fit with the layout. In addition I scale the larger screenshots down to 900 pixels for the images I Hyperlink to. This means I spend a long time in Photoshop messing about with image sizes. The smaller of the two images you see on the site nearly always has the same name, but has an ‘s’ on the end.

So If I can batch resize and batch rename these files I will save myself a LOT of time.

Solution

In Photoshop ,you can record an ‘action” of you resizing an image then ‘Batch process’ that action on a lot of images, but I find that ‘clunky’ and sometimes it simply will not do what I want it to do! So I use Adobe Bridge instead.

Batch Resize Images in Photoshop

1. Open Photoshop and select File > Browse in Bridge.

2. Browse to the location/folder containing your images and select them > Tools > Image Processor.

3. Select a folder to save the altered images to (Note: Even if you select the same location it creates a folder in that location and puts the changed images in that new folder – don’t panic). set the width to your required size, (the height will resize on an image-per-image basis). To start press ‘Run’.

Batch Resize and Rename Images in Photoshop

1. Now I want to create my ‘Thumbnails”, as before open the Image Processor.

2. This time I want my images 550 px wide (Note: For a thumbnail that’s pretty big! But that’s what I use on this site). ‘Run” with those settings.

3. Now MAKE SURE you have your modified images selected, and select Tools > Batch Rename.

4. The first time you see this screen it’s not very intuitive. You can delete and add options as required, keep changing them until the preview shows what you want, and select ‘Rename’.

Related Articles, References, Credits, or External Links

Photoshop – Drawing Arrows

Photoshop – Drawing box’s