Saturday, September 10, 2011

SSH Passwordless login

Passwordless login is a great feature when you are performing regular administration between servers. I use it often, but rarely go through the process to set up.  Therefore I usually forget what needs to be done and I end up scouring the web for instructions.   So here is what I ended up with.

I have my local system, we'll call it Home and then I have a remote server, we'll call it Remote (nor very creative, I know).  In this case both servers are running Ubuntu 10.04.

If you haven't done this before on Home you'll need to generate authentication keys (step 2).  Otherwise skip this step.

  1. Log into Home (local computer) as the user you want to user for passwordless ssh
  2. Type: ssh-keygen -t rsa
    • Default directory for keyfiles will be ~/.ssh/ (your home directory)
    • Leave passphrase blank!
  3. Copy the contents of .ssh/id_rsa.pub (there should only be one line) to your home directory .ssh folder on the Remote server.  The file will be called ~/.ssh/authorized_keys
    • Check first to make sure there is a .ssh folder in your home directory on Remote
    • Type:  scp id_rsa.pub remoteuser@Remote:.ssh/authorized_keys
That's it! You can how ssh directly to your remote user @Remote without a password prompt.

Monday, August 29, 2011

Online photos AND vidoes?

Monument Taken with iPhone 4 - Unmodified
What a hassle.  So many technologies - especially when it comes to video - and so little compatibility.

First off I have to say the iPhone 4 takes EXCELLENT video and pictures. In many cases with adequate light and distance to target these pictures were on par or even better then using my Canon 30D and a kit lens.   Yes the Canon can definitely take better pictures, but from a daylight, snapshot perspective, the iPhone is incredible.

So I wanted to upload all of my vacation pictures and video into a single location.  I really like the Picasa interface so I started there.  Pictures are easy enough, they can be edited, rearranged and then uploaded.  But video is a whole different story. First off I had some video from my Canon HD Video Camera and the iPhone video.  The iPhone video was easy, load it into Picasa and up to the web in no problem.

The canon on the other had stores it's files in .mts format.  Picasa could read an play this (at least on my computer) but it was very choppy, huge files to upload and then once upload the audio was questionable at best.

So i needed to convert the video down to a more reasonable format.  I have the Nero 10 suite of tools and while capable the interface is horrid.  Regardless, here are the steps I took:

- I started a new video project in Nero Vision.
- I then imported the video clip (copy paste) and cropped it down to size
- I tested multiple export formats and the best size/compatibility/quality I could find is
: Format : AVC
: Profile : iPod/ iPhone VAC

Honestly this worked great!  I could then save it into a Picasa folder and then sync up to the web.  The best size/quality overall was straight MP4 but that had playback problems.   The AVI's were huge and low quality and the WMV's were actually very good size and quality but I had concerns over compatibility. For giggles I also tried creating the files in HandBrake and the quality was questionable and too large.


Friday, March 4, 2011

Nagios -> Icinga & NConf

I started using Nagios many years ago.  While the configuration is not complicated I always felt there was no reason to be administrating at the command line.  Years ago I used a decent web interface - I believe it was called Fruity, but now with Nagios 3 I didn't see any updated support.

In comes NConf.  I get nagios and NConf up and running but the I quickly run into Icinga which is a fork of Nagios.  Always looking for the latest and greatest I try it out.  The good news is it does everything Nagios does.  The bad news is, it basically seems to do it the same way.   After running Icinga from a basic administrative perspective I don't see the difference.

I'm running Ubuntu 10 on my server.  To install I used the following article to setup Icinga on Ubuntu
http://www.fishfood.co.nz/2010/02/howto-to-tie-yucatan-knot.html

And then the following article to get NRPE (connection to remote monitoring) working.
http://www.crucialwebhost.com/blog/using-nrpe-to-monitor-remote-services/ 

These articles got me there but it wasn't as simple and straightforward as it should be.

Next I wanted to do remote monitoring of MySQL.   I used the nagios check_mysql_health plugin.  But even with it configured I needed to know values to set for warning and critical.  I used this article as a starting point to assign these.
http://mikehathaway.com/sites/mikehathaway.com/files/mysql_demo.cfg

Monday, February 21, 2011

I love to cook - Meal #57

Cooking to me isn't just about eating.  There's much more and the process of doing it is often just as much fun as enjoying the fruits of my creation.  I love spending the time with my wife (she's my sous).  We often drink wine while cooking and usually invite guests, who I also invite to participate.   I plan the meal, do the shopping, coordinate the assembly but otherwise get as much help as I can.

Saturday night we cooked for a couple friend of ours.  I realized that I need to keep better track of what I make as well as any notes to help me next time.  So here goes.

Appetizer
Ceviche de Atun - Fonda San Miguel p37
This is an incredible ceviche and fairly quick to prepare.  Because it's using Sushi grade tuna it only needs to "cook" for 15 minutes.  The time consuming part here is the juicing of the three citruses, but the light flavor is just unbelievable.  I also added chopped avocado to the service dish and fried the chips using my favorite tortillas El Milagro from here in Austin.

I have made another ceviche before (that more than one person I trust said was the best they had ever had).  Unfortunately I didn't write down which recipe I used.  I am guessing it's Ceviche Veracruzano (Fonda p38) but I can't be sure. :(

Main Course
Jalapeno Cheese Grits  - Hudson's Fired Up p96
I love grits.  This is a great twist on the grits to include the spice and the creaminess of cheese and ... well cream.   I made 1/2 the recipe (cooking for 4) and spread it across a ~9 inch (oval in my case) basking dish.  I wanted it to be about 1-2 inches thick and it worked out perfectly. Once baked I used a 3inch cookie cutter to make 4 round grit cakes.

Sea Scallops
Another favorite of mine.  I got 4 of the largest roundest I could find.  I used my super big metal pan (not non-stick and I wanted to be sure not to crowd them) and heated olive oil to the smoking point.  I patted dry and then salted (kosher) the scallops.  They actually turned out to be a little to salty to next time I'd either do less or not at all.  I seared the scallops until there was a good crust and I could see the cooking part to nearly 1/2 way through.  I flipped them and did the same on the other, a little bit shorter time.    Since they continue to cook after off the fire I error'd on the side of under cooking and they were perfect!  I stacked these on top of the grit cakes.

Chimichurri Sauce
This is one of my favorite sauces.  I usually don't make it very spicy.  I was craving it so I thought it would go nicely over the stacked scallops and grits.    I don't have a set Chimichurri recipe but here is the basics of what I do.  Blend (2 hours early):
- 1 bunch flat leaf parsley
- 1+ tbsp minced garlic (I buy the jar's of pre-minced garlic and always use much more than what is called for in every recipe)
- 3/4 cup extra virgin olive oil
- 1/4 cup rice whine vinegar
- Juice 1/2 lemon
- 1 tbsp diced red onion
- 1 tsp dried oregano
- 1 tsp black pepper
- 1/2 tsp salt


Side
Hudson's Variable Veggies - Cooking Fearlessly p145
This is my staple go-to dish.  It is fantastic and easy.  I have made it more times than I can count and it's so good I don't change the recipe one bit.


Desert
Bananas Foster  - as far as i can research the original recipe from Brennans restaurant
This is one of my three favorite desert dishes to make.  A go-to crowd favorite.

Recipe:
- 1/2 stick unsalted butter
- 1 cup brown surgar
- 1/2 tsp cinanmon
- 1/4 cup banana liqueur
- 4 bananas, cut in half lengthwise then halved
- 1/4 cup dark rum
- vanilla ice cream (I often skip)
Combine butter, sugar, cinnamon in skillet.  Cook until sugar dissolves then stir in banana liqueur.  Place bananas in pan and cook until they soften and start to brown.  Add rum and ignite.   Serve!

Sunday, February 20, 2011

I haven't visited near enough states

Update July 2015 I've added a few more, but still not near enough

visited 28 states (56%)
Create your own visited map of The United States or Triposo world travel guide for Android

This only accounts for less than half the country!   I need to get on the ball.


visited 23 states (46%)
Create your own visited map of The United States