Il faut se rendre à http://www.netfort.gr.jp/~dancer/software/downloads/list.cgi pour télécharger les versions suivantes:
- pour libdshconfig Version: 0.20.9;
- pour dsh: version 0.25.9
1. Téléchargement
Rien de plus simple que
wget http://www.netfort.gr.jp/~dancer/software/downloads/dsh-0.25.9.tar.gz
wget http://www.netfort.gr.jp/~dancer/software/downloads/libdshconfig-0.20.9.tar.gz
2. Compilation de libdshconfig
Pour compiler, ici mon idée est de tout mettre dans un répertoire dsh situé homedirectory (/home/jdtecher/dsh).
tar xzf libdshconfig-0.20.9.tar.gz
cd libdshconfig-0.20.9
./configure --prefix=$HOME/dsh
make
make install
3. Compilation de dsh
Pour la compilation de dsh:
tar xzf dsh-0.25.9.tar.gz
cd dsh-0.25.9
CPPFLAGS="-I$HOME/dsh/include" LDFLAGS="-L$HOME/dsh/lib" ./configure --prefix=$HOME/dsh
make
make install
4. Vérifiacation
On vérifie les dépendances par rapport avec ldd pour dsh
david@bremko:/var/lib/david/dsh-0.25.9$ LD_LIBRARY_PATH=$HOME/dsh/lib:$LD_LIBRARY_PATH ldd $HOME/dsh/bin/dsh
linux-gate.so.1 => (0xb7f84000)
libdshconfig.so.1 => /var/lib/david//dsh/lib/libdshconfig.so.1 (0xb7f80000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e0d000)
/lib/ld-linux.so.2 (0xb7f85000)
Et on vérifie la version
david@bremko:/var/lib/david/dsh-0.25.9$ LD_LIBRARY_PATH=$HOME/dsh/lib:$LD_LIBRARY_PATH $HOME/dsh/bin/dsh -V
Distributed Shell / Dancer's shell version 0.25.9
Copyright 2001-2005 Junichi Uekawa,
distributed under the terms and conditions of GPL version 2
5. Tests sur un groupe
On commence par progager la clé
david@bremko:/var/lib/david$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/lib/david//.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/lib/david//.ssh/id_rsa.
Your public key has been saved in /var/lib/david//.ssh/id_rsa.pub.
The key fingerprint is:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
david@bremko:/var/lib/david$ ssh-copy-id -i ~/.ssh/id_rsa.pub davidgis.fr
Warning: the RSA host key for 'davidgis.fr' differs from the key for the IP address '82.236.232.184'
Offending key for IP in /var/lib/david/.ssh/known_hosts:8
Matching host key in /var/lib/david/.ssh/known_hosts:21
Are you sure you want to continue connecting (yes/no)? yes
david@davidgis.fr's password:
Now try logging into the machine, with "ssh 'davidgis.fr'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
Pour être sur de ne pas devoir répondre à yes/no à chaque demande par ssh, on fait
echo "StrictHostKeyChecking no" >> ~/.ssh/config
On prépare maintenant les divers fichiers attendus
mkdir -p ~/.dsh/group
echo "davidgis.fr" > ~/.dsh/machines.list
echo "davidgis.fr" > ~/.dsh/group/davidgis
On lance un test même si celui-ci est retreint à une seule machine
export LD_LIBRARY_PATH=$HOME/dsh/lib:$LD_LIBRARY_PATH
$HOME/dsh/bin/dsh -g davidgis -- 'uname -a'
Linux olivia 2.6.20-15-lowlatency #2 SMP PREEMPT Sun Apr 15 07:39:03 UTC 2007 i686 GNU/Linux