Monday, April 21, 2014

FIXED: GMail/Google Not Authenticating

OK, so you’re trying to access your GMail/Google account from a third party application such as Outlook, Windows Live Mail, etc… but the username and password doesn’t seem to be working.
You’ve checked your username and password several times and maybe even reset it in google and also in your mail client, but still no joy.
You know Google has the same username and password as your mail client, you know the config is right, but it’s still not authenticating. What’s going on?!?!?!
The answer is that Google have locked your account because they have noticed a new application trying to access your mail account or identified some potentially suspicious activity from an application trying to access your mail. One example of suspicious activity is your mail client trying to authenticate with an incorrect password too many times.
The good news is that whatever the cause, its incredibly easy to unlock your account for that application.

To allow an application to access your GMail/Google account:

  1. Go to https://accounts.google.com/DisplayUnlockCaptcha
  2. Click Continue
  3. Follow Google’s instructions
    ‘Sign in using the application you want to authorize access to your account within the next ten minutes. Google will remember the application after it signs in, and will allow it to access your account in the future as long as it uses the correct password’
Easy!

Turn off evaluation licence warnings on VMWare ESXi (Free Version)

I’ve playing with free version of VMWare’s ESXi to experiment with chef’s auto-provisioning tools. I purchased a new shuttle server and an installed VMWare ESXi on it and it runs great!
You can get a free copy of VMWare’s ESXi server from the VMWare website.
However I kept getting evaluation licence warnings coming up all the time, even though I was using the free version. It took me a while to figure it out that I needed to add my free licence key to the ESXi server to change it from evaluation mode (the default mode with no licence key) to free mode (with a valid licence key) and stop the warnings. I guess I’m used to software asking me for the licence key as soon as you open it.
So here’s how you can enter your VMWare ESXi free licence key and get rid of those pesky evaluation warning messages.

Entering your Free VMWare ESXi Licence Key:

  1. Get the licence key
    VMWare should have emailed you an licence for the free version of ESXi. Alternatively you can get it from theVMWare website on the ‘Licence & Download’ tab after logging in.
  2. Log into your ESXI server using the VMWare vSphere Client
  3. Go to the Configuration (Tab)
  4. Select ‘Licensed Features’ from the ‘Software’ Panel on the left
  5. Click the ‘Edit…’ Link in the top right corner of the screen
  6. Select the ‘Assign a new licence key to this host’ radio button
  7. Enter your Free version licence key from Step 1
  8. Client the ‘Enter Key…’ button
That’s it, you’re done!

Launching XAMPP at OSX startup

A few days ago I posted about my experiences setting up XAMPP on OSX. Here’s another little XAMPP tip…
By default XAMPP won’t start the Apache and MySQL services at system startup, so every time you reboot your computer you’ll need to restart them. Wouldn’t it be nice if those services started automatically? One way of doing that is to create a Launch Daemon that runs at system startup and have it start XAMPP for us.
Fire up Terminal, and run the following command:
1
2
cd /Library/LaunchDaemons
sudo nano apachefriends.xampp.apache.start.plist
Enter your OSX password when prompted, then in nano paste the following into your new plist:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.apache.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startapache</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>
Save the file and exit nano (control+o, return, control+x).
Now run the following terminal command:
1
sudo nano apachefriends.xampp.mysql.start.plist
And into this new file paste:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.mysql.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startmysql</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>
Save the file and exit nano (control+o, return, control+x).
When you restart your computer the XAMPP Apache and MySQL services should start automatically. You can check this by launching XAMPP Control and checking that Apache and MySQL have green lights displayed next to them.

A note about security

If you’re concerned about the security of your system while running XAMPP, the safest approach is not to run Apache or MySQL at all, in which case you might not want to have those services running while you’re not using them. However, I’m fairly certain that unless you intentionally open up port 80 in your hardware/software firewall your XAMPP server should be invisible outside your local network.

Credit

A hat tip to ‘cwd’, who posted this solution on Superuser. I tried a couple of other approaches before I stumbled upon this one which actually works.