[Http-crcsync] GSoC update on crcsync; also new competing protocol and complete debian howto

Pedro R eusou15 at yahoo.com
Sun Jul 5 11:32:49 EDT 2009


Hello!

I have (finally) started coding the Firefox extension for crcsync. In the beggining of August there should be a beta version available.

Also, I had to setup again my crccache servers because I updated my OS. 
I ran through some difficulties and I'm attaching at the end of this email a complete HOWTO for Debian, if you could put it in the repository it would be great (BTW, I think you can delete crccache/doc/etc/apache2/mods-available/crccache.load and crccache.conf, since these 2 do nothing?).

I'd also like to point out that there is another delta protocol being developed - SDCH. It uses a dictionary for compression which shared between the server and the client. Take a look the pdf if you are interested: http://groups.google.com/group/SDCH. 

Pedro Ribeiro


ANNEX-----------------------------------------------------------

Complete HOWTO for Debian (tested with squeeze, should work for lenny, might work for Ubuntu):


-Type sudo aptitude install apache2 apache2-src libapr1-dev libaprutil1-dev
-Unpack /usr/src/apache2.tar.gz to /usr/include/apache2/
-Open crccache/Makefile and change
      APACHE_PATH=/usr/include/apache2/
      EXTRA_FLAGS=-D_LARGEFILE64_SOURCE -Wall -g -fPIC -I/usr/include/apache2/include/ -I$(SOURCE_ROOT) -I$(CACHE_PATH) -I$(CCAN_PATH) -I$(APACHE_PATH)
-Now type make in crccache folder and let it build mod_crccache_client.so and mod_crccache_server.so
-Type the following commands:
      sudo a2ensmod cache
      sudo a2ensmod proxy
      sudo a2ensmod proxy_http
      sudo cp -r crccache/doc/etc/ /
-Edit /etc/apache2/mods-available/crccache_client.load and 
      Add the following line BETWEEN "# Depends: cache" and "LoadModule crccache_client_module(...)": 
         LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
      Change /home/tcollett/Projects/crcsync/ to the prefix of your crccache directory
-Edit /etc/apache2/mods-available/crccache_server.load and
      Change /home/tcollett/Projects/crcsync/ to the prefix of your crccache directory
-Now type
      sudo a2ensmod crccache_client
      sudo a2ensmod crccache_server
      sudo mkdir /var/log/apache2/mod_crccache_client
      sudo mkdir /var/log/apache2/mod_crccache_server
      chgrp -R www-data /var/log/apache2/mod_crccache_client
      chgrp -R www-data /var/log/apache2/mod_crccache_server
      chown -R www-data /var/log/apache2/mod_crccache_client
      chown -R www-data /var/log/apache2/mod_crccache_server
-Finally
      sudo sh /etc/init.d/apache2 restart
-DONE!
      
You can setup Firefox to use localhost:8080 as a proxy and test from there.
Watch the logs by using 3 consoles with
      tail -f /var/log/apache2/mod_crccache_client.log
      tail -f /var/log/apache2/mod_crccache_server.log
      tail -f /var/log/apache2/error.log

END OF ANNEX------------------------------------------------


      


More information about the Http-crcsync mailing list