Outils personnels

Mise en place de Sparkleshare sur serveur Debian & client Ubuntu : Différence entre versions

De wikiGite

(Configuration de SSH)
(Configuration de SSH)
Ligne 10 : Ligne 10 :
  
 
=== Configuration de SSH ===
 
=== Configuration de SSH ===
  mkdir .ssh
+
  mkdir /home/git/.ssh
  vi .ssh/authorized_keys
+
  touch /home/git/.ssh/authorized_keys
  
mettre la clé SSH du/des poste(s) client(s)
+
  chmod 700 /home/git/.ssh
 
+
  chmod 600 /home/git/.ssh/authorized_keys
  chmod 700 .ssh
+
  chown -R /home/git .
  chmod 600 .ssh/authorized_keys
 
  chown -R git .
 
  
 
== Côté Client (Ubuntu) ==
 
== Côté Client (Ubuntu) ==

Version du 5 janvier 2012 à 13:32

Côté Serveur (Debian Squeeze)

Installation de Git et openssh-server

apt-get install git openssh-server

Configuration de Git

adduser --disabled-password git
cd /home/git
git init --bare sparkleshare

Configuration de SSH

mkdir /home/git/.ssh
touch /home/git/.ssh/authorized_keys
chmod 700 /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys
chown -R /home/git .

Côté Client (Ubuntu)

Installation des pré-requis

sudo apt-get install intltool
sudo apt-get install mono-runtime mono-devel monodevelop mono-mcs mono-gmcs
sudo apt-get install gtk-sharp2 libndesk-dbus1.0-cil-dev nant libnotify-cil-dev libgtk2.0-cil-dev libwebkit-cil-dev intltool libtool python-nautilus libndesk-dbus-glib1.0-cil-dev
sudo apt-get install git
sudo apt-get update

Installation de Sparkleshare

mkdir /opt/sparkleshare
wget https://github.com/downloads/hbons/SparkleShare/
tar xzf sparkleshare-0.6.0.tar.gz
cd sparkleshare-0.6.0
./configure --prefix=/opt/sparkleshare
make
sudo make install
cd /opt/sparkleshare/bin
./sparkleshare start

Remarque --> Si souci avec mono lors de la compilation de Sparkleshare :

sudo apt-get remove mono-runtime 
sudo apt-get install mono-runtime

Configuration de SSH

Mettre sa clé SSH sur le serveur :

vi /home/git/.ssh/authorized_keys

Puis coller la clé

Paramétrage de Sparkleshare

Cliquer sur l'icône Sparkleshare dans la barre des tâches et choisir "Ajouter un projet hébergé..."

Puis dans l'interface de Sparkleshare, ajouter un "projet" :

  • Où est hébergé votre projet ? --> On my own server
  • Adresse : <nom_serveur>.kogite.fr ou adresse IP
  • Chemin à distance : /home/git/sparkleshare (par exemple)