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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Computer A is a laptop with Suse Linux 10.0, it has wiresless internet connection
Computer B is a desktop computer with RedHat5 Enterprise, it has wired internet connection.
I want to transfer some data (~2GB) from computer A to computer B, will that be easy or possible to do? Do I have to make one of these two computers a server? In that case, do I have to have a static IP address for the server?
I in fact have tried to use an external hard drive (not linux formatted) to transfer the data between the two computers. However, after the transfer, some file name changed (like "A" becomes "a", and "B" becomes "b" ). So I am thinking if I can directly transfer the data between the two computers, as they are both linux system, such error might be avoided.
There really are a large number of ways to transfer data between two systems. I think first you will have to explain or describe the network that exists between the two PCs so we can get a better understanding, and tailor the recommendation.
Some tools that come to mind to transfer files are:
cp (or scp)
rsync
ftp
Note: do not include the trailing / in either of the above paths. This will create the data directory under /path/to on your local system, and move all the files there.
You need to make sure you can ssh to the laptop from the destop before running the command, and you need to run the command as root.
i don't think there is direct connection between my two computers ( these two computers are bought at different times, and i just installed linux on them). Each computer have access to the internet, just like a normal PC.
you don't really need a static IP, as long as you know it (running #ifconfig on each computer will tell you).
edit: i see forrestt already covered that, so:
how are the computers connected to the internet? do you have a router they both go through? or are they separate connections altogether (e.g., one on cable, one on dial up, etc.)?
for ssh/scp, at least one computer has to run the ssh daemon (sshd -- included in openssh). then you can log into it from the other one.
strange. I found IP for my laptop. However, the command "ifconfig -a" doesn't work for redhat. I do both as a root.
Anyway, the two computers are both using the net service provided by my school. So I can SSH my laptop from my Desktop, right? Do I have to use my Desktop as root?
Sorry I think I misread something in your first post when i made the suggestion above. That is if you need to do repeatedly update the files on the desktop with changes you have made on the laptop.
Like forrest said. You can use scp and tar to transfer files:
Code:
cd /path/to/files
tar -cvf files.tar .
scp files.tar user@ipaddressofB:/path/to/destination
note the ":" Also remeber to keep the "user@ipaddressofB:/path/to/destination" together with no spaces.
Also; note the "." in the tar command. The "." means "this directory."
-custangro
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.