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:
perlmakegcc-coreperl-tkperl-Test-Podperl-Test-Pod-Coverageperl-Try_Tinyperl-File-Slurpperl-File-Whichperl-Readonlyxinitopensshcurlwget
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
1. Download the installation file from https://sourceforge.net/projects/clusterssh/files/latest/download
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::Buildcpan[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