2010 EC2 Setup Part 2

Setting up MySQL

1) sudo apt-get install mysql-server

2) Enter Root password

3) sudo service mysql start

Advertisements

EC2 Keypairs

Had not touched this for a while and got stuck trying to log into a new instance on EC2. Tried a few options and kept getting “Permission denied (publickey).”

So here are the gotcha’s

1) You need to use the correct keypair.

2) Use you private key

3) Log in a a specific user

For an Ubuntu instance with a private keypair called mykeys.pem

ssh -v -l ubuntu -i mykeys.pem ec2-some-ip.com

TimeMachine Remote Disk

Found this simple way to make TimeMachine use a network shared drive.

1) Share the drive on the network with Read/Write

2) Enter the following command in a terminal

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3) Open time Machine and select the shared drive.

2013-11-15 Update for Mavericks…………

Issue here is that you need to connect to TM machine using AFP and not the new default of SMB. So New procedure is….

 

1) Share the drive on the network with Read/Write

2) Enter the following command in a terminal

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3) Reboot. Yes, I know you are saying WHAT!!! but just do it

4) now open Finder and log into the shared machine using AFP (CMD+K)

afp://192.168.100.200

(This is the IP of my machine)

5) Open time Machine and select the shared drive.

 

Deploying Swiz based Flex app

When you decide to deploy a Swiz based Flex app, you need to tell the compiler to keep the meta data tags. Under compiler settings, add the following:

-keep-as3-metadata+=Inject,Autowire,Mediate,Dispatcher,PostConstruct,PreDestroy

Then from the menu. Project -> Export Release Build.

Select the Tomcat WebApps directory and export. This will deploy the export to Tomcat as binary and with Swiz strapped in



		
	

Chrome Flash debugger cannot connect

From this website:

What to do if you upgraded and the Flash Debugger doesn’t work.

In Flex the progress bar read “Waiting for Adobe Flash Player to connect to debugger…”, and after a minute or so it timed out with the error: Failed to connect; session timed out.

The fix is actually pretty simple. In Chrome, just type the following URL into your address bar, chrome://plugins/ and click Disable under the Shockwave Flash plugin with the location that ends with “Flash Player Plugin for Chrome.plugin”. You will want to keep the other Flash plugin enabled because that is your debugger version.