Setting Up A Testing Environment For PHP Using VirtualBox - Part 2 Installing Ubuntu 16.04

Setting Up A Testing Environment For PHP Using VirtualBox - Part 2 Installing Ubuntu 16.04

In this second part of this tutorial I will show you how to install Ubuntu Server on your virtual machine in VirtualBox. You can take these principles and apply them to a physical machine but if you purchase a cloud instance you normally have all this done for you, so really this is good to know for our testing purposes.

Installing Ubuntu

OK from the last tutorial you should have your virtual machine setup if not please go back to part 1 http://www.shaunfreeman.name/setting-up-a-testing-environment-for-php-using-virtualbox-part-1-installing-virtualbox/.

To fire up the virtual server hightlight it and press the 'Start' button which should bring you to this screen

Capto_Capture-2016-12-06_11-29-30_am.png

If you are using VirtualBox for the first time you will receive these messages about mouse integration, what this is is when you click inside the window your mouse will work in the virtual machine and when you want to use your mouse on your desktop you have to release it by pressing the 'host key' in this case it is 'Left cmd' just check the 'Do not show this message again' and click capture and we are good to go.

The menu displayed has a list of languages to choose from as we are doing this in English that's what we highlight by pressing 'Enter' key if you want to change this use the directional keys on your keyboard to highlight the desired language and press 'Enter'

Next Press 'F4' to select 'Modes' option and use the down arrow key to select 'Install a minimal virtual machine' and press enter. We do this because we are not using physical hardware (if you then don't use this option), then press enter to start the installation process.

Next we have to choose a language which we are staying with english

Capto_Capture-2016-12-06_11-32-00_am.png

Press enter and then we move on to 'Select your location'

Capto_Capture-2016-12-06_11-32-36_am.png

It should guess where you are but if not just select your location and press enter.

Next you have to configure your keyboard and will see

Capto_Capture-2016-12-06_11-33-22_am.pngHere we have to configure are keyboard in which we have two options

  1. let the software detect the language by press a series of keys
  2. select keyboard layout manually

if you choose option 1 then you will be asked a series of questions in which you press the appropriate keys. If you choose option 2 then you have to choose from a list. Option 1 is the easiest if you are sure so press the left arrow key to highlight it and press enter.

After your keyboard is set up it will load in some components and end up on the 'Configure Network' option like

Capto_Capture-2016-12-06_11-35-34_am.png

You can leave it with the ubuntu Hostname or change it to something else. This is the name your server will identify as. Press enter when done and we go to 'Set up users and passwords'. In the first screen we have to put in our full name

Capto_Capture-2016-12-06_11-36-29_am.png

Press enter and we go on to your username, this is the name we use to log into the server

Capto_Capture-2016-12-06_11-36-49_am.png

I just used my first name for this. Press enter and next we setup our password which we will use to log in to the server

Capto_Capture-2016-12-06_11-37-13_am.png

Press enter when done and next you will have to confirm your password so when you have done that you will be asked whether you would like to encrypt your home directory, the default is 'no' so we just press enter

Capto_Capture-2016-12-06_11-38-41_am.png

Next we confirm our time zone it should guess it correctly but if not you can choose from a list

Capto_Capture-2016-12-06_11-38-59_am.png

Next we go on the patron the disk for this just choose the default 'Guided - use entire disk' and press enter

Capto_Capture-2016-12-06_11-39-21_am.png

then press enter again when you come to this screen

Capto_Capture-2016-12-06_11-39-35_am.png

When you come to this screen

Capto_Capture-2016-12-06_11-39-48_am.png

You have to tab onto '<Yes>' and press enter. then it will stall the system files. The next option is to use a Http proxy which we just leave it blank and press enter

Capto_Capture-2016-12-06_11-40-39_am.png

You will be asked if you want to configure the system with automatic updates and we just select the 'No automatic updates' and press enter.

Capto_Capture-2016-12-06_11-41-07_am.png

Next we have the Software selection which just use the down arrow key till you get to OpenSSH Server and press the space bar to select it and press enter to continue.

Capto_Capture-2016-12-06_11-41-46_am.png

we have to wait while the package manager installs our selections the you will see this screen

Capto_Capture-2016-12-06_11-42-59_am.png

We have to select '<Yes>' and press enter. the boot loader will then install and then next screen should be 'Finish the installation'

Capto_Capture-2016-12-06_11-42-59_am.png

Press enter and the system should reboot into the login screen and we are done

Capto_Capture-2016-12-06_11-44-12_am.png

Now you are ready to install some software to run a web server and install PHP which we will cover in the next part of this series.

I have made a video on this part

Watch on youtube: Setting Up A Testing Environment For PHP Using VirtualBox - Part 2 Installing Ubuntu Server

Any comments or questions please leave in the comments and happy coding!


09/12/2016 13:45:00 Shaun Freeman Filed Under: Virtual Box Linux, Server, Ubuntu, VirtualBox

Twitter Feed
Shaun Freeman @Zendmaster

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/lSFWmpHTX1 Patrick Stewart talks about meeting Sting on the set of DUNE (Funny to the EXTREME)

Shaun Freeman @Zendmaster

I added a video to a @YouTube playlist https://t.co/pmXSmod4ti Anonymous - This will Change Everything You Know... (2018-2019)

Shaun Freeman @Zendmaster

I added a video to a @YouTube playlist https://t.co/GkwTCvBfes Will Artificial Intelligence Take Over The World?

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/Y1ulafmsC6 Frank Abagnale: "Catch Me If You Can" | Talks at Google

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/NBdW2xFnqD ETS2: Special Transport DLC Trailer