{"id":29,"date":"2012-07-29T13:12:00","date_gmt":"2012-07-29T13:12:00","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=29"},"modified":"2012-07-29T13:12:00","modified_gmt":"2012-07-29T13:12:00","slug":"draw-up-a-virtual-cloud-server","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/draw-up-a-virtual-cloud-server\/","title":{"rendered":"Draw up a Virtual Cloud Server"},"content":{"rendered":"<div dir=\"ltr\">Getting up your personal server pages is aimed to help novice users or technology\u00a0hobbyists\u00a0setup a \u00a0personal server on the cloud environment. It is also\u00a0aimed to help web developers setup a simple easy to manage web server commandline way style! Prepare the get your hands dirty.<\/p>\n<div>\n<div><\/div>\n<p><span>If you have tried VPS, Shared Hosting and is fed up with preinstalled rubbish, we are on the same boat. \u00a0This guide is to help you venturing into cloud virtual servers www.rackspacecloud.com and Amazon EC2. Alternatives are slicehost (which are mentioned alot and i have heard good stories). Rackspacecloud \/ Amazon EC2 has a low pricing structure at 0.02 cents per hour. With either, I recommend the ubuntu server LTS series. Its fast, does the job and supported by a huge\u00a0fan base.\u00a0<\/span><br \/><span><br \/><\/span><span>Why is this good? A simple answer is that bugs get fixed very quickly and new improvements keep happening. So you see all the big names on the internet, but what do all of them mean?<\/span><\/div>\n<ul>\n<li>RackspaceCloud Hosting [256mb ram \/ 10gb HDD] \/ Amazon Micro Instance<\/li>\n<li>Ubuntu Linux Server LTS Edition 12.04<\/li>\n<li>LightTPD 1.5 (webserver used by youtube meebo wikimedia)<\/li>\n<li>MySQL 5.x (www.mysql.com) \/\u00a0SQLite 3.6.x.x (www.sqlite.org)<\/li>\n<li>Php 5.2.x (www.php.net)<\/li>\n<li>vsftpd 2.2.x (vsftpd.beasts.org)<\/li>\n<li>Python 2.6.x (www.python.org)<\/li>\n<li>WordPress 2.8.4 \/ 2.9.x \/ 3.x (www.wordpress.org)<\/li>\n<\/ul>\n<div><a href=\"http:\/\/2.bp.blogspot.com\/-3cwTLFkq4HU\/UB0Ns0W2uVI\/AAAAAAAACyA\/bquhNdFaD8E\/s1600\/download.jpeg\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-3cwTLFkq4HU\/UB0Ns0W2uVI\/AAAAAAAACyA\/bquhNdFaD8E\/s1600\/download.jpeg\"><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div>The setups are done simply and mostly default. So it would work if your version is not too far behind or forward in time. Before we start, I assume you have account with RackspaceCloud \/ Amazon EC2. (other providers or\u00a0 personal machine may work; but I will be biased towards my installation methods)<\/div>\n<p><b>Your options of choosing cloud instance (Virtual Machine)<\/b><\/p>\n<p>As you venture into the cloud, you have a few options of all the yadada: &#8220;SAAS \/ PAAS \/ AAAS \/ DAAS&#8230;.Private, Public&#8230;&#8221;<\/p>\n<p>Here we summarise it in 3 categories:<\/p>\n<ul>\n<li>\u00a0 \u00a0 Private Cloud (For in house use \/ Accounts \/ Sensitive Data)<\/li>\n<li>\u00a0 \u00a0 Public Cloud (For general use \/ Website \/ Webservices)<\/li>\n<li>\u00a0 \u00a0 Hybrid Cloud (Web management of inhouse stocks)<\/li>\n<\/ul>\n<p>For a general web application or site service, lets focus on a public use of cloud, which is currently dominated by RackspaceCloud and Amazon.<\/p>\n<p>We will not be stating too much on setting up your own Virtual Instance on Private Cloud\u00a0however you will be able to get more information from googling OPENSTACK or DEVSTACK or OPENNEBULA<\/p>\n<p><b>Virtual Instance on RackSpace<\/b><\/p>\n<p><\/p>\n<div><a href=\"http:\/\/1.bp.blogspot.com\/-YK-GRf8GDIQ\/UBU2NI9-iNI\/AAAAAAAACvU\/HmOcBT8g0Zw\/s1600\/rackspaceorder.jpeg\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-YK-GRf8GDIQ\/UBU2NI9-iNI\/AAAAAAAACvU\/HmOcBT8g0Zw\/s1600\/rackspaceorder.jpeg\"><\/a><\/div>\n<p>RackSpaceCloud ( www.rackspacecloud.com ) is a major player of cloud enabled web service. It has partnered with NASA to provide one of the largest open source cloud technology OpenStack.<\/p>\n<p>At Rackspacecloud website, select order a new account and the product &#8220;Cloud Server&#8221;. Follow the instructions to get an account, username and password. Once you get an account, you will need to follow the given instructions at the site and create an instance of the webserver.<b>\u00a0<\/b><\/p>\n<p>For RackSpace users, in the control panel when you setup a new instance, you get an option to choose your favourite linux distro. I recommend ubuntu server LTS (Long Term Support).<\/p>\n<blockquote><p>&gt; ssh root@123.45.67.89<\/p><\/blockquote>\n<p><b>Setting up an instance in Amazon<\/b><\/p>\n<p>Amazon web services provides a range of web enabled services. Of which the one we should focus on is Amazon EC2. It is essentially a black naked box (nothing installed), allowing us to set it up as we wish. Amazon ( aws.amazon.com\/ )<\/p>\n<p>For Amazon EC2 users, you get to choose from a number of distros when you create an EC2 instance. I recommend reading the Amazon EC2 starter guide to setup your cloud <a href=\"https:\/\/help.ubuntu.com\/community\/EC2StartersGuide\">https:\/\/help.ubuntu.com\/community\/EC2StartersGuide<\/a> and getting your EC2 instance from  <a href=\"http:\/\/cloud-images.ubuntu.com\/releases\/10.04\/release\/\">http:\/\/cloud-images.ubuntu.com\/releases\/<\/a>. As of writing, Amazon AWS(Amazon Web Services) does provide free micro instances for use and default Ubuntu Server LTS instances.<\/p>\n<p>Lets whiz through the setup procedures. Register an account on Amazon AWS. The setup a primary key pair. You will have to download the key pair file, which is your private key to your machine. AWS will prompt you to download a PEM file. Keep this safe!<\/p>\n<p>Next setup an instance and get an elastic IP. Get the basic EC2 Micro instance with Ubuntu Server LTS. Move on to the elastic IP and bind this ip address to your instance. Lets assume your IP is 1.2.3.4. On your local machine, open up terminal and type in the following (note that the IP address should be your elastic IP; ALEX is your username; mykey.pem is your AWS private key which you downloaded before.)<\/p>\n<blockquote><p>&gt; ssh -i \/Users\/ALEX\/Desktop\/mykey.pem ubuntu@1.2.3.4<\/p><\/blockquote>\n<p>say yes if fingerprint RSA Key is needed prompt pops up. You should be in. Lets update the server packages while we are here. Type in the following.<\/p>\n<blockquote><p>&gt; sudo apt-get update<br \/>&gt; sudo apt-get upgrade<\/p><\/blockquote>\n<p>this will run loads of installs and type &#8220;y&#8221; for yes if you have to. After installing, reboot.<\/p>\n<div>\n<blockquote><p>&gt; sudo reboot<\/p><\/blockquote>\n<p>You will be thrown out of your server when you reboot. Wait for reboot and login using ssh. Welcome to your first virtual cloud server! Well done. Read more on Setting up Ubuntu Server.<\/p><\/div>\n<div>\n<div><\/div>\n<p><b><\/b><\/p>\n<div><i>Common Problems<\/i><\/div>\n<p><b><\/b><\/p>\n<ul>\n<li>While you are trying to SSH on to the machine, if you get errors, try this. on YOUR LOCAL MACHINE goto hosts file and delete the hostsrecord; look and delete the line with the same ip and delete it&gt; nano ~\/.ssh\/known_hosts<\/li>\n<\/ul>\n<\/div>\n<p><\/p>\n<div>\n<ul><\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Getting up your personal server pages is aimed to help novice users or technology\u00a0hobbyists\u00a0setup a \u00a0personal server on the cloud environment. It is also\u00a0aimed to help web developers setup a simple easy to manage web server commandline way style! Prepare the get your hands dirty. If you have tried VPS, Shared Hosting and is fed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}