How to enable wake on lan on VMWare client

Problem: You are not able to access the guest OS when the guest OS goes to sleep, and you need to manually wake up the guest OS.

Solution: Edit the Virtual Machine Properties. In the Power Management under Options menu, check the “Put the guest OS into standby mode and leave the virtual machine powered on”, and put a check on the Virtual NIC under the Wake on LAN for virtual machine traffic on.

vmware

Advertisements

Debugging Site to Site VPN connection

Debugging specific Peer IP Address.

debug crypto condition peer 192.168.1.5

The above command will only generate debug on Peer IP address of 192.168.1.5.  When you’re done, run debug crypto condition reset to undo the command above.

Run debug crypto isakmp 127 (phase 1) or debug crypto ipsec 127 (phase 2) to generate debug information. Run undebug all to stop all debug information.

See http://www.cisco.com/c/en/us/support/docs/security-vpn/ipsec-negotiation-ike-protocols/5409-ipsec-debug-00.html for more information on what the debug output means.

 

How to move Outlook meetings without losing the option to “Send Update”

Problem: Consider the following scenario. You use Microsoft Office Outlook 2003, Microsoft Office Outlook 2007, or Microsoft Outlook 2010 to import or copy meetings to your mailbox. When you open a meeting, you notice that the Send Update button is missing. Additionally, newer versions of Outlook add the prefix “Copy:” to the meeting subject, and the Info Bar shows the following message:

This meeting was copied to your calendar and will not receive updates. To receive updates, contact the organizer, organizer_name.

In this message, organizer_name represents the name of the meeting organizer.

Note If you originally created the meeting that was imported, your name appears here. In that case, this seems to be counterintuitive because you are viewing the meeting in your own calendar.

Cause: When meetings are exported to or imported from an Outlook Personal Folder or Outlook Data (.pst) file, the GlobalObjectID (GOID) property of the meeting is not included. When you copy and paste meetings from one calendar to another, Outlook generates new GlobalObjectIDvalues for the meetings that are newly created.

The GlobalObjectID is a unique identifier for a meeting. All meeting invitations, responses, and updates that are associated with any single meeting contain the same GlobalObjectID. Outlook does not create meetings that have duplicate GlobalObjectID properties. To do this, Outlook excludes the property during import and export and generates a new GlobalObjectID value when a meeting is copied. This prevents anyone who imported or copied your meetings from assuming the organizer role and sending updates for meetings that you own.

Solution: To maintain full meeting functionality as the meeting organizer, move meetings from one calendar folder to another. To move a meeting or series of meetings, use the cut-and-paste method. Because the original meeting is deleted, as soon as the paste process is complete, the meeting no longer exists in the original location. Because the meeting that is pasted to the new location is unique, the GlobalObjectID value is maintained.

To move all the Calendar items to another folder, you must first display all the items in a tabular view. To display the items in the folder in a tabular view, use one of the following methods:

  • Temporarily clear the filter from an existing tabular view.
  • Define a new and permanent tabular view of all calendar items.

For Outlook 2010

How to clear the filter from an existing tabular view

To do this, follow these steps:

  1. Click to select the calendar folder that contains the meetings that you want to move.
  2. On the View tab, click Change view, and then click to select one of the tabular views such as By List or By Category.
  3. On the View menu, click Reset View.
  4. Click Yes to reset the view to the original settings.

How to define a new and permanent tabular view

To do this, follow these steps:

  1. Click to select the calendar folder that contains the meetings that you want to move.
  2. On the View tab, click Change view, click Manage Views, and then click New.
  3. Type a name for the new view, click to select Table, and then click OK.
  4. In Advanced View Settings, click Sort.
  5. In the Sort items by list, click to select Start and Ascending.
  6. In the Then By list, click to select (none), and then click OK.
  7. Click OK, and then click Apply View.

Both of these procedures will display a list of all calendar items.

After all items are displayed, follow these steps:

  1. To select all items, use the keyboard shortcut, Ctrl+A.
    Note If you only want to copy specific meetings, hold the Ctrl key, and then click to select individual meetings.
  2. To copy and then delete the items, use the keyboard shortcut, Ctrl+X.
  3. Click to select the destination calendar folder.
  4. To paste the items, use the keyboard shortcut, Ctrl+V.

This process moves the selected calendar items into the destination folder.

For Outlook 2007 and for Outlook 2003

How to clear the filter from an existing tabular view

To do this, follow these steps:

  1. Click to select the Outlook calendar folder that contains the meetings you want to move.
  2. On the View menu, point to Current View, and then click to select one of the tabular views such as Events or By Category.
  3. On the View menu, point to Current View, and then click Customize Current View.
  4. In the View Summary dialog box, click Filter, click Clear All, click OK, and then click OK again.

How to define a new and permanent tabular view

To do this, follow these steps:

  1. Click to select the calendar folder that contains the meetings that you want to move.
  2. On the View menu, point to Current View, click Define Views, and then click New.
  3. Type a name for the new view, click to select Table, and then click OK.
  4. In View Summary, click Sort.
  5. In the Sort items by list, click to select Start, and then click Ascending.
  6. In the Then By list, click to select (none), and then click OK.
  7. Click OK, and then click Apply View.

Both of these procedures will display a list of all calendar items.

After all items are displayed, follow these steps:

  1. On the Edit menu, click Select All.
  2. On the Edit menu, click Cut.
  3. Click to select the destination folder.
  4. On the Edit menu, click Paste.

This process moves the selected calendar items into the destination folder.

Users are unable to delete email from Exchange webmail (also out of office reply does not work)

Symptom:

  1. Users are unable to delete their email from their webmail. You receive a message saying “The action tyou tried to perform couldn’t be completed because there’s a configuration problem on the server. If the problem continues, contact your helpdesk. The entire error report is listed below:”.
  2. When you go to https://mailserverserver.domain.com/EWS you are prompted for the password, but the password is rejected repeatedly.
  3. From the Outlook client, you are not able to go to Out of Office.

Solutions:

  1. Open IIS Manager, and then navigate to Default Web Site.
  2. Right-click Default Web Site, and then click Edit Bindings.
  3. If a binding exists for HTTP, clear the host name value. (I had the ones with home address (172.0.0.1).)
  4. If no binding exists for HTTP, create a new binding that has no host name and a value of All Unassigned for the IP address.
  5. Restart IIS.

 

 

Why does my iOS device say I have more photos than I can find?

First, check the Recently Deleted album in Photos, which is a new feature after iOS 8.1. If it’s empty you may have run into a strange bug, where deleted photos don’t actually get removed. To check for this follow these rather strange instructions:
Go to Settings/General/Date & Time
Disable Set Automatically
Tap on the current date/time and roll it back about 2 years
Tap Launch the Photos app and go to the Recently Deleted album (even if it says there are 0 photos)
Is it full of photos? If so, delete them
Go back to Settings/General/Date & Time and turn Set Automatically back on

How To: Fix WordPress 404 Errors on Password Protected Directories

Using WordPress’s permalink feature seems to cause some issues with password protected directories that use Apache’s .htaccess to handle authentication. I recently had to troubleshoot why after installing WordPress on the root level of the domain that a password protected directory would return a 404 page instead of the typical login box.

The problem comes from the Apache rewrite engine that WordPress uses to make search engine friendly URL’s. WordPress uses a .htaccess file in the root folder of the install to take any URL and allow WordPress to process and serve the appropriate page, or error.

What Exactly Is Breaking User Logins

In this condition the Web server thinks that the HTTP data stream sent by the client (ex. a web browser) was correct, but access to the URL requires user authentication which has not yet been provided or which has been provided, but failed authorization tests. This is commonly known as “HTTP Basic Authentication” or HTTP Error 401 Unauthorized.

Generally this error message means you need to log on (enter a valid user ID and password) somewhere first. If you have just entered these and then immediately see a 401 error, it means that one or both of your user ID and password were invalid for whatever reason (entered incorrectly, user ID suspended etc.).

Let’s Fix Directory Listing Too

Another issue could be a HTTP Error 403 Forbidden. The Web server thinks that the HTTP data stream sent by the client (ex. your web browser) was correct, but access to the resource identified by the URL is forbidden for some reason. The most common reason for this error is that directory browsing is forbidden for the Web site. Most Web sites want you to navigate using the URLs in the Web pages for that site. They do not often allow you to browse the file directory structure of the site.

Understanding What it All Means

Now that we know what is causing the errors it is time to fix them. We will perform the solution by placing a couple of ErrorDocument handlers at the top of the .htaccess to pre-empt the WordPress .htaccess rules.

There are a couple of scenarios we will be preventing WordPress from handling. If there are 401 errors (directory authentication) it will send the user to an error page. If there is a 403 error code (a forbidden directory situation) it will send the user to an error document as well. The WordPress permalinks rule never gets processed and will be ignored for these two errors.

Editing the WordPress .htaccess is Simple Solution

The first thing you need to do is locate your WordPress directory. This is often either your www directory or public_html directory. Locate your .htaccess file and open it using any text editor. If you do not see this file you can simply create one using any text editor (such as Notepad on Windows).

Update the .htaccess file before the WordPress information and add the following two lines of code:

ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html

The finished .htaccess should look like:

ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Victory!

Make sure your FTP program is set to upload as ASCII. Upload the .htaccess file to your home directory (often public_html or www). You can also upload an error.html to the root directory.

Attempt to access a directory that is password protected will now give you the popup box you were expecting in the first place, so you can enter your login credentials and gain access as normal.

We also learned how to process 401 and 403 errors in the process using Apache’s ErrorDocument directive using .htaccess in the process.

Add custom data to cPanel system backups

As a cPanel administrator, we sometimes need to get cPanel to do a little extra work for us. Especially if we’re running applications that cPanel isn’t necessarily aware of, or managing. Today we’ll talk about getting cPanel to add extra files to your backups.

To add extra files to the list of things that cPanel backs up, you just create and then add information to files in /var/cpanel/backups/extras/. The files in the directory can be named anything at all, but each item you want backed up myst be separated by a new line, and must be a full path to include in the backup.

For example, let us create this file:

/var/cpanel/backups/extras/backupThisStuff

And let us populate that file with the following contents:

/home/this/is/important/stuff.txt
/home/thistoo/
alsothis

In this case, the file stuff.txt and the folder thistoo would be backed up, but the entry alsothis would not be backed up, because it is not a full path.

I can think of at least a few ways that this would be helpful, and have already used it on one of my servers. Hope it helps you as well!