Version 348.1 von tleu am 21.11.2014

Zeige letzte Bearbeiter
1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
4 ====== Inhalt: ======
5
6
7
8 {{toc style="square" maxLevel="5" outline="true" absoluteUrl="true"/}}
9 {{/layout-cell}}
10
11 {{layout-cell}}
12 |=(((
13 Status
14 )))|(((
15 (% class="status-macro aui-lozenge aui-lozenge-error" %)ENTWURF
16 )))
17 {{/layout-cell}}
18 {{/layout-section}}
19
20 {{layout-section ac:type="single"}}
21 {{layout-cell}}
22 == Requirements ==
23
24 * Oracle Java 7 and Apache Tomcat 7
25 * Apache Webserver with proxy_ajp and mod_rewrite (optional)
26 * MAXIMA for the use of calculations (optional)
27
28 == Download ==
29
30 * Download and install Oracle JDK 7: [[http:~~/~~/www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html>>url:http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html||shape="rect"]]
31
32 {{code title="Install" language="powershell"}}
33 tar xfz jdk-7uX-linux-x64.tar.gz -C /opt
34 {{/code}}
35
36 * Let the environment variable $JAVA_HOME point to the JDK directory:
37
38 {{code title="JAVA-HOME" language="powershell"}}
39 export JAVA_HOME=/opt/jdk1.7.X
40 {{/code}}
41
42 * Download and install Tomcat 7: [[http:~~/~~/tomcat.apache.org/download-70.cgi>>url:http://tomcat.apache.org/download-70.cgi||shape="rect"]]
43
44 {{code title="Tomcat" language="powershell"}}
45 tar xfz apache-tomcat-7.X.X.tar.gz -C /opt
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 title="Tomcat" 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 title="MAXIMA für RHEL/Fedora/CentOS" language="powershell"}}
81 sudo yum install maxima
82 {{/code}}
83
84 * Installation on Debian/Ubuntu/Mint:
85
86 {{code title="MAXIMA für Debian/Ubuntu/Mint" 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
96 {{code title="save user results" language="powershell"}}
97 <resultsdir>/tmp/onyxresults/</resultsdir> in the section <playerconfig>...</playerconfig>
98 {{/code}}
99
100 of the file onyxplugin.config.xml and adjust the indicated directory to your server.
101
102 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.
103 {{/layout-cell}}
104 {{/layout-section}}
105 {{/layout}}