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
|
|
|
|
|
----------
|
2013-04-03 21:31:44 +08:00
|
|
|
|
2017-10-29 02:40:32 +08:00
|
|
|
1. Install the dependencies:
|
2013-04-03 21:31:44 +08:00
|
|
|
|
2017-10-29 02:43:09 +08:00
|
|
|
$ pip install webob
|
2013-04-03 21:31:44 +08:00
|
|
|
|
2017-10-29 02:40:32 +08:00
|
|
|
2. Patch the bundled libanki:
|
2013-04-03 21:31:44 +08:00
|
|
|
|
2016-11-03 22:44:40 +08:00
|
|
|
$ ./patch_libanki.sh
|
2013-04-03 21:31:44 +08:00
|
|
|
|
2017-10-29 02:40:32 +08:00
|
|
|
3. Modify ankisyncd.conf according to your needs
|
2013-07-13 05:08:16 +08:00
|
|
|
|
2017-10-29 02:40:32 +08:00
|
|
|
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
|
|
|
|
2017-10-29 02:40:32 +08:00
|
|
|
5. Run ankisyncd:
|
2013-10-30 05:48:02 +08:00
|
|
|
|
2017-10-29 02:40:32 +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.
|