Connecting two computers Windows and Salix OS

Introduce yourself, create test postings or talk nonsense

Connecting two computers Windows and Salix OS

Postby Andyun » 5. Feb 2012, 16:09

Hello, friends!
How I can quickly connect two computers (Windows XP and Salix OS) to exchange data via the patch (crossover) cable?
Thank you!
User avatar
Andyun
 
Posts: 377
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Connecting two computers Windows and Salix OS

Postby Shador » 5. Feb 2012, 17:22

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

Re: Connecting two computers Windows and Salix OS

Postby thenktor » 6. Feb 2012, 11:13

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)
last.fm (my last.fm profile)
User avatar
thenktor
Salix Wizard
 
Posts: 2396
Joined: 6. Jun 2009, 14:47
Location: Franconia

Re: Connecting two computers Windows and Salix OS

Postby Shador » 6. Feb 2012, 11:20

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

Re: Connecting two computers Windows and Salix OS

Postby clauslack » 7. Feb 2012, 14:40

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


Return to Salix pub

cron