This document describes the installation of the VPL execution server (vpl-jail-system) on Ubuntu.
Our tests indicate that the 32-bit version is more convenient than the 64 because the 32-bit implementation consumes less memory and CPU than the 64-bit version. The machine requirements are highly dependent on the software used, our experience is that a machine with only 2Gb of ram and 2 cores can support a class of 50 students online using Java.
per-requirement: Fresh/Clean installed ubuntu Operating System
The steps for installation 2.5.3 version of VLP and configuration are below:
-
download vpl-jail-system-2.5.3.tar.gz (150 Kb) from here
-
tar -xvf vpl_jail_system-2.5.3.tar.gz
-
cd vpl_jail_system-2.5.3/
-
for non-root user: sudo ./install-vpl-sh or for root user: ./install-vpl-sh
-
Then follow the steps which will be shown on the terminal, after finishing installation follow from 6. (sixth) step from below documentation.
-----------------------------------------------------------------OR----------------------------------------------------------------
The steps for installation latest version of VLP and configuration are below:
-
Install an Ubuntu server as clean as possible
-
Search for the latest software version browsing http://vpl.dis.ulpgc.es/releases. Look at vpl-jail-system-[version].tar.gz files and select the hightest version. From here replace [version] by the the version selected.
-
Download the latest version of the software (vpl-jail-system) with the command
wget http://vpl.dis.ulpgc.es/releases/vpl_jail_system-[version].tar.gz
-
Unzip and install the vpl-jail-system
tar -xvf vpl_jail_system-[version].tar.gz
cd vpl_jail_system-[version]
sudo ./install-vpl-sh
-
Follow the instructions and wait for the necessary downloads. The installation script will try to install the development software commonly used, but you may need to install some other by hand.
-
Stop the service with the command
sudo service vpl- jail-system stop
-
Edit the file /etc/vpl/vpl-jail-system.conf. Set the URLPATH that will be used as key in connections with your execution server
-
Start the service
sudo service vpl-jail-system start
You can check the availability of your execution server using the URL
http://server:PORT/OK and https://server:SECURE_PORT/OK
where server is the name of your execution server
The system must return a page with OK
You can obtain a detailed log of the service by starting it in debug mode with "service vpl-jail-system start -d 8". The logs will be written in "/var/log/syslog"
The URL of the service in the general module configuration or in the local execution server settings of your Moodle server is
http://server:PORT/URLPATH or https://server:SECURE_PORT/URLPATH
:PORT and :SECURE_PORT can be omitted if using the standard ports.