mpi - Connecting laptops through ssh and adding hosts to laptop -


i want make mpi cluster between 2 laptops. need connect via ssh. following link: https://help.ubuntu.com/community/mpichcluster accomplishing it. before need add other laptop's ip address known hosts. when googled got know need manually edit /etc/hosts file (like doing in text editor) super user permission. i'm apprehensive changing manually. can tell how add hosts can proceed project.

here contents of /etc/hosts file:

127.0.0.1   localhost 127.0.1.1   shabhri-hp-pavilion-15-notebook-pc  # following lines desirable ipv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 

you add new hosts ip addresses @ end of first section. this:

127.0.0.1   localhost 127.0.1.1   shabhri-hp-pavilion-15-notebook-pc 192.168.0.2 otherlaptop 192.168.0.3 laptopnumber3 ...etc...  # following lines desirable ipv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -