<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>marius &#187; Bundle</title>
	<atom:link href="http://devilx.net/tag/bundle/feed/" rel="self" type="application/rss+xml" />
	<link>http://devilx.net</link>
	<description></description>
	<lastBuildDate>Mon, 14 May 2012 21:25:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Palm webOS (formerly Palm Pre) Development Bundle for TextMate 0.3</title>
		<link>http://devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/</link>
		<comments>http://devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 23:45:23 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Mac and stuff ...]]></category>
		<category><![CDATA[New & Cool]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[This Site]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Austin Powers]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Bundle]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Mojo]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[Pre]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[webOS]]></category>

		<guid isPermaLink="false">http://www.devilx.net/?p=1077</guid>
		<description><![CDATA[Releasing version 0.3 of my Palm webOS development bundle for TextMate, with plenty new features and a stand-alone &#8220;Mojo&#8221;-language. So, what&#8217;s new in 0.3? Well, just about everything. I&#8217;ve renamed the bundle (at least its metadata), since webOS is not &#8230; <a href="http://devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devilx.net/wp-content/uploads/2009/11/Palm-webOS-0.3.png"><img class="alignleft size-thumbnail wp-image-1079" title="Palm webOS 0.3" src="http://www.devilx.net/wp-content/uploads/2009/11/Palm-webOS-0.3-150x150.png" alt="Palm webOS 0.3" width="150" height="150" /></a>Releasing version 0.3 of my Palm webOS development bundle for TextMate, with plenty new features and a stand-alone &#8220;Mojo&#8221;-language.</p>
<p>So, what&#8217;s new in 0.3? Well, just about everything. I&#8217;ve renamed the bundle (at least its metadata), since webOS is not just limited to the Pre and I&#8217;ve modified the shortcuts of existing features to fit TextMate&#8217;s styling guidelines a bit better. I&#8217;ve also created some snippets which can be used for faster code-writing now and in addition to that, I&#8217;ve implemented a very own language for the bundle, which can&#8217;t be found in the document type picker named as &#8220;Mojo&#8221;. &#8220;Yeah baby!&#8221;, as Austin would say now. Actually, yet it&#8217;s just a copy &amp; paste of the JavaScript-language implementation in TextMate, but I&#8217;m planning to extend it to fit the Mojo-framework even better.</p>
<p>The TextMate bundle is now also available on <a title="devilx's palm-webos-development-tmbundle" href="http://github.com/devilx/palm-webos-development-tmbundle">GitHub</a>, for everyone who can&#8217;t wait for me packaging the releases and releasing them here. <img src='http://devilx.net/wp-content/plugins/smilies-themer/Riceballs/smile.png' alt=':-)' class='wp-smiley' /> If you have any ideas for improvement, feel free to contact me by mail or just leave some lines here on my blog.</p>
<p>Enjoy!</p>
<p><strong><span style="text-decoration: line-through;">Download: </span><a href="http://www.devilx.net/wp-content/uploads/2009/11/Palm_webOS-Bundle-0.3.zip"><span style="text-decoration: line-through;">Palm_webOS-Bundle-0.3</span></a></strong></p>
<p><strong>Download: <a href="http://www.devilx.net/wp-content/uploads/2009/11/Palm_webOS-Bundle-0.31.zip">Palm_webOS-Bundle-0.3</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>TextMate Palm Pre Development Bundle 0.2</title>
		<link>http://devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/</link>
		<comments>http://devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 20:55:58 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Life itself]]></category>
		<category><![CDATA[Linux and stuff ...]]></category>
		<category><![CDATA[Mac and stuff ...]]></category>
		<category><![CDATA[New & Cool]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Bundle]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Cool]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Emulator]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[Pre]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.devilx.net/?p=1070</guid>
		<description><![CDATA[Yes, after not even four hours I&#8217;ve already finished building the 0.2-release of my Palm Pre Development Bundle for TextMate. In case you&#8217;re wondering what weird stuff I&#8217;m talking about, please read my previous post first. However, this second release &#8230; <a href="http://devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_1072" class="wp-caption alignleft" style="width: 160px"><a href="http://www.devilx.net/wp-content/uploads/2009/11/palmprebundle-0.2.png"><img class="size-thumbnail wp-image-1072" title="Palm Pre Development Bundle 0.2" src="http://www.devilx.net/wp-content/uploads/2009/11/palmprebundle-0.2-150x150.png" alt="Palm Pre Development Bundle 0.2" width="150" height="150" /></a><p class="wp-caption-text">Palm Pre Development Bundle 0.2</p></div>
<p>Yes, after not even four hours I&#8217;ve already finished building the 0.2-release of my Palm Pre Development Bundle for TextMate. In case you&#8217;re wondering what weird stuff I&#8217;m talking about, <a title="Palm Pre Development Bundle for TextMate" href="http://www.devilx.net/2009/11/11/palm-pre-development-bundle-for-textmate/" target="_self">please read my previous post first</a>.</p>
<p>However, this second release includes a lot more features than it had before, plus I&#8217;ve made use of the CocoaDialog now. Let me describe the new features from the top to the bottom of the screenshot on the left site.</p>
<p>First of all, there&#8217;s &#8220;Generate New Project&#8221;. This lets you execute a palm-generate with all important attributes and opens the created project afterwards using the &#8220;mate&#8221; terminal-command, which needs to be available for this to work. All you have to do then is simply to save the TextMate project right into your generated project-directory.</p>
<p>Next, we still have &#8220;Generate New Scene&#8221;. I&#8217;ve enhanced the feature now, so that you&#8217;ll get a cocoa dialog asking for the scene&#8217;s name. Beware: The generation usually works as it should, the only problem is the TextMate project-drawer, which doesn&#8217;t seem to refresh by itself. A workaround: Cmd+H to hide TextMate and then click on its Dock-icon to make it appear again. Then all newly generated files should be visible in its drawer.</p>
<p>The next three features work just as before, no enhancements at all. On the fourth, the &#8220;Launch Project in Debugging-Mode&#8221; feature, I&#8217;ve implemented a palm-launch with debugging options, that can be run on an existing, packaged and installed project.</p>
<p>Next, there are ways to close and remove installed Projects. &#8220;Close running project&#8221; of course only works, when the App is actually running and &#8220;Remove installed Project&#8221; removes the App from the device. As device for all those commands the first device found by the Palm toolset will be taken &#8211; so if you would like to use the Emulator, better disconnect your real device and vice versa.</p>
<p>I&#8217;ve also built-in two features that let you simulate test calls and SMS on your Emulator, if you changed from password authentication to SSH public key authentication. You can do this either manually or try to use the feature at the menu&#8217;s bottom named &#8220;Auto-install SSH-Pubkey on Emulator&#8221;. Depending on your SSH-key-setup it works out or&#8230; not.</p>
<p>The other seven features allow you to simulate GPS drives on the Emulator &#8211; again only if you&#8217;ve set-up SSH-Pubkey authentication.</p>
<p>I hope you enjoy this release of the Palm Pre Development Bundle for TextMate! <img src='http://devilx.net/wp-content/plugins/smilies-themer/Riceballs/smile.png' alt=':-)' class='wp-smiley' /> </p>
<p><strong><span style="text-decoration: line-through;">Download: </span><a href="http://www.devilx.net/wp-content/uploads/2009/11/Palm-Pre-Bundle-0.2.zip"><span style="text-decoration: line-through;">Palm-Pre-Bundle-0.2</span></a></strong></p>
<p><strong>UPDATE:</strong> There&#8217;s a newer version available! <a title="Palm webOS (formerly Palm Pre) Development Bundle for TextMate 0.3" href="http://www.devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/">Get it here</a>. Or use <a title="GitHub" href="http://github.com/devilx/palm-webos-development-tmbundle">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Palm Pre Development Bundle for TextMate</title>
		<link>http://devilx.net/2009/11/11/palm-pre-development-bundle-for-textmate/</link>
		<comments>http://devilx.net/2009/11/11/palm-pre-development-bundle-for-textmate/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:05:36 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Life itself]]></category>
		<category><![CDATA[Linux and stuff ...]]></category>
		<category><![CDATA[Mac and stuff ...]]></category>
		<category><![CDATA[New & Cool]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bundle]]></category>
		<category><![CDATA[Cool]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[Pre]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.devilx.net/?p=1065</guid>
		<description><![CDATA[Today I&#8217;ve created a tiny little bundle for the best editor available™ named TextMate which adds Palm Pre development features to it. The bundle contains of four commands which let you generate new scenes, package your project, install and launch &#8230; <a href="http://devilx.net/2009/11/11/palm-pre-development-bundle-for-textmate/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devilx.net/wp-content/uploads/2009/09/TextMate.png"><img class="alignleft size-full wp-image-992" title="TextMate" src="http://www.devilx.net/wp-content/uploads/2009/09/TextMate.png" alt="TextMate" width="64" height="64" /></a>Today I&#8217;ve created a tiny little bundle for the best editor available™ named <a title="TextMate - The Missing Editor" href="http://macromates.com/">TextMate</a> which adds Palm Pre development features to it. The bundle contains of four commands which let you generate new scenes, package your project, install and launch it on the Pre Emulator. Of course, you need to have Palm&#8217;s SDK installed for it to work.</p>
<p>The scene generation works like this: You implement your <em>this.controller.pushScene(&#8220;Main&#8221;);</em>-statement, select the scene&#8217;s name (Main, without the quotes!) and select the scene-generation command from the bundle&#8217;s menu. The command will immediately generate you a new scene named just the way you chose to name it. <img src='http://devilx.net/wp-content/plugins/smilies-themer/Riceballs/smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>The other three commands can be ran by pressing the keys Fn+Ctrl+F5/F6/F7. Attention: The bundle only works with TextMate Projects! Generate your Palm Pre project like you always do, by using the following command:</p>
<blockquote><p>palm-generate -p &#8220;{ title:&#8217;ProjectName&#8217;, id:com.my.ProjectName, version:&#8217;1.0.0&#8242; }&#8221; ProjectName</p></blockquote>
<p>Then, create a new TextMate Project and drag&amp;drop the folder palm-generate created for you (&#8220;ProjectName&#8221;) into the Project&#8217;s drawer. Save the project <strong>within</strong> your Project-directory (&#8220;ProjectName&#8221;) and then run the commands.</p>
<p>This is the very first version of this bundle and I&#8217;ll keep constantly improving it with other features that help me and hopefully others on the development of Palm Pre Web-Apps.</p>
<p>Enjoy!</p>
<p><strong><span style="text-decoration: line-through;">Download: </span><span style="text-decoration: line-through;"><a href="http://www.devilx.net/wp-content/uploads/2009/11/PalmPre-Bundle-0.1.zip">PalmPre-Bundle-0.1</a></span></strong></p>
<p><strong>UPDATE:</strong> There&#8217;s a newer version available now! <a title="TextMate Palm Pre Development Bundle 0.2" href="http://www.devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/" target="_self">Get it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://devilx.net/2009/11/11/palm-pre-development-bundle-for-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon EC2: How to Setup an Instance and Bundle it</title>
		<link>http://devilx.net/2009/11/01/amazon-ec2-how-to-setup-an-instance-and-bundle-it/</link>
		<comments>http://devilx.net/2009/11/01/amazon-ec2-how-to-setup-an-instance-and-bundle-it/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:25:46 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Linux and stuff ...]]></category>
		<category><![CDATA[New & Cool]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[AMI]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Bucket]]></category>
		<category><![CDATA[Bundle]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Elastic]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Instance]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.devilx.net/?p=1033</guid>
		<description><![CDATA[I know, that there are several documentations concerning Amazon&#8217;s Elastic Cloud Computing, though I&#8217;d like to describe some very first steps for using their infrastructure to build (Linux-) instances that fulfill your needs. Let&#8217;s not beat around the bush and &#8230; <a href="http://devilx.net/2009/11/01/amazon-ec2-how-to-setup-an-instance-and-bundle-it/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I know, that there are several documentations concerning Amazon&#8217;s Elastic Cloud Computing, though I&#8217;d like to describe some very first steps for using their infrastructure to build (Linux-) instances that fulfill your needs. Let&#8217;s not beat around the bush and start-over by setting up the very first instance.</p>
<p>The first thing needed is a client computer running any kind of the supported OSs by the Amazon API tools and of course the tools themselves. After you&#8217;ve installed those and configured all credentials the right way, we can create a new pair of SSH keys for our new project. Due to the location I&#8217;m currently in, I&#8217;ve chosen to use Amazon Instances in the western EU. Execute the following line on your command-line:</p>
<blockquote><p>ec2-add-keypair &#8211;region eu-west-1 test-keypair</p></blockquote>
<p>The result should look something like this:</p>
<blockquote><p>[Deprecated] Xalan: org.apache.xml.res.XMLErrorResources_en_US<br />
KEYPAIR	test-keypair	e1:1a:d1:a1:a1:1c:10:a1:b1:d1:cb:11:11:1a:11:11:f1:11:ae:fe<br />
&#8212;&#8211;BEGIN RSA PRIVATE KEY&#8212;&#8211;<br />
XXX<br />
&#8212;&#8211;END RSA PRIVATE KEY&#8212;&#8211;</p></blockquote>
<p>You can now copy the lines from <i>BEGIN&#8230;</i> until <i>END&#8230;</i> (including those two) into a file which you&#8217;ll be using as SSH-key for connecting to your instance. Don&#8217;t forget to <i>chmod 600</i> it!</p>
<p>Next, let&#8217;s see what base-images for creating our instance we could you &#8211; first, provided by Amazon themselves:</p>
<blockquote><p>
ec2-describe-images &#8211;region eu-west-1 -o &#8216;amazon&#8217;
</p></blockquote>
<p>The list is contained of several different OSs and versions, although in our current project we can&#8217;t make use of any of those. Therefor, we&#8217;re now searching for a perfectly fitting, really good operating system:</p>
<blockquote><p>
ec2-describe-images &#8211;region eu-west-1 -a | grep -i debian
</p></blockquote>
<p>And yet, we receive another list with several different versions of the Debian Linux distribution. After we&#8217;ve picked the one we&#8217;d like to run, we should check what instances are currently up and running:</p>
<blockquote><p>
ec2-describe-instances &#8211;region eu-west-1
</p></blockquote>
<p>If you&#8217;re using Amazon&#8217;s EC2 for the first time, there shouldn&#8217;t be any items listed. We can now start our very first instance, by copying the instance&#8217;s identifier (in the second column, a string starting with ami-<id>) and pasting it into our command:</p>
<blockquote><p>
ec2-run-instances &#8211;region eu-west-1 -k test-keypair -g &#8216;http/s&#8217; -g &#8216;ssh&#8217; ami-b8446fcc
</p></blockquote>
<p>In this command, we tell Amazon to start up a new instance that&#8217;s built on top of the ami-b8446fcc-image, using the key-pair we just created before and using some custom built firewall-rules named &#8220;http/s&#8221; (which allows us to connect to port 80 and 443) and &#8220;ssh&#8221; (port 22).</p>
<p>We need to wait a few seconds, until the instance comes up. We can use the describe-instances command from above to check the instance&#8217;s status:</p>
<blockquote><p>
ec2-describe-instances &#8211;region eu-west-1
</p></blockquote>
<p>As soon as it&#8217;s up and running, the &#8220;pending&#8221; column should have been replaced by a dynamically allocated hostname and the status &#8220;running&#8221;. Keep in mind, that this hostname/ip is dynamically allocated! If you want a fixed IP, you need to allocate and assign an Elastic IP &#8211; I&#8217;ll show you later how to do so.<br />
If our firewall rules worked out, we can now connect using SSH:</p>
<blockquote><p>
ssh -i ~/Library/EC2/id_rsa-test-keypair root@ec2-11-111-11-111.eu-west-1.compute.amazonaws.com
</p></blockquote>
<p>By default, Amazon sets up a Small Instance, that provides around 10 GB of hard drive, an Dual-Core AMD Opteron 2218 with 2600 MHz and around 1.7 GB of RAM. Small instances, in comparison to the bigger ones, also still provide a real swap-partition which is limited to 895 MB. Here, you could run into problems when installing some Oracle for example, since the DB would like to have 1 GB or more Swap-space. If 895 MB should not be enough, the only way to enlarge it seems to be to use a file within your file-system for that. Either, by placing it somewhere into / or by using /mnt for that. /mnt is a special mount in Amazon instances which provides you 147 GB of additional <i>volatile</i> storage. Amazon doesn&#8217;t guarantee in any way the storage to be stable/solid or even backed up &#8211; and usually /mnt is only used for bundling your instance. You might now think <i>&#8220;so, where could I place my data, if / is only providing me 10 GB of space and /mnt should not be used for storing sensitive data?&#8221;</i> &#8211; well, there&#8217;s a third possibility named Elastic Block Storage. An EBS is being displayed to your instance as regular block-device (/dev/sdb, &#8230;) that&#8217;s format- and mountable. There, sensitive data could be stored, by bind-mounting the directories you&#8217;d like to have your data in. I&#8217;m not going to explain how this works, else I&#8217;ll never finish writing this brief documentation.</p>
<p>However, since we&#8217;re connected to the instance now, we can set it up the way we want it, with whatever software we need on it. I&#8217;ve assumed, that most people would set it up as regular LAMP-instance, therefor I&#8217;ve also added the firewall-rule for HTTP/HTTPS. After we finished installing the software we need, there&#8217;s one more package that should be plugged into the system: The Amazon AMI Tools. Simply wget them from http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip and unzip the package. Those tools make use of Ruby, so ensure having it installed on your instance. Also, you need to have the private key (pk-<id>.pem) and the certificate (cert-<id>.pem) you created the instance with somewhere within your instance&#8217;s filesystem, for later use.</p>
<p>Before we bundle up our system now, let&#8217;s come back to the topic we had before: The hostname/IP. Amazon allocates some dynamic address, unless you tell them to give you a fixed (called Elastic) IP. You can do that by simply executing:</p>
<blockquote><p>
ec2-allocate-address &#8211;region eu-west-1
</p></blockquote>
<p>&#8230; within your client&#8217;s command-line (where the Amazon API Tools have been installed &#8211; not on the instance!). As result you&#8217;ll get some IP address that has now being allocated by Amazon for you. The IP isn&#8217;t bound to any instance yet &#8211; it&#8217;s just allocated for you to be able to use it. ATTENTION: You pay for Elastic IPs as long as you do not assign them to an instance. Yes, that&#8217;s right. Amazon charges you for every allocated but unused IP hourly. By that, they want to prevent people &#8220;collecting&#8221; addresses, I guess. To assign the address you just received to your instance, simply run:</p>
<blockquote><p>
ec2-associate-address &#8211;region eu-west-1 -i i-11e11b1e 79.125.11.11
</p></blockquote>
<p>The i-<id> is your actual instance&#8217;s ID, where the last, dot-separated number is the IP you&#8217;ve received. And yes, those are fake numbers &#8211; so don&#8217;t even try. <img src='http://devilx.net/wp-content/plugins/smilies-themer/Riceballs/wink.png' alt=';]' class='wp-smiley' /> </p>
<p>Now it could take a bit for Amazon to reconfigure the instance, but as soon as it finished, you should be able to re-connect to the instance using the IP you just assigned to it.</p>
<p>As last task for today, let&#8217;s bundle up the image the way we have it now. Bundling an image allows you more than just eating up your credit card&#8217;s limit by dumping your S3 buckets. On the one hand, with bundles you can recover machines that crashed or lost data within a few blinks and on the other, you can created new instances out of a bundle (talking about &#8220;scalability&#8221;).</p>
<p>For bundling, we use the AMI tools we installed. First of all, let&#8217;s create a directory for the bundle:</p>
<blockquote><p>
mkdir /mnt/myimage
</p></blockquote>
<p>After that, run the bundle-vol-tool:</p>
<blockquote><p>
ec2-bundle-vol -k pk-<id>.pem -c cert-<id>.pem -s <bundle size in MB, e.g. 5000> -u <user-id, without dashes> -d /mnt/myimage/
</p></blockquote>
<p>This command takes several parameters for the private key, the certificate, the size of the resulting bundle in MB and your User-ID (without dashes). The User-ID can be found within your Account Information on Amazon&#8217;s EC2 site. The command should ask you, what architecture you&#8217;d like to bundle the system for &#8211; i386 should work out perfectly for what we&#8217;re doing. The following procedure could take some time, since the tool collections every peace of the system and builds a bundle into the directory we specified. As soon as the tool finished, we can upload our bundle to our S3-bucket:</p>
<blockquote><p>
ec2-upload-bundle &#8211;location EU -b <some unique bucket name>  -m /mnt/myimage/image.manifest.xml -a <access-key> -s <secret-key>
</p></blockquote>
<p>Again, we need to specify some credentials (our access-key and the secret-key) for the upload to work. Also, we need to pick a globally unique bucket-name for uploading the bundle, what shouldn&#8217;t be that hard as long as you don&#8217;t try stuff like &#8220;linux&#8221; or other common words. The bundle will then be uploaded to your (private) bucket, so you have it for later use.</p>
<p>From within the web-interface you could now simply create new instances out of the uploaded bundle, without even knowing how the actual system was set up or having the Amazon API tools installed on your client.</p>
<p>Cool stuff, enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://devilx.net/2009/11/01/amazon-ec2-how-to-setup-an-instance-and-bundle-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

