I need to transfer a large amount of data (over 20 GB) from laptop to desktop. Through creating a LAN between'em. I have a regular ethernet rj45 cable. Thus it should be simple - connect'em between each other with the cable and do the transfer, right? How do I do that? Establishing a lan through internet is not an option, as the speed is ridiculous (80-150KB/s) Most prolly I do something not right, I just can't figure. Thanks in advance.
I am pretty sure you will need a crossover cable for a direct connection between the two without a router.
If you build it, they will come...
Words That Build Or Destroy
If you try the cable directly, i assume wifi adhoc is somehow not an option? I'm pretty happy with the speeds i get that way...
Last edited by El_Belgicano (2012-07-09 07:52:01)
I'd connect the two machines via a switch or router and copy the data using scp (with the -r option). You can connect the two pc's directly but make sure the cable is a crossover.
on the outside looking in
Xover isn't always necessary as many modern NICs are auto-sensing and will configure correctly using a patch cable.
If both PCs are connected to a router then use the method fortyseven suggests.
Enjoying a good !#
Thereś a fresh tutorial from MakeUseOf that explains how to make an ethernet cross-over cable (if you feel like DIY is your stuff):
#Linux user 482038, eeepc 901 with 32GB Runcore SSD
Ok, I again started looking for a solution without even reading what exactly the problem was. But I came up with this little trick:
On the receiver:
nc -l -p 9000 > file.ext
On the sender:
(Replace the ip by the one of the receiver)
exec 5<>/dev/tcp/192.168.1.1/9000 cat file.ext >&5
Establishes a TCP-Connection and sends the file over it.
Neat, I thought. Even though it does not solve op's problem
Last edited by lain (2012-07-09 12:05:27)
#! Chrome Extension
Uh... I'm supposed to share my deep insights here, right?
If you connect your computers directly or with a switch you would need to manually assign them each a separate ip address since it will not do that automatically without a router.
Then after setting up ssh on your computers you can use "scp -r" to copy directories from one computer to the other.
Well, I could connect both through router, if the transfer speeds are equal to direct connection (100-150MBps) Is it?
^ If your routers speed is equal to or faster than your network cards you should only see at most a small slowdown using a wired router.
It would be easier to setup the network using the router since your computer should connect automatically when you plug the computer into it.
it's Nrtgear dgn2200v2
That model appears to be both wireless and wired.
How are you planning to connect to it?
I could not find any good data on the speed of its Ethernet ports, only that they were "Fast Ethernet" but I don't know if that is accurate or not.
If the Ethernet on the router is only 100MBps the wireless might be faster if your computers are relatively close to the router and they both have 802.11n wireless cards in them.
I'll be happy if I'l reach 100MBps.
My desktop is wired to router, and laptop is wireless. But I guess, I should wire laptop too
Ok... Tried the 47's suggestion. 1.2MB/s. Well... not 100MB/s, but still better than 150KB/s. Any more suggestions?
1 megabit = 0.125 mebibyte 1 megabit = 0.131072 megabyte
That means that a download speed of 1.2 Megabytes/s is equivalent to about 9.15 Megabits/s
and a download speed of 1.2 Mebibytes/s is equivalent to about 9.6 Megabits/s.
What speed are the Ethernet cards in your desktop and laptop?
Their max speed could be 10, 100, or 1000 Megabits/s.
If one of them is 10 Megabits/s that is about as fast you will be able to get.
If your laptop has a 10 Megabit/s card try using the wireless instead, unless it has a 802.11b card in it the wireless should be faster.
Also check the cpu use on both computers while copying.
If one of them is at 100% on one or more cores your cpu could be limiting your copy speed.
Last edited by arclance (2012-07-09 23:05:03)
Thanks arc for the info, I was sure that Ethernet was about megabytes )Now I'm calmed.
Anyways, after some fiddling I've managed to get it to 5-5.5MB/s! MEGABYTES!
Well... that's embarassing... I'm trying to ssh second machine and it brings me to my local folders! I still need assistance!
I can't tell exactly what you mean, are you somehow sshing into the wrong computer?
What command are you running and what output does it produce?
Last edited by arclance (2012-07-10 01:46:49)
well, here's what I did:
1. plugged both machines with an ethernet cable.
2. configured ifconfig on ethX (on both mashines)
3. in thunar typed ssh://user@ipethx
4. when asked, entered the password.
First time it worked, showing me the other machine's content. Now it just brings me to my local folders
I don't use thunar so I don't know if that would cause any problems.
Did you type the wrong ip address the second time?
i.e. the address for the computer you are using instead of the address for the other computer.
If you did that you would ssh in the computer you are using instead of the other computer.
nope, the address typed correctly
If you don't mind doing it twice... Transfer to a USB stick or external hardware, and then, transfer to
the 2nd computer. Possibly faster than thru the network.
Did you close the first connection before opening the second?
I don't know what thunar would do if you did not do that.
Could you check if both computers somehow got assigned the same ip address?
Could you run
in a terminal and post the output from after you type in your password to see if it is a problem with ssh itself.