LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2010, 01:17 PM   #31
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Hi,

If I'm not mistaking the GNU Fortran compiler package is named gfortran so
Code:
sudo apt-get install gfortran-4.3
should work to install the latest stable release found at packages.debian.org.

When you're in the terminal just typing as root:
Code:
cd
followed by <enter> will take you to the root's home directory /root.
Otherwise:
Code:
cd /root
If you're not root, become root by typing:
Code:
su -
and providing the root password.

All the work in that website is done on the command line (in a terminal), so you better get acquainted with it. This link is an useful sheet-sheet for beginners. Or this one where you can order the commands by use.

Kind regards,

Eric
 
Old 08-30-2010, 02:09 PM   #32
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Hey, can you give me the command to copy the file key from the folder tmp to the folder /root/.ssh/identity
 
Old 08-30-2010, 02:20 PM   #33
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Can I ask you how much experience you have with Linux? And have you looked at the links I provided regarding Linux commands? Another option you can use to find out how a command works is to read the man pages. Basically to copy a file:
Code:
cp file1 file2
For more info read the links I provided or type in the terminal:
Code:
man cp
Kind regards,

Eric
 
Old 09-01-2010, 08:51 AM   #34
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Sorry for not responding but I had some problems.

I'm trying now and I'll let you know.
 
Old 09-04-2010, 06:37 AM   #35
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Hey, EricTRA, is there any way to install the compilers offline, coz I dont have any internet connection in my home right now?

Download them somewhere else and install them on my machine?
 
Old 09-04-2010, 06:49 AM   #36
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by dritjon View Post
Hey, EricTRA, is there any way to install the compilers offline, coz I dont have any internet connection in my home right now?

Download them somewhere else and install them on my machine?
Hello,

Of course you can download the packages you need and copy them to your server using a USB stick or by any other means. The only downside is that you'll also have to take care of the dependencies, which is normally done by the package manager.

For example if you would go to packages.debian.org to download the gfortran compiler and you click on the link to download gfortran-4.3 for Lenny; you'll get redirected to the download page for that package. Right before the download links for the different platforms there's a list of the packages gfortran depends on. You'll have to comply with all of the dependencies or gfortran compiler will not work. Also, lot's of those packages have other dependencies, and so on.

You see you'll have to do your homework in order to download what you need at another location and install it manually on your home server without internet.

I suggest you first make a list of what you want to install, next of the dependencies and the dependencies of those dependencies. If you have that list ready then check on your server what's already installed in order to avoid double work. You can check the status and version of a package in Debian using:
Code:
dpkg -l 'packagename'
Hope that helps.

Kind regards,

Eric
 
Old 09-10-2010, 11:21 AM   #37
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Sorry I've been away this days but my parents changed house, so I didnt have any internet connection.

I'm having problems with step 3 here http://www.ibm.com/developerworks/li...ry/l-cluster2/

I get this response:
Quote:
dritjon@dritjon-desktop:~$ ssh -n dritjon whoami
ssh: Could not resolve hostname dritjon: Name or service not known
Can u guide me through ?

Last edited by dritjon; 09-10-2010 at 11:30 AM.
 
Old 09-12-2010, 02:54 AM   #38
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Is the system you are trying to reach in your own LAN? If so do you have a DNS server set up that resolves the hostnames to IP addresses? I'm guessing not. So the simplest way to resolve this is to put the name IP combination in the host file of your system like this:
Code:
127.0.0.1       locahost
192.168.0.1     myserver.localdomain.local  myserver
Above of course are just examples, you'll need to change/add a line for your remote system.

The second thing you need to check is if the remote host has SSH server installed and configured to listen on the correct IP, and that it accepts connections from you (if you connect as root).

SSH server settings are found in /etc/ssh/sshd_config file.

Kind regards,

Eric
 
Old 09-12-2010, 04:10 AM   #39
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
as you know I have 2 vmwares with IP1 192.168.1.3 and IP2 192.168.1.4.
What changes do I have to make to the hosts file and to ssh_config file?
 
Old 09-12-2010, 04:23 AM   #40
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

On the first server you make a reference to the second server in your hosts file; so in your case that would be on the server with IP 192.168.1.3:
Code:
192.168.1.4    <servername of your secondary server>
and on the server with IP 192.168.1.4
Code:
192.168.1.3    <servername of your primary server>
If your name resolving is setup correctly then you can ping between the servers using hostname:
on primary:
Code:
ping secondary
and on secondary:
Code:
ping primary
Of course you'll need to substitute the 'primary' and 'secondary' I've used for your servernames.

After that try connecting with SSH from one server to the other and vice versa. If that doesn't work then you'll have to check your sshd_config file.

Kind regards,

Eric
 
Old 09-12-2010, 04:39 AM   #41
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I did that and pinging works fine.

I named the servers dritjon1 and dritjon2

Now I get this:

Quote:
dritjon@dritjon-desktop:~$ ssh -n dritjon2 whoami
ssh: connect to host dritjon2 port 22: Connection refused

Last edited by dritjon; 09-12-2010 at 04:43 AM.
 
Old 09-12-2010, 04:52 AM   #42
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

So you got that part working. Now check if on the server dritjon2 SSH is running with:
Code:
ps -ef | grep sshd
How are you logged in on your dritjon1 server? As regular user or as root? And if as regular user, does that user also exist on the dritjon2 server? If you use root then check in the /etc/ssh/sshd_config this line is set like this:
Code:
PermitRootLogin yes
Also set your SSH server to listen on the IP you are connecting to like this:
Code:
ListenAddress 192.168.1.4
for the secondary server. Then restart SSH with:
Code:
/etc/init.d/sshd restart
and try again to connect.

Kind regards,

Eric
 
Old 09-12-2010, 05:09 AM   #43
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Hey, thanks man. Now it works but asks for password.
Thats a good thing, because the tutorial says that:

Quote:
The aim is to get something like ssh -n host whoami to work without being asked for a password
Now I have to do this:

Quote:
Step 3b
ssh-keygen -f /tmp/key -t dsa will give you a private key in a file called key and a public key in a file called key.pub.

Step 3c
If you are building your cluster as root and will be running your programs as root (obviously do this only during experimentation), then copy the private key into the file /root/.ssh/identity and the public key into the file /root/.ssh/authorized_keys in all nodes of your cluster.
To confirm that everything works fine, execute the following command: ssh -n hostname 'date' and see if the command executes without errors. You should test this for all nodes to be sure.
 
Old 09-12-2010, 06:14 AM   #44
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Great!! Now onto the next step. The SSH keys are used to authenticate between servers without having to type the password every time. Just follow the steps exactly as explained and you'll be just fine.

Kind regards,

Eric
 
Old 09-12-2010, 07:18 AM   #45
dritjon
LQ Newbie
 
Registered: Aug 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I have a question here:


In the first server: I can generate the keys, copy them in /root/.ssh/identity and in /root/.ssh/authorized_keys.

now, do I have to copy these keys in the second server also, or do I have to repeat the process of generating and copying in the second server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Terminal Server Project Cluster Edition (LTSP-Cluster) LXer Syndicated Linux News 0 02-07-2010 04:50 AM
LXer: Cray to Resell Moab Cluster Suite from Cluster Resources LXer Syndicated Linux News 0 02-04-2008 07:10 PM
Cluster accounting failed at 135593 (0x211a9): missing cluster in $Bitmap fakie_flip Linux - Software 1 01-02-2008 04:08 AM
LXer: Cluster Programming: Explicit Implications of Cluster Computing LXer Syndicated Linux News 0 12-26-2006 09:54 PM
LXer: Hitting the Cluster Wall - A Study in Cluster Optimization LXer Syndicated Linux News 0 06-27-2006 01:33 PM


All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration