Condi:Setup a localhost peer
From Freehackers
Back to Condi
Usefull to test condi with only one computer.
SRCDIR = condi/daemon src dir
- Home for the second condi daemon
$ cd SRCDIR $ cp etc/ssh/id_condi.pub etc/ssh/localhost.keys $ mkdir /tmp/condi2 $ cp -r etc /tmp/condi2 (=> same id_condi keys)
- edit SRCDIR/etc/daemon.conf:
[share s1] path=/path [peer localhost] authorized = localhost.keys share = s1 [daemon] peer = localhost, ... bind = 127.0.0.1, ...
- edit /tmp/condi2/etc/daemon :
[share s2] path=/other [peer localhost] authorized = localhost.keys share = s2 neighbour = 127.0.0.1:5820 [daemon] peer = localhost bind = 127.0.0.1:5920 [client] port = 5925
$ cd SRCDIR $ python main.py
In an other shell :
$ cd SRCDIR $ python main.py --home=/tmp/condi2