Subversion Repositories wimsdev

Rev

Rev 11342 | Rev 13756 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 reyssat 1
 
76 bpr 2
         Distribution version WIMS_VERSION of WIMS
2 reyssat 3
	  (WWW Interactive Multipurpose Server)
4
 
5
 
6
Please be aware that WIMS is a sophisticated software, not a simple set of
7
web pages. You have to compile and install it if you want to run it locally
8
on your computer.
9
 
10
WIMS is copyrighted under the GNU General Public License (GPL). See the file
11
COPYING for licensing conditions.
7662 bpr 12
 
2 reyssat 13
This software is reported to work on several Linux distributions, including
14
Red Hat, Debian, and LinuxPPC. It is also reported to work on Mac OS-X and
15
should work on any modern Unix-like system after minimal porting efforts.
16
 
4430 bpr 17
You may compile the system on your machine. You can use a chroot for the third party
7662 bpr 18
support softwares or use the locally installed ones.
2 reyssat 19
 
4430 bpr 20
#######################
21
 
22
Here are the steps for a first installation with locally installed third party
7662 bpr 23
support softwares:
4430 bpr 24
 
3891 bpr 25
0. Install third party support softwares:
26
 -- LaTeX distribution
4371 bpr 27
 -- Pari 2.5 or up (http://pari.math.u-bordeaux.fr/).
3891 bpr 28
 -- Maxima 5.20 or up (http://sourceforge.net/projects/maxima/).
7156 georgesk 29
 -- Libgd 2.1 or up (http://libgd.bitbucket.org/).
3891 bpr 30
 -- Make sure that the server is able to send mail.
10328 bpr 31
 -- Check that you have the gnu utilities tac, date (with option -d), stat (with option -c)
32
   (http://ftp.gnu.org/gnu/coreutils)
7662 bpr 33
 
3891 bpr 34
1. Create a user, say `wims', with home directory, say, /var/wims ($HOME).
2 reyssat 35
 
3891 bpr 36
2. Login as wims, and copy the tar file wims-WIMS_VERSION.tgz into $HOME.
3904 bpr 37
   This tarball now contains the base system. It does not contains "pedagogical modules".
2 reyssat 38
 
39
3. Decompress and untar the .tgz file.
40
 
8640 bpr 41
4. (For a first installation only).
11342 obado 42
 Compile the server as user wims : type './compile --mathjax --jmol --modules --swac --geogebra'
8640 bpr 43
It takes a long time as there are many pedagogical modules.
44
 (For an update of the installation), do not use the option --modules
45
  './compile' --mathjax --jmol --swac'
2 reyssat 46
 
11342 obado 47
--modules : load all the pedagogical modules (use it only at the first installation)
48
--jmol : load/upgrade jsmol (used in some chemical modules) (http://jmol.org/index.php/JSmol)
49
--swac : load some audios (take a long time. do it only at the first installation). (http://shtooka.net)
50
--geogebra : load/upgrade geogebraweb (https://www.geogebra.org/)
7827 bpr 51
 
7662 bpr 52
 In case of compilation difficulty, you can try to change the line
53
 ./configure || exit
54
in the file compile by
55
 ./configure CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib || exit
56
or some suitable path.
57
 
58
At the end, you will be asking about the IP address from which the webmaster will
4430 bpr 59
be able to configure the preferences, his password and the wims email address.
7662 bpr 60
Then execute the script ./bin/setwrapexec as root. It is important
3887 bpr 61
for security reasons.
3886 bpr 62
 
8640 bpr 63
5. Get and install optional support software. Omitting some of them will simply
3891 bpr 64
 prevent your server from running some of the exercises / activities.
2 reyssat 65
 
4430 bpr 66
 -- GNU Octave 3.0.4 or up (http://www.octave.org/).        ( 20% importance)
3891 bpr 67
 -- Yacas 1.0.52 or up (http://yacas.sourceforge.net/).     ( 10% importance)
7662 bpr 68
 -- GAP 4 or up (http://www-gap.dcs.st-and.ac.uk/~gap).     ( 10% importance)
3891 bpr 69
 -- Povray (http://www.povray.org/).                        (  5% importance)
70
 -- Graphviz (http://www.graphviz.org/).                    (  5% importance)
3904 bpr 71
 -- Macaulay (1.1 or up)                                    (~ 0% importance)
7027 bpr 72
 -- fortune and strfile
9334 bpr 73
 -- openbabel (openbabel.org)
7662 bpr 74
 
8640 bpr 75
6. You may run WIMS single-user by executing the script $HOME/localwims
7662 bpr 76
   if you would prefer something else. In this case, you must run first the
3891 bpr 77
   script ./bin/setwimsd as root. It is important for security reasons.
7662 bpr 78
 
2 reyssat 79
   The default browser used is mozilla, call 'localwims another_browser'
8640 bpr 80
   if you would prefer something else. **untested now**
2 reyssat 81
   You should see your favorite browser pop up and display the WIMS home page,
82
   including a link allowing you to do online site maintenance. Click on it
83
   and follow instructions there to configure and check your installation.
7662 bpr 84
 
2 reyssat 85
   In particular, modules must be selected and installed from that online
86
   maintenance page.
87
 
8640 bpr 88
7. If you want to use Apache httpd with WIMS, run $HOME/bin/apache-config
3891 bpr 89
   as root. In this case, wims can be accessed from the address
2 reyssat 90
 
7662 bpr 91
	  http://localhost/wims/
4430 bpr 92
	or
93
	  http://localhost/wims/wims.cgi
2 reyssat 94
 
4430 bpr 95
9. You can make more configuration (from the WIMS home page, follow the link maintenance).
2916 reyssat 96
 
6615 bpr 97
10. To be able to use the W3C validation, install the perl package
98
WebService-Validator-HTML-W3C
99
 
4485 bpr 100
For a further installation, execute the script bin/server-interrupt,
8640 bpr 101
go to steps 2, 3 and 4. and execute the script bin/server-resume
4430 bpr 102
 
103
#######################
104
 
10876 obado 105
If you want to use a safe execution environment on 64bit Linux
106
(using a chroot-directory : build on gcc version 6.1.1 20160707)
10870 schaersvoo 107
containing all essential software, follow the next steps :
4430 bpr 108
 
109
1. Create a user, say `wims', with home directory, say, /var/wims ($HOME).
110
 
111
2. Login as wims, and copy the tar file wims-WIMS_VERSION.tgz into $HOME.
112
   This tarball now contains the base system. It does not contains "pedagogical modules".
113
 
114
3. Decompress and untar the .tgz file.
115
 
116
4. (For a first installation only). Get and execute the script wims_modules.pl
117
(need Perl and webget). It takes a long time as there are many pedagogical modules.
118
 
10870 schaersvoo 119
5. Download for 64bit linux the complete chroot archive
12003 obado 120
https://wims.unice.fr/download/wims/chroot/wims-4.12.chroot64.linux.tar.bz2
4433 schaersvoo 121
Decompress and untar as user wims (in $HOME).
4430 bpr 122
 
123
6. Compile the server as user wims : type './compile --build-chroot'.
7662 bpr 124
At the end, you will be asking about the IP address from which the webmaster will
4430 bpr 125
configure the preferences, the password he will have and the wims email address.
10870 schaersvoo 126
Then execute the script './bin/setchroot' as root.
4430 bpr 127
 
128
7. Run $HOME/bin/apache-config as root. In this case, wims can be accessed from the address
10870 schaersvoo 129
http://localhost/wims/
130
 or
131
http://localhost/wims/wims.cgi
4430 bpr 132
 
133
8. You can make more configuration (from the WIMS home page, follow the link maintenance).
134
 
7662 bpr 135
For a further installation, you have only to do the step 2, 3 and 6.
4430 bpr 136
 
2 reyssat 137
Good luck, and enjoy!
138
 
3886 bpr 139
If you run into difficulties: have a look at WIMSEDU forum (http://wimsedu.info/).
2 reyssat 140
 
12003 obado 141
Home site of wims: https://wims.unice.fr/
142
Source: https://sourcesup.renater.fr/frs/?group_id=379