Re: Synchronize two computers
On Thu, 21 Jan 2010 17:20:49 +0530 Kousik Maiti kousiks...@gmail.com wrote: You need cross connected cable to connect 2 pc via lan card . http://en.wikipedia.org/wiki/Ethernet_crossover_cable IIUC, many (most?) ethernet cards today support auto-crossover, which means that you can use a crossover or a patch cable, and the cards will figure it out. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
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 tonynel...@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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rodolfo Medina wrote: 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. Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. - -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktZcL4ACgkQC1NzPRl9qEWtPQCdErh05t400nXwG4zAiElA30Fb bqIAn10/iG0DbjgF2VSBjp0kbzDU6nUA =PMyJ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
On Fri, Jan 22, 2010 at 3:23 PM, Rodolfo Medina rodolfo.med...@gmail.com wrote: 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 tonynel...@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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org 1. Use /sbin/ifconfig to check if interfaces were configured properly I think you've missed auto eth0 in both /etc/interfaces files. That means that ifaces will be up only by demand like that: $ sudo ifup eth0 2. When interfaces are up - use ping to check if machines sees each other 3. If ping is ok - use ssh to check if ssh connection works Alexey -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Rodolfo Medina wrote: 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. Johannes Wiedersich johan...@physik.blm.tu-muenchen.de writes: Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. Alexey Salmin alexey.sal...@gmail.com writes: 1. Use /sbin/ifconfig to check if interfaces were configured properly I think you've missed auto eth0 in both /etc/interfaces files. That means that ifaces will be up only by demand like that: $ sudo ifup eth0 2. When interfaces are up - use ping to check if machines sees each other 3. If ping is ok - use ssh to check if ssh connection works # /sbin/ifconfig ppp0 Link encap:Point-to-Point Protocol inet addr:151.83.161.25 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:552 errors:16 dropped:0 overruns:0 frame:0 TX packets:552 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:467484 (456.5 KiB) TX bytes:89543 (87.4 KiB) # ssh -v rodo...@192.168.0.2 OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22. debug1: connect to address 192.168.0.2 port 22: Connection timed out ssh: connect to host 192.168.0.2 port 22: Connection timed out # ifup eth0 # ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. --- 192.168.0.2 ping statistics --- 135 packets transmitted, 0 received, 100% packet loss, time 134033ms I can't read trough all that! Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: rsync with crossover cable connection (was: Synchronize two computers)
Johannes Wiedersich johan...@physik.blm.tu-muenchen.de writes: Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. Still needing your help: following the suggestion come from the list, I edited /etc/network/interfaces on the first pc as follows: auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 , and on the second the same but with `192.168.0.2' in place of `192.168.0.1'. Then I did `/etc/init.d/networking restart' on both, and `ifconfig' on the first gives: # ifconfig eth0 Link encap:UNSPEC HWaddr 00-03-0D-53-25-5C-86-16-00-00-00-00-00-00-00-00 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:219 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:7884 (7.6 KiB) , and on the second # ifconfig eth0 Link encap:Ethernet HWaddr 00:23:8b:a2:6b:02 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::223:8bff:fea2:6b02/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:147 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:8928 (8.7 KiB) , that look ok. The `ping' command from first machine: $ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. --- 192.168.0.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4000ms , and analogously from second. ssh from first pc gives: # ssh -vvv 192.168.0.2 OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22. , and analogously from second. But rsync does not seem to work between the two. From first pc: $ rsync -vr --delete test1 192.168.0.2:/home/rodolfo , but nothing happens. Further suggestions appreciated. Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: rsync with crossover cable connection (was: Synchronize two computers)
Am 22.01.2010 um 19:24:43 schrieb Rodolfo Medina: Johannes Wiedersich johan...@physik.blm.tu-muenchen.de writes: Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. Still needing your help: following the suggestion come from the list, I edited /etc/network/interfaces on the first pc as follows: { network ok } But rsync does not seem to work between the two. From first pc: $ rsync -vr --delete test1 192.168.0.2:/home/rodolfo , but nothing happens. what do you want to accomplish with that command? do you have the ssh-server installed on both hosts and does it work? bye, Michael. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: rsync with crossover cable connection (was: Synchronize two computers)
On Friday 22 January 2010 12:24:43 Rodolfo Medina wrote: Johannes Wiedersich johan...@physik.blm.tu-muenchen.de writes: Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. Still needing your help: The `ping' command from first machine: $ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. --- 192.168.0.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4000ms , and analogously from second. Most likely, the two computers still can't send packets to each other. Make sure you are using the correct type of cable. You'll need a crossover cable if neither side is a 1Gbit card. You should probably use a crossover cable anyway. Make sure the cable runs to/from the physical port that is eth0 on both side. There could be some routing issues, too. But that would only be if one of your other ports was using a 192.168.0.x address as well, or if you've got some routing customizations. Until you can get the pings to work (X packets transmitted, X received, 0% packet loss) any other sort of network protocol is not going to work either. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.
Re: rsync with crossover cable connection (was: Synchronize two computers)
Am 22.01.2010 um 19:51:00 schrieb Boyd Stephen Smith Jr.: On Friday 22 January 2010 12:24:43 Rodolfo Medina wrote: Johannes Wiedersich johan...@physik.blm.tu-muenchen.de writes: Check and possibly post the output of /sbin/ifconfig ssh -v u...@192.168.0.2 might also help to diagnose your problem. Still needing your help: The `ping' command from first machine: $ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. --- 192.168.0.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4000ms , and analogously from second. Most likely, the two computers still can't send packets to each other. Make sure you are using the correct type of cable. You'll need a crossover cable if neither side is a 1Gbit card. You should probably use a crossover cable anyway. Make sure the cable runs to/from the physical port that is eth0 on both side. There could be some routing issues, too. But that would only be if one of your other ports was using a 192.168.0.x address as well, or if you've got some routing customizations. Until you can get the pings to work (X packets transmitted, X received, 0% packet loss) any other sort of network protocol is not going to work either. sorry for my post... i didn't look right... seems... network is still broken. sorry, bye. Michael. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Synchronize two computers
Hi to all Debian users. I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Thanks indeed for any help Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
unison (has a gtk frontend too) -- Leonardo Canducci -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Rodolfo Medina wrote: Hi to all Debian users. I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Unison will indeed do it, but the GUI will expect to find the source and destination as directories. If you are already running a Samba file-sharing server on one of the machines, that is the simplest way. From what you say, I doubt that you are. If you are not, and don't want the complication of Samba or NFS, then you will need to learn some of the complication of rsync, which is the command-line program which is used by Unison. It is very versatile, but you will need only the most basic functions, and you will need to arrange a means of transfer between the machines. SSH is much simpler to organise than Samba, and is the preferred means anyway, and you may find one or other of the installations already has the SSH daemon running. If not, it's easy to organise with Debian. -- Joe -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
On Thu, Jan 21, 2010 at 10:54:13AM +, Joe wrote: Rodolfo Medina wrote: Hi to all Debian users. I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Unison will indeed do it, but the GUI will expect to find the source and destination as directories. If you are already running a Samba file-sharing server on one of the machines, that is the simplest way. From what you say, I doubt that you are. If you are not, and don't want the complication of Samba or NFS, then you will need to learn some of the complication of rsync, which is the command-line program which is used by Unison. It is very versatile, but you will need only the most basic functions, and you will need to arrange a means of transfer between the machines. SSH is much simpler to organise than Samba, and is the preferred means anyway, and you may find one or other of the installations already has the SSH daemon running. If not, it's easy to organise with Debian. Don't forget rsync's --delete option, so that files that were deleted on the source will also be deleted on the target drive. I imagine Unison can do this too, but I've never used it. Anyway, make sure whatever method you choose handles deleted files properly. -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Rodolfo Medina wrote: I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Thanks to all who replied! It seems that Samba and rsync are the two best way to do what I want. I regularly use rsync to do my daily backups, but: 1) how do I connect the two machines? Any special cable, and where to put it? 2) it seems to me that rsync processes *all* the files and not only the ones that really have changed, which would take long with my 2G home dir. Maybe some special option of rsync? Thanks again Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
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 On Thu, Jan 21, 2010 at 5:15 PM, Rodolfo Medina rodolfo.med...@gmail.comwrote: Rodolfo Medina wrote: I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Thanks to all who replied! It seems that Samba and rsync are the two best way to do what I want. I regularly use rsync to do my daily backups, but: 1) how do I connect the two machines? Any special cable, and where to put it? 2) it seems to me that rsync processes *all* the files and not only the ones that really have changed, which would take long with my 2G home dir. Maybe some special option of rsync? Thanks again Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Wishing you the very best of everything, always!!! Kousik Maiti(কৌশিক মাইতি) Registered Linux User #474025 Registered Ubuntu User # 28654
Re: Synchronize two computers
On Qui, 21 Jan 2010, Rodolfo Medina wrote: 2) it seems to me that rsync processes *all* the files and not only the ones that really have changed, which would take long with my 2G home dir. Maybe some special option of rsync? How are you calling rsync? That's exactly what it doesn't. It only transfers files that have changed, and only the parts that have changed. Naturally, it needs to look at each file to see if they are equal or not, it cannot guess which files are changed. By default this is based on the modification time (and possibly size, I'm not sure), which is rather fast. -- Hey! Who took the cork off my lunch??! -- W. C. Fields Eduardo M KALINOWSKI edua...@kalinowski.com.br -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Rodolfo Medina wrote: Hi to all Debian users. I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Thanks indeed for any help Rodolfo I'd keep it simple : ssh + rsync. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Aioanei Rares schreef: Rodolfo Medina wrote: Hi to all Debian users. I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Set up a small network. It might be an option to buy a router with a dhcp server (should be possible for a few 10$'s). That saves some configuration hassle. Else just buy a crosslink cable and set the networks on both computers appropriately. I'd keep it simple : ssh + rsync. Run: rsync -auvz --delete ssh://remotepc/dir/on/other/pc /dir/on/this/pc to get the new stuff from the other pc to the one you're currently working on. To update, just reverse: rsync -auvz --delete /dir/on/this/pc ssh://remotepc/dir/on/other/pc -auvz does: -a = archive: saves permissions, users etc, -u = update: only newer files are transmitted. without this option older changes will be transmitted too, which might result in a loss of current changes -v = verbose: can also use -P, giving a progress indicator -z = compress: faster over (slow) networks Sjoerd PS. Aioanei: sorry for the double mail. Forgot to click `reply-to-list' signature.asc Description: OpenPGP digital signature
Re: Synchronize two computers
Rodolfo Medina wrote: I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Sjoerd Hardeman sjo...@lorentz.leidenuniv.nl writes: Set up a small network. It might be an option to buy a router with a dhcp server (should be possible for a few 10$'s). That saves some configuration hassle. Else just buy a crosslink cable and set the networks on both computers appropriately. I'd keep it simple : ssh + rsync. Run: rsync -auvz --delete ssh://remotepc/dir/on/other/pc /dir/on/this/pc to get the new stuff from the other pc to the one you're currently working on. To update, just reverse: rsync -auvz --delete /dir/on/this/pc ssh://remotepc/dir/on/other/pc -auvz does: -a = archive: saves permissions, users etc, -u = update: only newer files are transmitted. without this option older changes will be transmitted too, which might result in a loss of current changes -v = verbose: can also use -P, giving a progress indicator -z = compress: faster over (slow) networks Thanks for your explanation. Do I have to install ssh? I'm immediately searching shops for a crosslink cable, but then how do I set the networks on both computers appropriately? Sorry for my ignorance, but as I said, though I've been using Debian for some years now, I've never managed two computers together before. Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
On Qui, 21 Jan 2010, Rodolfo Medina wrote: 2) it seems to me that rsync processes *all* the files and not only the ones that really have changed, which would take long with my 2G home dir. Maybe some special option of rsync? Eduardo M KALINOWSKI edua...@kalinowski.com.br writes: How are you calling rsync? That's exactly what it doesn't. It only transfers files that have changed, and only the parts that have changed. Naturally, it needs to look at each file to see if they are equal or not, it cannot guess which files are changed. By default this is based on the modification time (and possibly size, I'm not sure), which is rather fast. I'm always calliing it without the -u option. Maybe that's why it is so slow?? I do exactly: rsync -vr --delete Mail News /mnt/pendrive1 Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe wrote: Unison will indeed do it, but the GUI will expect to find the source and destination as directories. If you are already running a Samba file-sharing server on one of the machines, that is the simplest way. You don't need a samba server to use unison between two computers. IMHO the simplest way is to use *unison-gtk* via ssh. No need to setup samba. rsync is just one-way, while unison will synchronize in both directions and will detect which of computers A or B has the current version. (Optionally files can even be merged, if both have changed.) - -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktYYg0ACgkQC1NzPRl9qEXdqgCeJPwfRhggWberX0QevdBYu4Q3 OMkAn0KTKir3dztDzVqcSIdSwsQUlIw8 =CLp/ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rodolfo Medina wrote: Eduardo M KALINOWSKI edua...@kalinowski.com.br writes: Naturally, it needs to look at each file to see if they are equal or not, it cannot guess which files are changed. By default this is based on the modification time (and possibly size, I'm not sure), which is rather fast. I'm always calliing it without the -u option. Maybe that's why it is so slow?? I do exactly: rsync -vr --delete Mail News /mnt/pendrive1 Try the -a (archive) option. It will transfer the information on the modification time. - -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktYYuoACgkQC1NzPRl9qEUm3ACeIhm8Kx6m4wbgqjtkxwoX/+Ma hFMAn3a0M8m3nMk8899iRtWI40IEnp0r =8ELr -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 FWIW: Use 'rsync' for backups (one way transfer) Use 'unison' for *synchronization* of (equivalent) data between computers etc. - -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktYY0MACgkQC1NzPRl9qEWS6wCdHjKPHt/eP9HVTyCXgPX9hMbI qPIAnjjU1/feXAnM/oNcTY/JOXuCoSqr =C/rw -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
El Thursday 21 January 2010 13:34:32 Aioanei Rares va escriure: I'd keep it simple : ssh + rsync. Even simpler: use Unison -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
On Thu, 2010-01-21 at 14:08 +0100, Marc Olive wrote: El Thursday 21 January 2010 13:34:32 Aioanei Rares va escriure: I'd keep it simple : ssh + rsync. Even simpler: use Unison Another vote here for Unison when changes can occur on either copy, as the OP is doing. If only one end changes, then rsync or its derivations such as rdiff-backup are great. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
... Thanks for your explanation. Do I have to install ssh? Yes. But that's easy, as there's no configuration involved. I'm immediately searching shops for a crosslink cable, but then how do I set the networks on both computers appropriately? If you use eg. network manager or wicd, you can use the gui-config tools that come with these programmes. Else you have to set /etc/networks/interfaces (see man interfaces) Use either the 10.x.x.x or 192.168.x.x range, these ranges are for private use. Configure eg the two pc's as 192.168.0.1, netmask 255.255.255.0 192.168.0.2, netmask 255.255.255.0 And then you can connect from 192.168.0.1 with `ssh 192.168.0.2' and vice versa. Yet, I still recommend buying a router (eg. a linksys) and use dhcp to configure the stuff. Such a router also allows sharing the internet connection, firewalling your private network and so on. On the config page of such routers you can usually statically set the dhcp-lease, so the ip's don't change. Some also have a dns server, so you can actually name the pc's and ssh with the name you've set in the dns. If you like to experiment, buy a router that allows running Openwrt or Debian for the arm processor. Then you have a complete linux running on your router and you can control even more. Yet, considering that you currently don't know how to connect two computers this might be a step too far. Sorry for my ignorance, but as I said, though I've been using Debian for some years now, I've never managed two computers together before. NP Sjoerd signature.asc Description: OpenPGP digital signature
Re: Synchronize two computers
Rodolfo Medina wrote: I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Andrew Malcolmson andm...@gmail.com writes: Another vote here for Unison when changes can occur on either copy, as the OP is doing. If only one end changes, then rsync or its derivations such as rdiff-backup are great. Well, actually the changes will occur on one end at a time, so rsync seems the best to me. But the real difficulty I'm a bit worried about is that I'm waiting for shops to open so to go and buy a crosslink cable, and then? After plugging the two together, how shall I do the proper settings in order to be able use rsync? Thanks for any further help Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
Rodolfo Medina wrote: I just bought the Acer One netbook, on which Lenny seems to work fine. What I need now is: 1) connect it to my old Hyundai laptop so to share data between the two; 2) periodically save, e.g. to the Hyundai the changes I made in my home directory in the Acer and viceversa. I wish that only the files that really changed were copied, so to save useless time. Can anybody provide suggestions about both issues? I've never connected two machines together. Sjoerd Hardeman sjo...@lorentz.leidenuniv.nl writes: If you use eg. network manager or wicd, you can use the gui-config tools that come with these programmes. Else you have to set /etc/networks/interfaces (see man interfaces) Use either the 10.x.x.x or 192.168.x.x range, these ranges are for private use. Configure eg the two pc's as 192.168.0.1, netmask 255.255.255.0 192.168.0.2, netmask 255.255.255.0 And then you can connect from 192.168.0.1 with `ssh 192.168.0.2' and vice versa. Will it be enough to properly edit /etc/networks/interfaces on both machines? Can anybody suggest a practical example of those files for my case? Let's call the two pcs `acer' and `huyndai'. Thanks! Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rodolfo Medina wrote: Andrew Malcolmson andm...@gmail.com writes: Another vote here for Unison when changes can occur on either copy, as the OP is doing. If only one end changes, then rsync or its derivations such as rdiff-backup are great. Well, actually the changes will occur on one end at a time, so rsync seems the best to me. But the real difficulty I'm a bit worried about is that I'm waiting for shops to open so to go and buy a crosslink cable, and then? After plugging the two together, how shall I do the proper settings in order to be able use rsync? unison won't fail, if there are changes on one side only. Both unison and rsync involve ssh for the connection, so rsync is no simpler in the scenario that you describe. Of course both programs are capable of achieving your means. I use both and consider unison to be the tool of choice for synchronisation. NB: You didn't specify the hardware you are running. If both computers have a wireless, you won't need a cable at all. Add something like this to your /etc/network/interfaces: allow-hotplug eth0 iface eth0 inet static address 192.168.11.100 netmask 255.255.255.0 broadcast 192.168.11.255 More information is found in 'man interfaces' and online [1]. Use .101 instead of .100 at the end of the respective line for the 2nd computer. [1] http://www.debian.org/doc/manuals/reference/ch05.en.html#_the_network_interface_with_the_static_ip - -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktYkzwACgkQC1NzPRl9qEVyOACeOCnZgGXjZJSplzwfLgbi6tl5 h54AniDnd0oC9sy/DBVRMQPLwYa8+4pi =Zt/8 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
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 signature.asc Description: Digital signature
Re: Synchronize two computers
Andrei Popescu andreimpope...@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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Synchronize two computers
On Thu, Jan 21, 2010 at 12:04:07PM +, 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 signature.asc Description: Digital signature
Re: Synchronize two computers
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:tonynel...@georgeanelson.com ' http://www.georgeanelson.com/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org