forked from Cross-Lab-Project/edrys_module-pyxtermjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
laboratory.yaml
148 lines (100 loc) · 4.03 KB
/
laboratory.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
id: 79sFHo6ONB1S25cTN7emXmOibQ2HNWb2G9X3Xn2x
createdBy: Mj92OSQdrbcE
dateCreated: 1704715062608
name: PyTermJS - Ubuntu Terminal
meta:
logo: >-
https://repository-images.githubusercontent.com/487803615/83e1b148-5e81-4733-8ffc-e9ac5340547e
description: >-
This classroom provides base implementation for running a terminal-server on
Ubuntu 22.04. Make sure that one participant shares a pytermjs session
directly or from a docker file as described <a
href="https://github.com/Cross-Lab-Project/edrys_module-pyxtermjs">here</a>
or run:
<br><br>
<code style="margin-bottom: 5px">docker run -it -p 5000:5000
crosslab/edrys_pyxtermjs</code>
<hr>
<code>docker run -it -p 5000:5000
crosslab/edrys_pyxtermjs_development</code>
<hr>
<code>docker run -it -p 5000:5000
--device=/dev/ttyACM0:/dev/ttyACM0 --device-cgroup-rule='c 166:* rmv'
--device-cgroup-rule='c 189:* rmv'
crosslab/edrys_pyxtermjs_arduino </code>
selfAssign: true
defaultNumberOfRooms: 0
members:
teacher: []
student: []
modules:
- url: https://cross-lab-project.github.io/edrys_module-markdown-it/index.html
config: >
# Welcome to the Edrys - PyTermJS
With the help of the edrys module
[PyTermJS](https://github.com/Cross-Lab-Project/edrys_module-pyxtermjs)
it is possible to share a terminal-session for different purposes with
your peers.
Therefore one will have start either PyTermJS directly on your computer,
or you can run some of our docker containers directly.
Thus, you will have to install Python or [Docker](#docker) at least on one
machine that runs in station mode.
``` bash
$ docker run -it -p 5000:5000 crosslab/edrys_pyxtermjs
```
To start an entire development environment with gcc, java, haskell,
nodejs, etc.
run the following command
``` bash
$ docker run -it -p 5000:5000 crosslab/edrys_pyxtermjs_development
```
In case you want to run an Arduino environment execute the following, it
comes
with an
[arduino-cli](https://arduino.github.io/arduino-cli/0.35/),
some base libraries and support for arduino avr and megaavr.
For more information checkout the
[Dockerfile](https://github.com/Cross-Lab-Project/edrys_module-pyxtermjs/blob/master/docker/arduino/Dockerfile).
``` bash
$ docker run -it -p 5000:5000 \
--device=/dev/ttyACM0:/dev/ttyACM0 \
--device-cgroup-rule='c 166:* rmv' \
--device-cgroup-rule='c 189:* rmv' \
crosslab/edrys_pyxtermjs_arduino
```
## Open a station
If you own this course, simply open the settings by clicking onto the
gear-symbol, switch to "station" settings and open or share the link.
Otherwise simply copy the entire url and replace `classroom` by `station`
...
Afterwards a new station will appear on the navigation bar on the left.
Click on it and you will be redirected to the station.
## Docker
Docker is an open platform for developing, shipping, and running
applications that separates applications from infrastructure to enable
quick software delivery.
[Installation](https://docs.docker.com/engine/install/)
### Short Introduction
<iframe width="560" height="315"
src="https://www.youtube.com/embed/Gjnup-PuquQ?si=FWcDvC369Qim9q7c"
title="YouTube video player" frameborder="0" allow="accelerometer;
autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
web-share" allowfullscreen></iframe>
studentConfig: ''
teacherConfig: ''
stationConfig: ''
showInCustom: lobby
width: full
height: huge
- url: https://cross-lab-project.github.io/edrys_module-pyxtermjs/index.html
config: ''
studentConfig: ''
teacherConfig: ''
stationConfig:
server: http://localhost:5000/pty
enable:
teacher: true
student: true
showInCustom: station
width: full
height: medium