Version 365.1 von Carina Enke am 13.02.2024

Zeige letzte Bearbeiter
1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
4 == Requirements ==
5
6 * Java 17 (Oracle or OpenJDK) and Apache Tomcat 9
7 * Apache Webserver with proxy_ajp and mod_rewrite (optional)
8 * MAXIMA for the use of calculations (mandatory)
9 {{/layout-cell}}
10
11 {{layout-cell}}
12 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
13 {{toc depth="3" start="2"/}}
14
15
16 {{/panel}}
17 {{/layout-cell}}
18 {{/layout-section}}
19
20 {{layout-section ac:type="single"}}
21 {{layout-cell}}
22 == Download ==
23
24 * Download and install OpenJDK 17 ([[https:~~/~~/jdk.java.net/java-se-ri/17>>url:https://jdk.java.net/java-se-ri/17||shape="rect"]] ) or Oracle JDK17 ([[https:~~/~~/jdk.java.net/17>>url:https://jdk.java.net/17||shape="rect"]])
25
26 {{code language="powershell"}}
27 tar xfz jdk-xyz-linux-x64.tar.gz -C /opt
28 {{/code}}
29
30 * Let the environment variable $JAVA_HOME point to the JDK directory:
31
32 {{code language="powershell"}}
33 export JAVA_HOME=/opt/jdkX.Y.Z
34 {{/code}}
35
36 * Download and install Tomcat 9: [[https:~~/~~/tomcat.apache.org/download-90.cgi>>url:https://tomcat.apache.org/download-90.cgi||rel="nofollow" shape="rect" title="Verknüpfung folgen"]]
37
38 {{code language="powershell"}}
39 tar xfz apache-tomcat-X.Y.Z.tar.gz -C /opt
40 {{/code}}
41
42 === Download and install libraries ===
43
44 {{code language="powershell"}}
45 yum install atk nss at-spi2-atk libXcomposite alsa-lib libXrandr libxkbcommon libXdamage cups-libs
46 {{/code}}
47
48 == Deployment ==
49
50 * Stop your Tomcat
51 * In case of an **update**, delete old ONYX war-files and dirs from ${TOMCAT_HOME}/webapps
52 * It might be useful to clear the work and temp directory of the Tomcat Server:
53
54 {{code language="powershell"}}
55 rm -rf ${TOMCAT_HOME}/temp/* ${TOMCAT_HOME}/work/*
56 {{/code}}
57
58 (% class="_mce_tagged_br" %)
59 * Copy the onyx-player-**X.X**.war to ${TOMCAT_HOME}/webapps
60 * Start your Tomcat
61 * Open the following URL in your browser: [[http:~~/~~/localhost:8080/onyx-player-X.X/demo>>url:http://localhost:8080/onyx-player-X.X/demo||shape="rect"]]
62
63 == Configuration of additional features ==
64
65 === Show example tests on your ONYX Player start page ===
66
67 * Save the zip-files in /src/main/resources/tests
68 * Set showinternaltests to true (onyxplugin.config.xml)
69
70 === Provide an upload functionality for tests on your ONYX Player start page ===
71
72 * Define a folder in onyxplugin.config.xml where uploaded tests should be stored: <uploaddir>/tmp/</uploaddir>
73 * Note that this folder must exist and be writable or it must be allowed to create it.
74 * You can upload tests on your ONYX Player start page and access the tests directly via a static URL.
75
76 === Install MAXIMA, if you like to use calculations ===
77
78 * Installation on RHEL/Fedora/CentOS:
79
80 {{code language="powershell"}}
81 sudo yum install maxima
82 {{/code}}
83
84 * Installation on Debian/Ubuntu/Mint:
85
86 {{code language="powershell"}}
87 sudo yum install maxima
88 {{/code}}
89
90 * Or visit [[http:~~/~~/maxima.sourceforge.net/>>url:http://maxima.sourceforge.net/||shape="rect"]] and download the MAXIMA files
91
92 === Save user results ===
93
94 * ONYX allows **saving user results on the hard disk** **additionally to the transmission to the LMS**. This may be useful in case results cannot be transmitted due to errors in the LMS or during the transmission process. To activate this function enter the tag (((
95 of the file onyxplugin.config.xml and adjust the indicated directory to your server. Tomcat needs a writing permission for this directory. The result files are sorted in a sub folder by date and will not be deleted. In case the result files are no longer required, deletion can be done only by administrators.
96 )))
97
98 {{code language="powershell"}}
99 <resultsdir>/tmp/onyxresults/</resultsdir> in the section <playerconfig>...</playerconfig>
100 {{/code}}
101
102 * You may configure ONYX Player to **automatically remove these result file copies after a certain time span**. The following option can be added to the configuration to activate this. Please configure a valid days number, after which all results older than this age will be removed. This is checked and executed once after ONYX startup and will run in a background task. If not configured, this is done after 30 days.
103
104 {{code title="onyxplugin.config.xml"}}
105 <playerconfig>
106 ...
107 <!-- The timespan in days after which the result configured in resultsdir are automatically removed -->
108 <resultsdirCleanupAfterDays>30</resultsdirCleanupAfterDays>
109 ...
110 </playerconfig>
111 {code}
112 {{/code}}
113 {{/layout-cell}}
114 {{/layout-section}}
115 {{/layout}}
116
117 {{layout}}
118 {{layout-section ac:type="two_right_sidebar"}}
119 {{layout-cell}}
120 == Requirements ==
121
122 * Java 17 (Oracle or OpenJDK)
123 * Apache Tomcat 9
124 * Apache Webserver with proxy_ajp and mod_rewrite (optional)
125 * (((
126 MAXIMA for the use of calculations (mandatory)
127 )))
128 * (((
129 (% class="tw-data-text tw-text-large tw-ta" %)
130 (% class="Y2IQFc" lang="en" %)libraries
131 )))
132 {{/layout-cell}}
133
134 {{layout-cell}}
135 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
136 {{toc maxLevel="4"/}}
137
138
139 {{/panel}}
140 {{/layout-cell}}
141 {{/layout-section}}
142
143 {{layout-section ac:type="single"}}
144 {{layout-cell}}
145 == Download ==
146
147 === Download and install Java ===
148
149 * Download and install OpenJDK 17 ([[https:~~/~~/jdk.java.net/java-se-ri/17>>url:https://jdk.java.net/java-se-ri/17||shape="rect"]]) or Oracle JDK17 ([[https:~~/~~/jdk.java.net/17>>url:https://jdk.java.net/17||shape="rect"]])
150
151
152 {{code language="powershell"}}
153 tar xfz jdk-xyz-linux-x64.tar.gz -C /opt
154 {{/code}}
155
156 * Let the environment variable $JAVA_HOME point to the JDK directory:
157
158 {{code language="powershell"}}
159 export JAVA_HOME=/opt/jdkX.Y.Z
160 {{/code}}
161
162 === Download and install Tomcat ===
163
164 * Download and install Tomcat 9: [[https:~~/~~/tomcat.apache.org/download-90.cgi>>url:https://tomcat.apache.org/download-90.cgi||rel="nofollow" shape="rect" title="Verknüpfung folgen"]]
165
166 {{code language="powershell"}}
167 tar xfz apache-tomcat-X.Y.Z.tar.gz -C /opt
168 {{/code}}
169
170 === Download and install libraries ===
171
172 {{code language="powershell"}}
173 yum install atk nss at-spi2-atk libXcomposite alsa-lib libXrandr libxkbcommon libXdamage cups-libs
174 {{/code}}
175
176 == (% style="line-height:1.5" %)Deployment(%%) ==
177
178 * Stop your Tomcat
179 * In case of an **update**, delete old ONYX war-files and dirs from ${TOMCAT_HOME}/webapps
180 * It might be useful to clear the work and temp directory of the Tomcat Server:
181
182 {{code language="powershell" title="Tomcat"}}
183 rm -rf ${TOMCAT_HOME}/temp/* ${TOMCAT_HOME}/work/*
184 {{/code}}
185
186 (% class="_mce_tagged_br" %)
187 * Copy the onyx-player-**X.X**.war to ${TOMCAT_HOME}/webapps
188 * Start your Tomcat
189 * Open the following URL in your browser: [[http:~~/~~/localhost:8080/onyx-player-X.X/demo>>url:http://localhost:8080/onyx-player-X.X/demo||shape="rect"]]
190
191 == Configuration of additional features ==
192
193 === Show example tests on your ONYX Player start page ===
194
195 * Save the zip-files in /src/main/resources/tests
196 * Set showinternaltests to true (onyxplugin.config.xml)
197
198 === Provide an upload functionality for tests on your ONYX Player start page ===
199
200 * Define a folder in onyxplugin.config.xml where uploaded tests should be stored: <uploaddir>/tmp/</uploaddir>
201 * Note that this folder must exist and be writable or it must be allowed to create it.
202 * You can upload tests on your ONYX Player start page and access the tests directly via a static URL.
203
204 === Install MAXIMA, if you like to use calculations ===
205
206 * Installation on RHEL/Fedora/CentOS:
207
208 {{code language="powershell" title="MAXIMA für RHEL/Fedora/CentOS"}}
209 sudo yum install maxima
210 {{/code}}
211
212 * Installation on Debian/Ubuntu/Mint:
213
214 {{code language="powershell" title="MAXIMA für Debian/Ubuntu/Mint"}}
215 sudo yum install maxima
216 {{/code}}
217
218 * Or visit[[http:~~/~~/maxima.sourceforge.net/>>url:http://maxima.sourceforge.net/||shape="rect"]] and download the MAXIMA files
219
220 === Save user results ===
221
222 ONYX allows saving user results on the hard disk additionally to the transmission to the LMS. This may be useful in case results cannot be transmitted due to errors in the LMS or during the transmission process. To activate this function enter the tag
223
224 {{code language="powershell"}}
225 <resultsdir>/tmp/onyxresults/</resultsdir> in the section <playerconfig>...</playerconfig>
226 {{/code}}
227
228 of the file onyxplugin.config.xml and adjust the indicated directory to your server.
229
230 Tomcat needs a writing permission for this directory. The result files are sorted in a sub folder by date and will not be deleted. In case the result files are no longer required, deletion can be done only by administrators.
231 {{/layout-cell}}
232 {{/layout-section}}
233 {{/layout}}