Skip to content

A collection of laboratory configuration for sharing the terminal with multiple preinstalled compilers...

Notifications You must be signed in to change notification settings

edrys-labs/lab-linux-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Lab-Linux: Programming

Laboratory configuration for sharing the linux terminal with multiple preinstalled compilers. By combining the terminal with an editor, the user can write, compile, and run the code in the same environment.

Used Modules:

After importing one of the predefined configuration listed below, you have to open a station and start the pyxtermjs server, running on localhost.

The easiest way to do this, is by installing docker and running the following command:

docker run -it -p 5000:5000 crosslab/edrys_pyxtermjs_development:latest

This will download the pyxtermjs terminal-server from docker-hub and run it in a secure environment.

Otherwise, you can install the server locally by following the instructions in the module-pyxtermjs.

C Programming with gcc

https://raw.githubusercontent.com/edrys-labs/lab-linux/main/laboratory/c.yaml

https://raw.githubusercontent.com/edrys-labs/lab-linux/main/laboratory/c.json

C++ Programming with g++

Haskell Programming with ghc

Java Programming with javac

Lua Programming with lua

Python Programming with python

Additional Programming Languages

There is currently also support for the following programming languages:

  • clojure
  • g++
  • golang
  • mono
  • nodejs
  • r
  • rustc

You can either install other languages on your local machine or extend the dockerfile from:

https://github.com/edrys-labs/module-pyxtermjs/blob/master/docker/development/Dockerfile

You will have to update the script entry in the classroom configuration to match your build/compile steps.

- url: https://edrys-labs.github.io/module-pyxtermjs/index.html
    config: ''
    studentConfig: ''
    teacherConfig: ''
    stationConfig:
      server: http://localhost:5000/pty
      execute: execute
      script: |-
        echo $CODE | base64 --decode > main.py
        python3 main.py
      enable:
        teacher: true
        student: true
    showInCustom: station
    width: full
    height: medium

that's it ... happy coding! 🚀

About

A collection of laboratory configuration for sharing the terminal with multiple preinstalled compilers...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published