Home / Featured / Ubuntu 12.04 LTE Server on Virtualbox 4.1
ubuntu_vm_config_1-300x275

Ubuntu 12.04 LTE Server on Virtualbox 4.1

After having installed Ubuntu 12.04 several times for my failed Challange I decided to try
a different way and for that we are going to install first Ubuntu 12.04 Server Edition in Virtualbox.
Lets get started.

1. Download Ubuntu

There are 2 different server versions so make sure you pick the one corresponding to your PC.

for 32bit Systems download here
for 64bit Systems download here


2. Get Virtualbox

In case you haven’t done so download Virtualbox here. After installing Virtualbox
we need to setup the basic system.

  • download the VirtualBox platform package
  • and Oracle VM Virtual Extension Pack

3. Basic setup of the VM

Lets create a new Virtual Machine in using the wizard, it is pretty straight forward.
As I got in the back of my mind to install Oracle on it I setup the VM with the minimal required
configuration for that. But feel free to scale it up to your needs.

  • 1GB RAM
  • 18 GB HDD
  • 32 MB Video RAM
  • attach the previous downloaded ubuntu server iso file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

One default setting to switch off that sometimes cause issues with your mouse is the hidden
in the system tab. Take off the tick for  the following setting: “Enable absolute pointing device

 

 

 

 

 

 

 

 

 

 

 

 

4. Setup Ubuntu 12.04 Server

I have added several screenshots to visualize the installation steps. Where I didn’t
felt the need you just choose the default settings and press ENTER. I will explain the ones
I made below where certain settings need to be made.

 

 

 

 

 

 

 

 

 

 

 

 

 

choose your preferred language and hit ENTER.

 

 

 

 

 

 

 

 

 

 

 

 

 

Press F6 to open other options and select the 1st choice to run the installation in Expert mode
(press space bar to confirm) and hit ESC to get back. Next press F4 to select the Server Mode.

 

 

 

 

 

 

 

 

 

 

 

 

 

Choose here the last selection (Install a minimal virtual machine) highlight it
and press ENTER twice to start the setup wizard. This is going to install a limited amount of modules and hardware support to trim down the memory usage.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Choose your language settings and continue.

 

 

 

 

 

 

 

 

 

 

 

 

 

don’t make any selections here we will install all needed packages later.

 

 

 

 

 

 

 

 

 

 

 

 

 

Go through each of the selections and where I don’t show otherwise just continue
with the default settings.

 

 

 

 

 

 

 

 

 

 

 

 

 

For the Oracle Installation it is required that you add a host and domain name, so
for the sake of it just add any name you like (oracle here) and add <. localdoamin> at the end.

 

 

 

 

 

 

 

 

 

 

 

 

 

When you get to <Setup User and Passwords> we want to enable the root account. (disabled by default). Choose a good password and continue.  Do not create a new User we will do that at a later stage.

 

 

 

 

 

 

 

 

 

 

 

 

 

When you get to Setup the Disk we have to create manually a single Disk in dos format.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Create an empty partition table. Create a single primary root partition (no swap).

 

 

 

 

 

 

 

 

 

 

 

 

 

choose the format <msdos>

 

 

 

 

 

 

 

 

 

 

 

 

 

select the free space

 

 

 

 

 

 

 

 

 

 

 

 

 

now select to create the primary partition

 

 

 

 

 

 

 

 

 

 

 

 

 

choose the entire space and continue

 

 

 

 

 

 

 

 

 

 

 

 

 

done with that part just complete it with the last option and return to the install menu.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

last write the changes to Disk.

 

 

 

 

 

 

 

 

 

 

 

 

 

next install the base system.

 

 

 

 

 

 

 

 

 

 

 

 

 

best option is to choose generic (include all available driver) to ensure you have no issues
but you can also choose the second option if you feel comfortable with it.

 

 

 

 

 

 

 

 

 

 

 

 

 

Here I choose security details only as I don’t want automated updates to manage the data
growth of my Virtual Machine better.

 

 

 

 

 

 

 

 

 

 

 

 

 

If you choose a bigger HDD at the beginning you could also change you setting here to your
desire but I go with <no automatic updates>

 

 

 

 

 

 

 

 

 

 

 

 

 

As mention earlier we will install all required packages at the end so I just skip all
options and hit continue.

 

 

 

 

 

 

 

 

 

 

 

 

 

nearly there, so now you can choose to install the boot-loader (Grub). I did install
it but again it is personal preference.

 

 

 

 

 

 

 

 

 

 

 

 

 

Finish the installation and the system is requested a reboot.

 

 

 

 

 

 

 

 

 

 

 

 

 

after the reboot you have to

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Check for Updates and Install basic packages

after you have logged in as root execute the following command to update the system
and install some basic packages.
[cc lang=”bash”] aptitude -y update
aptitude -y upgrade
aptitude -y install openssh-server
aptitude -y install xorg ubuntu-extras-keyring colordiff mlocate ntp pwgen rsync vim unzip
[/cc]

 

6. Install Desktop

This part is not required, you are finished with the Server Installation but if you feel more
comfortable in a GUI feel free to add this step below and install a lightweight desktop.

Info: Installing a desktop onto a server defeat the object of
running a minumal Server. It will take more space and resources
but of course it all comes down how comfortable you feel
working in the terminal.

For those who really want to install a desktop, choose something lightweigt such as lxde

[cc lang=”bash”]aptitude -y install lxde[/cc]

If you reboot Ubuntu Server after installing a desktop it will start automatic into the desktop mode.
To prevent that you can change the default settings so it starts again into text mode. at boot.

[cc lang=”bash”] vi /etc/default/grub
[/cc]

and add the flag “text” to the following lines
[cc lang=”bash”] GRUB_CMFLINE_LINUX_DEFAULT=”text”
GRUB_CMDLINE_LINUX=”text”
[/cc] [cc lang=”bash”] update-grub
[/cc] Whenever you want to start into desktop just execute the command startx.
After completion reboot the system. Next Up: X-Windows Setup for Remote installation


Check Also

africa_map

Mobile Payment Systems in Africa

A frica boasts of some of the fastest developing economies of the world, and just …

6 comments

  1. Great job

  2. This is a great set I know how long it does to do these, especially the Oralce part.

    thanks