- Run in the cloud
- Use virtualization
Run in the Cloud
You can have a Linux machine up and running in 5 minutes with Google Cloud Platform or DigitalOcean. The most time consuming part is entering your credit card information. Oh, did the mention of your credit card scare you more than repartitioning your hard drive? Well, don’t worry. All of the major cloud providers offer a free trial. You still have to enter your credit card information, but you won’t be charged unless you continue after the trial period is over or you use an outrageous amount of resources. The three biggest players are Amazon, Microsoft, and Google. I tried all of them plus one fast-growing new player (DigitalOcean). Here are the four providers, in order of easiest to most difficult to set up:
After filling out your contact and billing information, you just need to specify a few details about the Linux machine you want to run and then start it up. To access the machine, you just select “Open in browser window” and a terminal window will pop up. You don’t even need to log in. Google’s trial period lasts for two months and gives you $300 in credits.
This provider is much smaller than the others, but it is growing quickly. The user interface looks more like a consumer application, so it is simple to get started. Instead of offering a normal trial period, though, you can get $10 in credits by entering a promo code, such as DROPLET10. To maximize your credits, destroy your droplet (DigitalOcean’s term for a virtual machine) at the end of every session. Otherwise, you will use up some of your credits even when the droplet is turned off.
Microsoft used to have a reputation for lousy user interfaces, but Azure is quite nice. It asks more questions about the virtual machine you want than Google or DigitalOcean, but it is still fairly straightforward. The biggest difficulty is that it doesn’t give you browser-based access to the Linux machine. You have to install an SSH client, such as putty, to access it. Microsoft offers a one-month free trial with $200 in credits.
You may be surprised to see Amazon at the bottom of the list, since it is by far the most successful cloud provider. If I were listing services in order of functionality, then AWS would definitely be at the top of the list. But we’re not trying to set up an enterprise infrastructure—we just want to run a Linux system for learning—so AWS is overkill. I was still surprised at how difficult it was to set up, though. Not only do you have to go through a complicated and confusing sequence of steps, but you need to use an SSH client and public key encryption to access your Linux machine (unless your browser supports Java). The only advantage to using AWS for learning is that it offers a one-year free trial. Note that you must choose a VM from the Free Tier or you will be charged.
Use Virtualization
If you would rather not use a cloud service, then your best option is to use virtualization software. It has some major advantages over installing Linux directly on your computer:- You install it like any other application. That is, you don’t need to install it from a DVD or a bootable USB drive. You just run the setup program.
- It allows you to run Linux at the same time as your existing operating system (i.e. Windows or Mac OS).
- You can even run different versions of Linux at the same time, such as CentOS and Ubuntu.
- VirtualBox: It’s free, it has a rich feature set, and it runs on both Windows and Mac OS.
- VMware Workstation Player: Although it’s free and it’s easier to use than VirtualBox, it is only available on Windows and it doesn’t have some nice features, such as snapshots.
- Hyper-V: It’s free and fully featured, but it only runs on higher-end versions of Windows, not on the Home edition.
- Parallels Desktop: It’s not free and it is only available on Mac OS.