One PC is running Windows 7, and another one is running GNU/Linux 16.04. My goal is to transfer 75GB big data from one to the other.I have ethernet cable and I have already tried creating LAN(TCP/IP v4 protocol) on Windows and Linux also with these settings:
PC 1:
IP Adress: 192.168.0.2
Mask: 255.255.255.0
PC 2:
IP Adress: 192.168.0.3 (These IP's are different in one number)
Mask: 255.255.255.0
I plugged cable directly on these two PCs, but from one PC I cannot acces to other. I've checked file sharing in Windows. After typing ping 192.168.0.2 in Terminal, I got: $ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. 64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.420 ms 64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.315 ms
So I have 2 questins: 1) How to connect these two and fulfill my task, i.e. transfer such big data without an external hard disc? 2) Are crossover and ordinary LAN cables the same thing?
re: crossover & standard cables
NIC ports (network interface cards connectors) have a pin for sending data, and another for receiving data. A standard cable will connect the 'send' pin on one machine to the 'send' pin on another so sent data gets lost (neither machine hears it). A crossover cable however, swaps the send-receive pins so two machines can communicate directly (hearing each others sent traffic). Crossover cables have pins 2 & 3 swapped on UTP (unshielded twisted pair) cable.
Connecting PC to PC should require crossover cables in theory; hubs or [network]switches do this function normally. However in practice most NICs have auto-sensing ports that detect this condition & make the swap electronically, so crossover cables are rarely needed on modern hardware.
re: your task
ICMP echo request (ping) is working so connection is good.
You need a protocol to transfer files such as SaMBa where a reference is https://help.ubuntu.com/community/Samba?action=show&redirect=SettingUpSamba . When setup, SMB/SaMBa/CIFS allows you to create a directory for read/write on your Ubuntu box; which you mount on windoze (
net use
) to copy files between machines. When done you can unmount your connection & remove it (most secure), or leave it in case its needed again.A faster/easier approach is just
rcp
(remote copy) orscp
(secure remote-copy) doesn't need extra mounting steps, however isn't available natively on windoze. A program calledputty
allows it so I suggest looking at https://stackoverflow.com/questions/21587036/using-putty-to-scp-from-windows-to-linux (this is more theory; I seldom use windoze)Thanks a lot, but I could not manage with samba and scp... But at the end, problem solved! I used "HTTP File Server" for Windows to transfer data from PC which was using Windows 7 to laptop which was using Linux. Transfer speed was 5-5.5 MB/sec. In the other direction (Transfer data from Linux to Windows) I used "HTTP server"program(To install http server you have to install node.js and npm via console - it's easy ...), version for Ubuntu.