1. Home
  2. Training Library
  3. Cloud Computing Fundamentals
  4. Courses
  5. Creating a Local Linux Shell Scripting Environment

Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only

Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only
Overview
Difficulty
Beginner
Duration
53m
Students
165
Ratings
5/5
starstarstarstarstar
Description

In this course, you're going to learn how to set up a local Linux shell scripting environment, whether you're using Windows, MacOS, or Red Hat Enterprise Linux. You'll be guided through the installation processes of Vagrant and VirtualBox—two tools that we will make your life easier as we work our way through the Linux Shell Scripting learning path. We'll also carry out some troubleshooting of the most common issues, should you face them.

This course is part of the Linux Shell Scripting learning path. To follow along with this course, you can download all the necessary resources here.

Learning Objectives

  • Set up a local Linux environment using Vagrant and VirtualBox
  • Troubleshoot any issues/errors

Intended Audience

  • Anyone who wants to learn Linux shell scripting 
  • Linux system administrators, developers, or programmers

Prerequisites

To get the most out of this course, you should have a basic understanding of the Linux command line.

Transcript

This video demonstrates the installation of virtual box and vagrant for people using centos or Red Hat systems. The first thing you want to do is make sure that your in the directory where you're going to download the installation files. For me that's in my downloads directory, my home directory and the easiest way I can get there is to use the cd ~/Downloads And then now what I'm going to do is go to the website here and be sure to use the links that are in the exercise or project notes 'cause they may change over time. So I'm gonna go here, I want to download virtual box. I'm on my centos cereal system and then I'll just click this to download it. And I wanna save the file. Okay, now that my file is saved. I'll go back to my terminal and if I perform an ls, I can see that it's there. Root privileges are required to install software, so I'm just going to switch to the root user with su. I'm not gonna use a dash because I don't want root's entire environment and I don't wanna be moved into root home directory. I wanna stay in my user account's home directory. So I'm just using su, providing the root password. And now I'm going to type VirtualBox*run. And this way, no matter what version of virtual box you're doing, if it uses this format this particular command will work. Of course you can just use tap completion or what have you, type it all out. Either one is fine. So just run sh followed by the installation file for virtual box and hit enter. Okay, reported that virtual box has been installed successfully. We can test this by running the virtual box command, we'll do that here. And that started the virtual box manager, so it looks like we're all good. I'll go ahead and close out of this and we'll continue on to the next step, which is installing vagrant. Going to go back to the website and navigate to the vagrant directory. We're using centos. I'm going to download the file here, I'm going to save it. Now we'll return to the terminal and use yum localinstall -y to just say yes to all the questions we're gonna get and then specify the name of the file. Okay. If we run the vagrant command, we can confirm if it got installed successfully or not. We'll run vagrant and we get output so it looks like we're good to go. I'm going to exit out of my root shell since I'm done with the installation. And now you are ready to continue with the rest of the course because you have vagrant and virtual box installed.

About the Author
Avatar
Jason Cannon
Founder, Linux Training Academy
Students
3315
Courses
60
Learning Paths
7

Jason is the founder of the Linux Training Academy as well as the author of "Linux for Beginners" and "Command Line Kung Fu." He has over 20 years of professional Linux experience, having worked for industry leaders such as Hewlett-Packard, Xerox, UPS, FireEye, and Amazon.com. Nothing gives him more satisfaction than knowing he has helped thousands of IT professionals level up their careers through his many books and courses.

Covered Topics