Build your own Linux server on the cloud

In one hour, you can set up your own Linux server on Amazon's cloud. No kidding. It really is that easy. Here's how

There are all kinds of Linux servers. The most complicated of these require you to be a Red Hat Certified Engineer (RHCE). Many of them require you to do more than download a distro, burn a CD, and install and boot up your new bare-bones servers. But, say you have a particular job for a server and the boss wants it done yesterday, what do you then? Well, one excellent choice is TurnKey Linux.

With TurnKey Linux the only hardware you need is any device that can support a Web browser and a credit card. That's because, while you can run TurnKey Linux on an ordinary server or on VMWare, OpenStack, or OpenVZ, the mindlessly simple and fast way to do it is to spin up your own server on the Amazon Elastic Compute Cloud (EC2).

[ Prove your expertise with the free OS in InfoWorld's Linux admin IQ test round 1 and round 2. | Track the latest trends in open source with InfoWorld's Open Sources blog and Technology: Open Source newsletter. ]

[ Free download: Linux loses its luster as a darling among developers | What's the best Linux server for you? ]

Here's how it works.

TurnKey Linux, until recently, was built on Ubuntu Linux 10.04. Now, the core TurnKey Linux is in the process of being migrated to old, but rock solid Debian Squeeze (6.0.4) Linux distribution. But, you as someone who just needs a server Right Now don't need to worry about what's happening in the background. No, all you have to do is pick the appropriate TurnKey Linux server.

You see, TurnKey offers over 45 different, ready-to-run servers. These include a basic Linux Apache; MySQL, PHP/Python/Perl (LAMP) stack; multiple content management systems, such as Drupal, Joomla, and WordPress; communication systems, including Zimbra email and ejabberd instant messaging; programming platforms; and basic office servers such as a file server and a primary domain controller for Windows networks. In short, no matter what you need a server for, TurnKey probably has one ready to go.

To get one of your own, here's how you go about doing it.

First, you need to register for an account. You can either do this manually or login using OpenID.

In either case, you'll next be moved to a display that will let you set up the resources on EC2 for your server. To do this you need to have an Amazon Web Services (AWS) account.

Setting up an AWS account is about as easy as setting up an Amazon account to buy books, In fact, if you have an Amazon account, you're already half way to getting an AWS account. Once you have an AWS account you have to sign up for EC2 itself.

You will be asked to provide a payment method for Amazon EC2 services. These are charged on an hourly basis (e.g., 9 cents per hour for a small cloud server).

Once that's done you'll need to get your AWS access credentials.

Once you have both your Access Key ID and your Secret Access Key, you're ready to move on to setting up your server on EC2. You simply cut and paste these alphanumeric keys into the field and then...

You pick out which level of service you want. Let's say you're just exploring. In that case you'll want either the Hobby option or try out micro servers. TurnKey Linux won't charge you a thing for its hobby option, but Amazon will if you don't use a micro-instance. If you want to pay the absolute minimum, go for the micro-server option. With it, Amazon won't charge you for your first year of use of micro-servers.

Next, you can either enable backup storage on Amazon's Simple Storage Service S3 cloud or start setting up your first server. TurnKey and Amazon gives you 10GBs of free S3 storage for starters so you can skip setting up an S3 backup until you know that you've got a server you really want to work with.

At the next page, you pick out which server you want to take out for a run from a pull-down menu. Just for a giggle I'll set up my own BitTorrent server.

Now, you need to decide which Amazon EC2 cloud site you'll use, how big a server you want to use, the Internet name of your server, and so on. While it's optional, I highly recommend you pick out your root and application passwords at this time. Then hit the launch button.

Now the server will start launching. After its initial launch, the server will automatically install the most recent patches. With TurnKey Linux, your server is always up-to-date.

You can see that my baby BitTorrent server has one virtual CPU, 613MBs of RAM to play with, and 10GBs of storage. I didn't have to decide on any of that. TurnKey took care of it.

While waiting for all the patches to be installed, I can tune my firewall. I'm a security wonk though. By default the TurnKey Linux appliances come with just the necessary network ports open for it to do its job and all the others are closed.

Ta-da my server says its ready to go! Is it?

Yep, there's the Web site ready to go. I had to get to it by its IPv4 address since its domain name won't have had time yet to propagate through the Domain Name System.

OK, so my BitTorrent server is up but can I get to its Webmin administration display? Yes, it's working too.

So, there you have it. In under an hour -- and most of that time was spent setting up the screen shots -- I went from zero to a ready to go Linux server on the Amazon cloud.

It really is that easy. Yes, setting it up just the way you want -- like giving my site a better name than the not very catchy http://testtorrent.tklapp.com/ -- will take more time, but with TurnKeyLinux anyone with a clue about Linux and the Internet can have their own server.

Try it. I think you'll like it! And, at prices like this, how far wrong can you go?

This article, "Build your own Linux server on the cloud in an hour," was originally published at ITworld. For the latest IT news, analysis and how-tos, follow ITworld on Twitter and Facebook.

Now read: Before the Internet: The golden age of online services; Rumble in the cloud: 5 cloud storage services compared; Farewell, Apple. Hello Linux Mint!

This story, "Build your own Linux server on the cloud" was originally published by ITworld.

Mobile Security Insider: iOS vs. Android vs. BlackBerry vs. Windows Phone
Join the discussion
Be the first to comment on this article. Our Commenting Policies