2014-05-16 06:04:33 +00:00
gettor
======
2014-08-05 20:40:25 +00:00
GetTor Revamp (on development).
2014-05-16 06:08:33 +00:00
Google Summer of Code 2014.
2014-08-05 20:40:25 +00:00
* To get the current repo:
$ git clone https://github.com/ileiva/gettor.git
* To upload bundles to Dropbox and create a links file:
2014-08-05 21:00:54 +00:00
1) Install the Dropbox and GnuPG Python modules (just the first time):
2014-08-05 20:40:25 +00:00
$ pip install dropbox gnupg
2) Change account info in src/dropbox.py (app_key, app_secret, access_token)
3) Specify the path of the PGP key that signed the packages (to include fingerprint).
2014-08-05 21:00:54 +00:00
4) Run the script:
$ cd providers/;rm *.links;cd ../src; python dropbox.py
2014-08-05 20:40:25 +00:00
If everything works good, you should see a dropbox.links file inside the 'providers' directory. The script will take the files on upload_dir (default to 'upload/') which end up on .xz and .xz.asc respectively. To add more locales for testing do the following (example for german):
2014-08-05 21:00:54 +00:00
2014-08-05 20:40:25 +00:00
$ cd upload; cp tor-browser-linux32-3.6.2_en-EN.tar.xz tor-browser-linux32-3.6.2_de-DE.tar.xz
2014-08-05 21:00:54 +00:00
2014-08-05 20:40:25 +00:00
$ cd upload; cp tor-browser-linux32-3.6.2_en-EN.tar.xz.asc tor-browser-linux32-3.6.2_de-DE.tar.xz.asc
A script for getting the latest bundles is pending.
* To test if the core module is working:
1) Use the dummy script provided:
2014-08-05 21:00:54 +00:00
2014-08-05 20:40:25 +00:00
$ python core_demo.py
* To test the smtp module (without mail server):
1) Set request parameters on smtp/sample/sample-email.eml (by default, 'To: gettor+en@torproject.org' and 'linux' in the body of the message.
2014-08-05 21:00:54 +00:00
2) Run dummy script:
2014-08-05 20:40:25 +00:00
$ python smtp_demo.py < smtp / sample / sample-email . eml
If mail server is configured, then uncomment lines 328-332, 337, 353-359, and comment lines 334-335, 338, 360 on gettor/smtp.py. Also, you should enable e-mail forwarding as specified on https://gitweb.torproject.org/gettor.git/blob/HEAD:/README
* To test the xmpp module
1) Install the SleekXMPP module:
2014-08-05 21:00:54 +00:00
2014-08-05 20:40:25 +00:00
$ pip install sleekxmpp
2) Change user details on xmpp.cfg
3) Run dummy script.
2014-08-05 21:00:54 +00:00
2014-08-05 20:40:25 +00:00
$ python xmpp_demo.py
4) To communicate with the bot using Pidgin click on Friends -> New instant message. There are still some issues with bot responses.