From 58a11b903c6f9d895c89ccc0d47f216d24e010ed Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 1 Sep 2012 19:43:53 +0100 Subject: [PATCH] Remove docs from repo (now on the website) --- docs/setting-up-sparkleshare.html | 114 ------------------------------ 1 file changed, 114 deletions(-) delete mode 100644 docs/setting-up-sparkleshare.html diff --git a/docs/setting-up-sparkleshare.html b/docs/setting-up-sparkleshare.html deleted file mode 100644 index fea17f47..00000000 --- a/docs/setting-up-sparkleshare.html +++ /dev/null @@ -1,114 +0,0 @@ - - - Setting up SparkleShare - - - - -

Setting up SparkleShare

- -

1. Setting up the server

- -

1.1. Creating a new user

- -
-# Create a new user called "storage"
-sudo useradd storage --create-home --user-group
-
- -

All clients connect through this user account, there's not need to add more users to link more clients.

- -

1.2. Configuring SSH

- -
-# Create a file to store authorized public keys
-sudo mkdir /home/storage/.ssh
-sudo touch /home/storage/.ssh/authorized_keys
-
-# Set the right permissions in the file
-sudo chmod 700 /home/storage/.ssh
-sudo chmod 600 /home/storage/.ssh/authorized_keys
-
- -

Every SparkleShare client uses its own SSH public key. This key can be found in ~/SparkleShare/Your Name's link code.txt after you've started and configured a client for the first time. Paste the contents of this file on a new line in authorized_keys to link a client.

- -

Open /etc/ssh/sshd_config in an editor and add the following lines:

- -
-Match User storage
-    PasswordAuthentication no
-
- -

Finally, restart the SSH daemon to use the new configuration:

- -
-# Restart SSH
-sudo /etc/init.d/ssh restart # on Debian
-sudo /etc/init.d/sshd restart # on Fedora
-
- -

1.3. Setting up Git repositories

- -
-# Install Git
-sudo apt-get install git-core
-sudo yum install git
-
-# Create a Git repository (create as many as you need)
-sudo git init --bare /home/storage/MyProject
-sudo chown -R storage:storage /home/storage
-
- -

2. Setting up a client

- -

Click the SparkleShare status icon and select Add Hosted Project. Select On my own server, enter your server address in the Address field and /home/storage/MyProject in the Remote Path field. Click Add.

- -

SparkleShare has now been linked to your server!

- - - -