|
@@ -3182,9 +3182,9 @@ git clone git://github.com/ether/etherpad-lite.git etherpad
|
3182
|
3182
|
Edit the configuration file
|
3183
|
3183
|
|
3184
|
3184
|
#+BEGIN_SRC: bash
|
3185
|
|
-cd etherpad
|
|
3185
|
+cd /var/www/$HOSTNAME/htdocs/etherpad
|
3186
|
3186
|
cp settings.json.template settings.json
|
3187
|
|
-emacs settings.json
|
|
3187
|
+emacs /var/www/$HOSTNAME/htdocs/etherpad/settings.json
|
3188
|
3188
|
#+END_SRC
|
3189
|
3189
|
|
3190
|
3190
|
Change the following settings. /rAnD0m5tRIng/ should be altered to a random string 10 characters in length.
|
|
@@ -3218,6 +3218,18 @@ adduser --system --home=/var/www/$HOSTNAME/htdocs/etherpad/ --group etherpad
|
3218
|
3218
|
chown -R etherpad: /var/www/$HOSTNAME/htdocs/etherpad/
|
3219
|
3219
|
#+END_SRC
|
3220
|
3220
|
|
|
3221
|
+Chick that it runs.
|
|
3222
|
+
|
|
3223
|
+#+BEGIN_SRC: bash
|
|
3224
|
+su -c "/var/www/$HOSTNAME/htdocs/etherpad/bin/run.sh" -s /bin/bash etherpad
|
|
3225
|
+#+END_SRC
|
|
3226
|
+
|
|
3227
|
+If it ran without exiting abnormally then kill the process.
|
|
3228
|
+
|
|
3229
|
+#+BEGIN_SRC: bash
|
|
3230
|
+pkill -u etherpad
|
|
3231
|
+#+END_SRC
|
|
3232
|
+
|
3221
|
3233
|
Create an init script using your favorite editor, changing /mydomainname.com/ to your domain name.
|
3222
|
3234
|
|
3223
|
3235
|
#+BEGIN_SRC: bash
|
|
@@ -3323,27 +3335,27 @@ emacs /etc/apache2/sites-available/$HOSTNAME
|
3323
|
3335
|
Within the 443 section add the following:
|
3324
|
3336
|
|
3325
|
3337
|
#+BEGIN_SRC: bash
|
3326
|
|
- <Location /var/www/mydomainname.com/htdocs/etherpad/>
|
3327
|
|
- AuthType Basic
|
3328
|
|
- AuthName "Welcome to Etherpad"
|
3329
|
|
- AuthUserFile /path/to/svn.passwd
|
3330
|
|
- AuthGroupFile /path/to/svn.group
|
3331
|
|
- Require group etherpad
|
3332
|
|
- </Location>
|
3333
|
|
-
|
3334
|
|
- <IfModule mod_proxy.c>
|
3335
|
|
- ProxyVia On
|
3336
|
|
- ProxyRequests Off
|
3337
|
|
- ProxyPass / http://127.0.0.1:9001/
|
3338
|
|
- ProxyPassReverse / http://127.0.0.1:9001/
|
3339
|
|
- ProxyPreserveHost on
|
3340
|
|
- <Proxy *>
|
3341
|
|
- Options FollowSymLinks MultiViews
|
3342
|
|
- AllowOverride All
|
3343
|
|
- Order allow,deny
|
3344
|
|
- allow from all
|
3345
|
|
- </Proxy>
|
3346
|
|
- </IfModule>
|
|
3338
|
+ <Location /etherpad>
|
|
3339
|
+ AuthType Basic
|
|
3340
|
+ AuthName "Welcome to Etherpad"
|
|
3341
|
+ AuthUserFile /home/mydomainname.com/public_html/.htpasswd
|
|
3342
|
+ AuthGroupFile /home/mydomainname.com/public_html/.htgroup
|
|
3343
|
+ Require group etherpad
|
|
3344
|
+ </Location>
|
|
3345
|
+
|
|
3346
|
+ <IfModule mod_proxy.c>
|
|
3347
|
+ ProxyVia On
|
|
3348
|
+ ProxyRequests Off
|
|
3349
|
+ ProxyPass /etherpad http://192.168.1.60:9001/
|
|
3350
|
+ ProxyPassReverse /etherpad 192.168.1.60:9001/
|
|
3351
|
+ ProxyPreserveHost on
|
|
3352
|
+ <Proxy *>
|
|
3353
|
+ Options FollowSymLinks MultiViews
|
|
3354
|
+ AllowOverride All
|
|
3355
|
+ Order allow,deny
|
|
3356
|
+ allow from all
|
|
3357
|
+ </Proxy>
|
|
3358
|
+ </IfModule>
|
3347
|
3359
|
#+END_SRC
|
3348
|
3360
|
|
3349
|
3361
|
Save and exit, then restart Apache.
|
|
@@ -3354,6 +3366,28 @@ a2enmod proxy proxy_http headers deflate
|
3354
|
3366
|
service apache2 restart
|
3355
|
3367
|
#+END_SRC
|
3356
|
3368
|
|
|
3369
|
+Create some passwords for users.
|
|
3370
|
+
|
|
3371
|
+#+BEGIN_SRC: bash
|
|
3372
|
+mkdir /home/$HOSTNAME
|
|
3373
|
+mkdir /home/$HOSTNAME/public_html
|
|
3374
|
+htpasswd -c /home/$HOSTNAME/public_html/.htpasswd myusername
|
|
3375
|
+#+END_SRC
|
|
3376
|
+
|
|
3377
|
+Create a user group.
|
|
3378
|
+
|
|
3379
|
+#+BEGIN_SRC: bash
|
|
3380
|
+emacs /home/$HOSTNAME/public_html/.htgroup
|
|
3381
|
+#+END_SRC
|
|
3382
|
+
|
|
3383
|
+Add the following:
|
|
3384
|
+
|
|
3385
|
+#+BEGIN_SRC: bash
|
|
3386
|
+etherpad: myusername
|
|
3387
|
+#+END_SRC
|
|
3388
|
+
|
|
3389
|
+Save and exit.
|
|
3390
|
+
|
3357
|
3391
|
** Install Tripwire
|
3358
|
3392
|
|
3359
|
3393
|
#+BEGIN_VERSE
|