Page 1 of 1
Connecting two computers Windows and Salix OS
Posted: 5. Feb 2012, 16:09
by Andyun
Hello, friends!
How I can quickly connect two computers (Windows XP and Salix OS) to exchange data via the patch (crossover) cable?
Thank you!
Re: Connecting two computers Windows and Salix OS
Posted: 5. Feb 2012, 17:22
by Shador
Without ever having this tried out, never actually needed this. It should be enough to just connect the two computers. Then wicd or more specifically the dhcpcd daemon should probe for an IPv4LL address and assign it to your interface. I'm pretty sure name resolution won't work, so you need to look up the ip addresses on both computers with ifconfig. Then you can use any tools to connect to the other computer (smb, nfs, ssh, netcat (nc), ...). sshfs and nfs are probably easiest to setup, while samba can require some more work. nc requires no setup at all, but is quite barebone.
On the source machine you would do this with nc:
Code: Select all
tar -cf - <list of pathes | nc -l -p 49999 -q2
On the receiving machine after entering the command on the source machine you would do this (explodes the archive to the directory you're currently in):
Code: Select all
nc <ip source machine> 49999 | tar -xf -
http://www.catonmat.net/blog/unix-utilities-netcat/
https://linos.wordpress.com/2008/01/16/ ... -avoid-it/
Re: Connecting two computers Windows and Salix OS
Posted: 6. Feb 2012, 11:13
by thenktor
I suggest to use WinSCP to copy the files or a simple samba config like this:
Code: Select all
[global]
workgroup = TESTNET
netbios name = LINUXPC
security = share
[musik]
comment = Musik Share
path = /home/musik
read only = Yes
guest only = Yes
[videos]
comment = Video Share
path = /home/videos
read only = Yes
guest only = Yes
It allows guest logins without password.
Re: Connecting two computers Windows and Salix OS
Posted: 6. Feb 2012, 11:20
by Shador
thenktor wrote:I suggest to use WinSCP to copy the files
Yes, but that requires a ssh setup, which is not always trivial. But it's probably a good solution here, just starting the daemon should be enough for such use.
Re: Connecting two computers Windows and Salix OS
Posted: 7. Feb 2012, 14:40
by clauslack
Hello
Another option (two pc with fixed ip) EJ: Linux(192.168.0.1) Windows (192.168.0.2)
From Windows
1) In Linux enable /etc/rc.d/rc.sshd
2) In Windows Install Bitvise Tunnelier, (a fully featured SSH2 client.) GUI tool for copy files.
From Linux
1) Share any folder in Windows (ej: winfolder)
2) Linux as root
mount -t cifs //192.168.0.2/winfolder /mnt/windir -o username=clau,uid=1000,gid=100
uid - gid are from an non-root linux user
username=clau (if need windows share need user-password)
Regards