<?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>Sense PlaNet &#187; cloud</title>
	<atom:link href="http://www.senseplanet.com/tag/cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.senseplanet.com</link>
	<description>finally, web and things get along!  - brought to you by Daniel Kaplan ( daniel@senseplanet.com )</description>
	<lastBuildDate>Mon, 28 Nov 2011 05:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Create a server in the cloud&#8230;in a breeze!</title>
		<link>http://www.senseplanet.com/2009/05/mosso-cloud-server/</link>
		<comments>http://www.senseplanet.com/2009/05/mosso-cloud-server/#comments</comments>
		<pubDate>Mon, 11 May 2009 05:22:10 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Web of Things]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[mosso]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.lalibelaproductions.com/daniel/?p=31</guid>
		<description><![CDATA[and I&#8217;ve built one in less than 90 minutes thanks to Mosso Cloud Server Let me describe the procedure, it might be helpful for those of you willing to set-up a server instance on-demand. Indeed, I&#8217;ve been working on a RESTful API for my wireless sensors. I was a newbie and despite many roadblocks, let [...]]]></description>
			<content:encoded><![CDATA[<p>and I&#8217;ve built one in less than 90 minutes thanks to <a title="Mosso Cloud Server" href="http://www.mosso.com">Mosso Cloud Server</a><br />
Let me describe the procedure, it might be helpful for those of you willing to set-up a server instance on-demand.</p>
<p>Indeed, I&#8217;ve been working on a RESTful API for my wireless sensors. I was a newbie and despite many roadblocks, let me assure you that it is amazing how server/web services technologies are accessible nowadays!<br />
Anyway, now that I have a home-brew Java web services running locally, I tried to load it on a cloud server and below is the procedure I followed.</p>
<h3>Cloud server providers:</h3>
<p>I&#8217;ve been looking at <a title="Amazon EC2" href="http://aws.amazon.com/ec2/">Amazon EC2</a> and <a title="Mosso Cloud Server" href="http://www.mosso.com">Mosso</a>. I&#8217;ve decided to go for the latter: <a title="Amazon EC2" href="http://aws.amazon.com/ec2/"><br />
</a></p>
<ul>
<li><span style="text-decoration: underline;">Price:</span> Mosso provides cloud server starting at about 15$ a month for 256MB RAM or 30$ for a 512MB.</li>
<li><span style="text-decoration: underline;">Ease-of-use:</span> Creating a server instance is straight-forward with Mosso.<br />
Once the server is created, server informations ( login/pw/ip ) are sent over by email. SSH connection gives you root permissions.<br />
Whereas EC2 server configuration is more tricky</li>
<li><span style="text-decoration: underline;">Reliability, scalability, security:</span> I would discuss those topics later on since I haven&#8217;t been confronted to them yet.<br />
Should you have any opinion, please chime in!</li>
</ul>
<h3>Server creation with Mosso:</h3>
<p>Launching a server instance with Mosso is a breeze. Once an account is registered, one can access a neat admin page whereby a new server instance can be created on-demand.<br />
Several OS are available and I&#8217;ve picked up CentOS 5.2 because it was the first one in the list !<br />
Below is a server creation page screenshot:</p>
<div id="attachment_60" class="wp-caption alignnone" style="width: 565px"><img class="size-full wp-image-60" title="Mosso Cloud Server" src="http://www.lalibelaproductions.com/daniel/wp-content/uploads/2009/05/picture-14.jpg" alt="Mosso Cloud Server" width="555" height="391" /><p class="wp-caption-text">Mosso Cloud Server</p></div>
<p> </p>
<h3>MySQL installation:</h3>
<p>To install MySQL, just follow the procedure below:</p>
<ol>
<li>Connect to your server:<code><br />
ssh root@yourIP</code></li>
<li>Download and install MySQL thanks to &#8216;yum&#8221; command:<code><br />
yum install mysql-server mysql mysql-devel</code></li>
<li>Start MySQL:<code><br />
/etc/init.d/mysqld start</code></li>
<li>Add MySQL user:<code><br />
CREATE USER 'yourUsername' IDENTIFIED BY 'yourPassword';<br />
CREATE USER 'yourUsername'@'localhost' IDENTIFIED BY 'yourPassword';<br />
GRANT ALL ON *.* TO 'yourUsername' IDENTIFIED BY 'yourPassword';<br />
GRANT ALL ON *.* TO 'yourUsername'@'localhost' IDENTIFIED BY 'yourPassword';</code></li>
<li>That&#8217;s it!</li>
</ol>
<h3>Tomcat 6, Java 1.6 and ActiveMQ 5.2:</h3>
<p>Although &#8216;yum&#8217; could be used,  I&#8217;d rather download locally the packages for Tomact, Java and ActiveMQ.<br />
Now, let&#8217;s schlep those packages to my cloud server:</p>
<ol>
<li> Download <a title="Tomcat 6" href="http://download.filehat.com/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz">Tomcat 6</a> , <a title="Java DK 6" href="http://java.sun.com/javase/downloads/index.jsp">Java 6</a> and <a title="ActiveMQ 5.2" href="http://activemq.apache.org/activemq-520-release.html">ActiveMQ 5.2</a></li>
<li>Uncompress and copy the binaries respectively under /usr/tomcat ,  /usr/java/ and usr/activemq/ as below:<code><br />
scp -r /jdk1.6.0_05 root@yourIP:/usr/java/<br />
scp -r 6.0.18/ root@yourIP:/usr/tomcat/<br />
scp -r activemq5.2/ root@yourIP:/usr/activemq</code></li>
</ol>
<h3>Environment variables:</h3>
<p>Let&#8217;s create a .bash_profile file to set environment variables properly as below:<br />
My .bash profile:<br />
<code><br />
#java<br />
export JAVA_HOME=/usr/java/jdk1.6.0_05/<br />
export JRE_HOME=/usr/java/jdk1.6.0_05/jre/<br />
#tomcat<br />
export CATALINA_HOME=/usr/tomcat/6.0.18/<br />
#activemq<br />
export ACTIVEMQ_HOME=/usr/activemq/5.2/<br />
#mysql<br />
export MYSQL=/usr/bin/<br />
export mysql=/usr/bin/mysql<br />
export mysqladmin=/usr/bin/mysqladmin<br />
#export PATH<br />
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$JRE_HOME/bin:$ACTIVEMQ_HOME:$MYSQL:$PATH</code></p>
<h3>Start Tomcat and ActiveMQ:</h3>
<ol>
<li>Start ActiveMQ ( if needed ):<code><br />
/usr/activemq/5.2/bin/activemq</code></li>
<li>Start Tomcat:<code><br />
/usr/tomcat/6.0.18/bin/startup.sh</code></li>
<li>That&#8217;s it&#8230;. check whether <span style="color: #3366ff;">http://yourIP:8080</span> loads the Tomcat admin page.</li>
</ol>
<h3>Conclusion:</h3>
<p>Within few steps away, one can easily create a server instance on-demand.<br />
Mosso Cloud Server is very appealing and user-friendly. However  I am contemplating to switch over to Amazon EC2 for evaluation purposes.<br />
The reasoning is that Mosso does not provide a way to save home-brew server configurations with specific load of applications whereas Amazon EC2 with its AMIs ( Amazon Machine Instance ) may provide this useful capability.</p>
<p>I&#8217;ll keep you posted!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.senseplanet.com/2009/05/mosso-cloud-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

