Setup EC2 and FileZilla with PPK file on Mac OS X

Coming from a Windows platform where I have tools like Putty to connect via SSH to our EC2 (Elastic Cloud Compute) instance on Amazon web services(AWS) and a tool like Pageant where I can load a .ppk key to allow me to connect my Filezilla client to connect via SFTP.

I had  to do the same on Mac OS X which eventually took me a bit of time to figure out. So I’m writing this short tutorial to document how I got it configured, so I can refer to it in the future and also help out those having a hard time setting it up. This tutorial is basically for those users who connect to Ec2 from a Windows platform and then moved to a Mac OS X platform.

1. On Windows using a telnet application like Putty to connect via SSH, you require a .ppk key. So first thing is to locate your PPK key in Windows.

2. Next you need to convert the PPK key to an OpenSSH format. Using PuttyGen load the .ppk file and then save the .ssh file generated. (eg. files aws_rsa.ppk and aws_rsa.ssh)

3. Copy the .ssh file and the original .ppk file over to your Mac directory like the Documents folder

4. Next open up Terminal on your Mac and create a new directory

# mkdir ~/.ec2

5. Copy the .ssh file to the ~/.ec2 directory

#mv /Users/myUser/Documents/aws_rsa.ssh ~/.ec2/aws_rsa.ssh

6. Change the file permission

# sudo chmod 600 aws_rsa.ssh

7. Finally connect to your instance.

# ssh -i aws_rsa.ssh root@ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com

Replace ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com with your EC2 public address.

Hopefully you should be able to connect to your server instance then.

Next is straightforward, this is for using a GUI like FileZilla to connect to your instance.

1. Open up FileZilla then go to Preferences

2. Go under SFTP and click on Add Key

3. Browse over to your Documents folder where you saved your .ppk file

4. Create a new site and add the public address for the host and protocol as SFTP (SSH File Transfer Protocol), user as root and password leave as blank.

That should be it you should be it. You could now SSH using the Terminal or connect via SFTP using FileZilla. Happy cloud computing.

Transfer Analog MiniDV to a MacBook Pro with Firewire 800

If your like me who still uses an Analog miniDV to capture videos on special events, since early 2008 the MacBook Pro now uses a Firewire 800 and went away with the Firewire 400. You would need special cable or adapter to get the job done.

The last MacBook Pro I used which was issued to me when I was working for the local government was an older model around (2007) not the new unibody. Port available to me back then was the  Firewire 400.  The cable I used was a 4pin to 6 pin to convert my analog miniDV to digital.

Here is my Sony HC 32 cradle for my analog miniDV  where I hook up the 4 pin to the second slot marked DV.

So you can either get an adapter that converts Firewire 400 to Firewire 800.

Or  get a 4pin to 9 pin Firewire cable.

I got the 4pin to 9pin cable which cost P900( around $21-$22) in a store I found in SM Megamall.

Now I started to convert all those analog miniDVs I have collected and planning to get a digital camcorder in the future or a point and shoot camera that shoots HD videos.

First Impression with Android SDK and Xcode

I am officially working on a WAMP setup with Eclipse as my IDE. I used a Mac before and setup was MAMP and IDE was Dreamweaver. Now I got a new MacBook Pro and I want to dive in mobile development.

So digging into Android and to iOS with their SDK and testing how fast I can easily pick up writing a Hello World app. Coming from a background of using Eclipse as my IDE I found developing on Android a bit easier. I downloaded the Android SDK loaded it to Eclipse, downloaded some API  packages and created a Virtual Device to demo my Android app. Language used is Java which I have some limited experience writing with on Apex( language used for Force.com). So I got the Hello World app running in a short time.

On Mac side the Xcode download is huge around 4 GB +, reason is that it includes all the libraries, samples and documentation, to get started fast I opted to use the one on the CD installer for Mac which has an older version of Xcode and still iPhone OS not iOS. Installation was quick. Writing my first Hello World though was not quick mostly because I am totally unfamiliar with Objective C but the development tools are fast unlike Eclipse which takes a bit of processing.

My impression is based on SDK, tools and the language.

For SDK I give it to Xcode. For the size of the download though is quite huge for XCode but with the Android SDK and AVD Manager you also need to download packages which eventually are quite huge downloads as well.
For IDE though its like XCode vs Eclipse, I find Xcode cleaner, faster and really better.  Even if I have been a long time Eclipse user, Eclipse sometimes lags while processing actions.

For the language this is kinda biased but I prefer Java as it seems more universal than Objective C.

But still working on learning both.

How to Setup PHP, MySQL and phpMyAdmin on Mac OS X Snow Leopard

My previous working setup was on WAMP( Windows, Apache, MySQL and PHP). On Windows I used a bundled app WampServer that did the job, just install the executable and your all set.

On Mac it kinda needs a bit of work but basically you have to configure PHP, download-install MySQL and phpMyAdmin.
Read the rest of this entry »

First Strobist Project

Bought some new gears for my ever increasing accessories for my first strobist project which is to shoot grad pics for my wife and her business partners Preschoolville’s graduating students.

Got a YongNuo Flash Sync Trigger YN-04ii

Specs:

Wireless Band: ASK is adopted and there are 4 channels to be set by the user

Output Terminal : Hot shoe of the receiver, synchronous end and hot shoe of the launcher.

Remote Distance: 15-10 meters

Application time of the launcher: More than 1000 times

Standby time of the receiver: More than 100 hours

Launcher power: 23A 12V

Receiver power: CR2

And portable umbrella strobist kit ( upgraded to 43 inch umbrella, 6 foot stand and a hot shoe)

PLC Teachers strikes a pose