惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Last Week in AI
Last Week in AI
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
博客园 - 叶小钗
NISL@THU
NISL@THU
C
Check Point Blog
K
Kaspersky official blog
N
News and Events Feed by Topic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
T
Threatpost
GbyAI
GbyAI
L
LINUX DO - 热门话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Scott Helme
Scott Helme
P
Privacy International News Feed
The Register - Security
The Register - Security
G
GRAHAM CLULEY
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
DataBreaches.Net
J
Java Code Geeks
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
Google DeepMind News
Google DeepMind News

博客园 - 明月我心

百度网盘的同步空间使用方式 windows10删除多出的oem分区 linux设置自动更换壁纸 linux下zip文件解压乱码的问题 Node判断文件是否链接 解决Qualcomm Atheros AR8161 Gigabit Ethernet网卡Linux下坏掉的问题 Openbox中指定目录打开程序 Openbox简单支持平铺 linux关闭双显卡的方法 rdesktop共享剪贴板的问题 Apache FTPServer安装为Windows服务的问题 Dell Inspiron One2330连接WPA2-PSK的问题 12306快速输入验证码办法 rsync命令中的include参数顺序问题 gnome下使用x-tile平铺窗口 开始相信360是款好软件,见下图 adb shell后insufficient permissions for device的问题 Gentoo linux下Adobe AIR运行环境的安装 php升级到5.3后Discuz论坛不能使用的问题
自己搭建anki同步服务器
明月我心 · 2017-09-28 · via 博客园 - 明月我心

最近帮孩子找学习的软件,发现了anki

不过同步速度太慢,但发现可以自己搭建同步服务器

具体方法见https://github.com/dsnopek/anki-sync-server

我的安装过程如下

1 下载https://apps.ankiweb.net/downloads/archive/anki-2.0.36.tgz,并解压到/usr/share/anki

2 安装AnkiServer

virtualenv -p python2 anki
cd anki
source bin/activate
pip install AnkiServer
cp examples/example.ini production.ini

3 运行

4配置nginx

/etc/nginx/conf.d/anki.conf

server {
    listen 80;

    server_name yourdomain;

    location / {
        client_max_body_size 0;
        proxy_pass http://localhost:27701;
        include proxy_params;
    }
}

然后 systemctl reload nginx载入配置

客户端配置

目前我使用的客户端有Android手机上的AnkiDrod以及Linux上安装的anki软件

其中AnkiDoid直接支持同步服务器,在设置里修改参数就好

PC端目前在界面里没有地方更新同步服务器,因为有python代码,直接更改.py文件就好

/usr/share/anki/anki/consts.py中,修改

SYNC_BASE = "http://yourdomain"
SYNC_MEDIA_BASE = "http://yourdomain/msync/"