Sunday, 30 June 2013

Installing AWS Toolkit For Eclipse (Eclipse v3.8)

I found a couple of pre-requisites for installing AWS SDK for Eclipse 3.8.
Just add the following as software update sources for Eclipse (Help > Install new software...)

Android SDK Plugin for Eclipse:
https://dl-ssl.google.com/android/eclipse/

Data Tools Plaftorm Enablement Extender SDK:
http://download.eclipse.org/releases/indigo/

You can then install AWS Toolkit for Eclipse:
http://aws.amazon.com/eclipse/

Saturday, 22 June 2013

Can't connect facebook to online accounts in 13.04 - Ask Ubuntu

Looks like Facebook are pushing external messaging clients to a non-https page for authentication - Not good!

As a workaround, you can add the following line:
<setting name="AllowedSchemes" type="as">['https','http']</setting>

To the file:
/usr/share/accounts/providers/facebook.provider

I suggest you save a copy of the original file first as any small typo will break it forever.

My file now looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<provider id="facebook">
<name>Facebook</name>
<icon>facebook</icon>
<translations>account-plugins</translations>
<domains>.*facebook\.com</domains>
<plugin>generic-oauth</plugin>
<template>
  <group name="auth">
  <setting name="method">oauth2</setting>
  <setting name="mechanism">user_agent</setting>
    <group name="oauth2">
      <group name="user_agent">
      <setting name="Host">www.facebook.com</setting>
      <setting name="AuthPath">/dialog/oauth</setting>
      <setting name="RedirectUri">https://www.facebook.com/connect/login_success.html</setting>
      <setting name="Display">popup</setting>
      <setting type="as" name="Scope">['publish_stream','read_stream','status_update','user_photos','friends_photos','xmpp_login']</setting>
      <setting name="ClientId">302061903208115</setting>
      <setting name="AllowedSchemes" type="as">['https','http']</setting>
      </group>
    </group>
  </group>
</template>
</provider>


Kudos to Ankit Shah at:
Can't connect facebook to online accounts in 13.04 - Ask Ubuntu:

Not really a long term answer, Facebook need to sort it!

'via Blog this'

Wednesday, 19 June 2013

Internet Explorer 9 Navigation blocked due to invalid certificate 1024 bit

Had a problem where IE9 would not open a web page, whereas IE10 would. Web page is the management site for an HP StorOnce B6200 appliance.

Looks like the StorOnce appliance is using a 1024 bit public key, and IE9 doesn't like this. The certificate is self signed, and you get the normal error, but the "Continue to this website (not recommended)." link is not available:


I did some Googling and found this.

I ran certutil -setreg chain\EnableWeakSignatureFlags 8.

I didn't have to reboot, just logged out and in, and the Web page changed:


I will investigate a longterm fix of adding a proper certificate (we have internal certificate servers) or public certificate. I'll also approach HP about icreasing the public key length from 1024 to 2048 bits.

Tuesday, 30 April 2013

How IE8 catagorises Top Level Domains

Found an interesting issue between IE7 and IE8 (and above) to do with how IE categorises Top Level Domains (TLD).

Why does this list matter? Because it controls what domains you can use with wildcards in site to zone assignments within group policy.

If your domain is on the list - You can't use it with a wildcard.

You can see what the list is by using the following URL in IE8 or IE9:
res://urlmon.dll/ietldlist.xml

Does anyone know what it is in IE10?

Thanks to the following article for helping us along the road of discovery:
http://blog.gerv.net/2009/11/ie_8_and_the_public_suffix_list/


Wednesday, 3 April 2013

CentOS disable c6-media repo

How to disable CentOS c6-media repo:

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=33037&forum=56


Link:

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32282&forum=55&post_id=138053#forumpost138053

Answer from TrevorH:

Edit the file /etc/yum.repos.d/CentOS-Media.repo and make sure that the line enabled = says 0

Remove old kernels from Redhat

Found this useful article:
http://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/

It shows how to remove old kernals manually and automatically from Redhat based distros.

Friday, 15 February 2013

Reason for un-mountability: the original volume has some extents online


I've raised a support request, but thought I'd post this here to see if anyone else has seen the same issue on ESXi 5.1,914609.

We are implementing an HP Cloud Matrix system with ESXi 5.1 as one of the supported Hypervisors. Part of the delivered solution is HP Matrix Recovery Management which allows us to failover services to a DR site that has the VMFS volume synched across two 3Par V400 SANS.

As we understand it, the HP official guide to passing changes from the primary to DR site is to export the configuration, failover the storage, and then import the conifguration at the remote site. There is another way of doing this through the use of storage snapshots (we have tested this fine with Hyper-V):


  1. Create a RW Virtual Volume copy of the RO LUN at the remote site
  2. Unexport the RO LUN from the remote VMWare hosts
  3. Export the RW LUN to the remote VMware hosts
  4. Mount this RW LUN
  5. Import the configuration
  6. Unexport the remote RW LUN
  7. Export the remote RO LUN
  8. Delete the RW LUN


This process works fine on Hyper-V using CSV disks, but has the following problem on ESXi 5.1; When the LUN is changed, it is detected as a snapshot (as expected), but the snapshot is not mountable because the VMHost thinks it is already online:

~ # esxcli storage vmfs snapshot list
51128c21-f07c4a24-4e24-00215a9b20f7
   Volume Name: Vv_prim_vmfs_cloud_repl.02
   VMFS UUID: 51128c21-f07c4a24-4e24-00215a9b20f7
   Can mount: false
   Reason for un-mountability: the original volume has some extents online
   Can resignature: true
   Reason for non-resignaturability:
   Unresolved Extent Count: 1
~ # esxcli storage vmfs snapshot mount -l "Vv_prim_vmfs_cloud_repl.02"
Unable to mount this VMFS volume due to the original volume has some extents online


The only solution we have found is to reboot ALL the VM hosts in the remote cluster. They ALL then report the following, and can mount the volume:

~ # esxcli storage vmfs snapshot list
51128c21-f07c4a24-4e24-00215a9b20f7
   Volume Name: Vv_prim_vmfs_cloud_repl.02
   VMFS UUID: 51128c21-f07c4a24-4e24-00215a9b20f7
   Can mount: true
   Reason for un-mountability:
   Can resignature: true
   Reason for non-resignaturability:
   Unresolved Extent Count: 1
~ # esxcli storage vmfs snapshot mount -l "Vv_prim_vmfs_cloud_repl.02"
~#

We have tried various vmkfstools commands to release the LUN etc, but they don't seem able to see the LUN even though we can see the device for the volume.

Is this something you have seen before?

Is there anything you can suggest?

Saturday, 24 November 2012

chown root:root boinc *

Spot the deliberate mistake!
  • cd /usr/bin
  • sudo chown root:root boinc *
Probably not a good idea to try updating boinc on your Linux Ubuntu 12.04 LTS server when you can't sleep but are so very tired. Good one to know that chown also removes all setuid and setgid bits. :(

I booted a Live CD, and from what I can see, these are the default permissions and owners in /usr/bin:


Please let me know if anything is wrong.

Monday, 13 August 2012

VMWare Mouse Stuck in Bottom Right Corner


Had a problem with a mouse stuck in the bottom right corner of the Window of a VMWare virtual machine. This machine was P2V'd many moons ago and we had to access the VMWare console instead of accessing it via RDP as we normally do because we'd started up another instance.

Registery edits to fix it dound at the link below:
http://blog.dhampir.no/content/vmware-mouse-problems-mouse-stuck-in-bottom-right-corner

Using Regedit, remove the msvmmouf value from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}.

Leave the other values alone!