I will show you a more reliable way to install Virtualbox. I showed you the other way using the rpm because it’s always good to have another option. Plus, the procedure is the same if you’re installing any other rpm package. Just type in “rpm -i” and then type in the name of the package you wish to install. The procedure is exactly the same. I recommend typing in an age package as well because if you have this with the name of the package it’s going to install it, but it’s going to wait, nothing is going to happen. You might think it’s bad during the installation procedure. Here’s there’s a status bar during the procedure so you know that something in the background is happening.
What we’re going to do is install Virtualbox using the default manager called yum and pull the package from the repositories.
What are repositories? Repositories are places where software packets are stored for Linux distros and you can pull from those packets from your Linux distros using the packet manager. It’s very simple, it’s extremely easy and it’s one of those things we’ll absolutely need to know how to do because you’ll be installing and uninstalling through the course of your pen testing career or any pen testing exercise in general.
Let me just demonstrate this to you. Type in yum and then call your default package manager (which is yum because I’m using Fedora). It could be aptitude or it could be app-get and some other distros have their own packet managers, but we’re not going to get into that now.
First, type yum and then type search. You are telling yum what to do. In this case, you want it to search for something.
Then you want to search for an approximate name of the package you want. Perhaps you don’t know the full name or something like that. Don’t worry about it, just type in a portion of the name, it will suffice and a portion of the name will be displayed.
We know what we want, it’s Virtualbox. You might think this is the full name of the package, but it is not. Here you will see it has printed out every package that contains Virtualbox and it’s name. It can be in the name of the package or the description of the package.
There are a lot of powerful things in Virtualbox. Based on what you have and what your operating system is you can pick which one to install here, assuming it’s a Fedora 20. You can use any other distro, the procedure is fairly the same. Later on in the question parts if you use a w-based distro feel free to ask me any questions you have in the full Udemy course, I will help you out.
You see there is one fundamental problem here, the Virtualbox package is not found in the default repositories of Fedora. That is a bit of a problem, primarily because none of these commands would actually work if I did not previously use infusion repositories. RPM is simply the name for a certain type of repository containing certain types of packets. I have repositories and now I can pull information and packets from then. If I did not do that previously I would not have been able to do these things. Yum Virtualbox would yield no results whatsoever. I would get a blank screen or a message saying no packages were found.
That can be problematic. In order to solve that problem, you need to open your favorite browser to this website:
You will see a listing of downloads. It says free and non free and don’t be intimidated with non-free. You do not need to pay for anything. It is non free for redistributable software that is not free open source software as defined by Fedora Licensing Guidelines.
Down below you have RPM packages. I would download the first one and then install it using my software. Just type in RPM – i and then I would pass this file name as an argument, but I don’t really want to do that. I want to show you a different way of doing it.
What we want is the command line setup using RPM. It says here Fedora 14 to the most current. Mine is Fedora 20, it’s going to work there.
You have this very long command and you don’t really need to know what every single line of this portion is or what it does. Basically sum total reports a repository into your system that you are going to use later on. They have given this command so you can do it from one tap. You don’t have to worry about doing things, just copy, paste, and run it. You are using your default manager, local install options and looking for certain types of keys. You are giving it a place from which to pull it and so on and so fourth.
Later on as we progress through this tutorial, we will deal extensively with command line so only then will these things become clearer to you. Once I actually explain some of the basic fundamental things then you will be able to understand some of the things such as those listed in this confines of these parenthesis.
If I start explaining it now, it would make no sense. It would simply complicate things further. Later on, when I start explaining it in great detail I will begin from scratch and move you from beginner to advanced user in relatively short amount of time and then you will be able to understand what all these things are. The time being, just copy this content, which is within the confines of the quotation marks and paste it into your terminal.
I am no longer root, I am my regular user. Type in “su” and type in your password and paste this, press enter. It will apply no problem and you will successfully have installed RPM on your system as well.
This command that we ran actually installs free and non-free repositories. If you take a closer look, the top is the free and down below, you have the second address and it says non-free. I’m highlighting the entire thing so everybody can see. There you go. You have two different addresses referring to different types of repositories.
You can go back to your terminal and stay root because you will need root privileges in order to do this. Type in yum and search once again. Type Virtualbox, press enter, and choose which one applies to your current kernel. If you don’t know the current kernel, type in uname-a and press enter. You will see the current kernel in the terminal.
Now, clear the screen. Type in “yum install” and paste the name of the package, press “-y” and if you have this command, press enter. It will install and run through. You will have it up and running on your system and after you’ve installed it, type “yum update” and run through the updates. Make sure you have the latest version and you have everything up-to-date and running.
That will be it for this tutorial, in the next one, I will start Virtualbox up and explain some of it’s features. Hopefully in the next tutorials I will start installing an operating system from my virtual machine within my virtual environment and I will see how that process goes. Thank you for watching and I hope to see you in the next tutorial.
Invest in yourself with the full Udemy course. Get 87% off with this link.