First, navigate toward the folder 01_setup_KOS_toolchain. In order to execute the script, you'll neet to set the execute flag on kos_setup_script.sh. In a terminal, type chmod +x kos_setup_script.sh ...
kOS was originally developed for the CineDrive motion control system but is now also available for both CineDrive & Second Shooter. Additional tutorial videos are available on the kOS Tutorials page.
This example is very misleading now, but unfortunately is well written and well thought out - for a script running prior to KSP 1.0's release. It would be a shame to utterly delete it, but it does ...