Project

General

Profile

E-Lite » History » Version 4

iri, 05/12/2012 07:30 PM

1 1 iri
h1. E-Lite
2
3
Install Etherpad-Lite ....
4
5
As root, do :
6
7
- On Debian, if needed, install dependencies :
8
<pre>
9
apt-get install gzip git-core curl python libssl-dev pkg-config build-essential
10
</pre>
11
12
- Download the lastest version of node.js from http://nodejs.org/#download
13
14
- Extract this with <pre>tar xf node-v0.6*
15
</pre>
16
17
- Go to the node directory <pre>cd node-v0.6*
18
</pre>
19
20
- Build node with <pre>./configure && make && make install
21
</pre>
22
23
As user (not root), do :
24
25
- Go to the directory where EL will be installed
26
- Clone the git repository <pre>git clone 'git://github.com/Pita/etherpad-lite.git'</pre>
27
- Go to the directory of source code clone <pre>cd etherpad-lite</pre>
28
- Install dependencies <pre>bin/installDeps.sh</pre>
29
- Start EL with <pre>bin/run.sh</pre>
30
- With the web browser, go to http://pad.scolring.org or http://www.scolring.org:9001/
31
32
After, if install is ok, settings can be modified :
33
34
- Keep in the same directory (etherpad-lite)
35
- Edit the _settings.json_ file :<pre>nano settings.json</pre> (or with vi, emacs, ...)
36
37
To install Sqlite3 support :
38
- Keep in the same directory (etherpad-lite)
39
- Enter the command :<pre>npm install sqlite3</pre>
40
41 4 iri
To install plugins :
42
<pre>npm install ep_pluginname</pre>
43
To upgrade plugins :
44
<pre>npm install --upgrade ep_pluginname</pre>
45
46 1 iri
To update to the lastest version :
47
<pre>git pull origin</pre>
48
49
To run with debug (see settings.json too) :
50
<pre>bin/debugRun.sh</pre>
51 2 iri
52
To switch to develop branch :
53
<pre>git checkout develop</pre>
54 3 iri
<pre>bin/run.sh</pre>
55 2 iri
56
To switch to master branch :
57
<pre>git checkout master</pre>
58 3 iri
<pre>bin/run.sh</pre>
59 4 iri
60
To a protected access :
61
edit settings.json (in the e-l root directory)
62
if any, comment "httpAuth" key
63
add or update these lines
64
<pre>/* This setting is used if you require authentication of all users.
65
     Note: /admin always requires authentication. */
66
  "requireAuthentication": true,
67
68
  /* Require authorization by a module, or a user with is_admin set, see below. */
69
  "requireAuthorization": false,
70
71
  /* Users for basic authentication. is_admin = true gives access to /admin.
72
     If you do not uncomment this, /admin will not be available! */
73
74
  "users": {
75
    "toto": {
76
      "password": "pass",
77
      "is_admin": true
78
    },
79
    "titi": {
80
      "password": "pass2",
81
      "is_admin": false
82
    }
83
  },</pre>
84 3 iri
85
Return to [[Tutorials]]