For the Simulation Project you need to setup an OpenGL environment.
-
Install freeglut library (Windows only)
Start Git Bash as Administrator an run the following command
install/install_freeglut.sh
-
Install XQuartz X.Org Window System (MacOS only) On the MacOS host, we use xquartz to provide us with a MacOS X Window System.
Download and install xquartz
Log out and Log in to activate the changes the terminal -
Configure XQuartz to allow network connections from host
-
Get your IP address
Run the following command in the terminal to see your IP address
ifconfig en0 | grep 'inet ' | awk '{print $2}'
-
Start XQuartz
open -a XQuartz
which will open a XQuartz terminal in which you enter
xhost {Your IP}having {Your IP} replaced with your IP-address.
Click on the word 'XQuartz' on the top left of your screen (next to the Apple logo) and select Preference. Open the tab Security and check 'Allow connections from network clients'
-
Install Socat The graphical Python script runs with a Linux X Window System in a Docker container. To connect this to the MacOS X Window System on the host we use the command line utility socat.
brew install socat
-
-
Generate the simulation modules
Run the following command at project/simpylc
sh ./generate_simulations.sh -
Test the GUI
Run the following command at project/simpylc
sh ./start_client.sh
-
Create your own repository MakeAIWork2 on Github
Browse to github.com and create public repository MakeAIWork2.
-
Share your repository with the teachers
Post the link to your remote repository MakeAIWork2 in your private Teams channel
-
Clone your git repository
Clone your git repository MakeAIWork2 from Github to the parent directory of MakeAIWork
-
Download and copy subfolders of this repository
Download this repository as zip-file and extract the contents (files and subdirectories) from the zip-file to your (own) local git directory MakeAIWork2.
-
Add and commit copied contents
Add and commit the contents to your (own) remote github repository
Run the following commands from your MakeAIWork2 directory
git add . git commit -m "Added contents for MakeAIWork2" git push
-
Configure git
In order to commit and push your changes, you need identitify yourself.
Open a (git)bash, enter directory MakeAIWork2 and run:
install/git_config.sh {your_github_username} {your@student.email.com}This script will also set the pull policy to rebase.
Python (virtual) workspace
-
Create virtual Python environment
install/create_virtual_env.sh
-
Install Python libraries
install/install_requirements.sh
Install Docker Desktop To facilitate you with a managed portable isolated Development Environment, we provide a Docker image in which all dependencies are preinstalled. We prefer Docker for isolation since it is a much lighter solution than Virtual Machine.
-
Download and install Docker Desktop
-
Configure Docker Desktop
Open Docker Desktop, go to settings and select Start when you login
In Windows you can a script to enable Docker Desktop to start directly after you start Git Bash:
sh/git_bash_profile.sh
this script will also navigate automatically to the MakeAIWork directory.
-
Install the Git Easy extension
-
Install the Mermaid extension
-
Install the Docker extension
-
Install the MongoDB extension (Periode 3)
Install Python extensions
How to Use Linux Terminal in Windows 10
Jupyter
Running GUI's with Docker on OS X -