Skip to content

Instantly share code, notes, and snippets.

@pedrosa-t
Last active November 10, 2022 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrosa-t/4051b0d08083a837cab186855a24cbaf to your computer and use it in GitHub Desktop.
Save pedrosa-t/4051b0d08083a837cab186855a24cbaf to your computer and use it in GitHub Desktop.

IPB-Logo Tiago Pedrosa @IPB.PT

Labtainers Install and Update

Labtainers provide controlled and consistent execution environments in which students perform labs entirely within the confines of their computer, regardless of the Linux distribution and packages installed on the student's computer or VM. The only requirement is that the Linux system supports Docker.[1]

Installation steps

Follow the following steps to install:

  1. It can be installed on an existent Linux machine or virtual machine. The easy way will be to use a template (appliance) of virtual machine for VirtualBox or Vmware. Available at [2].

  2. After downloading the appliance import it to the virtualization solution that you are using (VirtualBox or Vmware)

  3. Start the virtual machine

  4. Login using the user student and the password password123

  5. Change date&time to the timezone Lisbon/Portugal, check keyboard layout

  6. Update and upgrade the virtual machine and reboot

  1. After this reboot and read the student guide[3]
  2. Also check the toturials page, with some videos about the installation and use of labtainers[4].

Workflow

Resuming the workflow to do the labs, student should be inside directory ~/labtainers/labtainers-student.

For starting a lab use de command: labtainer <labname>

When requested for your email in the beginning of the labs, use your XXXXX@alunos.ipb.pt email.

For automatic graded labs, studends can check their grade by executing the command checkwork on the directory ~/labtainers/labtainers-student.

After finishing the lab, execute the command: stoplab <labname>

The results will be stored in ~/labtainer_xfer/ directory with subdirectory per lab with .lab file that needs to be submitted for evaluation.

Bibliography

  1. https://nps.edu/web/c3o/labtainers
  2. https://nps.edu/web/c3o/virtual-machine-images
  3. Student Guide
  4. More Labtainers Tutorials

Tiago Pedrosa

@pedrosa-t
Copy link
Author

EHN: 2022-2023 Updates

@pedrosa-t
Copy link
Author

BUG: Correction IPB Logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment