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.
I have a question on something that I found myself doing and not finding any solution to.
I have two linux boxes. When I log in the other computer using ssh everything is fine. But sometimes I want certain packages to compile and install. Now, I can do that as long as the package exists in the other computer. In case, I forget a patch or file I can't get it on the other computer through some kind of internet connection. Is it how it works? Or there is a way to grep packages from outside on that other computer?
I mean patches are ok as you can nano or vi or whatever and copy it onto the linux box I am working on but big packages would be a pain. So, I was just wondering if there was a way around.
Lets just say 'no wget' then what? I don't even know if wget works.
You can just use ftp or scp/sftp to copy from one host to another. If you've got ssh running then scp is the way to go:
scp hostname:/path/filename /path/filename (to get the file from a remote system)
scp /path/filename hostname:/path/filename (to put the file on a remote system)
In above "/path/filename" would be whichever filename you wanted (for example /tmp/test) and can be different on each side (that is could copy /tmp/test to /var/tmp/newtest for example). hostname of course would be the name or IP of the remote host.
if using vpn or putty for that matter to log onto two linux machines from windows. Is it possible to log on to one linux machine and on that log on to another linux machine so it is easier to copy needed files from the first linux machine to the other linux machine?
hope this makes sense....is it still the same command to use?
Ok, What if I am using putty from a windows machine and forgot to get a package that is supposedly a gz then what command do I use to fetch a file from internet onto that linux box I am logged in from windows putty?
Putty gives you a "terminal" into the Linux box. From that window you're effectively ON the Linux box. Almost any command you could do from the console can done from a "terminal". So if you need to download a file from an ftp site that has a .gz you can use ftp from the command line of the Putty terminal.
The caveat is that Putty is not a GUI display like the console so you can't start X windows (gnome/KDE, xterm, Mozilla, etc... to start within the Putty terminal. However if you're windows workstation has an X emulator like Hummingbird Exceed and you have it running you can set your DISPLAY variable to the workstation's IP or hostname and then start the command in your Putty window to open another window onto your workstation that IS a GUI/X Window. You'd need to do this if you only knew how to do download via browser like Mozilla.