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


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.


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++


Now download version 1.2 of the jail system:


Unpack and compile with:

tar xf vpl_xmlrpc_jail-1.2.tar.gz
cd vpl_xmlrpc_jail-1.2


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

sudo ./

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:

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


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

sudo vi /etc/apt/sources.list

Add "deb karmic/" to the file.


Run "sudo apt-get update"


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


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

sudo apt-get install xinit


Run "sudo remastersys backup" to make the LiveCD.