LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-27-2005, 12:23 PM   #1
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Rep: Reputation: 15
Exclamation log-in


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.

--p
 
Old 10-27-2005, 12:46 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
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.
 
Old 10-27-2005, 04:38 PM   #3
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
thanks a bunch!!!!!!!!!!! you saved my life.....

--p
 
Old 10-28-2005, 10:07 AM   #4
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
One more question on this:

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?

thanks again!!!!!

--p
 
Old 10-28-2005, 11:30 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
You can do it either way - either do scp from your workstation to each host or do scp to the first host then login to it and do scp from there to the second host.
 
Old 11-02-2005, 10:05 AM   #6
LAdProg2005
Member
 
Registered: Oct 2005
Posts: 50

Original Poster
Rep: Reputation: 15
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?

--p
 
Old 11-02-2005, 10:27 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
man wget
wget is a linux command-line command that will do what you want.
 
Old 11-03-2005, 11:33 AM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
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.
 
  


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
weird stuff in /var/log/auth.log bschiett Linux - Security 3 03-12-2005 08:29 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM


All times are GMT -5. The time now is 05:24 AM.

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