Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
followed by <enter> will take you to the root's home directory /root.
If you're not root, become root by typing:
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.
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:
cp file1 file2
For more info read the links I provided or type in the terminal:
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?
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:
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:
So you got that part working. Now check if on the server dritjon2 SSH is running with:
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:
Also set your SSH server to listen on the IP you are connecting to like this:
Hey, thanks man. Now it works but asks for password.
Thats a good thing, because the tutorial says that:
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:
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.
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.
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.