Why the Linux Cloud is a really big deal and what you have to know to start taking full advantage of it.
The fact is, since they probably constitute only around 2% of the total consumer PC market, you may not see all that many desktop and laptop machines running Linux. But the connected infrastructure holding the Internet together is a different matter altogether.
If you’re running a server, mainframe, supercomputer, embedded system, gaming console, a network router, and (through Android) smartphones, then the odds are overwhelming that you’re working with Linux. And Cloud Computing? Let’s just call it the Linux Cloud.
As of last year, Google was said to regularly launch over two billion virtual Linux containers per week. Even Microsoft’s Azure will now host Linux instances. But the undisputed market leader in the Cloud Computing market is AWS and, at least as of late last year, 74% of all AWS instances were reportedly powered by Linux.
“Linux cloud” machines are generally cheaper to run, quicker to scale and, for all intents and purposes, better documented than the competition. All this means that Linux cloud deployments are only going to become more common. If you’re out to get things done in the cloud, this is one train you really don’t want to miss.
Cloud Academy has now published the first five courses in our LPIC Server Professional Linux certification series. These five courses cover all the material needed to take and pass the LPIC-1 101 exam. (The remaining courses aimed at the second exam, should appear over the next weeks.) If you want to really understand how Linux systems – the backbone of the Internet – work, consider taking these courses.
But in the meantime, here are some basic, must-have concepts and skills that will at least get you started with Linux instances on AWS.
Optimized “Linux Cloud” distributions
The AWS Marketplace (when accessed through the EC2 Launch Instance process), offers all kinds of pre-built Linux images, mostly available for free. While there are many very specialized images (like the OpenVPN image, for example), the two most popular general choices are probably Amazon Linux and Ubuntu Server. Both of these images are specially optimized Linux cloud distributions and were built with AWS very much in mind.
Whether either one of these has a clear performance advantage over the other will probably depend on your specific needs. Amazon Linux – which is based on the CentOS distribution – is obviously deeply integrated with the larger AWS infrastructure and comes with Amazon Tools installed by default. On the other hand, Ubuntu, since it uses the Debian repositories, will have native access to a staggering range of installable software.
One consideration is Amazon Linux’s approach to updates. Since the 2011.09 release, Amazon Linux images are all automatically updated to the most current version available. Most of the time, this works well. However, there may be scenarios where an unexpected update could break an important configuration. If you’re concerned about this, pass this user data to your instance upon launch:
Since just about everything that happens on a Linux system starts with a plain text file of some sort or another, controlling the permissions for sensitive system files and directories is critically important. For our purposes, read, write, and/or execution access to each file and directory is defined for its owner, group, and/or others. If you need to edit or create files for which you don’t normally have rights, most Linux distributions allow you to temporarily assume admin powers by prefacing your command with sudo (and, when prompted, providing your password), like this:
# Install the Apache web server from a repository: $ sudo yum install httpd
But that assumes that your user account is allowed to invoke sudo. For that to be true, your user would have to be part of an admin group. Many Linux distributions (Red Hat, Fedora, etc.) assign root privileges to all members of the wheel group. Practically, this is done by adding the wheel group (and therefore, its members) to the sudoers file (/etc/sudoers). Debian and Ubuntu do effectively the same thing, but they call the group “sudo” instead of wheel.
By default, the wheel group on an Amazon Linux machine is not included in the sudoers file, although accessing the instance through SSH using a valid AWS keypair will give you full administration rights, and full access to specific services using the SDK or other tools can be opened up through IAM policies. Should your specific needs require enabling root access for the wheel (or sudo) group, AWS documents the process.
AWS offers its own integrated monitoring tools, most notably, CloudWatch. But you might sometimes need to dig a bit deeper into a particular instance. Running
…from the command line will display the top resource-consuming processes and associated data in real time. The output will look like this:
You may also want to view the system logs that live in the /var/log directory tree:
$ cd /var/log $ ls apt cloud-init-output.log dmesg.0 lastlog upstart auth.log cloud-init.log fsck syslog wtmp boot.log dist-upgrade kern.log udev btmp dmesg landscape unattended-upgrades
Other Linux cloud skills
If you want to enjoy a relatively smooth flight through the Linux cloud, you’ll definitely want at least a basic grasp of Linux scripting and database management. Working with script-based AWS services like CloudFormation or the EC2 Container Service will go much better if you’re already familiar with the way scripts work natively within Linux itself. And even something as simple as passing commands to an AWS instance at launch time through shell scripts or cloud-init directives will require some scripting experience.
Similarly, connecting to an AWS RDS (Relational Database Service) instance will be a whole lot easier if you’ve done it already within a local installation of Linux.
The bottom line is that in most cases at least, serious Cloud Computing will require some serious use of the Linux Cloud. If you’re not yet completely comfortable with the core Linux skills, consider taking Cloud Academy’s LPIC Linux Server Professional certification courses.
New Content: Alibaba, Azure Cert Prep: AI-100, AZ-104, AZ-204 & AZ-400, Amazon Athena Playground, Google Cloud Developer Challenge, and much more
This month, our Content Team released 8 new learning paths, 4 courses, 7 labs in real cloud environments, and 4 new knowledge check assessments. Not only that, but we introduced our very first course on Alibaba Cloud, and our expert instructors are working 'round the clock to create 6 n...
Top 5 Reasons to Get AWS Certified Right Now
Cloud computing trends are on the rise and have been for some time already. Fortunately, it’s never too late to start learning cloud computing. Skills like AWS and others associated with cloud computing are in high demand because cloud technologies have become crucial for many businesse...
Introducing Our Newest Lab Environments: Lab Playgrounds
Want to train in a real cloud environment, but feel slowed down by spinning up your own deployments? When you consider security or pricing costs, it can be costly and challenging to get up to speed quickly for self-training. To solve this problem, Cloud Academy created a new suite of la...
Blog Digest: AWS Breaking News, Azure DevOps, AWS Study Guide, 8 Ways to Prevent a Ransomware Attack, and More
New articles by topicAWS Azure Data Science Google Cloud Cloud Adoption Platform Updates & New Content Security Women in TechAWSBreaking News: All AWS Certification Exams Now Available Online As an Advanced AWS Technology Partner, C...
AWS Certified Solutions Architect Associate: A Study Guide
Want to take a really impactful step in your technical career? Explore the AWS Solutions Architect Associate certificate. Its new version (SAA-C02) was released on March 23, 2020, though you can still take SAA-C01 through July 1, 2020. This post will focus on version SAA-C02.The AWS...
New on Cloud Academy: AWS Solutions Architect Exam Prep, Azure Courses, GCP Engineer Exam Prep, Programming, and More
Free content on Cloud Academy More and more customers are relying on our technology and content to keep upskilling their people in these months, and we are doing our best to keep supporting them. While the world fights the COVID-19 pandemic, we wanted to make a small contribution to he...
Breaking News: All AWS Certification Exams Now Available Online
Remote proctoring for all AWS certifications Cloud Academy is an Advanced AWS Technology Partner, and we are happy to announce all AWS certification exams are available online! What does this mean for you? You can stay focused on your certification goal. Or you can start a certifica...
How To Build a Career with AWS Certifications
From Iaas and PaaS solutions to digital marketing, cloud computing reshapes the world of technology. As the influence of this technology grows, so does investment. Tens of billions of dollars are being spent on cloud computing-related services each year. This influx is continuing to inc...
What is Cognito in AWS?
Web applications usually allow a valid username and password combination for successful sign in to the application. Modern authentication flows incorporate more approaches to ensure user authentication. When using AWS, this is no exception, thanks to the abilities and features offered b...
The 12 AWS Certifications: Which is Right for You and Your Team?
As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing.As the market leader and most ma...
Cloud Academy’s Blog Digest: How Do AWS Certifications Increase Your Employability, How to Become a Microsoft Certified Azure Data Engineer, and more
With everything going on right now, it's likely that the only thing you've been reading lately is related to the coronavirus pandemic. It's important to stay informed during these times, but it's also good to jump into something that can take your mind off of the current situation for j...
Which Certifications Should I Get?
As we mentioned in an earlier post, the old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and compan...