Draw up a Virtual Cloud Server

Getting up your personal server pages is aimed to help novice users or technology hobbyists setup a  personal server on the cloud environment. It is also aimed 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 up with preinstalled rubbish, we are on the same boat.  This 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 fan base. 

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?

  • RackspaceCloud Hosting [256mb ram / 10gb HDD] / Amazon Micro Instance
  • Ubuntu Linux Server LTS Edition 12.04
  • LightTPD 1.5 (webserver used by youtube meebo wikimedia)
  • MySQL 5.x (www.mysql.com) / SQLite 3.6.x.x (www.sqlite.org)
  • Php 5.2.x (www.php.net)
  • vsftpd 2.2.x (vsftpd.beasts.org)
  • Python 2.6.x (www.python.org)
  • WordPress 2.8.4 / 2.9.x / 3.x (www.wordpress.org)
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  personal machine may work; but I will be biased towards my installation methods)

Your options of choosing cloud instance (Virtual Machine)

As you venture into the cloud, you have a few options of all the yadada: “SAAS / PAAS / AAAS / DAAS….Private, Public…”

Here we summarise it in 3 categories:

  •     Private Cloud (For in house use / Accounts / Sensitive Data)
  •     Public Cloud (For general use / Website / Webservices)
  •     Hybrid Cloud (Web management of inhouse stocks)

For a general web application or site service, lets focus on a public use of cloud, which is currently dominated by RackspaceCloud and Amazon.

We will not be stating too much on setting up your own Virtual Instance on Private Cloud however you will be able to get more information from googling OPENSTACK or DEVSTACK or OPENNEBULA

Virtual Instance on RackSpace

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.

At Rackspacecloud website, select order a new account and the product “Cloud Server”. 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. 

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).

> ssh root@123.45.67.89

Setting up an instance in Amazon

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/ )

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 https://help.ubuntu.com/community/EC2StartersGuide and getting your EC2 instance from http://cloud-images.ubuntu.com/releases/. As of writing, Amazon AWS(Amazon Web Services) does provide free micro instances for use and default Ubuntu Server LTS instances.

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!

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.)

> ssh -i /Users/ALEX/Desktop/mykey.pem ubuntu@1.2.3.4

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.

> sudo apt-get update
> sudo apt-get upgrade

this will run loads of installs and type “y” for yes if you have to. After installing, reboot.

> sudo reboot

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.

Common Problems

  • 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> nano ~/.ssh/known_hosts


    Recent Posts
    Why Job Sites Are Disappearing? · Apprentice, Journeyman, and Master · List of Docker Registries · Installing Debian 10 buster on virtualbox · Cross platform terminal emulators · Keep active keep happy · Tools to secure your devices · Secrets of the Face and Palm · Vim as an IDE for developers · WordPress multisite on Debian · Mongodb guide to basics · Jagged Alliance 2 some historic notes · Antivirus solutions and why its needed · A taovilla review and history · MacOS X high sierra running out of disk space · Airprint on bonjour missing scan function for all-in-one printers · Improving terminal load times · Knowing website design costs and pitfalls · Keeping secure and checking if your password is safe? · Installing Virtualbox Guest Additions for Debian Stretch · Windows XP Virtualbox on Mac OS X High Sierra · DNS settings and getting on public DNS · Extracting OVF from VMware ESXI 6.0 · Installing LMDE 2 Betsy · SSL Certificates and Encryption · Machine Learning with Spark · Installing Lubuntu in Virtualbox · Getting started with Docker (docker-toolbox) · Ubuntu upgrade limited boot space · Top 10 Browsers Overview · Taovilla Oracle app beta built using meteorjs · Setting up Debian on VirtualBox · The HomeBrew doctor · Afterlife Buddhist Chants · Caffeine icon for ubuntu / lubuntu · Updating wordpress without FTP · Preinstalled Languages on mainstream OS · Reminisce of Xcom · Java install on Ubuntu · Display image as ASCII art · VirtualBox Resizing Lubuntu Guest Linux · Introducing Samurai · Buddhist Chants · Macbook Pro Key mapping for Lubuntu · Common Apache Nginx commands · The nothingness between Zen and Tao · Tao, Zen and Theravada · Meditation for Growth · Buddhism · Refreshing Git versioned files · Basic Environments for Jira · Coffee Shops and Feng Shui · Converting a hg mercurial to git repository · Long term domain name costs comparison · SVG Graphing · 2 ways to Php install on mac · New EBook Launched Secrets of Human Face and Palm · Introducing Samurai and Installing Meteorjs to own server · Improving the speed of Linux Mint · Ma Zu Deity in Malaysia Sabah · SVG graphics with Javascript · FTP Clients for Mac OS X · Windows Apps on Mac · Programming Languages Compared · Hackers Natural Cure · Publishing on Ebooks · Editors such as SublimeText2 · Good Coding Practice · LMDE Linux Mint Debian Edition · Heroku Webapp · Hadoop Single node 32bit on 12.10 Mint XFCE · Tracing User Behaviour FRUBO · Installing Nginx on MacOSX · Installing Ruby on MacOS X · Turn off annoying compress outlook message · HTML5 Apps on Cordova PhoneGap with MacOSX · Choosing and using Latex · Reviewing Javascript World · Gemstones · Han Xin the Hero of Han · Gathered Wisdoms · Oriental Calendar · Li Qi Feng Shui · Five Elements Feng Shui · Taoist Philosophy Overview · 25th Anniversary Singapore Taoist Philosophy Group · Draw up an Ubuntu Server Environment · Draw up a Lightweight Mail Server · Draw up a Web Database · Php CMS and Frameworks · Drawing up a Web Service · Draw up a Virtual Cloud Server · Unlocking and Flashing your ZTE Blade · Tai Chi and Qi Gong · Pip error in Python with Homebrew · Setting up homebrew for OSX · Personality by Month · Life and Death in Oriental Beliefs · Windows and Linux Desktop Security · Ruan Tou Feng Shui · Life Analysis and Prediction · Cemetery Feng Shui · Taoism · Confucius · Guan Gong · Meditation · Gu Qin · TexMaker with Glossary on Mac · Quick way to OpenStack on Lubuntu · Ancient IT Dictionary · Oriental Poems · Fan Li · IChing · Dao De Jing · TeaTime for Basic Python · CVs and Jobhunting · Chinese Input on Linux Ubuntu · Research in Computer Science · Reviewing Applications on My Mac · Reviewing Applications on My Windows · Installing Windows XP · Installing wireless on Linux Ubuntu or Mint · Restoring an Amazon EC2 Backup · Mac Update PASV problem · Reviewing Green Computing · Consuming the Cloud Storage Space · Using Cherokee and WordPress Whine · Disabling Lubuntu Screensaver · Installing Lubuntu from USB drive · Searching for a Micro Mini CMS · ReStructuredText in Python · Rackspacecloud Vs Amazon · Hacking your old PSP · Attending Atlanta 55th MMM Conference · Smart devices for everyday use · Creative Programmers · Linux Settings · Embarking on Further Education · Machine Learning · Mac Tips – Viewing hidden files on desktop · Creating PDF files for free · Online Media for All · C# ASP Settings · SVN Git and Mercurial Versioning · Getting the last inserted id using datasets · Think Lucky and be Happy · AngieGallery Design · AceTravel Design · Letter to Mum · Prison Vs Work · Irish Daughter · Are you a carrot, an egg or a coffee bean? · Home Media Entertainment Setup · Collection of Interesting sites · Studying in London · Great Oriental eats in London · CMS Joomla, WordPress, Drupal compared ·

    © 2024 · mirageglobe · using zenifywp theme by www.mirageglobe.com ·
      · RSS Feed