How to install a VPL 1.2 jail system in Ubuntu

This document describes the installation of a VPL jail system in a Ubuntu 10.04 LTS that runs on a VirtualBox virtual machine.

Creating the Virtual Machine

With VirtualBox 4.0.8 we create a virtual machine, the machine is equipped with a dynamically growing disk up to 8GB, 1GB of memory and the rest of the hardware take the default values.

The Ubuntu 10.04.3-server installation image file is used as the boot disk into the CD/DVD-ROM drive.

Installing Ubuntu 10.04

Turns on the virtual machine. Select language for start menu. Choose "Install Ubuntu server". Select installation language.

f01 f02 f03

Choose country and keyboard.

f04 f05 f06 f07

Set system name and time zone

f08 f09

For disk partition use entire disk (no LVM)

f10 f11 f12

Installing base system

f13

Set up a user

f14 f15 f16 f17

Set home directory encryption, http proxy and upgrade policy.

f18 f19 f20

Do not install software packages.

f21

Install grub and a basic Ubuntu system is ready.

f22 f23 f24

 

Jail server installation

Login as the user created and install the C++ compiler

sudo apt-get install g++

f25

Now download version 1.2 of the jail system:

wget http://vpl.dis.ulpgc.es/releases/vpl_xmlrpc_jail-1.2.tar.gz

Unpack and compile with:

tar xf vpl_xmlrpc_jail-1.2.tar.gz
cd vpl_xmlrpc_jail-1.2
./configure
make

f26f27

Do not run "make install" as usual, run the following script

sudo ./install.sh

The script will ask you about the type of linux distribution, select Ubuntu.

f28 f29

The script, after installing the jail system, will ask you if you want to install common compilers and interpreters, if you answer yes the following software will be installed:

LanguageCompiler/
interpreter
Ada gnat
C gcc
C++ g++
C# mono
Fortran gfortran
Haskell hugs
Java OpenJDK6
Octave octave3.2
Pascal gpc
Perl perl
PHP php5
Prolog swipl
Python python
Ruby ruby
Scheme mzscheme
SQL sqlite3
VHDL ghdl

The vlp-xmlrpc-jail is accessible on port 52000. If you are using VirtualBox network card with NAT then you need to configure NAT port forwarding. To set up in detail the jail system follow the instructions in the configuration document.

LiveCD creation

If you want to create a LiveCD install remastersys

f30

To install remastersys edit "/etc/apt/sources.list"

sudo vi /etc/apt/sources.list

Add "deb http://www.geekconnection.org/remastersys/repository karmic/" to the file.

f31

Run "sudo apt-get update"

f32

Install remastersys running "sudo apt-get install remastersys".

f33

To install the livecd into a machine we need a basic X system:

sudo apt-get install xinit

f34

Run "sudo remastersys backup" to make the LiveCD.