Friday, April 9, 2021

Installing ClusterSSH in Windows

You need to install Cygwin first. Cygwin provides Linux functionality on Windows-based machines.

PART 1: Installing Cygwin


NOTE:
  - During this setup, it will allow you to manually install the tools you need like ssh-server and perl. Cygwin has no package manager (like rpm, yum, dpkg, etc..) so if you want to install additional packages, you need to run the setup again and choose "Install from Internet (downloaded files will be kep for future re-use)"
  - Make sure you also have an internet connection

1. Download the latest version at: https://cygwin.com/setup-x86.exe
2. Run the downloaded file
3. Choose "Install from Internet (downloaded files will be kep for future re-use)"
4. Root Directory: C:\cygwin
5. Install: All Users (RECOMMENDED)
6. Local Package Directory: C:\Users\merrell\Desktop
7. Direct Connection
8. Choose A Download Site: This is where you will get the packages you want to install. Usually I choose the first one.
9. Select Packages: You can now select the packages you want. Download time will depend how large the packages you are downloading. Since we will install clusterssh, we need to choose the following packages:
perl
make
gcc-core
perl-tk
perl-Test-Pod
perl-Test-Pod-Coverage
perl-Try_Tiny
perl-File-Slurp
perl-File-Which
perl-Readonly
xinit
openssh
curl
wget
10. Once finished, you can now open the Cygwin terminal on which you can run Linux commands

PART 2: Installing clusterssh


NOTE:
  - You need a live internet connection before proceeding on the steps below

2. Extract the file anywhere you want
3. Open Cygwin terminal and go to the extracted folder
4. Open XWin server: Programs > Cygwin-x (32-bit) > XWin server
5. In Cygwin terminal, execute the following commands in order to install cssh and all required modules:
  $ cpan
    * press enter to all questions *
    cpan[1]> install Module::Build
    cpan[2]> exit
  $ perl Build installdeps
    * press enter to all questions *
  $ perl Build.PL
  $ ./Build
  $ ./Build test
  $ ./Build install
6. Now test cssh by opening 2 terminal at once using "root" as user
  $ cssh -l root host1 host2

No comments:

Post a Comment