You want to be a programmer.
Well, I hereby hand you the badge of honorary-programmer-recruit....here is the binary badge
and make you take the programmer's pledge.
Say after me. "I, the recruit, hereby pledge to use my programming skills wisely."
"To serve the public."
"And to 'Dos' attack people on league of legends, only on Mondays."
Well done recruit.
Now then let us start with your training.
First off, everyone uses different operative systems (for example: Windows 7,8,10, IOS or Ubuntu)
This course uses the Ubuntu operative system. It installs the java programming language on Ubuntu, it uses Ubuntu software to write java code. This is simple. Nevertheless, people use different operative systems making it so I would have to explain and troubleshoot for three different platforms at least.
In comes Virtual box.
Virtual box is a software, enabling people to install an operative system on their computer, on top of the currently running operative system.
Therefore I will only need to troubleshoot for one environment.
Originally Vm-ware was the application that I wanted to use for this course, but only 'Vm-ware workstation' Version 12 is free to use, requiring only an email address. While 'Vm-ware player' is free to use, but they both suffer from the following problem.
Vm-ware corporation prohibits the redistribution of their software.
Therefore we will be using Virtual box instead of Vm-ware.
Before we can get started, lets address a few things.
Disclaimer: I, Barnabas Madai, in no way am responsible for any damage caused to your devices due to this course.
To begin assessing if your computer's specifications are sufficient, first open the Task Manager.
This section only applies to windows users as the Task Manager is a Windows exclusive application. If you are running OSX, you are on your own in finding your specifications. These include the amount of RAM and core/thread count.
To open the Task Manager, tap Ctrl, alt and delete keys simultaneously.
Select 'Start Task Manager'.
The following window will appear.
Maximize its size.
We are interested in the performance tab. Select the Performance tab. It should look approximately like this.
You need at least 4 GB of RAM to run a virtual operative system. Four Gigabyte is enough, but I wouldn't try running a virtual operative system on any less. If you have more than 4 GB of ram you wont just run the V. operative system, you will run it without any performance issues. BTW if you were to run a V.O.S on less than 4 GB ram, the worst case scenario is your computer shutting down and even that scenario is unlikely.
You can check the amount of ram at the bottom of the tab. "Physical Memory (MB)"
Mine is 16268. I must divide that number by 1000 to get to Gigabyte.
Therefore I have a little more than 16 GB RAM.
You should check how much ram you have.
The processor needs to have at least 2 cores. The V.O.S will require a dedicated core and the host operative system will need at least one as well.
On the performance tab of the task manager, count the number of charts the "CPU usage History" is divided into. That is the number of cores you have.
If you see more than one charts in the 'CPU Usage History' panel, you have more than one core and therefore can run a V.O.S.
40 GB of free space on the hard drive the operative system will be installed on.
If you run windows 7, open your start menu and type 'computer'.
If you run windows 10, open up the start menu and type 'This PC'.
Select the first option.
The first option should be a display of all hard drives you have available. It should look approximately like this.
Here you can check if you have a hard drive that has at least 40GB free space.
Now then, if you meet all the requirements, download Virtual Box.
If you have a windows machine, download 'Windows hosts'.
If you have an apple laptop, download the 'OS X hosts'.
Now then, lets install the virtualization software.
Open your download folder and double click on the virtual box software.
It will ask you if you are sure you want to install this, click yes.
On the following window, click yes.
Here you can select the directory you want to install virtual box into. When done click next.
The installation should begin, once it finishes, click finish.
If Virtual box haven't started yet, double click on the shortcut placed on the desktop.
You should see the following window.
Now then, to install an operative system, we will need an "image" of an operative system, Ubuntu.
This course uses Ubuntu, in this course all troubleshooting will relate to Ubuntu, so it is crucial that Ubuntu is installed.
Here is the download link:
The website should look like this:
Download the Ubuntu version, on top of the list.
Once the download has finished, bring up Virtual Box and click on new.
Provide a name for your virtual machine (doesn't matter what it is).
Doesn't matter where the machine folder is as long as you can find it if you need to and it is on the hard drive with at least 40GB free space.
Type should be Linux.
Version should be Ubuntu (64-bit)
Then click next.
On this window, you can specify how much RAM you want the OS to have.
This is measured in Mega Bytes instead of Giga Bytes.
I recommend allowing half of your available RAM to the virtual machine.
Once you have selected the correct amount, click next.
On this window, make sure to select 'create a virtual hard disk now', then click create.
Here you can select which kind of V. hard drive you want. Select VDI, then click next.
On the next screen select fixed size, then click next.
On this window, set the size of the V.H.D. to 30GB, therefore if you have 40GB available on your H.D. the Virtual machine gets 30 of them and your operative system can continue to function without issue.
Once the installation finishes, the following window will appear.
Note: if starting the operative system doesn't work, attempt "Problem #1" trouble shooting option, at the bottom of this part.
On the following window, Virtual Box is looking for the image of Ubuntu that we downloaded earlier.
Click on the folder icon, to the right of the combo box then click on add, then navigate to where the downloaded Ubuntu image is, then select it.
Choose it in the optical disk selector menu, then click choose.
Now click start.
The installation will begin.
During the installation you will be prompted to select the language, select english, then click install Ubuntu.
Select keyboard layout.
Disable Download updates automatically.
Now click continue.
Select 'erase disk and install ubuntu'.
Then click 'install now'
On the following popup window, click continue, (again, this will install on the virtual hard drive created, it will not affect the host operative system).
Select region, then click continue.
On the following window, add a name, computer name, user name and password, then click continue.
Now the installation should begin to download the files from the Ubuntu image and install Ubuntu onto the virtual hard drive.
Once installation is complete, click the restart now button.
Well done, you have successfully installed your first virtual operative system.
Upon restart it should look like this.
Login. Well done.
You can close the Virtual Box window anytime. It will ask you if you want to freeze the V.O.S. as it is, whereby upon starting it again, it is restored to the same state as it was in, or you can shut it down, select shut down.
Do remember how to do this, as it is a sought after skill in the IT industry.
Well done, we are done for this lesson.
Problem #1: Virtual Machine shows popup error message, refuses to start.
OK, this is a bit new for me, as I mostly used Vm-ware in the past, not Virtual Box (BTW, while 'Wm-
ware workstation' is not free, Vm-ware Player is, if you want to smoother experience I recommend you
download and try out Vm-ware player at a later date. For now, use Virtual Box).
The specific error looks like this:
While there are many interpretations as to what is wrong, I can tell you the step by step description of
what I have done to fix it.
First thing to note is that upon starting virtual box, a message came up saying, there are updates
I decided not to upgrade. The above error occurred after that popup window.
I have opened the File menu-tab and selected the 'Check for updates...' option. First I was greeted by
a popup that Virtual Box is up-to-date, then by another, telling me my Virtual Box application is not up-
to-date and do I want to upgrade to the latest version... Well better confusing than non-functional.
Anyway, I accepted the update. Once it finished installing I restarted the host operative system (the
This solved the problem. So, my conclusion is, Virtual Box is one of those weird programs which for
once an update is out, it will literally not allow you to use your virtual machines until you update.