[EMAIL PROTECTED] writes:

Hi Tomas,

I'm glad to both you and Tord stopping by! :-)

>> Martin Geisler <[EMAIL PROTECTED]> writes:
>>
>>> I would like to try VIFF over greater network distances, and this is
>>> where you guys come into the picture. Please tell me which machines
>>> you have access to in exotic places. So far I know of these
>>> persons/places:
>>>
>>>   Tomas: Holland
>>>   Tord: Norway
>
> I have computer access both in Eindhoven and Amsterdam, so that's two
> locations. I have desktop machines (one windows, one linux) that can
> be used. They are behind firewalls but I should be able to set up some
> tunnels.

Yeah, firewalls can get in the way -- I had to open both my ADSL modem
and my router to get the traffic flowing yesterday :-)

On DAIMI all ports seem to be closed for inbound connections, but that
is okay as long as only one computer acts like that. As you know, the
players connect to those with higher numbers than themselves:

  P1 -> P2, P3
  P2 -> P3

That means that P1 can be put behind a firewall as long as it allows
outbound connections. P2 and P3 need to listen on public ports.

Making a tunnel is definitely possible (with SSH or some other tool),
but I have no idea how much overhead there is in doing that.

> Alternatively it may be possible to get access to more dedicated
> machines... I'll look into it.

Wow, thanks! I don't know if we need more than one machine in each
country, what do you guys think?

Of course, with more machines we could do testing with more than three
players... it could be cool to demonstrate MPC done between five players
spread all over Europe! :-)

>> That reminds me -- Tomas, Tord, have you managed to get VIFF working?
>
> Hmmm, I tried to get the source here, but I think I grabbed an
> unofficial copy from my daimi-homedir rather than the official
> viff-devel one. I'll look at it in the next couple of days.

Great! Installing on DreamHost went very well -- there was only one
little detail that failed out of the box. Let me give a mini tutorial on
getting VIFF bootstrapped, just in case the same happens to you or
someone else:

I installed the GMP library with a prefix of ~/opt:

  ./configure --prefix=$HOME/opt
  make
  make check
  make install

Since the prefix is a non-standard location, I had to adjust the
setup.py file for the GMPY extension so that it could find the headers.
This patch adds ~/opt/include and ~/opt/lib to the paths so that GMP can
be found (adjust as needed for your home directory):

--- gmpy/setup.py       2005-11-11 18:55:00.000000000 -0800
+++ setup.py    2007-12-03 09:23:31.000000000 -0800
@@ -10,7 +10,8 @@
 
 if sys.version.find('MSC')==-1:
     gmpy_ext = Extension('gmpy', sources=['src/gmpy.c'],
-        # library_dirs=['/usr/local/lib'],
+        include_dirs=['/home/viff/opt/include'],
+        library_dirs=['/home/viff/opt/lib'],
         libraries=['gmp'])
 else:
     gmpy_ext = Extension('gmpy', sources=['src/gmpy.c'],

After that it is just a matter of doing

  python setup.py install --home=~/opt

and GMPY should install like a charm. Twisted and Mercurial are
installed using the same python command.

Get a copy of VIFF and make sure that ~/opt/lib/python and the VIFF root
directory is in PYTHONPATH. Then you're ready to benchmark.

-- 
Martin Geisler

Attachment: pgpTStNNJWaRG.pgp
Description: PGP signature

_______________________________________________
viff-devel mailing list (http://viff.dk/)
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk

Reply via email to