update changelog to reflect the new monkeysphere user configuration location
[monkeysphere.git] / website / mirrors.mdwn
index 342abfaa352023a3826ca1c055f39070ba2e18a7..feee9bdca2c3b2777f7bca09ade60ff83603bf95 100644 (file)
@@ -10,62 +10,72 @@ opted for a method that uses ssh.
 
 The steps for creating a new mirror are:
 
- * Add etch-backports to your /etc/apt/sources.list:
-               deb http://www.backports.org/debian etch-backports main contrib non-free
- * Add the following lines to your /etc/apt/preferences file:
-               Package: ikiwiki
-               Pin: release a=etch-backports
-               Pin-Priority: 999
+## Steps to take on the mirror server ##
 
-               # needed by ikiwiki
-               Package: libcgi-formbuilder-perl
-               Pin: release a=etch-backports
-               Pin-Priority: 999
-               
-               Package: git-core 
-               Pin: release a=etch-backports
-               Pin-Priority: 999
-       * Install git-core and ikiwiki
+Add etch-backports to your /etc/apt/sources.list:
 
-               aptitude update; aptitutde install git-core ikiwiki
+    deb http://www.backports.org/debian etch-backports main contrib non-free
 
-       * Create a new user. Change the new users shell to git-shell:
+Add the following lines to your /etc/apt/preferences file:
 
-               adduser -s /usr/bin/git-shell <username>
+    Package: ikiwiki
+    Pin: release a=etch-backports
+    Pin-Priority: 999
 
-       * Add webmaster@george's public key to this user's ~/.ssh/authorized_keys file
+    # needed by ikiwiki
+    Package: libcgi-formbuilder-perl
+    Pin: release a=etch-backports
+    Pin-Priority: 999
+    
+    Package: git-core 
+    Pin: release a=etch-backports
+    Pin-Priority: 999
 
-       * Add web site configuration that the user has write access to. If you are using Apache, include the following rewrite:
+Install git-core and ikiwiki
 
-               RewriteEngine On
-               RewriteCond %{HTTP_HOST} !^(YOURHOSTNAME|web)\.monkeysphere\.info$ [NC]
-               RewriteCond %{HTTP_HOST} !^$
-               RewriteRule ^/(.*) http://web.monkeysphere.info/$1 [L,R]
+    aptitude update; aptitutde install git-core ikiwiki
 
-       * Upload and edit ikiwiki.setup.sample from the docs directory
-       * As the new user, create two new git repos
+Create a new user. Change the new users shell to git-shell:
 
-               mkdir monkeysphere.git; cd monkeysphere.git; git init --bare; cd ../
-               git clone monkeysphere.git # this will create a second git repo called monkeysphere
+    adduser -s /usr/bin/git-shell <username>
 
-       * Change the mode of monkeysphere.git/hooks/post-receive to 755
+Add webmaster@george's public key to this user's ~/.ssh/authorized_keys file
 
-               chmod 755 monkesphere.git/hooks/post-receive
+Add web site configuration that the user has write access to. If you are using Apache, include the following rewrite:
 
-       * Edit the file so that it executes the post-receive hook ikiwiki generates (as you specified in the ikiwiki.setup file)
+    RewriteEngine On
+    RewriteCond %{HTTP_HOST} !^(YOURHOSTNAME|web)\.monkeysphere\.info$ [NC]
+    RewriteCond %{HTTP_HOST} !^$
+    RewriteRule ^/(.*) http://web.monkeysphere.info/$1 [L,R]
 
-The steps to be taken on the mirror site should now be complete. The following steps should be taken by a Monkeysphere admin user:
+Upload and edit ikiwiki.setup.sample from the docs directory
 
- * Add a new dns record for SERVERNAME.monkeysphere.info. 
- * Test the ssh connection by logging in as webmaster@george.riseup.net
- * Add the new server as a remote on webmaster@george.riseup.net:monkeysphere.git
+As the new user, create two new git repos
 
-               cd ~/monkeysphere.git
-               git add remote SERVERNAME USER@SERVERNAME.monkeysphere.info:/path/to/repo
+    mkdir monkeysphere.git; cd monkeysphere.git; git init --bare; cd ../
+    git clone monkeysphere.git # this will create a second git repo called monkeysphere
 
- * Test:
+Change the mode of monkeysphere.git/hooks/post-receive to 755
 
-               git push SERVERNAME
+    chmod 755 monkesphere.git/hooks/post-receive
 
+Edit the file so that it executes the post-receive hook ikiwiki generates (as
+you specified in the ikiwiki.setup file)
 
-               
+## Admin steps to take to enable the configuration ##
+
+Add a new dns record for SERVERNAME.monkeysphere.info. 
+
+Test the ssh connection by logging in as webmaster@george.riseup.net
+
+Add the new server as a remote on webmaster@george.riseup.net:monkeysphere.git
+
+    cd ~/monkeysphere.git
+    git add remote SERVERNAME USER@SERVERNAME.monkeysphere.info:/path/to/repo
+
+Test:
+
+    git push SERVERNAME
+
+
+