Set your own "supercomputer cluster" in Ubuntu"

Source: Internet
Author: User
In this article, I will step by step guide you to set up your own "supercomputer cluster", and use JohntheRipper to crack encrypted targets on multiple computers through the tumpicluster platform. Of course, this should all be aimed at academic research. Blessed are friends with quad-core processors on computers. Although the "john" binary code in the Ubuntu software library was originally intended only for single-core running, my settings will try to make it more efficient and less time-consuming on quad-core computers. Starting from this article

In this article, I will guide you step by stepSet your own "supercomputer cluster", ThroughUbuntu MPI Cluster PlatformWith John the Ripper, attackers can crack encrypted targets on multiple computers. Of course, this should all be aimed at academic research.

Blessed are friends with quad-core processors on computers. Although the "john" binary code in the Ubuntu software library was originally intended only for single-core running, my settings will try to make it more efficient and less time-consuming on quad-core computers.

The starting point of this article is to make the problem easy to understand, so that ordinary users can easily understand, so I decided not to involve NIS, NFS, BIND or other complex technologies. You do not have to spend a few days reading the textbooks or manuals about Linux system administrators. You can also easily create and use computer cluster systems at home. My application is based on Ubuntu 10.04 Server, because it is the most commonly used Linux tool so far and also a version with a long-term mechanism. It can be applied until 2015.

Preface

The cluster implementation solution mentioned in this Article does not pose a threat to the running environment with high practicability and security.

Background

I found that I had to start by cracking an old password that had been forgotten for many years. After collecting several computers at hand, I began to try to make them work together.

The birth of this article is the product of extreme frustration, excessive caffeine, and the entire sleepless night.

Basic Requirements

At least two computers running Ubuntu Linux 10.04 and connected to the Internet are required.

John doesn't need much bandwidth.

Server Configuration

Server Requirements

A static IP address or IP address reserved in DHCP.

Required software packages

The following software packages are required:

? Libmp ich1.0-dev-MPICH static library and Development File

? Libmp ich-mpd1.0-dev-MPICH static library and Development File

? Libmp ich-shmem1.0-dev-MPICH static library and Development File

? Openssh-server-Security Framework (SSH) tool to secure remote computer access

? Mpich2-Implementation of MPI information transfer interface standards

? Mpich2-doc-MPICH2 documentation

? John-powerful password cracking tool

? Build-essentials-list of required software packages

www.linuxidc.com@server:~$ sudo apt-get install libmpich1.0-dev libmpich-mpd1.0-dev libmpich-shmem1.0-dev mpich2 mpich2-doc john openssh-server build-essentials


 

Network Configuration

By default, the/etc/hosts file should be as follows:

127.0.0.1 localhost127.0.1.1 server.linuxidc.com server # the following content is the use of IPv6 protocol host fe00: 0 ip6-localnetff00: 0 ip6-mcastprefixff02: 1 ip6-allnodesff02: 2 ip6-allrouters

First, change your IP address to 127.0.1.1.

It should be your FQDN, and Host Name of your computer.

Run the following command to find your IP address:

www.linuxidc.com@server:~$ ifconfig|grep “inet addr”inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0inet addr: 127.0.0.1 Mask:255.0.0.0

After modification, the content in/etc/hosts should be as follows:

127.0.0.1 localhost10.0.0.1 server.linuxidc.com server # the following content is the use of IPv6 protocol HOST: 1 localhost ip6-localhost: 0 ip6-loopbackfe00: 0 ip6-localnetff00: 1 ip6-mcastprefixff02: 2 ip6-allnodesff02


 

User Configuration

Create a new cluster and add ~ to its path ~ /Bin/code.

I found that it is most convenient to take the same setup steps for 'cluster' on each computer.

Www.linuxidc.com @ server :~ $ Sudo useradd-m-s/bin/bash clusterwww.linuxidc.com @ server :~ $ Sudo passwd clusterEnter new UNIX password :( enter a new UNIX password) Retype new UNIX password :( enter a new UNIX password again) passwd: password updated successfully (password: password Changed successfully) www.linuxidc.com @ server :~ $ Sudo su-cluster-c "mkdir ~ /Bin; export PATH = ~ /Bin: $ PATH"

MPICH settings

MPI applications are based on the following configuration files:

? ~ /. Mpd. conf

Note: This file starts with a and must work with chmod 600 to take effect.

This file contains a separate command line "secretword =" in your password. " (Replace , The content must be consistent with all ~ The related content in/. mpd. conf is the same.

? ~ /Mpd. hosts

This file contains a list of all cluster nodes and servers in the format of host: number-of-cpu-cores and fx. If your computer has a four-core processor, set 10.0.0.2 to 10.0.0.2: 4.

If you only want to use the MPICH function and do not care about the number of available processor cores, you can set this value below the actual situation.

For example, if the server has a four-core processor, you may want to set the value to 3 instead of 4, so that the server can simultaneously process other operations.

Do not set the IP address that you must connect to the network to use, such as localhost or 127.0.0.1.

Check the number of processor cores and create a configuration file.

cluster@server:~$ touch ~/.mpd.confcluster@server:~$ chmod 600 ~/.mpd.confcluster@server:~$ echo secretword=pass>~/.mpd.confcluster@server:~$ /sbin/ifconfig|grep “inet addr”cluster@server:~$ /sbin/ifconfig|grep “inet addr”inet addr:127.0.0.1 Mask:255.0.0.0cluster@server:~$ cat /proc/cpuinfo|grep processor|wc –lcluster@server:~$ echo 10.0.0.1: 1 >~/mpd.hosts

After the configuration is complete, run the following command to check whether the operation is normal:

? Mpdboot-start the Cluster

? Mpdtrace-list all nodes of a group

? Mpdallexit-Disable the Cluster

mpdallexit – shut down the clustercluster@server:~$ mpdtracecluster@server:~$ mpdallexit

If there are no setup errors, all your commands will be correctly executed. If any problem occurs, check your ~ /. Mpd. cof permission settings and/etc/hosts and ~ Whether the/mpd. hosts content is correct.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.