Connecting two computers Windows and Salix OS

Introduce yourself, create test postings or talk nonsense
Post Reply
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Connecting two computers Windows and Salix OS

Post 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!
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Connecting two computers Windows and Salix OS

Post 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/
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Connecting two computers Windows and Salix OS

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Connecting two computers Windows and Salix OS

Post 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.
Image
clauslack
Posts: 66
Joined: 25. Apr 2011, 23:17

Re: Connecting two computers Windows and Salix OS

Post 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
Post Reply