InstallPDSH » History » Version 2

Anonymous, 10/01/2007 12:04 PM

1 1 Anonymous
= Install PDSH =
2 1 Anonymous
This document discribes how to install the Parallel Distributed Shell (PDSH), which allows to execute the same command in parallel on multiple machines.
3 1 Anonymous
4 1 Anonymous
== Download ==
5 1 Anonymous
Download the source packages of the latest PDSH release from [http://downloads.sourceforge.net/pdsh/].
6 1 Anonymous
7 1 Anonymous
== Installation ==
8 1 Anonymous
Install the sources:
9 1 Anonymous
{{{
10 1 Anonymous
rpm -ivh pdsh-RELEASE.src.rpm 
11 1 Anonymous
}}}
12 1 Anonymous
13 1 Anonymous
Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":
14 1 Anonymous
{{{
15 1 Anonymous
%define _defaults ssh exec pam
16 1 Anonymous
}}}
17 1 Anonymous
18 1 Anonymous
Prepare and compile the RPM binaries:
19 1 Anonymous
{{{
20 2 Anonymous
rpmbuild -v -bb /usr/scr/redhat/SPECS/pdsh.spec
21 1 Anonymous
}}}
22 1 Anonymous
23 1 Anonymous
Install the RPM binaries:
24 1 Anonymous
{{{
25 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-exec-2.14-1.x86_64.rpm
26 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-ssh-2.14-1.x86_64.rpm
27 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-2.14-1.x86_64.rpm
28 1 Anonymous
}}}
29 1 Anonymous
30 1 Anonymous
== Usage ==
31 1 Anonymous
{{{
32 2 Anonymous
pdsh -w s0[1-4] COMMAND
33 1 Anonymous
}}}