Hello, friends!
How I can quickly connect two computers (Windows XP and Salix OS) to exchange data via the patch (crossover) cable?
Thank you!
Connecting two computers Windows and Salix OS
Re: Connecting two computers Windows and Salix OS
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:
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):
http://www.catonmat.net/blog/unix-utilities-netcat/
https://linos.wordpress.com/2008/01/16/ ... -avoid-it/
On the source machine you would do this with nc:
Code: Select all
tar -cf - <list of pathes | nc -l -p 49999 -q2
Code: Select all
nc <ip source machine> 49999 | tar -xf -
https://linos.wordpress.com/2008/01/16/ ... -avoid-it/
Re: Connecting two computers Windows and Salix OS
I suggest to use WinSCP to copy the files or a simple samba config like this:
It allows guest logins without password.
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
Re: Connecting two computers Windows and Salix OS
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.thenktor wrote:I suggest to use WinSCP to copy the files
Re: Connecting two computers Windows and Salix OS
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
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