Software

 

Virtual Machine for the Lecture

We prepared a virtual machine containing all the required software for this course. Please proceed as follows:

  1. Install VirtualBox. Please choose the binary for your platform below the index tab "VirtualBox binaries".
  2. Download the virtual machine here (size about 2.0 GB). Checksum: SHA-256: 5735244a132ea1dd9041d529abae298914dd59b85bc273bb0d33e84ae5981f48
  3. Open VirtualBox. In the menu 'File' please select the option 'Import Appliance' and import the file 'prog2_vm.ova'.
  4. After completing the import, you should see an entry with the name 'Prog2'. Select the entry 'Prog2' and press 'Start'. The VM should boot directly to the Desktop. On the Desktop, you find shortcuts for all the programs important for the lecture.

The password for both the user 'prog2' as well as 'root' is 'prog2'.

 

Mac with Apple M1 Chip

The virtual machine does not work on Macs with an Apple M1 chip. You can use this docker container instead. Checksum: SHA-256: c4d8d57b032d4cd243926fb4d440a917fa2e26a21f9b6348c80e5397276bc4d9

Setup:

  1. Enable Rosetta by typing softwareupdate --install-rosetta in the terminal.
  2. Install XQuartz.
  3. Start XQuartz. In the settings under security, allow connections from network clients. Stop XQuartz. Preferences Window
  4. Install Docker.
  5. Start Docker.
  6. Open new terminal in prog2-docker folder.
  7. Setup prog2 container by running: ./setup_docker.sh
  8. Install VS Code extensions in the container workspace by running: ./install_extensions.sh

The container is now fully installed. Your home directory is the created "Workspace" folder. Only data that is stored in the prog2 home directory persists across container starts. Please note that Docker must be running whenever you work with the container!

Get a shell in the container: Run ./start_container.sh. Type exit to leave the container again.

Start Mars: Ensure XQuartz is running. Run ./start_container.sh mars.

Start VS Code: Run ./start_container.sh code-server. Open a browser and go to http://localhost:8080. Press Ctrl + C to stop vscode.

 

Configuration

Increase screen resolution


The screen resolution should automatically adapt to the resolution of the host system. If that is not the case, try the following:

  1. Right-Click on the VM image 'Prog2'.
  2. Go to 'Settings -> Display -> Screen -> Video Memory' and increase the memory to at least 32 MB.

 

Mounting shared folders


When working with the virtual machine, it is convenient to share a folder with the host system. To this end, proceed as follows:

  1. Right-Click on the VM image 'Prog2'.
  2. Go to 'Settings' -> 'Shared Folders'
  3. Press the "+" button on the right to add a new shared folder.
  4. For the folder path, enter the path to the directory of your host system you want to share, e.g. '/home/myuser/shared/'.
  5. For "Folder Name" enter the name under which the virtual machine should recognize this folder.
  6. Select the options "auto-mount" and (if applicable) "Make permanent". This option is only visible when the virtual machine is running. If the virtual machine is not running, the shared folder is permanent automatically.

In the virtual machine, you will find the shortcut to "SHARED_FOLDER" on the desktop after the next boot. Alternatively, you can locate the folder in "/media".

 

Using the host system's VPN


To also connect to the university network in the VM, proceed as follows.

Option 1: VPN using NAT

  1. Richt-Click on the VM image 'prog2'.
  2. Settings -> Network
  3. Select the option "NAT" for "Attached to:".
  4. Please make sure that the advanced option "Cable connected" is selected.
  5. Restart the VM and connect to the VPN within the host system.


Option 2: openconnect

  1. Open the console.
  2. Enter the following: sudo openconnect -u s8maxmuster asa2.uni-saarland.de Use your s8-identification.
  3. Enter the root password 'prog2'.
  4. After a handshake with the server, you need to submit your s8-password (LSF/HISPOS password).


As long as you want to stay connected to the VPN server, you need to keep the terminal window open.
To verify that the connection has been successfully established, please visit http://myip.is and check if the host name ends with ".uni-saarland.de".


Alternatively, you may configure the NetworkManager to connect to the university network via VPN (openconnect).

 

Installing the Software manually


You may also install the required software for the lecture directly in your system:

Except for MARS, the programs above are available in most package management systems.

Important Note: Please note that your submissions must ultimately work on the virtual machine. This means that, even when you do not use the virtual machine, you must still ensure that your submissions work on the virtual machine as expected.

Privacy Policy | Legal Notice
If you encounter technical problems, please contact the administrators.