search
top

How To Install clusterssh on Cygwin

ClusterSSH is just one of those handy tools for making changes to many servers at once. A very nice tool for a systems administrator to have. If you are in an enterprise situation where your system is a Windows system and you maintain Linux / Unix systems you ave a few options to manage your systems like VirtualBox, Cygwin, puTTy and many more. Of the ones I mentioned only VirtualBox and Cygwin are ones that ClusterSSH is a option to run.
Cygwin does not have a package available so it must be compiled and installed.

First make sure to install Cygwin. If you have Cygwin installed then there are several other packages you need to install.
clusterssh requires X11, tcl-Tk and a few perl packages

Start Cygwin setup.exe and select the following. Note vim is not needed you can install nano or any other editor.

  • Archive/unzip
  • web/wget
  • net/ncftp
  • utils/gnupg
  • Devel/gcc-core
  • Devel/binutils
  • Devel/make
  • Devel/patchutils
  • X11/xorg-server
  • X11/tcl-tk
  • X11/X-start-menu-icons
  • Editors/vim
  • Perl/perl-Tk

CPAN modules install
First start an X11 Server session. Since we installed X-start-menu-icons you will have a shortcut under All Programs>Cygwin-X called XWin Server. Click on it to start it or open a Run or command prompt and type C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe.
The Xserver will start and it will also load a xterm session which you can close.

Open a Cygwin Terminal session and type the following commands:

cpan X11::Protocol
 cpan Exception::Class
 cpan Try::Tiny
 cpan Readonly
 cpan Test::DistManifest
 cpan Test::Trap

cygwincssh1

If you have never used cpan a configuration and update wizard will run first. If you accept the default and press enter it will configure it all for you. Once that is done and X11::Protocol starts a test X11 window will popup. Just click in the window to close it and the installation will complete.

ClusterSSH Install

Now we are ready to download App-ClusterSSH-4.01_01
Download 4.01 from http://sourceforge.net/projects/clusterssh/files/2.%20ClusterSSH%20Series%204/

Extract the file change to the extracted directory and type

$ tar -xvzf  App-ClusterSSH-4.01_01.tar.gz

cygwincssh2

To install this module, run the following commands:

perl Build.PL
 ./Build
 ./Build test
 ./Build install

cygwincssh3
Now you are ready to go. Open an xterm window and start using ClusterSSH!

15 Responses to “How To Install clusterssh on Cygwin”

  1. Adryan says:

    I have completed all of your steps, is there anything I need to do from there in order to get the clusterssh going? I started an xterm but it was just one window, are there a few more steps that I’m missing?

    running cygwin on windows 7 btw.

  2. Adryan says:

    Okay, that seemed to try to start the sessions. Do I need to setup a host file with the servers I am trying to get to or should I just use the IP of the servers that I am trying to reach? Thank you for your assistance.

  3. Adryan says:

    Yes I have a host file, where would I place that? I am guessing in the cygwin folder somewhere?

  4. Prashant says:

    Perfect one.
    Achieved what it says.

  5. Skeeve says:

    Test::Differences needs to be installed too…

    But then:

    $ ./Build
    Building App-ClusterSSH
    ./Build: blib/lib/App/ClusterSSH.pm: cannot resolve L in paragraph 335.
    ./Build: blib/lib/App/ClusterSSH.pm: unterminated list(s) at =head in paragraph 383. ignoring.

    And even worse!

    ./Build test

    # Looks like you failed 1 test of 150.
    t/15config.t …… Dubious, test returned 1 (wstat 256, 0×100)
    Failed 1/150 subtests
    ….
    # Failed test ‘The thing isa App::ClusterSSH::Exception::Cluster’
    # at t/30cluster.t line 46.
    # The thing isn’t defined

    # Failed test ‘Error on reading an existing file ok’
    # at t/30cluster.t line 47.
    # got: undef
    # expected: ‘Unable to read file /home/shrade0/App-ClusterSSH-4.01_01/t/30cluster.cannot_read: Permission denied’
    # Looks like you failed 2 tests of 12.
    t/30cluster.t ….. Dubious, test returned 2 (wstat 512, 0×200)

    t/manifest.t …… 1/4 # Distribution files are missing in MANIFEST:
    # pod2htmi.tmp
    # pod2htmd.tmp

    # Failed test ‘All files are listed in MANIFEST or skipped’
    # at t/manifest.t line 11.
    # Looks like you failed 1 test of 4.
    t/manifest.t …… Dubious, test returned 1 (wstat 256, 0×100)
    Failed 1/4 subtests
    t/pod-coverage.t .. ok
    t/pod.t ……….. ok

    Test Summary Report
    ——————-
    t/15config.t (Wstat: 256 Tests: 150 Failed: 1)
    Failed test: 149
    Non-zero exit status: 1
    t/30cluster.t (Wstat: 512 Tests: 12 Failed: 2)
    Failed tests: 7-8
    Non-zero exit status: 2
    t/boilerplate.t (Wstat: 0 Tests: 3 Failed: 0)
    TODO passed: 1-3
    t/manifest.t (Wstat: 256 Tests: 4 Failed: 1)
    Failed test: 2
    Non-zero exit status: 1
    Files=12, Tests=588, 20 wallclock secs ( 0.20 usr 0.11 sys + 1.97 cusr 3.42 csys = 5.71 CPU)
    Result: FAIL
    Failed 3/12 test programs. 4/588 subtests failed.

    :(

  6. Skeeve says:

    I have a german keyborad and some characters don’t reach the shell windows, when I enter them into the control window. Most notably: @ and ^.

    Anyone any idea how to solve this?

  7. matsonkepson says:

    after install i got this result

    matson@matsonkepson ~/App-ClusterSSH-4.01_01
    $ cssh
    Can’t locate X11/Protocol.pm in @INC (@INC contains: /usr/local/bin/../lib /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .) at /usr/lib/perl5/site_perl/5.14/App/ClusterSSH.pm line 29.
    BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.14/App/ClusterSSH.pm line 29.
    Compilation failed in require at /usr/local/bin/cssh line 10.
    BEGIN failed–compilation aborted at /usr/local/bin/cssh line 10.

  8. Brad says:

    To install the newest version (4.02_04) of ClusterSSH, you also need to run:

    cpan CPAN::Changes

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

top