Subversion Repositories wimsdev

Rev

Rev 10870 | Rev 11342 | 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).
42
 Compile the server as user wims : type './compile' --mathjax --jmol --modules --swac
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
 
7827 bpr 47
--modules : will load all the pedagogical modules (use it only at the first installation)
48
--jmol : will load jsmol (use in some chemical modules)
49
--swac : will load some audios (take a long time).
50
 
7662 bpr 51
 In case of compilation difficulty, you can try to change the line
52
 ./configure || exit
53
in the file compile by
54
 ./configure CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib || exit
55
or some suitable path.
56
 
57
At the end, you will be asking about the IP address from which the webmaster will
4430 bpr 58
be able to configure the preferences, his password and the wims email address.
7662 bpr 59
Then execute the script ./bin/setwrapexec as root. It is important
3887 bpr 60
for security reasons.
3886 bpr 61
 
8640 bpr 62
5. Get and install optional support software. Omitting some of them will simply
3891 bpr 63
 prevent your server from running some of the exercises / activities.
2 reyssat 64
 
4430 bpr 65
 -- GNU Octave 3.0.4 or up (http://www.octave.org/).        ( 20% importance)
3891 bpr 66
 -- Yacas 1.0.52 or up (http://yacas.sourceforge.net/).     ( 10% importance)
7662 bpr 67
 -- GAP 4 or up (http://www-gap.dcs.st-and.ac.uk/~gap).     ( 10% importance)
3891 bpr 68
 -- Povray (http://www.povray.org/).                        (  5% importance)
69
 -- Graphviz (http://www.graphviz.org/).                    (  5% importance)
3904 bpr 70
 -- Macaulay (1.1 or up)                                    (~ 0% importance)
7027 bpr 71
 -- fortune and strfile
9334 bpr 72
 -- openbabel (openbabel.org)
7662 bpr 73
 
8640 bpr 74
6. You may run WIMS single-user by executing the script $HOME/localwims
7662 bpr 75
   if you would prefer something else. In this case, you must run first the
3891 bpr 76
   script ./bin/setwimsd as root. It is important for security reasons.
7662 bpr 77
 
2 reyssat 78
   The default browser used is mozilla, call 'localwims another_browser'
8640 bpr 79
   if you would prefer something else. **untested now**
2 reyssat 80
   You should see your favorite browser pop up and display the WIMS home page,
81
   including a link allowing you to do online site maintenance. Click on it
82
   and follow instructions there to configure and check your installation.
7662 bpr 83
 
2 reyssat 84
   In particular, modules must be selected and installed from that online
85
   maintenance page.
86
 
8640 bpr 87
7. If you want to use Apache httpd with WIMS, run $HOME/bin/apache-config
3891 bpr 88
   as root. In this case, wims can be accessed from the address
2 reyssat 89
 
7662 bpr 90
	  http://localhost/wims/
4430 bpr 91
	or
92
	  http://localhost/wims/wims.cgi
2 reyssat 93
 
4430 bpr 94
9. You can make more configuration (from the WIMS home page, follow the link maintenance).
2916 reyssat 95
 
6615 bpr 96
10. To be able to use the W3C validation, install the perl package
97
WebService-Validator-HTML-W3C
98
 
4485 bpr 99
For a further installation, execute the script bin/server-interrupt,
8640 bpr 100
go to steps 2, 3 and 4. and execute the script bin/server-resume
4430 bpr 101
 
102
#######################
103
 
10876 obado 104
If you want to use a safe execution environment on 64bit Linux
105
(using a chroot-directory : build on gcc version 6.1.1 20160707)
10870 schaersvoo 106
containing all essential software, follow the next steps :
4430 bpr 107
 
108
1. Create a user, say `wims', with home directory, say, /var/wims ($HOME).
109
 
110
2. Login as wims, and copy the tar file wims-WIMS_VERSION.tgz into $HOME.
111
   This tarball now contains the base system. It does not contains "pedagogical modules".
112
 
113
3. Decompress and untar the .tgz file.
114
 
115
4. (For a first installation only). Get and execute the script wims_modules.pl
116
(need Perl and webget). It takes a long time as there are many pedagogical modules.
117
 
10870 schaersvoo 118
5. Download for 64bit linux the complete chroot archive
10876 obado 119
http://wims.unice.fr/download/wims/chroot/wims-4.12.chroot64.linux.tar.bz2
4433 schaersvoo 120
Decompress and untar as user wims (in $HOME).
4430 bpr 121
 
122
6. Compile the server as user wims : type './compile --build-chroot'.
7662 bpr 123
At the end, you will be asking about the IP address from which the webmaster will
4430 bpr 124
configure the preferences, the password he will have and the wims email address.
10870 schaersvoo 125
Then execute the script './bin/setchroot' as root.
4430 bpr 126
 
127
7. Run $HOME/bin/apache-config as root. In this case, wims can be accessed from the address
10870 schaersvoo 128
http://localhost/wims/
129
 or
130
http://localhost/wims/wims.cgi
4430 bpr 131
 
132
8. You can make more configuration (from the WIMS home page, follow the link maintenance).
133
 
7662 bpr 134
For a further installation, you have only to do the step 2, 3 and 6.
4430 bpr 135
 
2 reyssat 136
Good luck, and enjoy!
137
 
3886 bpr 138
If you run into difficulties: have a look at WIMSEDU forum (http://wimsedu.info/).
2 reyssat 139
 
140
Home site of wims: http://wims.unice.fr/
4430 bpr 141
Source: http://sourcesup.cru.fr/frs/?group_id=379