Mise en place de Sparkleshare sur serveur Debian & client Ubuntu : Différence entre versions
De wikiGite
(→Configuration de SSH) |
|||
(8 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
== Côté Serveur (Debian Squeeze) == | == Côté Serveur (Debian Squeeze) == | ||
− | + | === Installation de Git et openssh-server === | |
− | |||
− | |||
− | |||
− | |||
− | Installation de Git et openssh-server | ||
apt-get install git openssh-server | apt-get install git openssh-server | ||
− | Configuration de Git | + | === Configuration de Git === |
adduser --disabled-password git | adduser --disabled-password git | ||
cd /home/git | cd /home/git | ||
git init --bare sparkleshare | git init --bare sparkleshare | ||
− | Configuration de SSH | + | === Configuration de SSH === |
− | mkdir .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 git /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 install git | ||
sudo apt-get update | sudo apt-get update | ||
− | Installation de Sparkleshare | + | === Installation de Sparkleshare === |
mkdir /opt/sparkleshare | mkdir /opt/sparkleshare | ||
Ligne 42 : | Ligne 39 : | ||
./configure --prefix=/opt/sparkleshare | ./configure --prefix=/opt/sparkleshare | ||
− | |||
− | |||
make | make | ||
Ligne 51 : | Ligne 46 : | ||
./sparkleshare start | ./sparkleshare start | ||
− | Configuration de SSH | + | <u>Remarque</u> --> 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 | + | Mettre sa clé SSH sur le serveur : |
+ | vi /home/git/.ssh/authorized_keys | ||
+ | Puis coller la clé | ||
− | Paramétrage de Sparkleshare | + | === 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" : | Puis dans l'interface de Sparkleshare, ajouter un "projet" : | ||
− | * | + | *Où est hébergé votre projet ? --> On my own server |
− | *<u> | + | *<u>Adresse :</u> <nom_serveur>.kogite.fr ou adresse IP |
− | *<u> | + | *<u>Chemin à distance :</u> /home/git/sparkleshare (par exemple) |
Version actuelle datée du 9 janvier 2012 à 11:26
Sommaire
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 git /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
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é
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)