Prev: Problem with Lenny
Next: Unable to start tightvncserver
From: Andrei Popescu on 21 Jan 2010 13:10 On Thu,21.Jan.10, 18:04:12, Rodolfo Medina wrote: > > Will it be enough to properly edit /etc/networks/interfaces on both machines? Yes > Can anybody suggest a practical example of those files for my case? Let's call > the two pcs `acer' and `huyndai'. It's all in the manpage, but here you go: hyundai: allow-hotplug eth0 iface eth0 inet static address 192.168.A.X netmask 255.255.255.0 acer: allow-hotplug eth0 iface eth0 inet static address 192.168.A.Y netmask 255.255.255.0 A is a number in the range 0-255 and has to be the same on both computers. X and Y are numbers in the range 1-254 and have to be different. Are these two computers not connected to the internet? Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Rodolfo Medina on 21 Jan 2010 14:20 Andrei Popescu <andreimpopescu(a)gmail.com> writes: > It's all in the manpage, but here you go: > > hyundai: > > allow-hotplug eth0 > iface eth0 inet static > address 192.168.A.X > netmask 255.255.255.0 > > acer: > > allow-hotplug eth0 > iface eth0 inet static > address 192.168.A.Y > netmask 255.255.255.0 > > A is a number in the range 0-255 and has to be the same on both > computers. X and Y are numbers in the range 1-254 and have to be > different. Thanks. As suggested, on hyundai I edited /etc/network/interfaces as follows: allow-hotplug eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 , and on acer: allow-hotplug eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 Then I rebooted the two pcs, connected with a crosslink cable, and from hyundai I did: $ rsync -vru --delete ssh://192.168.0.2/home/rodolfo/test1 /home/rodolfo/ but got error: ssh: ssh: Temporary failure in name resolution rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: unexplained error (code 255) at io.c(453) [receiver=2.6.9] What did I miss?? Thanks again, Rodolfo -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Alex Samad on 21 Jan 2010 15:50 On Thu, Jan 21, 2010 at 12:04:07PM +0000, Michal wrote: > On 21/01/2010 11:50, Kousik Maiti wrote: > > You need cross connected cable to connect 2 pc via lan card . > > http://en.wikipedia.org/wiki/Ethernet_crossover_cable > > > > After connecting 2 pc via that cable you just put ip address of same > > class . Then you can communicate between 2 pcs > > > > A lot of modern interfaces on routers, nics etc have auto-sensing so you > can plug a straight-through between them and it will automatically turn > it in to a cross-over on the interface I believe the 1G spec has it in it, so all 1G ports can auto sense > > -- "I understand that the unrest in the Middle East creates unrest throughout the region." - George W. Bush 03/13/2002 Washington, DC
From: Tony Nelson on 21 Jan 2010 20:20 On 10-01-21 14:17:37, Rodolfo Medina wrote: ... > $ rsync -vru --delete ssh://192.168.0.2/home/rodolfo/test1 > /home/rodolfo/ > > but got error: > > ssh: ssh: Temporary failure in name resolution > rsync: connection unexpectedly closed (0 bytes received so far) > [receiver] > rsync error: unexplained error (code 255) at io.c(453) > [receiver=2.6.9] > > What did I miss?? Proper syntax from the rsync man page. You're telling rsync to connect to a host named "ssh". Try "192.168.0.2:/home/rodolfo/test1" instead. -- ____________________________________________________________________ TonyN.:' <mailto:tonynelson(a)georgeanelson.com> ' <http://www.georgeanelson.com/> -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Rodolfo Medina on 22 Jan 2010 04:30
On 10-01-21 14:17:37, Rodolfo Medina wrote: >> $ rsync -vru --delete ssh://192.168.0.2/home/rodolfo/test1 >> /home/rodolfo/ >> >> but got error: >> >> ssh: ssh: Temporary failure in name resolution >> rsync: connection unexpectedly closed (0 bytes received so far) >> [receiver] >> rsync error: unexplained error (code 255) at io.c(453) >> [receiver=2.6.9] >> >> What did I miss?? Tony Nelson <tonynelson(a)georgeanelson.com> writes: > Proper syntax from the rsync man page. You're telling rsync to connect > to a host named "ssh". Try "192.168.0.2:/home/rodolfo/test1" instead. It doesn't work either. I think that the two pcs don't see each other: also the command `ssh 192.168.0.2' produces nothing. Further help very much appreciated. Rodolfo -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org |