Remove superfluous/outdated instructions
This commit is contained in:
parent
2cb5871ba3
commit
86b63d51b5
33
README.md
33
README.md
@ -8,42 +8,23 @@ remove the REST API, which makes it possible to drop some dependencies.
|
|||||||
Installing
|
Installing
|
||||||
----------
|
----------
|
||||||
|
|
||||||
### Manual installation
|
1. Install the dependencies:
|
||||||
|
|
||||||
1. First, you need to install "virtualenv". If your system has easy_install,
|
$ pip install webob simplejson
|
||||||
this is just a matter of:
|
|
||||||
|
|
||||||
$ easy_install virtualenv
|
2. Patch the bundled libanki:
|
||||||
|
|
||||||
If your system doesn't have easy_install, I recommend getting it!
|
|
||||||
|
|
||||||
2. Next, you need to create a Python environment for running ankisyncd and
|
|
||||||
install some of the dependencies we need there:
|
|
||||||
|
|
||||||
$ virtualenv ankisyncd.env
|
|
||||||
$ ankisyncd.env/bin/easy_install webob simplejson
|
|
||||||
|
|
||||||
3. Patch the bundled libanki:
|
|
||||||
|
|
||||||
$ ./patch_libanki.sh
|
$ ./patch_libanki.sh
|
||||||
|
|
||||||
4. Copy the example.ini to production.ini and edit for your needs.
|
3. Modify ankisyncd.conf according to your needs
|
||||||
|
|
||||||
5. Create authentication database:
|
4. Create user:
|
||||||
|
|
||||||
$ sqlite3 auth.db 'CREATE TABLE auth (user VARCHAR PRIMARY KEY, hash VARCHAR)'
|
|
||||||
|
|
||||||
6. Create user:
|
|
||||||
|
|
||||||
$ ./ankisyncctl.py adduser <username>
|
$ ./ankisyncctl.py adduser <username>
|
||||||
|
|
||||||
7. Then we can run ankisyncd like so:
|
5. Run ankisyncd:
|
||||||
|
|
||||||
$ ./ankisyncctl.py start
|
$ python ./ankisyncd/sync_app.py
|
||||||
|
|
||||||
To stop the server, run:
|
|
||||||
|
|
||||||
$ ./ankisyncctl.py stop
|
|
||||||
|
|
||||||
Setting up Anki
|
Setting up Anki
|
||||||
---------------
|
---------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user