anki-sync-server/README.md

42 lines
1.0 KiB
Markdown
Raw Normal View History

2013-10-20 14:07:36 +08:00
ankisyncd
=========
2013-07-18 09:22:21 +08:00
2013-10-20 13:36:27 +08:00
A personal Anki sync server (so you can sync against your own server rather than
2016-04-06 00:30:30 +08:00
AnkiWeb). This version has been modified from dsnopek's Anki Sync Server to
remove the REST API, which makes it possible to drop some dependencies.
2013-07-18 09:22:21 +08:00
Installing
----------
1. Install the dependencies:
$ pip install webob simplejson
2. Patch the bundled libanki:
$ ./patch_libanki.sh
3. Modify ankisyncd.conf according to your needs
4. Create user:
2013-08-02 02:06:51 +08:00
2013-10-30 05:48:02 +08:00
$ ./ankisyncctl.py adduser <username>
2013-08-02 02:06:51 +08:00
5. Run ankisyncd:
2013-10-30 05:48:02 +08:00
$ python ./ankisyncd/sync_app.py
2013-08-02 02:06:51 +08:00
2013-10-21 07:57:58 +08:00
Setting up Anki
---------------
2013-10-21 08:03:47 +08:00
To make Anki use ankisyncd as its sync server, create a file (name it something
like ankisyncd.py) containing the code below and put it in ~/Anki/addons.
2013-10-21 07:57:58 +08:00
import anki.sync
2013-10-21 08:03:47 +08:00
2014-07-22 21:29:02 +08:00
anki.sync.SYNC_BASE = 'http://127.0.0.1:27701/'
2015-11-29 12:53:58 +08:00
anki.sync.SYNC_MEDIA_BASE = 'http://127.0.0.1:27701/msync/'
2013-10-21 07:57:58 +08:00
2013-10-21 08:03:47 +08:00
Replace 127.0.0.1 with the IP address or the domain name of your server if
ankisyncd is not running on the same machine as Anki.